[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [plasmate/terietor/tools] engineexplorer: Neat idea: show the engine icon in the engineexplorer comb
From: Shaun Reich <shaun.reich () kdemail ! net>
Date: 2012-08-16 18:41:51
Message-ID: 20120816184151.A574CA60F9 () git ! kde ! org
[Download RAW message or body]
Git commit 5fc9717f462c0604e9daa2d889da1476fc04c463 by Shaun Reich.
Committed on 14/01/2012 at 05:40.
Pushed by tsiapaliwkas into branch 'terietor/tools'.
Neat idea: show the engine icon in the engineexplorer combobox.
Be very amazed!
M +6 -2 engineexplorer/engineexplorer.cpp
http://commits.kde.org/plasmate/5fc9717f462c0604e9daa2d889da1476fc04c463
diff --git a/engineexplorer/engineexplorer.cpp b/engineexplorer/engineexplorer.cpp
index ccca8f5..a03d96c 100644
--- a/engineexplorer/engineexplorer.cpp
+++ b/engineexplorer/engineexplorer.cpp
@@ -145,9 +145,13 @@ void EngineExplorer::dataUpdated(const QString& source, const Plasma::DataEngine
void EngineExplorer::listEngines()
{
m_engines->clear();
- QStringList engines = m_engineManager->listAllEngines(m_app);
+ KPluginInfo::List engines = m_engineManager->listEngineInfo(m_app);
qSort(engines);
- m_engines->addItems(engines);
+
+ foreach (const KPluginInfo engine, engines) {
+ m_engines->addItem(KIcon(engine.icon()), engine.name());
+ }
+
m_engines->setCurrentIndex(-1);
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic