mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-21 11:54:15 +01:00
uncrustification
This commit is contained in:
parent
37dab0e4fc
commit
b627b71d0e
@ -40,7 +40,6 @@
|
||||
#include <QEventLoop>
|
||||
|
||||
namespace Core {
|
||||
|
||||
ConnectionManager::ConnectionManager(Internal::MainWindow *mainWindow) :
|
||||
QWidget(mainWindow),
|
||||
m_availableDevList(0),
|
||||
@ -98,6 +97,7 @@ void ConnectionManager::init()
|
||||
void ConnectionManager::addWidget(QWidget *widget)
|
||||
{
|
||||
QHBoxLayout *l = (QHBoxLayout *)layout();
|
||||
|
||||
l->insertWidget(0, widget, 0, Qt::AlignVCenter);
|
||||
}
|
||||
|
||||
|
@ -43,7 +43,6 @@
|
||||
#include <QTimer>
|
||||
|
||||
namespace Core {
|
||||
|
||||
class IConnection;
|
||||
|
||||
namespace Internal {
|
||||
|
@ -40,12 +40,10 @@ const int WorkspaceSettings::MAX_WORKSPACES = 10;
|
||||
|
||||
WorkspaceSettings::WorkspaceSettings(QObject *parent) :
|
||||
IOptionsPage(parent)
|
||||
{
|
||||
}
|
||||
{}
|
||||
|
||||
WorkspaceSettings::~WorkspaceSettings()
|
||||
{
|
||||
}
|
||||
{}
|
||||
|
||||
// IOptionsPage
|
||||
|
||||
|
@ -31,8 +31,7 @@
|
||||
|
||||
MonitorGadget::MonitorGadget(QString classId, MonitorWidget *widget, QWidget *parent) :
|
||||
IUAVGadget(classId, parent), m_widget(widget)
|
||||
{
|
||||
}
|
||||
{}
|
||||
|
||||
MonitorGadget::~MonitorGadget()
|
||||
{
|
||||
|
@ -31,8 +31,7 @@ MonitorGadgetConfiguration::MonitorGadgetConfiguration(QString classId, QSetting
|
||||
IUAVGadgetConfiguration(classId, parent)
|
||||
{
|
||||
// if a saved configuration exists load it
|
||||
if (qSettings != 0) {
|
||||
}
|
||||
if (qSettings != 0) {}
|
||||
}
|
||||
|
||||
IUAVGadgetConfiguration *MonitorGadgetConfiguration::clone()
|
||||
|
@ -36,12 +36,10 @@
|
||||
|
||||
MonitorGadgetFactory::MonitorGadgetFactory(QObject *parent) :
|
||||
IUAVGadgetFactory(QString("TelemetryMonitorGadget"), tr("Telemetry Monitor"), parent)
|
||||
{
|
||||
}
|
||||
{}
|
||||
|
||||
MonitorGadgetFactory::~MonitorGadgetFactory()
|
||||
{
|
||||
}
|
||||
{}
|
||||
|
||||
Core::IUAVGadget *MonitorGadgetFactory::createGadget(QWidget *parent)
|
||||
{
|
||||
|
@ -32,12 +32,10 @@
|
||||
|
||||
MonitorGadgetOptionsPage::MonitorGadgetOptionsPage(MonitorGadgetConfiguration *config, QObject *parent)
|
||||
: IOptionsPage(parent)
|
||||
{
|
||||
}
|
||||
{}
|
||||
|
||||
MonitorGadgetOptionsPage::~MonitorGadgetOptionsPage()
|
||||
{
|
||||
}
|
||||
{}
|
||||
|
||||
QWidget *MonitorGadgetOptionsPage::createPage(QWidget * /* parent */)
|
||||
{
|
||||
@ -104,4 +102,3 @@ void MonitorGadgetOptionsPage::finish()
|
||||
// _testSound->clear();
|
||||
// }
|
||||
}
|
||||
|
||||
|
@ -7,7 +7,6 @@
|
||||
#include <QtGui/QFont>
|
||||
|
||||
namespace {
|
||||
|
||||
/**
|
||||
* Create an SVG item and connect it to an element of the SVG file previously loaded into the parent item.
|
||||
* This then allows to show, hide, move, scale and rotate the element.
|
||||
@ -94,7 +93,6 @@ namespace {
|
||||
#endif
|
||||
return item;
|
||||
}
|
||||
|
||||
} // anonymous namespace
|
||||
|
||||
MonitorWidget::MonitorWidget(QWidget *parent) :
|
||||
@ -103,6 +101,7 @@ MonitorWidget::MonitorWidget(QWidget *parent) :
|
||||
// setMinimumWidth(180);
|
||||
|
||||
QGraphicsScene *scene = new QGraphicsScene();
|
||||
|
||||
setScene(scene);
|
||||
|
||||
setSizePolicy(QSizePolicy::Preferred, QSizePolicy::MinimumExpanding);
|
||||
|
@ -43,8 +43,7 @@
|
||||
#include <coreplugin/iuavgadget.h>
|
||||
|
||||
TelemetryPlugin::TelemetryPlugin()
|
||||
{
|
||||
}
|
||||
{}
|
||||
|
||||
TelemetryPlugin::~TelemetryPlugin()
|
||||
{
|
||||
|
@ -114,6 +114,7 @@ public:
|
||||
QWidget *createEditor(QWidget *parent)
|
||||
{
|
||||
QComboBox *editor = new QComboBox(parent);
|
||||
|
||||
// Setting ClickFocus lets the ComboBox stay open on Mac OSX.
|
||||
editor->setFocusPolicy(Qt::ClickFocus);
|
||||
foreach(QString option, m_enumOptions)
|
||||
|
@ -44,8 +44,7 @@ TelemetryManager::TelemetryManager() :
|
||||
}
|
||||
|
||||
TelemetryManager::~TelemetryManager()
|
||||
{
|
||||
}
|
||||
{}
|
||||
|
||||
bool TelemetryManager::isConnected()
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user