src/MainWindow.cpp

changeset 57
75d11cc05ce4
parent 56
eb6c564192f4
child 64
b0d30697af67
--- a/src/MainWindow.cpp	Tue Mar 15 17:00:54 2022 +0100
+++ b/src/MainWindow.cpp	Wed Mar 16 21:26:31 2022 +0100
@@ -26,6 +26,7 @@
 #include "ProfileWaters.h"
 #include "ProfileMashs.h"
 #include "ProfileStyles.h"
+#include "ProfileFerments.h"
 #include "Setup.h"
 #include "PrinterDialog.h"
 #include "../ui/ui_MainWindow.h"
@@ -255,6 +256,24 @@
 }
 
 
+void MainWindow::fromProfileFerments()
+{
+    qDebug() << Q_FUNC_INFO;
+    delete ProfileFermentsWindow;
+    this->show();
+}
+
+
+void MainWindow::on_actionFerments_profiles_triggered()
+{
+    qDebug() << Q_FUNC_INFO;
+    ProfileFermentsWindow = new ProfileFerments(this);
+    QObject::connect(ProfileFermentsWindow, SIGNAL(firstWindow()), this, SLOT(fromProfileFerments()));
+    this->hide();    // Close the main window
+    ProfileFermentsWindow->show();  // Show a second window
+}
+
+
 void MainWindow::fromSetup()
 {
     qDebug() << Q_FUNC_INFO;

mercurial