[SCM] ktp-accounts-kcm packaging branch, master, updated. debian/15.12.1-1-1157-gc4589c5
Maximiliano Curia
maxy at moszumanska.debian.org
Sat May 28 00:01:56 UTC 2016
Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-accounts-kcm.git;a=commitdiff;h=e06e32f
The following commit has been merged in the master branch:
commit e06e32fd2f8227bfba263aaf1fc1ff735960fbfa
Author: Daniele E. Domenichelli <daniele.domenichelli at gmail.com>
Date: Sun Mar 18 02:50:59 2012 +0100
Use decoration size to resize the button icon
---
src/accounts-list-delegate.cpp | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/accounts-list-delegate.cpp b/src/accounts-list-delegate.cpp
index 9c1ff3c..e6e9425 100644
--- a/src/accounts-list-delegate.cpp
+++ b/src/accounts-list-delegate.cpp
@@ -151,6 +151,12 @@ void AccountsListDelegate::updateItemWidgets(const QList<QWidget *> widgets, con
// changeIconButton
changeIconButton->setIcon(accountIcon);
changeIconButton->setAccount(account);
+ // At the moment (KDE 4.8.1) decorationSize is not passed from KWidgetItemDelegate
+ // through the QStyleOptionViewItem, therefore we leave default size unless
+ // the user has a more recent version.
+ if (option.decorationSize.width() > -1) {
+ changeIconButton->setButtonIconSize(option.decorationSize.width());
+ }
int changeIconButtonLeftMargin = checkboxLeftMargin + checkbox->width();
int changeIconButtonTopMargin = (outerRect.height() - changeIconButton->height()) / 2;
--
ktp-accounts-kcm packaging
More information about the pkg-kde-commits
mailing list