From eb8d57cf3159b16311145430453cf8d0e5d7b627 Mon Sep 17 00:00:00 2001 From: Corvus Corax Date: Wed, 15 Jan 2014 18:47:47 +0100 Subject: [PATCH] uncrustification --- .../src/libs/utils/mytabbedstackwidget.cpp | 1 + .../src/libs/utils/mytabbedstackwidget.h | 2 +- .../uavobjectwidgetutils/configtaskwidget.cpp | 12 ++++++------ 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/ground/openpilotgcs/src/libs/utils/mytabbedstackwidget.cpp b/ground/openpilotgcs/src/libs/utils/mytabbedstackwidget.cpp index e465b50f9..2626ca47b 100644 --- a/ground/openpilotgcs/src/libs/utils/mytabbedstackwidget.cpp +++ b/ground/openpilotgcs/src/libs/utils/mytabbedstackwidget.cpp @@ -137,6 +137,7 @@ void MyTabbedStackWidget::showWidget(int index) void MyTabbedStackWidget::resizeEvent(QResizeEvent *event) { QWidget::resizeEvent(event); + m_listWidget->setFixedWidth(m_listWidget->verticalScrollBar()->isVisible() ? LIST_VIEW_WIDTH + 20 : LIST_VIEW_WIDTH); } diff --git a/ground/openpilotgcs/src/libs/utils/mytabbedstackwidget.h b/ground/openpilotgcs/src/libs/utils/mytabbedstackwidget.h index 4b0777e4e..661200383 100644 --- a/ground/openpilotgcs/src/libs/utils/mytabbedstackwidget.h +++ b/ground/openpilotgcs/src/libs/utils/mytabbedstackwidget.h @@ -79,7 +79,7 @@ private: static const int LIST_VIEW_WIDTH = 80; protected: - void resizeEvent(QResizeEvent * event); + void resizeEvent(QResizeEvent *event); }; #endif // MYTABBEDSTACKWIDGET_H diff --git a/ground/openpilotgcs/src/plugins/uavobjectwidgetutils/configtaskwidget.cpp b/ground/openpilotgcs/src/plugins/uavobjectwidgetutils/configtaskwidget.cpp index 12f58a50e..5c2817dcc 100644 --- a/ground/openpilotgcs/src/plugins/uavobjectwidgetutils/configtaskwidget.cpp +++ b/ground/openpilotgcs/src/plugins/uavobjectwidgetutils/configtaskwidget.cpp @@ -667,7 +667,7 @@ void ConfigTaskWidget::autoLoadWidgets() forceShadowUpdates(); /* - foreach(WidgetBinding * binding, m_widgetBindingsPerObject) { + foreach(WidgetBinding * binding, m_widgetBindingsPerObject) { if (binding->widget()) { qDebug() << "Binding :" << binding->widget()->objectName(); qDebug() << " Object :" << binding->object()->getName(); @@ -681,8 +681,8 @@ void ConfigTaskWidget::autoLoadWidgets() qDebug() << " Scale :" << shadow->scale(); } } - } - */ + } + */ } void ConfigTaskWidget::addWidgetToReloadGroups(QWidget *widget, QList *reloadGroupIDs) @@ -1157,10 +1157,10 @@ void WidgetBinding::setValue(const QVariant &value) { m_value = value; /* - if (m_object && m_field) { + if (m_object && m_field) { qDebug() << "WidgetBinding" << m_object->getName() << ":" << m_field->getName() << "value =" << value.toString(); - } - */ + } + */ } void WidgetBinding::updateObjectFieldFromValue()