Skip to content

Commit 33b1adf

Browse files
committed
Revert the reverted "Revert "better about dialog layout""
This reverts commit 1764356.
1 parent adf1d9e commit 33b1adf

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

src/AboutDialog.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ AboutDialog::AboutDialog(QWidget *parent) :
77
ui(new Ui::AboutDialog)
88
{
99
ui->setupUi(this);
10-
this->setFixedSize(669, 306);
10+
this->setFixedSize(this->width(), this->height());
1111

1212
ui->label_version->setText(ui->label_version->text() + " " + APP_VERSION);
1313
ui->label_versionqt->setText(ui->label_versionqt->text() + " " + QT_VERSION_STR);

src/AboutDialog.ui

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
<rect>
77
<x>0</x>
88
<y>0</y>
9-
<width>669</width>
10-
<height>306</height>
9+
<width>531</width>
10+
<height>329</height>
1111
</rect>
1212
</property>
1313
<property name="windowTitle">
@@ -23,8 +23,8 @@
2323
<widget class="QDialogButtonBox" name="buttonBox">
2424
<property name="geometry">
2525
<rect>
26-
<x>300</x>
27-
<y>260</y>
26+
<x>160</x>
27+
<y>280</y>
2828
<width>351</width>
2929
<height>32</height>
3030
</rect>
@@ -39,8 +39,8 @@
3939
<widget class="QLabel" name="label_imagelogo">
4040
<property name="geometry">
4141
<rect>
42-
<x>10</x>
43-
<y>50</y>
42+
<x>380</x>
43+
<y>10</y>
4444
<width>131</width>
4545
<height>81</height>
4646
</rect>
@@ -55,7 +55,7 @@
5555
<widget class="QLabel" name="label_version">
5656
<property name="geometry">
5757
<rect>
58-
<x>160</x>
58+
<x>20</x>
5959
<y>30</y>
6060
<width>491</width>
6161
<height>20</height>
@@ -68,10 +68,10 @@
6868
<widget class="QLabel" name="label">
6969
<property name="geometry">
7070
<rect>
71-
<x>160</x>
72-
<y>120</y>
71+
<x>20</x>
72+
<y>110</y>
7373
<width>491</width>
74-
<height>121</height>
74+
<height>161</height>
7575
</rect>
7676
</property>
7777
<property name="text">
@@ -93,7 +93,7 @@
9393
<widget class="QLabel" name="label_versionqt">
9494
<property name="geometry">
9595
<rect>
96-
<x>160</x>
96+
<x>20</x>
9797
<y>50</y>
9898
<width>491</width>
9999
<height>20</height>
@@ -106,7 +106,7 @@
106106
<widget class="QLabel" name="label_versionsqlite">
107107
<property name="geometry">
108108
<rect>
109-
<x>160</x>
109+
<x>20</x>
110110
<y>70</y>
111111
<width>491</width>
112112
<height>20</height>

0 commit comments

Comments
 (0)