-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaboutwindow.cpp
36 lines (31 loc) · 1.25 KB
/
aboutwindow.cpp
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
28
29
30
31
32
33
34
35
36
/// AboutWindow tells the user basic info about how to play from the mainwindow.
/// Written By: name'); DROP TABLE teams;-- ?
#include "aboutwindow.h"
#include "ui_aboutwindow.h"
/// \brief AboutWindow::AboutWindow
/// Constructor
/// \param parent
AboutWindow::AboutWindow(QWidget *parent) :
QWidget(parent),
ui(new Ui::AboutWindow)
{
ui->setupUi(this);
connect(ui->backButton, &QPushButton::clicked, this, &AboutWindow::backButtonClicked);
QPixmap mainGameImage(":/HelpWindowImages/HelpWindowImages/maingame.PNG");
QPixmap studyImage(":/HelpWindowImages/HelpWindowImages/studyImg.PNG");
QPixmap statsImage(":/HelpWindowImages/HelpWindowImages/statsImg.PNG");
ui->mainGameImage->setPixmap(mainGameImage.scaled(ui->mainGameImage->size(), Qt::KeepAspectRatio,Qt::SmoothTransformation));
ui->studyImage->setPixmap(studyImage.scaled(ui->studyImage->size(), Qt::KeepAspectRatio,Qt::SmoothTransformation));
ui->statsImage->setPixmap(statsImage.scaled(ui->statsImage->size(), Qt::KeepAspectRatio,Qt::SmoothTransformation));
}
/// \brief AboutWindow::~AboutWindow
/// Destructor
AboutWindow::~AboutWindow()
{
delete ui;
}
/// \brief AboutWindow::backButtonClicked
void AboutWindow::backButtonClicked()
{
emit returnToMainWindow();
}