-
Notifications
You must be signed in to change notification settings - Fork 4
/
wincredits.cpp
40 lines (34 loc) · 1.14 KB
/
wincredits.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
37
38
39
40
#include "wincredits.h"
#include "ui_wincredits.h"
#include <QDesktopServices>
#include <QMessageBox>
#include <QDebug>
#include <QUrl>
WinCredits::WinCredits(QWidget *parent) :
QDialog(parent),
ui(new Ui::WinCredits)
{
ui->setupUi(this);
ui->logo->setPixmap(QPixmap(":/algodevlogo.png"));
ui->label_6->setText("<font color='blue'>http://algogroup.unimore.it/algodev/</font>");
}
WinCredits::~WinCredits()
{
delete ui;
}
bool WinCredits::attention(){
QString message="If you are using google chrome as a deafault web browser\nyou can't open the links above1:(\nProcede anyway?";
QMessageBox::StandardButton resBtn = QMessageBox::question( this,"Warning",
message,
QMessageBox::No |
QMessageBox::Yes,
QMessageBox::Yes);
if (resBtn == QMessageBox::Yes)
return true;
else
return false;
}
void WinCredits::on_btn_back_clicked()
{
this->close();
}