Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qgroundcontrol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
50a34cae
Commit
50a34cae
authored
Jan 10, 2011
by
lm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adjusted to small screens
parent
297d2ac5
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
34 additions
and
13 deletions
+34
-13
Linechart.ui
src/ui/Linechart.ui
+18
-12
MainWindow.cc
src/ui/MainWindow.cc
+13
-0
MainWindow.h
src/ui/MainWindow.h
+2
-0
LinechartWidget.cc
src/ui/linechart/LinechartWidget.cc
+1
-1
No files found.
src/ui/Linechart.ui
View file @
50a34cae
...
...
@@ -25,7 +25,7 @@
<property
name=
"windowTitle"
>
<string>
Form
</string>
</property>
<layout
class=
"QHBoxLayout"
name=
"horizontalLayout_2"
>
<layout
class=
"QHBoxLayout"
name=
"horizontalLayout_2"
stretch=
"10,20"
>
<property
name=
"spacing"
>
<number>
3
</number>
</property>
...
...
@@ -51,8 +51,14 @@
</property>
<property
name=
"minimumSize"
>
<size>
<width>
250
</width>
<height>
300
</height>
<width>
90
</width>
<height>
200
</height>
</size>
</property>
<property
name=
"maximumSize"
>
<size>
<width>
370
</width>
<height>
16777215
</height>
</size>
</property>
<property
name=
"title"
>
...
...
@@ -71,21 +77,21 @@
<item>
<widget
class=
"QScrollArea"
name=
"curveListWidget"
>
<property
name=
"sizePolicy"
>
<sizepolicy
hsizetype=
"
Preferred
"
vsizetype=
"Expanding"
>
<sizepolicy
hsizetype=
"
Minimum
"
vsizetype=
"Expanding"
>
<horstretch>
0
</horstretch>
<verstretch>
0
</verstretch>
</sizepolicy>
</property>
<property
name=
"minimumSize"
>
<size>
<width>
24
0
</width>
<height>
2
50
</height>
<width>
6
0
</width>
<height>
1
50
</height>
</size>
</property>
<property
name=
"baseSize"
>
<size>
<width>
15
0
</width>
<height>
20
0
</height>
<width>
6
0
</width>
<height>
15
0
</height>
</size>
</property>
<property
name=
"autoFillBackground"
>
...
...
@@ -108,7 +114,7 @@
<rect>
<x>
0
</x>
<y>
0
</y>
<width>
2
42
</width>
<width>
2
10
</width>
<height>
361
</height>
</rect>
</property>
...
...
@@ -122,14 +128,14 @@
<widget
class=
"QGroupBox"
name=
"diagramGroupBox"
>
<property
name=
"sizePolicy"
>
<sizepolicy
hsizetype=
"MinimumExpanding"
vsizetype=
"MinimumExpanding"
>
<horstretch>
9
</horstretch>
<horstretch>
0
</horstretch>
<verstretch>
0
</verstretch>
</sizepolicy>
</property>
<property
name=
"minimumSize"
>
<size>
<width>
4
00
</width>
<height>
3
00
</height>
<width>
2
00
</width>
<height>
2
00
</height>
</size>
</property>
<property
name=
"baseSize"
>
...
...
src/ui/MainWindow.cc
View file @
50a34cae
...
...
@@ -216,6 +216,19 @@ MainWindow::~MainWindow()
}
void
MainWindow
::
resizeEvent
(
QResizeEvent
*
event
)
{
Q_UNUSED
(
event
);
if
(
height
()
<
800
)
{
ui
.
statusBar
->
setVisible
(
false
);
}
else
{
ui
.
statusBar
->
setVisible
(
true
);
}
}
QString
MainWindow
::
getWindowStateKey
()
{
return
QString
::
number
(
currentView
)
+
"/windowstate"
;
...
...
src/ui/MainWindow.h
View file @
50a34cae
...
...
@@ -297,6 +297,8 @@ protected:
*/
void
showTheCentralWidget
(
TOOLS_WIDGET_NAMES
centralWidget
,
VIEW_SECTIONS
view
);
/** @brief Catch window resize events */
void
resizeEvent
(
QResizeEvent
*
event
);
/** @brief Keeps track of the current view */
VIEW_SECTIONS
currentView
;
...
...
src/ui/linechart/LinechartWidget.cc
View file @
50a34cae
...
...
@@ -199,7 +199,7 @@ void LinechartWidget::createLayout()
layout
->
addWidget
(
activePlot
,
0
,
0
,
1
,
6
);
layout
->
setRowStretch
(
0
,
10
);
layout
->
setRowStretch
(
1
,
0
);
layout
->
setRowStretch
(
1
,
1
);
// Linear scaling button
scalingLinearButton
=
createButton
(
this
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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