-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaboutdialog.cpp
More file actions
34 lines (31 loc) · 1017 Bytes
/
aboutdialog.cpp
File metadata and controls
34 lines (31 loc) · 1017 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
/////////////////////////////////////////////////////////////////////////////
// Name: aboutdialog.cpp
// Purpose: Create About dialog
// Author: Jan Buchholz
// Created: 2025-10-13
// Changed: 2026-05-21
/////////////////////////////////////////////////////////////////////////////
#include <QPushButton>
#include "aboutdialog.h"
#include "ui_aboutdialog.h"
AboutDialog::AboutDialog(QWidget *parent) : QDialog(parent), ui(new Ui::AboutDialog) {
ui->setupUi(this);
ui->buttonBox->button(QDialogButtonBox::Ok)->setText(tr("Close"));
ui->lbl_text1->setText(TxtAbout);
setStyleSheet(
"QDialog {"
" border: 1px solid #666;"
" border-radius: 6px;"
" background: qlineargradient("
" x1:0, y1:0, x2:0, y2:1,"
" stop:0 #ffffff,"
" stop:1 #e6e6e6"
" );"
"}"
);
adjustSize();
setFixedSize(size());
}
AboutDialog::~AboutDialog() {
delete ui;
}