summaryrefslogtreecommitdiffstats
path: root/shemov.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'shemov.cpp')
-rw-r--r--shemov.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/shemov.cpp b/shemov.cpp
index 65a88b5..75d7f48 100644
--- a/shemov.cpp
+++ b/shemov.cpp
@@ -49,7 +49,9 @@ SheMov::SheMov(QWidget *parent, Qt::WindowFlags flags) : QMainWindow(parent, fla
//init database as early as possible
splash.showMessage(tr("Initializing globals..."), Qt::AlignHCenter, Qt::yellow);
qApp->processEvents();
- (void) SmGlobals::instance();
+ mSearchDialog = new SearchDialog(this);
+ mSearchDialog->setHidden(true);
+ (void) SmGlobals::instance();
mAnalyzeActorsA = new QAction(tr("Actors..."), this);
connect(mAnalyzeActorsA, &QAction::triggered, this, &SheMov::analyzeActors);
@@ -61,9 +63,9 @@ SheMov::SheMov(QWidget *parent, Qt::WindowFlags flags) : QMainWindow(parent, fla
connect(mAnalyzePartsA, &QAction::triggered, this, &SheMov::analyzeParts);
mConsistencyA = new QAction(tr("Check consisteny..."), this);
connect(mConsistencyA, &QAction::triggered, this, &SheMov::checkConsistency);
- /*mSearchDialogA = new QAction(tr("Search..."), this);
- mSearchDialogA->setShortcut(tr("CTRL+f"));
- connect(mSearchDialogA, &QAction::triggered, mSearchDialog, &SearchDialog::show);*/
+ QAction *searchDialogA = new QAction(tr("Search..."), this);
+ searchDialogA->setShortcut(tr("CTRL+f"));
+ connect(searchDialogA, &QAction::triggered, mSearchDialog, &SearchDialog::show);
mQuitA = new QAction(tr("Quit"), this);
mQuitA->setShortcut(tr("CTRL+q"));
connect(mQuitA, &QAction::triggered, qApp, &QApplication::closeAllWindows);
@@ -94,6 +96,7 @@ SheMov::SheMov(QWidget *parent, Qt::WindowFlags flags) : QMainWindow(parent, fla
globalMenu->addSeparator();
globalMenu->addAction(mConfigA);
globalMenu->addAction(mStatisticsA);
+ globalMenu->addAction(searchDialogA);
globalMenu->addSeparator();
globalMenu->addAction(mAboutQtA);
globalMenu->addAction(mAboutShemovA);