src/MainWindow.cpp

changeset 56
eb6c564192f4
parent 52
ff7b3a41c9b5
child 57
75d11cc05ce4
--- a/src/MainWindow.cpp	Mon Mar 14 16:56:59 2022 +0100
+++ b/src/MainWindow.cpp	Tue Mar 15 17:00:54 2022 +0100
@@ -25,6 +25,7 @@
 #include "InventoryEquipments.h"
 #include "ProfileWaters.h"
 #include "ProfileMashs.h"
+#include "ProfileStyles.h"
 #include "Setup.h"
 #include "PrinterDialog.h"
 #include "../ui/ui_MainWindow.h"
@@ -236,6 +237,24 @@
 }
 
 
+void MainWindow::fromProfileStyles()
+{
+    qDebug() << Q_FUNC_INFO;
+    delete ProfileStylesWindow;
+    this->show();
+}
+
+
+void MainWindow::on_actionStyles_profiles_triggered()
+{
+    qDebug() << Q_FUNC_INFO;
+    ProfileStylesWindow = new ProfileStyles(this);
+    QObject::connect(ProfileStylesWindow, SIGNAL(firstWindow()), this, SLOT(fromProfileStyles()));
+    this->hide();    // Close the main window
+    ProfileStylesWindow->show();  // Show a second window
+}
+
+
 void MainWindow::fromSetup()
 {
     qDebug() << Q_FUNC_INFO;

mercurial