summaryrefslogtreecommitdiffstats
path: root/sigtools/PluginTree.h
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2009-03-26 04:48:40 -0400
committerBen Boeckel <MathStuf@gmail.com>2009-03-26 04:51:01 -0400
commit1d09c9f3bba82ae2a918765f645c7829027b4ac1 (patch)
treee56941fdff3e1064cd9c8eb8422e1371dc6d200c /sigtools/PluginTree.h
parent0d642f3374d9be46fb49f7a3fa5e3707935aa0d9 (diff)
downloadsigen-1d09c9f3bba82ae2a918765f645c7829027b4ac1.tar.gz
sigen-1d09c9f3bba82ae2a918765f645c7829027b4ac1.tar.xz
sigen-1d09c9f3bba82ae2a918765f645c7829027b4ac1.zip
Emulate KPluginSelector, but we can't use it directly due to the factory nature of the plugin classes
Diffstat (limited to 'sigtools/PluginTree.h')
-rw-r--r--sigtools/PluginTree.h16
1 files changed, 7 insertions, 9 deletions
diff --git a/sigtools/PluginTree.h b/sigtools/PluginTree.h
index e941469e..1fed430e 100644
--- a/sigtools/PluginTree.h
+++ b/sigtools/PluginTree.h
@@ -21,27 +21,25 @@
// Sigtools includes
#include "Global.h"
-// KDE includes
-#include <KService>
-
// Qt includes
-#include <QtGui/QTreeView>
+#include <QtGui/QWidget>
namespace Sigtools
{
-// Forward declarations
-class PluginTreeModel;
-
-class SIGTOOLS_EXPORT PluginTree : public QTreeView
+class SIGTOOLS_EXPORT PluginTree : public QWidget
{
Q_OBJECT
public:
PluginTree(const QStringList& types, QWidget* parent);
+
+ QString currentType() const;
+ QString currentName() const;
private:
void loadServiceType(const QString& type);
- PluginTreeModel* m_model;
+ class Private;
+ Private* const d;
};
}