[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdebase/workspace/plasma/containments/desktop
From: Aaron J. Seigo <aseigo () kde ! org>
Date: 2009-04-03 0:49:38
Message-ID: 1238719778.246470.24997.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 948433 by aseigo:
icons for the actions
M +6 -1 desktop.cpp
--- trunk/KDE/kdebase/workspace/plasma/containments/desktop/desktop.cpp #948432:948433
@@ -211,7 +211,6 @@
if (panelPlugins.size() == 1) {
m_addPanelAction = new QAction(i18n("Add Panel"), this);
connect(m_addPanelAction, SIGNAL(triggered(bool)), this, SLOT(addPanel()));
- m_addPanelAction->setIcon(KIcon("list-add"));
} else if (!panelPlugins.isEmpty()) {
m_addPanelsMenu = new QMenu();
m_addPanelAction = m_addPanelsMenu->menuAction();
@@ -222,12 +221,18 @@
foreach (const KPluginInfo &plugin, panelPlugins) {
QAction *action = new QAction(plugin.name(), this);
+ if (!plugin.icon().isEmpty()) {
+ action->setIcon(KIcon(plugin.icon()));
+ }
+
mapper->setMapping(action, plugin.pluginName());
connect(action, SIGNAL(triggered(bool)), mapper, SLOT(map()));
m_addPanelsMenu->addAction(action);
}
}
+ m_addPanelAction->setIcon(KIcon("list-add"));
+
m_runCommandAction = new QAction(i18n("Run Command..."), this);
connect(m_runCommandAction, SIGNAL(triggered(bool)), this, SLOT(runCommand()));
m_runCommandAction->setIcon(KIcon("system-run"));
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic