src/MainWindow.cpp

changeset 56
eb6c564192f4
parent 52
ff7b3a41c9b5
child 57
75d11cc05ce4
equal deleted inserted replaced
55:2d8dbbc1ffab 56:eb6c564192f4
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 "ProfileMashs.h"
28 #include "ProfileStyles.h"
28 #include "Setup.h" 29 #include "Setup.h"
29 #include "PrinterDialog.h" 30 #include "PrinterDialog.h"
30 #include "../ui/ui_MainWindow.h" 31 #include "../ui/ui_MainWindow.h"
31 #include "config.h" 32 #include "config.h"
32 33
234 this->hide(); // Close the main window 235 this->hide(); // Close the main window
235 ProfileMashsWindow->show(); // Show a second window 236 ProfileMashsWindow->show(); // Show a second window
236 } 237 }
237 238
238 239
240 void MainWindow::fromProfileStyles()
241 {
242 qDebug() << Q_FUNC_INFO;
243 delete ProfileStylesWindow;
244 this->show();
245 }
246
247
248 void MainWindow::on_actionStyles_profiles_triggered()
249 {
250 qDebug() << Q_FUNC_INFO;
251 ProfileStylesWindow = new ProfileStyles(this);
252 QObject::connect(ProfileStylesWindow, SIGNAL(firstWindow()), this, SLOT(fromProfileStyles()));
253 this->hide(); // Close the main window
254 ProfileStylesWindow->show(); // Show a second window
255 }
256
257
239 void MainWindow::fromSetup() 258 void MainWindow::fromSetup()
240 { 259 {
241 qDebug() << Q_FUNC_INFO; 260 qDebug() << Q_FUNC_INFO;
242 delete SetupWindow; 261 delete SetupWindow;
243 this->show(); 262 this->show();

mercurial