LtsWidgets: Qt6 API fixes complete
- QComboBox::activated signal: QString→int parameter (lts_text_editor) - qAsConst→std::as_const (5 files) - localPos()→position() (lts_height_plot_widget) - setMargin→setContentsMargins (tests/window.cpp) - CMAKE_AUTOUIC OFF + include in header for MOC - enterEvent(QEnterEvent*) signature fixes - QRegExp→QRegularExpression replacements All LtsWidgets module files now Qt6-compatible.
This commit is contained in:
25 files changed
+58
-47
No files matched your search
@@ -187,8 +187,9 @@ LtsBaseLayoutWidget::LtsBaseLayoutWidget(QWidget *parent, bool splitMenu)
|
||||
m_bg->addButton(m_ui->pbAfterAction, (int) ExercisePart::eAfterAction);
|
||||
m_bg->addButton(m_ui->pbSpecial, (int) ExercisePart::eSpecial);
|
||||
|
||||
connect(m_bg, QOverload<int>::of(&QButtonGroup::buttonClicked), m_ui->stackedWidget, [this](int id)
|
||||
connect(m_bg, QOverload<QAbstractButton*>::of(&QButtonGroup::buttonClicked), m_ui->stackedWidget, [this](QAbstractButton* btn)
|
||||
{
|
||||
int id = m_bg->id(btn);
|
||||
m_ui->stackedWidget->setCurrentWidget(getToolBox((ExercisePart) id));
|
||||
});
|
||||
m_ui->pbSpecial->click();
|
||||
@@ -634,7 +635,7 @@ void LtsBaseLayoutWidget::slotOperatorMenuClicked()
|
||||
operatorMenu->setTerminalButton(m_showTerminalButton);
|
||||
|
||||
bool hasOperatorSettings = false;
|
||||
for (const PluginData &pd : qAsConst(m_mapButtons))
|
||||
for (const PluginData &pd : std::as_const(m_mapButtons))
|
||||
{
|
||||
if (pd.identifier == QStringLiteral("_OpmShowOperatorSettings"))
|
||||
{
|
||||
@@ -1804,7 +1805,7 @@ bool LtsBaseLayoutWidget::messageIdentifierExists(const QString &identifier) con
|
||||
return true;
|
||||
}
|
||||
|
||||
for (const Message &m : qAsConst(m_messageQueue))
|
||||
for (const Message &m : std::as_const(m_messageQueue))
|
||||
{
|
||||
if (m.identifier == identifier)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user