#endif
- setWindowIcon(QIcon(":/icons/64x64/mdictionary.png"));
- setWindowTitle("mDictionary");
-
/*translationWidget is another stacked window, so we don't add it to
layout, only create it with this widget as parent
it must be created as first object in main window, otherwise sometimes
it segfaults*/
translationWidget = new TranslationWidget(this);
+
+
+
+ setWindowIcon(QIcon(":/icons/64x64/mdictionary.png"));
+ setWindowTitle("mDictionary");
+
mainLayout = new QVBoxLayout();
QWidget* w = new QWidget();
w->setLayout(mainLayout);
initializeSearchWidgets();
initializeMenu();
-
-
}
void MainWindow::initializeSearchWidgets() {
settingsWidget = new SettingsWidget(this);
settingsWidget->hide();
+ connect(settingsWidget, SIGNAL(notify(Notify::NotifyType,QString)),
+ this, SLOT(showNotification(Notify::NotifyType,QString)));
+
bookmarksWidget = new BookmarksWidget(this);
bookmarksWidget->hide();