-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmainwindow.cpp
More file actions
30 lines (23 loc) · 778 Bytes
/
Copy pathmainwindow.cpp
File metadata and controls
30 lines (23 loc) · 778 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#include "mainwindow.h"
#include "signupdialog.h"
#include "ui_mainwindow.h"
#include "logindialog.h"
MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow) {
ui->setupUi(this);
}
MainWindow::~MainWindow() {
QPalette palette;
palette.setColor(QPalette::WindowText, Qt::blue); // Changes text color to blue
ui->welcomeLabel->setPalette(palette);
ui->welcomeLabel->setFont(QFont("Poppins", 18, QFont::Bold)); // Sets font & size
delete ui;
}
// When login button is clicked, open dialog window
void MainWindow::on_pushButton_clicked() {
LoginDialog login;
login.exec(); // Opens modal dialog
}
void MainWindow::on_signupButton_clicked() {
SignupDialog signup;
signup.exec(); // Opens signup dialog
}