diff options
author | Ben Boeckel <MathStuf@gmail.com> | 2009-03-26 04:48:40 -0400 |
---|---|---|
committer | Ben Boeckel <MathStuf@gmail.com> | 2009-03-26 04:51:01 -0400 |
commit | 1d09c9f3bba82ae2a918765f645c7829027b4ac1 (patch) | |
tree | e56941fdff3e1064cd9c8eb8422e1371dc6d200c /sigtools/PluginTree.h | |
parent | 0d642f3374d9be46fb49f7a3fa5e3707935aa0d9 (diff) | |
download | sigen-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.h | 16 |
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; }; } |