Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
fc309a43
Commit
fc309a43
authored
Nov 11, 2018
by
Don Gagne
Browse files
Allow window to size to down to as small as you want
parent
dff4c0ef
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/ui/MainWindow.cc
View file @
fc309a43
...
...
@@ -131,9 +131,6 @@ MainWindow::MainWindow()
emit
initStatusChanged
(
tr
(
"Setting up user interface"
),
Qt
::
AlignLeft
|
Qt
::
AlignBottom
,
QColor
(
62
,
93
,
141
));
_ui
.
setupUi
(
this
);
// Make sure tool bar elements all fit before changing minimum width
setMinimumWidth
(
1024
);
setMinimumHeight
(
620
);
configureWindowName
();
// Setup central widget with a layout to hold the views
...
...
src/ui/MainWindow.ui
View file @
fc309a43
...
...
@@ -10,12 +10,6 @@
<height>
600
</height>
</rect>
</property>
<property
name=
"minimumSize"
>
<size>
<width>
640
</width>
<height>
400
</height>
</size>
</property>
<property
name=
"baseSize"
>
<size>
<width>
1100
</width>
...
...
@@ -31,20 +25,7 @@
<property
name=
"styleSheet"
>
<string
notr=
"true"
/>
</property>
<widget
class=
"QWidget"
name=
"centralWidget"
>
<property
name=
"sizePolicy"
>
<sizepolicy
hsizetype=
"MinimumExpanding"
vsizetype=
"MinimumExpanding"
>
<horstretch>
0
</horstretch>
<verstretch>
0
</verstretch>
</sizepolicy>
</property>
<property
name=
"minimumSize"
>
<size>
<width>
200
</width>
<height>
150
</height>
</size>
</property>
</widget>
<widget
class=
"QWidget"
name=
"centralWidget"
/>
<widget
class=
"QMenuBar"
name=
"menuBar"
>
<property
name=
"geometry"
>
<rect>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment