33 #include <QInputDialog> 38 QWidget(parent, flags),
61 if (
ui_.show->isChecked() != toggled)
63 ui_.show->setChecked(toggled);
75 menu.exec(event->globalPos());
93 ui_.content_layout->addWidget(widget);
99 QString text = QInputDialog::getText(
101 tr(
"Set Display name"),
106 if (ok && !text.isEmpty())
119 if (!
ui_.content->isHidden())
122 ui_.signlabel->setText(
" + ");
127 ui_.signlabel->setText(
" - ");
void RemoveRequest(QListWidgetItem *plugin)
void SetWidget(QWidget *widget)
QAction * edit_name_action_
void ToggleDraw(bool toggled)
void SetName(QString name)
void ToggledDraw(QListWidgetItem *plugin, bool visible)
void SetType(QString type)
ConfigItem(QWidget *parent=0, Qt::WindowFlags flags=0)
QAction * remove_item_action_
virtual void contextMenuEvent(QContextMenuEvent *event) override