mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-08-07 05:44:14 +02:00
Merge branch 'master' into qt6_cmake_joshua
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
#include "../qetgraphicsitem/conductor.h"
|
||||
#include "../qetgraphicsitem/element.h"
|
||||
#include "../qetxml.h"
|
||||
|
||||
#include "../qetproject.h"
|
||||
#include <QStringList>
|
||||
#include <QVariant>
|
||||
#include <utility>
|
||||
@@ -275,6 +275,12 @@ namespace autonum
|
||||
|
||||
str.replace("%{void}", QString());
|
||||
|
||||
str.replace("%{plc_type}", dc.value("plc_type").toString());
|
||||
str.replace("%{plc_address}", dc.value("plc_address").toString());
|
||||
str.replace("%{plc_function}", dc.value("plc_function").toString());
|
||||
str.replace("%{plc_comment}", dc.value("plc_comment").toString());
|
||||
str.replace("%{plc_crossref}", dc.value("plc_crossref").toString());
|
||||
|
||||
return str;
|
||||
}
|
||||
|
||||
|
||||
@@ -57,9 +57,9 @@ bool NumerotationContext::addValue(const QString &type,
|
||||
const QVariant &value,
|
||||
const int increase,
|
||||
const int initialvalue) {
|
||||
if (!keyIsAcceptable(type) && !value.canConvert(QVariant::String))
|
||||
if (!keyIsAcceptable(type) && !value.canConvert<QString>())
|
||||
return false;
|
||||
if (keyIsNumber(type) && !value.canConvert(QVariant::Int))
|
||||
if (keyIsNumber(type) && !value.canConvert<int>())
|
||||
return false;
|
||||
|
||||
QString valuestr = value.toString();
|
||||
|
||||
Reference in New Issue
Block a user