|
@@ -134,25 +134,25 @@ MainWindow::~MainWindow()
|
|
|
delete ui;
|
|
|
}
|
|
|
|
|
|
-void MainWindow::on_menuentry_1_common_clicked()
|
|
|
+void MainWindow::on_menuentry_1_clicked()
|
|
|
{
|
|
|
hideAllContentWidgets();
|
|
|
status_widget->show();
|
|
|
}
|
|
|
|
|
|
-void MainWindow::on_menuentry_2_common_clicked()
|
|
|
+void MainWindow::on_menuentry_2_clicked()
|
|
|
{
|
|
|
hideAllContentWidgets();
|
|
|
settings_widget->show();
|
|
|
}
|
|
|
|
|
|
-void MainWindow::on_menuentry_3_common_clicked()
|
|
|
+void MainWindow::on_menuentry_3_clicked()
|
|
|
{
|
|
|
hideAllContentWidgets();
|
|
|
rusification_widget->show();
|
|
|
}
|
|
|
|
|
|
-void MainWindow::on_menuentry_4_common_clicked()
|
|
|
+void MainWindow::on_menuentry_4_clicked()
|
|
|
{
|
|
|
hideAllContentWidgets();
|
|
|
help_widget->show();
|
|
@@ -187,12 +187,12 @@ void MainWindow::setupMenuHoverWidget()
|
|
|
menuHoverWidget->setStyleSheet("background-color: rgba(55, 37, 31, 250);");
|
|
|
menuHoverWidget->resize(0, 0);
|
|
|
|
|
|
- connect(ui->menuentry_1_common, &MenuEntry::hover_label_changed, this, &MainWindow::onHoverMenuentry);
|
|
|
- connect(ui->menuentry_2_common, &MenuEntry::hover_label_changed, this, &MainWindow::onHoverMenuentry);
|
|
|
- connect(ui->menuentry_3_common, &MenuEntry::hover_label_changed, this, &MainWindow::onHoverMenuentry);
|
|
|
- connect(ui->menuentry_4_common, &MenuEntry::hover_label_changed, this, &MainWindow::onHoverMenuentry);
|
|
|
+ connect(ui->menuentry_1, &MenuEntry::hover_label_changed, this, &MainWindow::onHoverMenuentry);
|
|
|
+ connect(ui->menuentry_2, &MenuEntry::hover_label_changed, this, &MainWindow::onHoverMenuentry);
|
|
|
+ connect(ui->menuentry_3, &MenuEntry::hover_label_changed, this, &MainWindow::onHoverMenuentry);
|
|
|
+ connect(ui->menuentry_4, &MenuEntry::hover_label_changed, this, &MainWindow::onHoverMenuentry);
|
|
|
|
|
|
- MenuEntry::setActiveLabel(ui->menuentry_1_common);
|
|
|
+ MenuEntry::setActiveLabel(ui->menuentry_1);
|
|
|
menu_hover_checker_timer.setInterval(500);
|
|
|
connect(&menu_hover_checker_timer, &QTimer::timeout, this, &MainWindow::checkMenuIsHovered);
|
|
|
menu_hover_checker_timer.start();
|
|
@@ -215,10 +215,10 @@ void MainWindow::moveMenuHoverWidget(MenuEntry *target)
|
|
|
menuHoverWidgetAnimation->start();
|
|
|
}
|
|
|
|
|
|
- ui->menuentry_1_common->raise();
|
|
|
- ui->menuentry_2_common->raise();
|
|
|
- ui->menuentry_3_common->raise();
|
|
|
- ui->menuentry_4_common->raise();
|
|
|
+ ui->menuentry_1->raise();
|
|
|
+ ui->menuentry_2->raise();
|
|
|
+ ui->menuentry_3->raise();
|
|
|
+ ui->menuentry_4->raise();
|
|
|
}
|
|
|
|
|
|
void MainWindow::checkMenuIsHovered()
|