make stackedWidget index using enum

This commit is contained in:
thez3ro 2017-03-29 22:00:03 +02:00 committed by Jonathan White
parent 0f057a8351
commit f183260ad6
2 changed files with 20 additions and 13 deletions

View file

@ -39,6 +39,13 @@ class MainWindow : public QMainWindow
public:
MainWindow();
~MainWindow();
enum StackedWidgetIndex
{
DatabaseTabScreen = 0,
SettingsScreen = 1,
WelcomeScreen = 2,
PasswordGeneratorScreen = 3
};
public slots:
void openDatabase(const QString& fileName, const QString& pw = QString(),