src/MainWindow.cpp

changeset 49
29cf6e350063
parent 48
ddd1171ecda5
child 52
ff7b3a41c9b5
--- a/src/MainWindow.cpp	Sun Mar 06 15:31:40 2022 +0100
+++ b/src/MainWindow.cpp	Mon Mar 07 17:33:22 2022 +0100
@@ -24,6 +24,7 @@
 #include "InventoryWaters.h"
 #include "InventoryEquipments.h"
 #include "ProfileWaters.h"
+#include "ProfileMashs.h"
 #include "Setup.h"
 #include "../ui/ui_MainWindow.h"
 #include "config.h"
@@ -202,6 +203,24 @@
 }
 
 
+void MainWindow::fromProfileMashs()
+{
+    qDebug() << Q_FUNC_INFO;
+    delete ProfileMashsWindow;
+    this->show();
+}
+
+
+void MainWindow::on_actionMash_profiles_triggered()
+{
+    qDebug() << Q_FUNC_INFO;
+    ProfileMashsWindow = new ProfileMashs(this);
+    QObject::connect(ProfileMashsWindow, SIGNAL(firstWindow()), this, SLOT(fromProfileMashs()));
+    this->hide();    // Close the main window
+    ProfileMashsWindow->show();  // Show a second window
+}
+
+
 void MainWindow::fromSetup()
 {
     qDebug() << Q_FUNC_INFO;

mercurial