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
137ce9d7
Commit
137ce9d7
authored
Dec 19, 2015
by
Don Gagne
Browse files
Merge pull request #2425 from pritamghanghas/esc_key_fix
Esc key fix
parents
2c2ea6d9
7119421c
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/ui/MainWindow.cc
View file @
137ce9d7
...
@@ -415,6 +415,12 @@ void MainWindow::normalActionItemCallback(bool)
...
@@ -415,6 +415,12 @@ void MainWindow::normalActionItemCallback(bool)
if
(
!
_ui
.
actionNormal
->
isChecked
())
if
(
!
_ui
.
actionNormal
->
isChecked
())
_ui
.
actionNormal
->
setChecked
(
true
);
_ui
.
actionNormal
->
setChecked
(
true
);
_ui
.
actionFullscreen
->
setChecked
(
false
);
_ui
.
actionFullscreen
->
setChecked
(
false
);
// Qt documentation says that just call showNormal and it will return properly
// So calling showMaximized.
if
(
isFullScreen
())
{
showMaximized
();
}
}
}
void
MainWindow
::
showStatusBarCallback
(
bool
checked
)
void
MainWindow
::
showStatusBarCallback
(
bool
checked
)
...
...
src/ui/MainWindow.ui
View file @
137ce9d7
...
@@ -51,7 +51,7 @@
...
@@ -51,7 +51,7 @@
<x>
0
</x>
<x>
0
</x>
<y>
0
</y>
<y>
0
</y>
<width>
1024
</width>
<width>
1024
</width>
<height>
2
2
</height>
<height>
2
0
</height>
</rect>
</rect>
</property>
</property>
<widget
class=
"QMenu"
name=
"menuMGround"
>
<widget
class=
"QMenu"
name=
"menuMGround"
>
...
@@ -261,21 +261,5 @@
...
@@ -261,21 +261,5 @@
</hint>
</hint>
</hints>
</hints>
</connection>
</connection>
<connection>
<sender>
actionNormal
</sender>
<signal>
triggered()
</signal>
<receiver>
MainWindow
</receiver>
<slot>
showNormal()
</slot>
<hints>
<hint
type=
"sourcelabel"
>
<x>
-1
</x>
<y>
-1
</y>
</hint>
<hint
type=
"destinationlabel"
>
<x>
399
</x>
<y>
249
</y>
</hint>
</hints>
</connection>
</connections>
</connections>
</ui>
</ui>
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