Adds immediate migration results
This commit is contained in:
2395 files changed
+357322
-2524
No files matched your search
@@ -155,8 +155,8 @@ NGL_TARGET_INCLUDE_DIRECTORIES(LtsWidgets
|
||||
|
||||
NGL_TARGET_LINK_LIBRARIES(LtsWidgets
|
||||
PRIVATE
|
||||
Qt5::Network # for QHostInfo - for portability
|
||||
Qt5::Svg
|
||||
Qt6::Network # for QHostInfo - for portability
|
||||
Qt6::Svg
|
||||
ngltools
|
||||
ngltranslator
|
||||
TabBarTabStyle
|
||||
@@ -164,9 +164,9 @@ NGL_TARGET_LINK_LIBRARIES(LtsWidgets
|
||||
LtsUtilsSettings
|
||||
PUBLIC
|
||||
LtsUtilsCore
|
||||
Qt5::Core
|
||||
Qt5::Widgets
|
||||
Qt5::Gui
|
||||
Qt6::Core
|
||||
Qt6::Widgets
|
||||
Qt6::Gui
|
||||
)
|
||||
|
||||
NGL_INSTALL_TARGET(LtsWidgets)
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
|
||||
#include "lts_angle_edit.h"
|
||||
#include <utility>
|
||||
#include "ui_lts_angle_edit.h"
|
||||
|
||||
#include <cmath>
|
||||
@@ -194,7 +195,7 @@ QString LtsAngleEdit::toString(LtsAngleEdit::AngleUnitType t)
|
||||
void LtsAngleEdit::onCBoxAngleUnitChanged()
|
||||
{
|
||||
AngleUnitType newUnit = static_cast<AngleUnitType>(m_ui->cBoxAngleUnit->currentData().toInt());
|
||||
for(auto dbox : qAsConst(m_sBoxMap))
|
||||
for(auto dbox : std::as_const(m_sBoxMap))
|
||||
{
|
||||
const double value = getAngleConverted(dbox->value(), newUnit, m_currAngleUnit);
|
||||
auto mapVal = m_dboxLimitMap.value(newUnit);
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
|
||||
#include "lts_base_layout_widget.h"
|
||||
#include <utility>
|
||||
#include "ui_lts_base_layout.h"
|
||||
|
||||
#include "lts_dialog.h"
|
||||
@@ -629,7 +630,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"))
|
||||
{
|
||||
@@ -1794,7 +1795,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)
|
||||
{
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
|
||||
#include "lts_date_time_edit.h"
|
||||
#include <utility>
|
||||
#include "lts_date_time_edit_p.h"
|
||||
|
||||
#include "ui_lts_date_time_edit_touch.h"
|
||||
@@ -1413,7 +1414,7 @@ void LtsDateTimeEdit::onCheckBoxChanged()
|
||||
}
|
||||
|
||||
bEnable = checkBox()->isChecked();
|
||||
for (auto w : qAsConst(widgets))
|
||||
for (auto w : std::as_const(widgets))
|
||||
{
|
||||
if (w)
|
||||
w->setEnabled(bEnable);
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
|
||||
#include "lts_grid_layout.h"
|
||||
#include <utility>
|
||||
#include <QResizeEvent>
|
||||
|
||||
namespace LtsWidgets
|
||||
@@ -57,10 +58,10 @@ void LtsGridLayout::setMaxColumn(int max)
|
||||
|
||||
m_colSize = 0;
|
||||
|
||||
for (QWidget *wid : qAsConst(m_widgetList))
|
||||
for (QWidget *wid : std::as_const(m_widgetList))
|
||||
removeWidget(wid);
|
||||
|
||||
for (QWidget *wid : qAsConst(m_widgetList))
|
||||
for (QWidget *wid : std::as_const(m_widgetList))
|
||||
addWidgetInternal(wid);
|
||||
|
||||
}
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
|
||||
#include "lts_multi_range_spinbox.h"
|
||||
#include <utility>
|
||||
|
||||
#include <QEvent>
|
||||
#include <QWheelEvent>
|
||||
@@ -63,7 +64,7 @@ void LtsMultiRangeSpinBox::fixup(QString &str) const
|
||||
|
||||
QValidator::State LtsMultiRangeSpinBox::validateAll(QString &input, int &pos)
|
||||
{
|
||||
for(QPair<int,int> range : qAsConst(m_rangesList))
|
||||
for(QPair<int,int> range : std::as_const(m_rangesList))
|
||||
{
|
||||
QIntValidator validator(range.first, range.second);
|
||||
QValidator::State valState = validator.validate(input, pos);
|
||||
@@ -112,7 +113,7 @@ void LtsMultiRangeSpinBox::setRanges(const QVector<QPair<int, int>> &ranges)
|
||||
|
||||
QStringList rangeStrings;
|
||||
rangeStrings.reserve(m_rangesList.size());
|
||||
for (const QPair<int,int> &range : qAsConst(m_rangesList))
|
||||
for (const QPair<int,int> &range : std::as_const(m_rangesList))
|
||||
rangeStrings << tr("%1-%2%3").arg(range.first).arg(range.second).arg(suffix());
|
||||
setToolTip(tr("Ranges:\n%1").arg(rangeStrings.join(QStringLiteral(",\n"))));
|
||||
}
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
|
||||
#include "lts_tool_bar_area.h"
|
||||
#include <utility>
|
||||
#include "ui_lts_tool_bar_area.h"
|
||||
#include "lts_drag_icon.h"
|
||||
|
||||
@@ -259,7 +260,7 @@ bool LtsToolBarArea::setFunctionKey(int fkey, const QString &action)
|
||||
|
||||
|
||||
LtsDragIcon *icon = nullptr;
|
||||
for (LtsDragIcon *ic : qAsConst(m_buttonMap))
|
||||
for (LtsDragIcon *ic : std::as_const(m_buttonMap))
|
||||
{
|
||||
if (ic->identifier() == action)
|
||||
{
|
||||
@@ -275,7 +276,7 @@ bool LtsToolBarArea::setFunctionKey(int fkey, const QString &action)
|
||||
ShortCut &shorty = m_functionKeys[fkey];
|
||||
|
||||
|
||||
for (LtsDragIcon *ic : qAsConst(m_buttonMap))
|
||||
for (LtsDragIcon *ic : std::as_const(m_buttonMap))
|
||||
if (ic->identifier() == shorty.identifier)
|
||||
ic->removeModification();
|
||||
|
||||
@@ -322,7 +323,7 @@ void LtsToolBarArea::removeMenuAction(LtsDragIcon *icon)
|
||||
if (itShortcut.identifier == icon->identifier())
|
||||
itShortcut.clear();
|
||||
}
|
||||
for (LtsDragIcon *ic : qAsConst(m_foreignButtonMap))
|
||||
for (LtsDragIcon *ic : std::as_const(m_foreignButtonMap))
|
||||
{
|
||||
if(ic->identifier() == icon->identifier())
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user