diff options
author | Ben Boeckel <MathStuf@gmail.com> | 2009-03-25 02:25:50 -0400 |
---|---|---|
committer | Ben Boeckel <MathStuf@gmail.com> | 2009-03-25 02:25:50 -0400 |
commit | f68f7434b47502f2853638e8041a15ef62035879 (patch) | |
tree | d7b411b41745a62eb1e9e579d74e913ad77ec77e /sigtools/RootPluginModel.h | |
parent | aad586616b64fae819de93594c83b815071bce2d (diff) | |
download | sigen-f68f7434b47502f2853638e8041a15ef62035879.tar.gz sigen-f68f7434b47502f2853638e8041a15ef62035879.tar.xz sigen-f68f7434b47502f2853638e8041a15ef62035879.zip |
Move the paint and sizeHint down to BaseModel
Diffstat (limited to 'sigtools/RootPluginModel.h')
-rw-r--r-- | sigtools/RootPluginModel.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sigtools/RootPluginModel.h b/sigtools/RootPluginModel.h index fbb5090f..ea170aa1 100644 --- a/sigtools/RootPluginModel.h +++ b/sigtools/RootPluginModel.h @@ -40,14 +40,12 @@ class SIGTOOLS_NO_EXPORT RootPluginModel : public BaseModel Qt::ItemFlags flags() const; - void paint(QPainter* painter, const QStyleOptionViewItem& option) const; - QSize sizeHint(const QStyleOptionViewItem& option) const; - BaseModel* childItem(const int row); void addPlugin(const QString& type, KService::Ptr service); protected: int findChild(BaseModel* model) const; + void redraw(const int width) const; QMap<QString, PluginTypeModel*> m_types; }; |