FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
ORNLSlicer/src/windows/about.cpp at develop · ORNLSlicer/ORNLSlicer · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
ORNLSlicer
/
ORNLSlicer
Public
Notifications
You must be signed in to change notification settings
Fork
20
Star
90
Code
Issues
18
Pull requests
5
Discussions
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
ORNLSlicer
/
src
/
windows
/
about.cpp
Copy path
More file actions
More file actions
Latest commit
History
History
History
62 lines (47 loc) · 2.1 KB
Breadcrumbs
ORNLSlicer
/
src
/
windows
/
about.cpp
Copy path
File metadata and controls
62 lines (47 loc) · 2.1 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#
include
"
windows/about.h
"
#
include
<
QApplication
>
#
include
<
QDesktopServices
>
#
include
<
QFile
>
#
include
<
QGridLayout
>
#
include
<
QIcon
>
#
include
<
QLabel
>
#
include
<
QUrl
>
#
include
<
qdatetime.h
>
#
include
<
qfont.h
>
#
include
<
qnamespace.h
>
#
include
<
qobject.h
>
#
include
<
qpixmap.h
>
#
include
<
qwidget.h
>
namespace
ORNL
{
AboutWindow::AboutWindow
(QWidget* parent) : QWidget() {
//
make it behave the same as "About Qt" window: The window is modal to the application and blocks input to all
//
windows
setWindowModality
(Qt::ApplicationModal);
setWindowTitle
(
"
About
"
+
QApplication::applicationDisplayName
());
setWindowIcon
(
QIcon
(
"
:/icons/ornlslicer_logo.png
"
));
QGridLayout* layout =
new
QGridLayout
();
QLabel* mdf =
new
QLabel
();
QPixmap
mdfIcon
(
"
:/icons/mdf_color.png
"
);
mdf->
setPixmap
(mdfIcon.
scaled
(
450
,
100
, Qt::KeepAspectRatio));
layout->
addWidget
(mdf,
0
,
0
,
1
,
2
);
QFont f =
QApplication::font
();
f.
setPointSize
(
10
);
QString version =
QApplication::applicationDisplayName
();
QLabel* lblVersion =
new
QLabel
(version);
lblVersion->
setFont
(f);
layout->
addWidget
(lblVersion,
1
,
0
,
1
,
2
, Qt::AlignCenter);
QGridLayout* gpu_layout =
new
QGridLayout
();
layout->
addLayout
(gpu_layout,
3
,
0
,
1
,
2
, Qt::AlignCenter);
QLabel* lblContact =
new
QLabel
(
"
Questions or comments? Email us at: <a href='mailto:slicer@ornl.gov'>slicer@ornl.gov</a>
"
);
connect
(lblContact, &QLabel::linkActivated, [](
const
QString& link) {
QDesktopServices::openUrl
(
QUrl
(link)); });
layout->
addWidget
(lblContact,
4
,
0
,
1
,
2
, Qt::AlignCenter);
QLabel* bugReport =
new
QLabel
(
"
<a href='https://github.com/ORNLSlicer/ORNLSlicer/issues'>Bug report?</a>
"
);
connect
(bugReport, &QLabel::linkActivated, [](
const
QString& link) {
QDesktopServices::openUrl
(
QUrl
(link)); });
layout->
addWidget
(bugReport,
6
,
0
,
1
,
2
, Qt::AlignCenter);
int
curr_year =
QDate::currentDate
().
year
();
layout->
addWidget
(
new
QLabel
(
"
Copyright ©
"
+
QString::number
(curr_year)),
7
,
0
,
1
,
2
, Qt::AlignCenter);
this
->
setLayout
(layout);
}
AboutWindow::~AboutWindow
() {}
}
//
namespace ORNL
Back
|
FazBrowse Home
|
New Git URL