Commit 0a48bfe9 authored by Gus Grubba's avatar Gus Grubba

Merge pull request #2187 from dogmaphobic/fixCheckBox

Fix checkbox aligment.
parents b05aa3fb f25ac82e
...@@ -30,8 +30,7 @@ CheckBox { ...@@ -30,8 +30,7 @@ CheckBox {
text: control.text text: control.text
antialiasing: true antialiasing: true
font.pixelSize: ScreenTools.defaultFontPixelSize font.pixelSize: ScreenTools.defaultFontPixelSize
// This messes up when a *width*, which is wider than the control is given anchors.verticalCenter: parent.verticalCenter
// anchors.centerIn: parent
color: control.__qgcPal.text color: control.__qgcPal.text
} }
} }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
QGroundControl Open Source Ground Control Station QGroundControl Open Source Ground Control Station
(c) 2009 - 2013 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org> (c) 2009 - 2015 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
This file is part of the QGROUNDCONTROL project This file is part of the QGROUNDCONTROL project
...@@ -83,9 +83,9 @@ This file is part of the QGROUNDCONTROL project ...@@ -83,9 +83,9 @@ This file is part of the QGROUNDCONTROL project
const char* MAIN_SETTINGS_GROUP = "QGC_MAINWINDOW"; const char* MAIN_SETTINGS_GROUP = "QGC_MAINWINDOW";
#ifndef __mobile__ #ifndef __mobile__
enum DockWidgetTypes { enum DockWidgetTypes {
MAVLINK_INSPECTOR, MAVLINK_INSPECTOR,
CUSTOM_COMMAND, CUSTOM_COMMAND,
ONBOARD_FILES, ONBOARD_FILES,
STATUS_DETAILS, STATUS_DETAILS,
INFO_VIEW, INFO_VIEW,
...@@ -368,7 +368,7 @@ void MainWindow::_createInnerDockWidget(const QString& widgetName) ...@@ -368,7 +368,7 @@ void MainWindow::_createInnerDockWidget(const QString& widgetName)
{ {
QGCDockWidget* widget = NULL; QGCDockWidget* widget = NULL;
QAction *action = _mapName2Action[widgetName]; QAction *action = _mapName2Action[widgetName];
switch(action->data().toInt()) { switch(action->data().toInt()) {
case MAVLINK_INSPECTOR: case MAVLINK_INSPECTOR:
widget = new QGCMAVLinkInspector(widgetName, action, qgcApp()->toolbox()->mavlinkProtocol(),this); widget = new QGCMAVLinkInspector(widgetName, action, qgcApp()->toolbox()->mavlinkProtocol(),this);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment