[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [kdelibs/frameworks] kdeui/widgets: Remove code that reads a hidden config key (no GUI for it).
From: David Faure <faure () kde ! org>
Date: 2012-04-28 19:56:45
Message-ID: 20120428195645.BBBA7A60A9 () git ! kde ! org
[Download RAW message or body]
Git commit e21e9dc05ecabd65a95cfe5f2c437df8117c2917 by David Faure.
Committed on 28/04/2012 at 20:28.
Pushed by dfaure into branch 'frameworks'.
Remove code that reads a hidden config key (no GUI for it).
QStatusBar enables the sizegrip by default.
If KDE users hate that, we could have a hook, style hint, platform plugin...
M +0 -13 kdeui/widgets/kstatusbar.cpp
http://commits.kde.org/kdelibs/e21e9dc05ecabd65a95cfe5f2c437df8117c2917
diff --git a/kdeui/widgets/kstatusbar.cpp b/kdeui/widgets/kstatusbar.cpp
index ec25d45..b22aaf0 100644
--- a/kdeui/widgets/kstatusbar.cpp
+++ b/kdeui/widgets/kstatusbar.cpp
@@ -26,8 +26,6 @@
#include <QLabel>
#include <kdebug.h>
-#include <ksharedconfig.h>
-#include <kconfiggroup.h>
#include "ksqueezedtextlabel.h"
@@ -72,17 +70,6 @@ KStatusBar::KStatusBar( QWidget *parent )
: QStatusBar( parent ),
d(new KStatusBarPrivate)
{
- // make the size grip stuff configurable
- // ...but off by default (sven)
- // ...but on by default on OSX, else windows with a KStatusBar are not resizable at all (marijn)
- KSharedConfig::Ptr config = KSharedConfig::openConfig();
- KConfigGroup group( config, QLatin1String("StatusBar style") );
-#ifdef Q_WS_MAC
- bool grip_enabled = group.readEntry(QLatin1String("SizeGripEnabled"), true);
-#else
- bool grip_enabled = group.readEntry(QLatin1String("SizeGripEnabled"), false);
-#endif
- setSizeGripEnabled(grip_enabled);
}
KStatusBar::~KStatusBar ()
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic