diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-11-23 00:14:36 +0100 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-11-23 00:14:36 +0100 |
commit | 7a3b8bb16c90265b26907c90a04da79d3c694f0e (patch) | |
tree | 288d1684b404279cb86d208433e9167c78414b86 /lib | |
parent | Add library check for Plasma and Breakpad configuration toggles (diff) | |
download | smolbote-7a3b8bb16c90265b26907c90a04da79d3c694f0e.tar.xz |
Add About and Run actions to plugin submenu
- Remove plugin list from About dialog
Diffstat (limited to 'lib')
-rw-r--r-- | lib/about/aboutdialog.cpp | 10 | ||||
-rw-r--r-- | lib/about/aboutdialog.h | 2 | ||||
-rw-r--r-- | lib/about/aboutdialog.ui | 48 |
3 files changed, 4 insertions, 56 deletions
diff --git a/lib/about/aboutdialog.cpp b/lib/about/aboutdialog.cpp index 4e57025..6434d68 100644 --- a/lib/about/aboutdialog.cpp +++ b/lib/about/aboutdialog.cpp @@ -58,13 +58,3 @@ AboutDialog::~AboutDialog() { delete ui; } - -void AboutDialog::addPlugin(const QString &name, const QString &author, const QString &shortcut) -{ - auto index = ui->pluginsTable->rowCount(); - ui->pluginsTable->setRowCount(index + 1); - - ui->pluginsTable->setItem(index, 0, new QTableWidgetItem(name)); - ui->pluginsTable->setItem(index, 1, new QTableWidgetItem(author)); - ui->pluginsTable->setItem(index, 2, new QTableWidgetItem(shortcut)); -} diff --git a/lib/about/aboutdialog.h b/lib/about/aboutdialog.h index 4eb4a87..1d33d3e 100644 --- a/lib/about/aboutdialog.h +++ b/lib/about/aboutdialog.h @@ -24,8 +24,6 @@ public: explicit AboutDialog(QWidget *parent = nullptr); ~AboutDialog() override; - void addPlugin(const QString &name, const QString &author, const QString &shortcut); - private: Ui::AboutDialog *ui; }; diff --git a/lib/about/aboutdialog.ui b/lib/about/aboutdialog.ui index dbd2561..13edfed 100644 --- a/lib/about/aboutdialog.ui +++ b/lib/about/aboutdialog.ui @@ -81,8 +81,8 @@ <rect> <x>0</x> <y>0</y> - <width>406</width> - <height>450</height> + <width>96</width> + <height>30</height> </rect> </property> <attribute name="label"> @@ -109,8 +109,8 @@ <rect> <x>0</x> <y>0</y> - <width>96</width> - <height>120</height> + <width>406</width> + <height>450</height> </rect> </property> <attribute name="label"> @@ -127,46 +127,6 @@ </property> </widget> </item> - <item> - <widget class="QTableWidget" name="pluginsTable"> - <property name="horizontalScrollBarPolicy"> - <enum>Qt::ScrollBarAlwaysOff</enum> - </property> - <property name="sizeAdjustPolicy"> - <enum>QAbstractScrollArea::AdjustToContents</enum> - </property> - <property name="editTriggers"> - <set>QAbstractItemView::NoEditTriggers</set> - </property> - <attribute name="horizontalHeaderCascadingSectionResizes"> - <bool>true</bool> - </attribute> - <attribute name="horizontalHeaderHighlightSections"> - <bool>false</bool> - </attribute> - <attribute name="horizontalHeaderStretchLastSection"> - <bool>true</bool> - </attribute> - <attribute name="verticalHeaderVisible"> - <bool>false</bool> - </attribute> - <column> - <property name="text"> - <string>Name</string> - </property> - </column> - <column> - <property name="text"> - <string>Author</string> - </property> - </column> - <column> - <property name="text"> - <string>Shortcut</string> - </property> - </column> - </widget> - </item> </layout> </widget> </widget> |