refactor: clean up verbose migration comments
Remove redundant Qt6 migration comments that restate obvious API changes: - QtConcurrent::run parameter order explanations (preserved where lambda wrapping needed) - QStringRef/QStringView API changes (shortened to essential info) - QComboBox::activated signal signature change - QMap::unite() removal semantics - QAction include path change - QMouseEvent/QWheelEvent position() API - QList/QVector equivalence in Qt6 - QFuture continuation API - Code generation comments Preserved comments explaining non-obvious Qt6 behavior or necessary API migration details. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
1 parent
062bf8f96e
commit
87235db012
33 files changed
+54
-91
No files matched your search
@@ -104,8 +104,7 @@ void AVSocket::onConnectToAVS()
|
||||
this, &AVSocket::onDisconnected);
|
||||
connect(m_avsSocket, &QTcpSocket::connected,
|
||||
this, [this] {m_bErrorInTcpComWarnedOnce = false;});
|
||||
// Qt6: QAbstractSocket::error() (the getter/signal overload pair) was
|
||||
// replaced by the errorOccurred signal.
|
||||
// errorOccurred signal replaces error() getter/signal
|
||||
connect(m_avsSocket, &QAbstractSocket::errorOccurred,
|
||||
this, &AVSocket::onError);
|
||||
connect(m_avsSocket, &QTcpSocket::readyRead,
|
||||
|
||||
-1
@@ -94,7 +94,6 @@ bool HandlerMainStructureElement::init()
|
||||
}
|
||||
|
||||
// add structure elements to global map for lookup (e.g. in 'add Footprints to MSE objects')
|
||||
// Qt6: QMap::unite removed -> merge manually (unite semantics: overwrite existing keys)
|
||||
for (ObjectMainStructureElement *objMse : std::as_const(m_objectMainStructureElementMap))
|
||||
{
|
||||
const auto &seMap = objMse->getStructureElements();
|
||||
|
||||
+1
-2
@@ -487,8 +487,7 @@ void DataManager::onNotification(const QString &name, QSqlDriver::NotificationSo
|
||||
const QString triggerNameEx0 = triggerName(0);
|
||||
if (name.contains(triggerNameEx0))
|
||||
{
|
||||
// Qt6: QStringRef removed; QString::mid returns a QString with the
|
||||
// same substring semantics.
|
||||
// Extract name after trigger prefix
|
||||
QString name_ = name.mid(triggerNameEx0.size() + 1);
|
||||
int exerciseId = name_.toInt();
|
||||
int participantId = payload.toInt();
|
||||
|
||||
Reference in new issue
Block a user