Browse Source

ui beautifying more

pull/952/head
hypnosis-i2p 7 years ago
parent
commit
21de4709ea
  1. 6
      qt/i2pd_qt/mainwindow.cpp
  2. 4
      qt/i2pd_qt/mainwindow.ui

6
qt/i2pd_qt/mainwindow.cpp

@ -867,6 +867,9 @@ void MainWindow::adjustSizesAccordingToWrongLabel() {
ui->verticalLayoutWidget_4->setGeometry(QRect(0, 0, 711, 531-dh)); ui->verticalLayoutWidget_4->setGeometry(QRect(0, 0, 711, 531-dh));
ui->stackedWidget->setFixedHeight(531-dh); ui->stackedWidget->setFixedHeight(531-dh);
ui->settingsScrollArea->setFixedHeight(531-dh-settingsTitleLabelNominalHeight-ui->verticalLayout_4->spacing()); ui->settingsScrollArea->setFixedHeight(531-dh-settingsTitleLabelNominalHeight-ui->verticalLayout_4->spacing());
ui->settingsTitleLabel->setFixedHeight(settingsTitleLabelNominalHeight);
ui->tunnelsScrollArea->setFixedHeight(531-dh-settingsTitleLabelNominalHeight-ui->horizontalLayout_42->geometry().height()-2*ui->verticalLayout_4->spacing());
ui->tunnelsTitleLabel->setFixedHeight(settingsTitleLabelNominalHeight);
}else{ }else{
ui->verticalLayout_7->invalidate(); ui->verticalLayout_7->invalidate();
ui->wrongInputLabel->adjustSize(); ui->wrongInputLabel->adjustSize();
@ -876,6 +879,9 @@ void MainWindow::adjustSizesAccordingToWrongLabel() {
ui->verticalLayoutWidget_4->setGeometry(QRect(0, 0, 711, 531)); ui->verticalLayoutWidget_4->setGeometry(QRect(0, 0, 711, 531));
ui->stackedWidget->setFixedHeight(531); ui->stackedWidget->setFixedHeight(531);
ui->settingsScrollArea->setFixedHeight(531-settingsTitleLabelNominalHeight-ui->verticalLayout_4->spacing()); ui->settingsScrollArea->setFixedHeight(531-settingsTitleLabelNominalHeight-ui->verticalLayout_4->spacing());
ui->settingsTitleLabel->setFixedHeight(settingsTitleLabelNominalHeight);
ui->tunnelsScrollArea->setFixedHeight(531-settingsTitleLabelNominalHeight-ui->horizontalLayout_42->geometry().height()-2*ui->verticalLayout_4->spacing());
ui->tunnelsTitleLabel->setFixedHeight(settingsTitleLabelNominalHeight);
} }
} }

4
qt/i2pd_qt/mainwindow.ui

@ -627,7 +627,7 @@
</size> </size>
</property> </property>
<property name="currentIndex"> <property name="currentIndex">
<number>1</number> <number>2</number>
</property> </property>
<widget class="QWidget" name="statusPage"> <widget class="QWidget" name="statusPage">
<property name="sizePolicy"> <property name="sizePolicy">
@ -759,7 +759,7 @@
<enum>QLayout::SetMinAndMaxSize</enum> <enum>QLayout::SetMinAndMaxSize</enum>
</property> </property>
<item> <item>
<widget class="QLabel" name="label_5"> <widget class="QLabel" name="tunnelsTitleLabel">
<property name="font"> <property name="font">
<font> <font>
<pointsize>15</pointsize> <pointsize>15</pointsize>

Loading…
Cancel
Save