MCPcopy Create free account
hub / github.com/KDE/kdevelop / createItemWidgets

Function createItemWidgets

kdevplatform/shell/loadedpluginsdialog.cpp:187–198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

185 }
186
187 QList<QWidget *> createItemWidgets(const QModelIndex &index) const override
188 {
189 Q_UNUSED(index);
190
191 auto *button = new QPushButton();
192 button->setIcon(QIcon::fromTheme(QStringLiteral("help-about-symbolic")));
193 setBlockedEventTypes(button, QList<QEvent::Type>{QEvent::MouseButtonPress, QEvent::MouseButtonRelease, QEvent::MouseButtonDblClick});
194
195 connect(button, &QPushButton::clicked, this, &LoadedPluginsDelegate::info);
196 return QList<QWidget*>()
197 << button;
198 }
199
200 void updateItemWidgets(const QList<QWidget*>& widgets, const QStyleOptionViewItem& option,
201 const QPersistentModelIndex& index) const override

Callers

nothing calls this directly

Calls 1

setIconMethod · 0.80

Tested by

no test coverage detected