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
0bfb4de8
Commit
0bfb4de8
authored
Oct 01, 2019
by
Don Gagne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
parent
0cf4b6ee
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
80 additions
and
0 deletions
+80
-0
qgroundcontrol.qrc
qgroundcontrol.qrc
+1
-0
MainWindowSavedState.qml
src/QmlControls/MainWindowSavedState.qml
+74
-0
qmldir
src/QmlControls/QGroundControl/Controls/qmldir
+1
-0
MainRootWindow.qml
src/ui/MainRootWindow.qml
+4
-0
No files found.
qgroundcontrol.qrc
View file @
0bfb4de8
...
...
@@ -86,6 +86,7 @@
<file alias="QGroundControl/Controls/IndicatorButton.qml">src/QmlControls/IndicatorButton.qml</file>
<file alias="QGroundControl/Controls/JoystickThumbPad.qml">src/QmlControls/JoystickThumbPad.qml</file>
<file alias="QGroundControl/Controls/LogReplayStatusBar.qml">src/QmlControls/LogReplayStatusBar.qml</file>
<file alias="QGroundControl/Controls/MainWindowSavedState.qml">src/QmlControls/MainWindowSavedState.qml</file>
<file alias="QGroundControl/Controls/MAVLinkMessageButton.qml">src/QmlControls/MAVLinkMessageButton.qml</file>
<file alias="QGroundControl/Controls/MissionCommandDialog.qml">src/QmlControls/MissionCommandDialog.qml</file>
<file alias="QGroundControl/Controls/MissionItemEditor.qml">src/PlanView/MissionItemEditor.qml</file>
...
...
src/QmlControls/MainWindowSavedState.qml
0 → 100644
View file @
0bfb4de8
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
*
****************************************************************************/
import
QtQuick
2.11
import
QtQuick
.
Window
2.11
import
QtQuick
.
Controls
2.4
import
Qt
.
labs
.
settings
1.0
import
QGroundControl
.
ScreenTools
1.0
Item
{
property
Window
window
Settings
{
id
:
s
category
:
"
MainWindowState
"
property
int
x
property
int
y
property
int
width
property
int
height
property
int
visibility
}
Component.onCompleted
:
{
if
(
!
ScreenTools
.
isMobile
&&
s
.
width
&&
s
.
height
)
{
window
.
x
=
s
.
x
;
window
.
y
=
s
.
y
;
window
.
width
=
s
.
width
;
window
.
height
=
s
.
height
;
window
.
visibility
=
s
.
visibility
;
}
}
Connections
{
target
:
ScreenTools
.
isMobile
?
null
:
window
onXChanged
:
saveSettingsTimer
.
restart
()
onYChanged
:
saveSettingsTimer
.
restart
()
onWidthChanged
:
saveSettingsTimer
.
restart
()
onHeightChanged
:
saveSettingsTimer
.
restart
()
onVisibilityChanged
:
saveSettingsTimer
.
restart
()
}
Timer
{
id
:
saveSettingsTimer
interval
:
1000
repeat
:
false
onTriggered
:
saveSettings
()
}
function
saveSettings
()
{
switch
(
window
.
visibility
)
{
case
ApplicationWindow
.
Windowed
:
s
.
x
=
window
.
x
;
s
.
y
=
window
.
y
;
s
.
width
=
window
.
width
;
s
.
height
=
window
.
height
;
s
.
visibility
=
window
.
visibility
;
break
;
case
ApplicationWindow
.
FullScreen
:
s
.
visibility
=
window
.
visibility
;
break
;
case
ApplicationWindow
.
Maximized
:
s
.
visibility
=
window
.
visibility
;
break
;
}
}
}
src/QmlControls/QGroundControl/Controls/qmldir
View file @
0bfb4de8
...
...
@@ -24,6 +24,7 @@ HeightIndicator 1.0 HeightIndicator.qml
IndicatorButton 1.0 IndicatorButton.qml
JoystickThumbPad 1.0 JoystickThumbPad.qml
LogReplayStatusBar 1.0 LogReplayStatusBar.qml
MainWindowSavedState 1.0 MainWindowSavedState.qml
MAVLinkMessageButton 1.0 MAVLinkMessageButton.qml
MissionCommandDialog 1.0 MissionCommandDialog.qml
MissionItemEditor 1.0 MissionItemEditor.qml
...
...
src/ui/MainRootWindow.qml
View file @
0bfb4de8
...
...
@@ -122,6 +122,10 @@ ApplicationWindow {
simpleMessageDialog
.
open
()
}
MainWindowSavedState
{
window
:
mainWindow
}
MessageDialog
{
id
:
simpleMessageDialog
standardButtons
:
StandardButton
.
Ok
...
...
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