summaryrefslogtreecommitdiffstats
path: root/movieinfopage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'movieinfopage.cpp')
-rw-r--r--movieinfopage.cpp16
1 files changed, 10 insertions, 6 deletions
diff --git a/movieinfopage.cpp b/movieinfopage.cpp
index 425a252..6726587 100644
--- a/movieinfopage.cpp
+++ b/movieinfopage.cpp
@@ -23,6 +23,8 @@
#include <QSpinBox>
#include <QFileDialog>
#include <QMessageBox>
+#include <QToolBar>
+#include <QApplication>
#include "movieinfopage.h"
#include "wizardtreemodel.h"
@@ -80,12 +82,14 @@ void MovieInfoPage::setupGui(){
mSubtitle = new QLineEdit;
movieTitleLayout->addWidget(new QLabel(tr("Movie subtitle")), 1, 0);
movieTitleLayout->addWidget(mSubtitle, 1, 1, 1, 1);
- QPushButton *lowerCaseB = new QPushButton(QIcon(":/steel_collar.png"), tr("Lower case"));
- connect(lowerCaseB, &QPushButton::clicked, this, &MovieInfoPage::toLower);
- movieTitleLayout->addWidget(lowerCaseB, 1, 2, 1, 1);
- QPushButton *checkB = new QPushButton(QIcon(":/spreadingpants.png"), tr("Fuzzy check..."));
- connect(checkB, &QPushButton::clicked, this, &MovieInfoPage::fuzzyCheck);
- movieTitleLayout->addWidget(checkB, 1, 3, 1, 1);
+ QToolBar *checkTB = new QToolBar;
+ QAction *lowerCaseA = new QAction(Helper::icon(Qt::transparent, qApp->palette().color(QPalette::Text), QChar(0x2b07), true, false), tr("Lower Case"), this);
+ connect(lowerCaseA, &QAction::triggered, this, &MovieInfoPage::toLower);
+ checkTB->addAction(lowerCaseA);
+ QAction *fuzzyCheckA = new QAction(Helper::icon(Qt::transparent, qApp->palette().color(QPalette::Text), QChar(0x2975), true, false), tr("Fuzzy Check"), this);
+ connect(fuzzyCheckA, &QAction::triggered, this, &MovieInfoPage::fuzzyCheck);
+ checkTB->addAction(fuzzyCheckA);
+ movieTitleLayout->addWidget(checkTB, 1, 2, 1, 1);
mSeriesCompleter = new QCompleter(this);
mSeriesCompleterModel = new QStringListModel(this);
mSeriesCompleter->setModel(mSeriesCompleterModel);