diff options
Diffstat (limited to 'sigtools/PluginTreeDelegate.cpp')
-rw-r--r-- | sigtools/PluginTreeDelegate.cpp | 29 |
1 files changed, 17 insertions, 12 deletions
diff --git a/sigtools/PluginTreeDelegate.cpp b/sigtools/PluginTreeDelegate.cpp index 013ed4df..bf039bc8 100644 --- a/sigtools/PluginTreeDelegate.cpp +++ b/sigtools/PluginTreeDelegate.cpp @@ -19,29 +19,34 @@ #include "PluginTreeDelegate.h" // Sigtools includes -#include "BaseModel.h" #include "PluginTree.h" -#include "PluginTreeModel.h" + +// KDE includes +#include <KCategorizedView> using namespace Sigtools; -PluginTreeDelegate::PluginTreeDelegate(PluginTree* parent) : - QAbstractItemDelegate(parent), - m_view(parent) +PluginTreeDelegate::PluginTreeDelegate(KCategorizedView* view, PluginTree* tree) : + KWidgetItemDelegate(view, tree) { } void PluginTreeDelegate::paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const { - PluginTreeModel* model = qobject_cast<PluginTreeModel*>(m_view->model()); - if (model) - model->getItem(index)->paint(painter, option); } QSize PluginTreeDelegate::sizeHint(const QStyleOptionViewItem& option, const QModelIndex& index) const { - PluginTreeModel* model = qobject_cast<PluginTreeModel*>(m_view->model()); - if (model) - return model->getItem(index)->sizeHint(option); - return QSize(); +} + +QList<QWidget*> PluginTreeDelegate::createItemWidgets() const +{ +} + +void PluginTreeDelegate::updateItemWidgets(const QList<QWidget*> widgets, const QStyleOptionViewItem& option, const QPersistentModelIndex& index) const +{ +} + +void PluginTreeDelegate::aboutClicked() +{ } |