-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathfeedback.cc
More file actions
35 lines (30 loc) · 1005 Bytes
/
Copy pathfeedback.cc
File metadata and controls
35 lines (30 loc) · 1005 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
31
32
33
34
35
#include "feedback.h"
#include <QLabel>
#include <QVBoxLayout>
Feedback::Feedback(QWidget *parent)
: QDialog(parent)
{
setWindowTitle("Feedback");
resize(500, 300);
setMinimumSize(400, 240);
QLabel *qq = new QLabel(
"<b>QQ:</b><br>"
"768305206<br>",
this);
qq->setTextInteractionFlags(Qt::TextSelectableByMouse);
QLabel *telegram = new QLabel(
"<b>Telegram:</b><br>"
"<a href=\"https://t.me/CandyUserGroup\">Click to Join</a><br>",
this);
telegram->setOpenExternalLinks(true);
QLabel *github = new QLabel(
"<b>Github:</b><br>"
"<a href=\"https://github.com/lanthora/cake/issues/new\">Create an issue</a>",
this);
github->setOpenExternalLinks(true);
QVBoxLayout *layout = new QVBoxLayout(this);
layout->addWidget(qq, 0, Qt::AlignLeft);
layout->addWidget(telegram, 0, Qt::AlignLeft);
layout->addWidget(github, 0, Qt::AlignLeft);
layout->setAlignment(Qt::AlignCenter);
}