22 #include "InventoryYeasts.h" |
22 #include "InventoryYeasts.h" |
23 #include "InventoryMiscs.h" |
23 #include "InventoryMiscs.h" |
24 #include "InventoryWaters.h" |
24 #include "InventoryWaters.h" |
25 #include "InventoryEquipments.h" |
25 #include "InventoryEquipments.h" |
26 #include "ProfileWaters.h" |
26 #include "ProfileWaters.h" |
|
27 #include "ProfileMashs.h" |
27 #include "Setup.h" |
28 #include "Setup.h" |
28 #include "../ui/ui_MainWindow.h" |
29 #include "../ui/ui_MainWindow.h" |
29 #include "config.h" |
30 #include "config.h" |
30 |
31 |
31 #include <QApplication> |
32 #include <QApplication> |
200 this->hide(); // Close the main window |
201 this->hide(); // Close the main window |
201 ProfileWatersWindow->show(); // Show a second window |
202 ProfileWatersWindow->show(); // Show a second window |
202 } |
203 } |
203 |
204 |
204 |
205 |
|
206 void MainWindow::fromProfileMashs() |
|
207 { |
|
208 qDebug() << Q_FUNC_INFO; |
|
209 delete ProfileMashsWindow; |
|
210 this->show(); |
|
211 } |
|
212 |
|
213 |
|
214 void MainWindow::on_actionMash_profiles_triggered() |
|
215 { |
|
216 qDebug() << Q_FUNC_INFO; |
|
217 ProfileMashsWindow = new ProfileMashs(this); |
|
218 QObject::connect(ProfileMashsWindow, SIGNAL(firstWindow()), this, SLOT(fromProfileMashs())); |
|
219 this->hide(); // Close the main window |
|
220 ProfileMashsWindow->show(); // Show a second window |
|
221 } |
|
222 |
|
223 |
205 void MainWindow::fromSetup() |
224 void MainWindow::fromSetup() |
206 { |
225 { |
207 qDebug() << Q_FUNC_INFO; |
226 qDebug() << Q_FUNC_INFO; |
208 delete SetupWindow; |
227 delete SetupWindow; |
209 this->show(); |
228 this->show(); |