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
cbfff6d7
Commit
cbfff6d7
authored
Aug 03, 2013
by
Lorenz Meier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed critical issue in refactored startup code
parent
d32223ec
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
12 deletions
+11
-12
MainWindow.cc
src/ui/MainWindow.cc
+3
-2
MainWindow.h
src/ui/MainWindow.h
+8
-3
LinechartWidget.cc
src/ui/linechart/LinechartWidget.cc
+0
-7
No files found.
src/ui/MainWindow.cc
View file @
cbfff6d7
...
...
@@ -99,7 +99,7 @@ MainWindow* MainWindow::instance_mode(QSplashScreen* screen, enum MainWindow::CU
MainWindow
*
MainWindow
::
instance
(
QSplashScreen
*
screen
)
{
instance_mode
(
screen
,
CUSTOM_MODE_NONE
);
return
instance_mode
(
screen
,
CUSTOM_MODE_UNCHANGED
);
}
/**
...
...
@@ -122,7 +122,7 @@ MainWindow::MainWindow(QWidget *parent):
lowPowerMode
(
false
),
isAdvancedMode
(
false
),
dockWidgetTitleBarEnabled
(
true
),
customMode
(
CUSTOM_MODE_
WIFI
)
customMode
(
CUSTOM_MODE_
NONE
)
{
this
->
setAttribute
(
Qt
::
WA_DeleteOnClose
);
loadSettings
();
...
...
@@ -1294,6 +1294,7 @@ bool MainWindow::loadStyle(QGC_MAINWINDOW_STYLE style, QString cssFile)
// And trigger any changes to other UI elements that are watching for
// theme changes.
emit
styleChanged
(
style
);
emit
styleChanged
();
// Finally restore the cursor before returning.
qApp
->
restoreOverrideCursor
();
...
...
src/ui/MainWindow.h
View file @
cbfff6d7
...
...
@@ -99,7 +99,8 @@ class MainWindow : public QMainWindow
public:
enum
CUSTOM_MODE
{
CUSTOM_MODE_NONE
=
0
,
CUSTOM_MODE_UNCHANGED
=
0
,
CUSTOM_MODE_NONE
,
CUSTOM_MODE_PX4
,
CUSTOM_MODE_APM
,
CUSTOM_MODE_WIFI
...
...
@@ -178,7 +179,10 @@ public:
void
setCustomMode
(
enum
MainWindow
::
CUSTOM_MODE
mode
)
{
customMode
=
mode
;
if
(
mode
!=
CUSTOM_MODE_UNCHANGED
)
{
customMode
=
mode
;
}
}
enum
MainWindow
::
CUSTOM_MODE
getCustomMode
()
...
...
@@ -301,6 +305,7 @@ public slots:
signals:
void
styleChanged
(
MainWindow
::
QGC_MAINWINDOW_STYLE
newTheme
);
void
styleChanged
();
void
initStatusChanged
(
const
QString
&
message
,
int
alignment
,
const
QColor
&
color
);
#ifdef MOUSE_ENABLED_LINUX
/** @brief Forward X11Event to catch 3DMouse inputs */
...
...
@@ -490,6 +495,7 @@ protected:
bool
lowPowerMode
;
///< If enabled, QGC reduces the update rates of all widgets
QGCFlightGearLink
*
fgLink
;
QTimer
windowNameUpdateTimer
;
CUSTOM_MODE
customMode
;
private:
QList
<
QObject
*>
commsWidgetList
;
...
...
@@ -499,7 +505,6 @@ private:
QMap
<
VIEW_SECTIONS
,
QMap
<
QString
,
QWidget
*>
>
centralWidgetToDockWidgetsMap
;
bool
isAdvancedMode
;
///< If enabled dock widgets can be moved and floated.
bool
dockWidgetTitleBarEnabled
;
///< If enabled, dock widget titlebars are displayed when NOT in advanced mode.
CUSTOM_MODE
customMode
;
Ui
::
MainWindow
ui
;
/** @brief Set the appropriate titlebar for a given dock widget.
...
...
src/ui/linechart/LinechartWidget.cc
View file @
cbfff6d7
...
...
@@ -137,14 +137,7 @@ LinechartWidget::LinechartWidget(int systemid, QWidget *parent) : QWidget(parent
// Create the layout
createLayout
();
// Add the last actions
//connect(this, SIGNAL(plotWindowPositionUpdated(int)), scrollbar, SLOT(setValue(int)));
//connect(scrollbar, SIGNAL(sliderMoved(int)), this, SLOT(setPlotWindowPosition(int)));
// And make sure we're listening for future style changes
connect
(
MainWindow
::
instance
(),
SIGNAL
(
styleChanged
(
MainWindow
::
QGC_MAINWINDOW_STYLE
)),
this
,
SLOT
(
styleChanged
(
MainWindow
::
QGC_MAINWINDOW_STYLE
)));
connect
(
MainWindow
::
instance
(),
SIGNAL
(
styleChanged
()),
this
,
SLOT
(
recolor
()));
updateTimer
->
setInterval
(
updateInterval
);
...
...
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