Warnings fixes on recent compilers
This commit is contained in:
@@ -45,14 +45,14 @@ joystickDialog::joystickDialog(QWidget *parent, int stick) :
|
|||||||
};
|
};
|
||||||
memcpy(jscal, jscaltmp, sizeof (jscal));
|
memcpy(jscal, jscaltmp, sizeof (jscal));
|
||||||
|
|
||||||
foreach(QComboBox *cb, findChildren<QComboBox *>(QRegExp("jsmapCB_[0-9]+"))) {
|
foreach(QComboBox *cb, findChildren<QComboBox *>(QRegularExpression("jsmapCB_[0-9]+"))) {
|
||||||
populateSourceCombo(cb);
|
populateSourceCombo(cb);
|
||||||
sticks[cb->property("channel").toUInt()] = cb;
|
sticks[cb->property("channel").toUInt()] = cb;
|
||||||
}
|
}
|
||||||
foreach(QCheckBox *ib, findChildren<QCheckBox *>(QRegExp("ChInv_[0-9]+"))) {
|
foreach(QCheckBox *ib, findChildren<QCheckBox *>(QRegularExpression("ChInv_[0-9]+"))) {
|
||||||
invert[ib->property("channel").toUInt()] = ib;
|
invert[ib->property("channel").toUInt()] = ib;
|
||||||
}
|
}
|
||||||
foreach(QSlider *sl, findChildren<QSlider *>(QRegExp("Ch_[0-9]+"))) {
|
foreach(QSlider *sl, findChildren<QSlider *>(QRegularExpression("Ch_[0-9]+"))) {
|
||||||
sliders[sl->property("channel").toUInt()] = sl;
|
sliders[sl->property("channel").toUInt()] = sl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -100,7 +100,7 @@ void SimulatorLoader::registerSimulators()
|
|||||||
path.truncate(path.lastIndexOf('\\'));
|
path.truncate(path.lastIndexOf('\\'));
|
||||||
dir.setPath(path);
|
dir.setPath(path);
|
||||||
#else
|
#else
|
||||||
dir = SIMULATOR_LIB_SEARCH_PATH;
|
dir.setPath(SIMULATOR_LIB_SEARCH_PATH);
|
||||||
#endif
|
#endif
|
||||||
registerSimulators(dir);
|
registerSimulators(dir);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -444,7 +444,7 @@ QLayout *VirtualJoystickWidget::createNodeValueLayout(QChar type, QLabel *& valL
|
|||||||
val->setObjectName(QString("val_%1").arg(type));
|
val->setObjectName(QString("val_%1").arg(type));
|
||||||
val->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed);
|
val->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed);
|
||||||
val->setAlignment(Qt::AlignCenter);
|
val->setAlignment(Qt::AlignCenter);
|
||||||
val->setMinimumWidth(val->fontMetrics().width("-100 "));
|
val->setMinimumWidth(val->fontMetrics().horizontalAdvance("-100 "));
|
||||||
QVBoxLayout * layout = new QVBoxLayout();
|
QVBoxLayout * layout = new QVBoxLayout();
|
||||||
layout->setContentsMargins(2, 2, 2, 2);
|
layout->setContentsMargins(2, 2, 2, 2);
|
||||||
layout->setSpacing(2);
|
layout->setSpacing(2);
|
||||||
|
|||||||
Reference in New Issue
Block a user