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
2c788336
Commit
2c788336
authored
Jul 29, 2014
by
Susurrus
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #778 from Susurrus/master
Fix remaining Windows issues on Qt5
parents
61ad6017
07a50dbb
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
4 deletions
+18
-4
style-dark.css
files/styles/style-dark.css
+8
-0
style-light.css
files/styles/style-light.css
+8
-0
main.cc
src/main.cc
+1
-1
MainWindow.cc
src/ui/MainWindow.cc
+1
-3
No files found.
files/styles/style-dark.css
View file @
2c788336
...
...
@@ -334,6 +334,14 @@ QMenu::separator {
margin
:
8px
5px
4px
5px
;
}
/*
* Fix for bug in Qt5 where QMenuBar items are styled natively on Windows, ignoring inherited settings.
* so we explicitly set their background color here (should match catch-all style background color).
*/
QMenuBar
::item
{
background-color
:
#222
;
}
QMenuBar
::item:selected
{
background-color
:
#CCC
;
color
:
#000
;
...
...
files/styles/style-light.css
View file @
2c788336
...
...
@@ -278,6 +278,14 @@ QMenu::separator {
margin
:
8px
5px
4px
5px
;
}
/*
* Fix for bug in Qt5 where QMenuBar items are styled natively on Windows, ignoring inherited settings.
* so we explicitly set their background color here (should match catch-all style background color).
*/
QMenuBar
::item
{
background-color
:
#F6F6F6
;
}
QMenuBar
::item:selected
{
background-color
:
#555
;
color
:
#FFF
;
...
...
src/main.cc
View file @
2c788336
...
...
@@ -55,7 +55,7 @@ This file is part of the QGROUNDCONTROL project
void
msgHandler
(
QtMsgType
type
,
const
QMessageLogContext
&
context
,
const
QString
&
msg
)
{
const
char
symbols
[]
=
{
'I'
,
'E'
,
'!'
,
'X'
};
QString
output
=
QString
(
"[%1]
in %2:%3 -
\"
%2
\"
"
).
arg
(
symbols
[
type
]).
arg
(
context
.
file
).
arg
(
context
.
line
).
arg
(
msg
);
QString
output
=
QString
(
"[%1]
at %2:%3 -
\"
%4
\"
"
).
arg
(
symbols
[
type
]).
arg
(
context
.
file
).
arg
(
context
.
line
).
arg
(
msg
);
std
::
cerr
<<
output
.
toStdString
()
<<
std
::
endl
;
if
(
type
==
QtFatalMsg
)
abort
();
}
...
...
src/ui/MainWindow.cc
View file @
2c788336
...
...
@@ -191,13 +191,11 @@ void MainWindow::init()
menuActionHelper
->
setMenu
(
ui
.
menuTools
);
// Qt 4 on Ubuntu does place the native menubar correctly so on Linux we revert back to in-window menu bar.
// TODO: Check that this is still necessary on Qt5 on Ubuntu
#ifdef Q_OS_LINUX
menuBar
()
->
setNativeMenuBar
(
false
);
#endif
// We only need this menu if we have more than one system
// ui.menuConnected_Systems->setEnabled(false);
// Set dock options
setDockOptions
(
AnimatedDocks
|
AllowTabbedDocks
|
AllowNestedDocks
);
...
...
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