Skip to content
This repository has been archived by the owner on Dec 4, 2020. It is now read-only.

Commit

Permalink
Update the installer UI, make it resizable, and default to a bigger
Browse files Browse the repository at this point in the history
800x600 size. This will allow larger fonts, other DPI's to render properly
  • Loading branch information
Kris Moore committed Feb 12, 2015
1 parent 9e95a2e commit bc4d6d3
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 9 deletions.
21 changes: 18 additions & 3 deletions src-qt5/pc-installgui/installer.ui
Expand Up @@ -6,10 +6,16 @@
<rect>
<x>0</x>
<y>0</y>
<width>650</width>
<height>542</height>
<width>914</width>
<height>724</height>
</rect>
</property>
<property name="minimumSize">
<size>
<width>800</width>
<height>600</height>
</size>
</property>
<property name="windowTitle">
<string notr="true">PC-BSD</string>
</property>
Expand All @@ -24,7 +30,16 @@
<string notr="true"/>
</property>
<layout class="QGridLayout" name="gridLayout">
<property name="margin">
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<property name="spacing">
Expand Down
8 changes: 6 additions & 2 deletions src-qt5/pc-installgui/main.cpp
Expand Up @@ -68,12 +68,16 @@ int main(int argc, char *argv[])

Installer w;


// Center the installer
QRect dimensions = QApplication::desktop()->screenGeometry();
int wid = dimensions.width(); // returns desktop width
int hig = dimensions.height(); // returns desktop height
w.setGeometry((wid/2) - (650/2), (hig/2) - (435/2), 650, 435);
QRect wizDimensions = w.geometry();
int wizWid = wizDimensions.width(); // Wizard width
int wizHig = wizDimensions.height(); // Wizard height
qDebug() << "WizWid" << wizWid;
qDebug() << "WizHig" << wizHig;
w.setGeometry((wid/2) - (wizWid/2), (hig/2) - (wizHig/2), wizWid, wizHig);

// Start the init
w.initInstall(splash);
Expand Down
4 changes: 2 additions & 2 deletions src-qt5/pc-installgui/wizardDisk.ui
Expand Up @@ -6,8 +6,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>668</width>
<height>489</height>
<width>685</width>
<height>494</height>
</rect>
</property>
<property name="windowTitle">
Expand Down
4 changes: 2 additions & 2 deletions src-qt5/pc-installgui/wizardFreeBSD.ui
Expand Up @@ -6,8 +6,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>536</width>
<height>383</height>
<width>607</width>
<height>404</height>
</rect>
</property>
<property name="windowTitle">
Expand Down

0 comments on commit bc4d6d3

Please sign in to comment.