mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-27 16:54:15 +01:00
Keep up: spelling disableWheelEvents; add pushbutton setAttribute for osx.
This commit is contained in:
parent
94df1847fc
commit
1b2ffde116
@ -49,7 +49,7 @@
|
||||
*/
|
||||
ConfigFixedWingWidget::ConfigFixedWingWidget(Ui_AircraftWidget *aircraft, QWidget *parent) : VehicleConfig(parent)
|
||||
{
|
||||
m_aircraft = aircraft;
|
||||
m_aircraft = aircraft;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -52,6 +52,13 @@ VehicleConfig::VehicleConfig(QWidget *parent) : ConfigTaskWidget(parent)
|
||||
mixerTypeDescriptions << "Disabled" << "Motor" << "Servo" << "CameraRoll" << "CameraPitch"
|
||||
<< "CameraYaw" << "Accessory0" << "Accessory1" << "Accessory2"
|
||||
<< "Accessory3" << "Accessory4" << "Accessory5";
|
||||
|
||||
// This is needed because new style tries to compact things as much as possible in grid
|
||||
// and on OSX the widget sizes of PushButtons is reported incorrectly:
|
||||
// https://bugreports.qt-project.org/browse/QTBUG-14591
|
||||
foreach( QPushButton * btn, findChildren<QPushButton*>() ) {
|
||||
btn->setAttribute(Qt::WA_LayoutUsesWidgetRect);
|
||||
}
|
||||
}
|
||||
|
||||
VehicleConfig::~VehicleConfig()
|
||||
|
@ -90,7 +90,7 @@ ConfigCameraStabilizationWidget::ConfigCameraStabilizationWidget(QWidget *parent
|
||||
connect(m_camerastabilization->camerastabilizationSaveSD, SIGNAL(clicked()), this, SLOT(saveSettings()));
|
||||
connect(m_camerastabilization->camerastabilizationHelp, SIGNAL(clicked()), this, SLOT(openHelp()));
|
||||
|
||||
disbleMouseWheelEvents();
|
||||
disableMouseWheelEvents();
|
||||
}
|
||||
|
||||
ConfigCameraStabilizationWidget::~ConfigCameraStabilizationWidget()
|
||||
|
@ -53,7 +53,7 @@ ConfigStabilizationWidget::ConfigStabilizationWidget(QWidget *parent) : ConfigTa
|
||||
|
||||
connect(this,SIGNAL(widgetContentsChanged(QWidget*)),this,SLOT(processLinkedWidgets(QWidget*)));
|
||||
|
||||
disbleMouseWheelEvents();
|
||||
disableMouseWheelEvents();
|
||||
}
|
||||
|
||||
|
||||
|
@ -68,7 +68,7 @@ ConfigTxPIDWidget::ConfigTxPIDWidget(QWidget *parent) : ConfigTaskWidget(parent)
|
||||
populateWidgets();
|
||||
refreshWidgetsValues();
|
||||
|
||||
disbleMouseWheelEvents();
|
||||
disableMouseWheelEvents();
|
||||
}
|
||||
|
||||
ConfigTxPIDWidget::~ConfigTxPIDWidget()
|
||||
|
@ -233,7 +233,7 @@ ConfigVehicleTypeWidget::ConfigVehicleTypeWidget(QWidget *parent) : ConfigTaskWi
|
||||
refreshWidgetsValues();
|
||||
addToDirtyMonitor();
|
||||
|
||||
disbleMouseWheelEvents();
|
||||
disableMouseWheelEvents();
|
||||
}
|
||||
|
||||
|
||||
|
@ -37,7 +37,7 @@ inputChannelForm::inputChannelForm(QWidget *parent,bool showlegend) :
|
||||
connect(ui->channelNumberDropdown,SIGNAL(currentIndexChanged(int)),this,SLOT(channelDropdownUpdated(int)));
|
||||
connect(ui->channelNumber,SIGNAL(valueChanged(int)),this,SLOT(channelNumberUpdated(int)));
|
||||
|
||||
disbleMouseWheelEvents();
|
||||
disableMouseWheelEvents();
|
||||
}
|
||||
|
||||
|
||||
|
@ -71,7 +71,7 @@ OutputChannelForm::OutputChannelForm(const int index, QWidget *parent, const boo
|
||||
connect(ui.actuatorLink, SIGNAL(toggled(bool)),
|
||||
this, SLOT(linkToggled(bool)));
|
||||
|
||||
disbleMouseWheelEvents();
|
||||
disableMouseWheelEvents();
|
||||
}
|
||||
|
||||
OutputChannelForm::~OutputChannelForm()
|
||||
|
@ -1145,7 +1145,7 @@ void ConfigTaskWidget::loadWidgetLimits(QWidget * widget,UAVObjectField * field,
|
||||
}
|
||||
}
|
||||
|
||||
void ConfigTaskWidget::disbleMouseWheelEvents()
|
||||
void ConfigTaskWidget::disableMouseWheelEvents()
|
||||
{
|
||||
//Disable mouse wheel events
|
||||
foreach( QSpinBox * sp, findChildren<QSpinBox*>() ) {
|
||||
|
@ -86,7 +86,7 @@ public:
|
||||
ConfigTaskWidget(QWidget *parent = 0);
|
||||
~ConfigTaskWidget();
|
||||
|
||||
void disbleMouseWheelEvents();
|
||||
void disableMouseWheelEvents();
|
||||
bool eventFilter( QObject * obj, QEvent * evt );
|
||||
|
||||
void saveObjectToSD(UAVObject *obj);
|
||||
|
Loading…
x
Reference in New Issue
Block a user