-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmainwindow.cpp
More file actions
31 lines (25 loc) · 821 Bytes
/
Copy pathmainwindow.cpp
File metadata and controls
31 lines (25 loc) · 821 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
28
29
30
#include "mainwindow.h"
#include "./ui_mainwindow.h"
#include <QRandomGenerator>
#include <QDesktopServices>
#include <QUrl>
MainWindow::MainWindow(QWidget *parent)
: QMainWindow(parent)
, ui(new Ui::MainWindow)
{
ui->setupUi(this);
ui->balance_label->setText(QString::number(QRandomGenerator::global()->bounded(1000, 1000001)) + " $");
connect(ui->twitchButt, &QPushButton::clicked, this, [](){
QDesktopServices::openUrl(QUrl("https://www.twitch.tv/"));
});
connect(ui->workButt, &QPushButton::clicked, this, [](){
QDesktopServices::openUrl(QUrl("https://studmarket.ru/"));
});
connect(ui->sak_butt, &QPushButton::clicked, this, [](){
QDesktopServices::openUrl(QUrl("https://deadbydaylight.com/"));
});
}
MainWindow::~MainWindow()
{
delete ui;
}