Changeset View
Changeset View
Standalone View
Standalone View
src/kpluginselector_p.h
Show First 20 Lines • Show All 183 Lines • ▼ Show 20 Line(s) | 183 | { | |||
---|---|---|---|---|---|
184 | Q_OBJECT | 184 | Q_OBJECT | ||
185 | 185 | | |||
186 | public: | 186 | public: | ||
187 | PluginDelegate(KPluginSelector::Private *pluginSelector_d, QObject *parent = nullptr); | 187 | PluginDelegate(KPluginSelector::Private *pluginSelector_d, QObject *parent = nullptr); | ||
188 | ~PluginDelegate(); | 188 | ~PluginDelegate(); | ||
189 | 189 | | |||
190 | void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const Q_DECL_OVERRIDE; | 190 | void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const Q_DECL_OVERRIDE; | ||
191 | QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const Q_DECL_OVERRIDE; | 191 | QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const Q_DECL_OVERRIDE; | ||
192 | void configure(const QModelIndex &idx); | ||||
192 | 193 | | |||
193 | Q_SIGNALS: | 194 | Q_SIGNALS: | ||
194 | void changed(bool hasChanged); | 195 | void changed(bool hasChanged); | ||
195 | void configCommitted(const QByteArray &componentName); | 196 | void configCommitted(const QByteArray &componentName); | ||
196 | 197 | | |||
197 | protected: | 198 | protected: | ||
198 | QList<QWidget *> createItemWidgets(const QModelIndex &index) const Q_DECL_OVERRIDE; | 199 | QList<QWidget *> createItemWidgets(const QModelIndex &index) const Q_DECL_OVERRIDE; | ||
199 | void updateItemWidgets(const QList<QWidget *> widgets, | 200 | void updateItemWidgets(const QList<QWidget *> widgets, | ||
Show All 21 Lines |