diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2020-10-19 20:36:51 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2020-10-19 20:36:51 +0000 |
| commit | 6baa843a2a0bdf143617df269129d81dae0a3a38 (patch) | |
| tree | 9a650b4349c1129c8c20b4536228bb838eb9ee67 /src/qmmpui/uihelper.cpp | |
| parent | b0ab8e75df1bb8c5752ebf3ed60334f1134b04f3 (diff) | |
| download | qmmp-6baa843a2a0bdf143617df269129d81dae0a3a38.tar.gz qmmp-6baa843a2a0bdf143617df269129d81dae0a3a38.tar.bz2 qmmp-6baa843a2a0bdf143617df269129d81dae0a3a38.zip | |
qsui: added feature to add dock widgets from plugins
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@9509 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/qmmpui/uihelper.cpp')
| -rw-r--r-- | src/qmmpui/uihelper.cpp | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/src/qmmpui/uihelper.cpp b/src/qmmpui/uihelper.cpp index 6e800b831..c01ff17bb 100644 --- a/src/qmmpui/uihelper.cpp +++ b/src/qmmpui/uihelper.cpp @@ -129,7 +129,22 @@ void UiHelper::registerMenu(UiHelper::MenuType type, QMenu *menu, bool autoHide, m_menus[type].menu->insertActions(before, m_menus[type].actions); else m_menus[type].menu->addActions(m_menus[type].actions); - m_menus[type].menu->menuAction()->setVisible(!autoHide || !m_menus[type].actions.isEmpty()); + m_menus[type].menu->menuAction()->setVisible(!autoHide || !m_menus[type].actions.isEmpty()); +} + +void UiHelper::addWidget(const QString &id) +{ + emit widgetAdded(id); +} + +void UiHelper::removeWidget(const QString &id) +{ + emit widgetRemoved(id); +} + +void UiHelper::updateWidget(const QString &id) +{ + emit widgetUpdated(id); } void UiHelper::addFiles(QWidget *parent, PlayListModel *model) |
