[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdevplatform/sublime
From: Milian Wolff <mail () milianw ! de>
Date: 2009-10-31 15:24:56
Message-ID: 1257002696.365209.28012.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 1043039 by mwolff:
give the context menus for removing, locking and positioning dock views a title with \
the name and icon of the dock widget. also set the widget's window title earlier, so \
it can be accessed for setting the title.
M +5 -0 ideal.cpp
--- trunk/KDE/kdevplatform/sublime/ideal.cpp #1043038:1043039
@@ -295,6 +295,10 @@
button->updateNormalIcon(action->icon());
button->setShortcut(QKeySequence());
button->setChecked(action->isChecked());
+
+ Q_ASSERT(_widgets.contains(action));
+ _widgets[action]->setWindowTitle(action->text());
+
layout()->addWidget(button);
connect(action, SIGNAL(toggled(bool)), SLOT(actionToggled(bool)));
connect(button, SIGNAL(toggled(bool)), action, SLOT(setChecked(bool)));
@@ -468,6 +472,7 @@
Q_ASSERT(senderWidget);
KMenu menu;
+ menu.addTitle(windowIcon(), windowTitle());
/// start position menu
QMenu* positionMenu = menu.addMenu(i18n("Position"));
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic