[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: playground/libs/goya/goya
From: Rafael Fernández López <ereslibre () kde ! org>
Date: 2008-02-01 0:30:34
Message-ID: 1201825834.006559.1759.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 769278 by ereslibre:
Obey the user preference of icons-on-buttons
M +7 -2 toolbutton.cpp
--- trunk/playground/libs/goya/goya/toolbutton.cpp #769277:769278
@@ -30,6 +30,8 @@
#include <QAbstractItemView>
#include <QStyleOptionToolButton>
+#include <kglobalsettings.h>
+
namespace Goya
{
@@ -119,8 +121,11 @@
toolButtonOptions->toolButtonStyle = Qt::ToolButtonTextBesideIcon;
toolButtonOptions->text = d->text;
- toolButtonOptions->icon = d->icon;
- toolButtonOptions->iconSize = d->iconSize;
+ if (KGlobalSettings::showIconsOnPushButtons())
+ {
+ toolButtonOptions->icon = d->icon;
+ toolButtonOptions->iconSize = d->iconSize;
+ }
toolButtonOptions->features = QStyleOptionToolButton::Menu;
return toolButtonOptions;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic