mirror of
https://gitlab.com/smart-pattern/valentina.git
synced 2024-09-08 01:54:37 +02:00
Compare commits
3 commits
505cd6d62f
...
a85595ef3d
Author | SHA1 | Date | |
---|---|---|---|
|
a85595ef3d | ||
|
7cc560fd31 | ||
|
12f4a006fd |
|
@ -804,36 +804,38 @@ Module {
|
|||
}
|
||||
|
||||
Properties {
|
||||
condition: Utilities.versionCompare(qbs.version, "1.22") < 0
|
||||
cpp.systemIncludePaths: {
|
||||
var qtLibs = [
|
||||
"QtCore",
|
||||
"QtSvg",
|
||||
"QtXml",
|
||||
"QtPrintSupport",
|
||||
"QtXmlPatterns",
|
||||
"QtWidgets",
|
||||
"QtGui",
|
||||
"QtNetwork",
|
||||
"QtTest",
|
||||
"QtConcurrent"
|
||||
];
|
||||
var paths = [FileInfo.joinPaths(product.buildDirectory, "qt.headers")];
|
||||
|
||||
var paths = [];
|
||||
if (Utilities.versionCompare(qbs.version, "1.22") < 0) {
|
||||
var qtLibs = [
|
||||
"QtCore",
|
||||
"QtSvg",
|
||||
"QtXml",
|
||||
"QtPrintSupport",
|
||||
"QtXmlPatterns",
|
||||
"QtWidgets",
|
||||
"QtGui",
|
||||
"QtNetwork",
|
||||
"QtTest",
|
||||
"QtConcurrent"
|
||||
];
|
||||
|
||||
if (!qbs.targetOS.contains("macos"))
|
||||
{
|
||||
paths.push(Qt.core.incPath);
|
||||
if (!qbs.targetOS.contains("macos"))
|
||||
{
|
||||
paths.push(Qt.core.incPath);
|
||||
|
||||
for (var i = 0; i < qtLibs.length; i++) {
|
||||
paths.push(FileInfo.joinPaths(Qt.core.incPath, qtLibs[i]));
|
||||
}
|
||||
for (var i = 0; i < qtLibs.length; i++) {
|
||||
paths.push(FileInfo.joinPaths(Qt.core.incPath, qtLibs[i]));
|
||||
}
|
||||
|
||||
} else {
|
||||
for (var i = 0; i < qtLibs.length; i++) {
|
||||
paths.push(FileInfo.joinPaths(Qt.core.incPath, qtLibs[i] + ".framework/Versions/" + Qt.core.versionMajor +
|
||||
"/Headers"));
|
||||
paths.push(FileInfo.joinPaths(Qt.core.incPath, qtLibs[i] + ".framework/Headers"));
|
||||
} else {
|
||||
for (var i = 0; i < qtLibs.length; i++) {
|
||||
paths.push(FileInfo.joinPaths(Qt.core.incPath,
|
||||
qtLibs[i] + ".framework/Versions/" + Qt.core.versionMajor +
|
||||
"/Headers"));
|
||||
paths.push(FileInfo.joinPaths(Qt.core.incPath, qtLibs[i] + ".framework/Headers"));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -836,7 +836,7 @@
|
|||
</xs:simpleType>
|
||||
<xs:simpleType name="contentType">
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:pattern value="image\\/[-\w]+(\.[-\w]+)*([+][-\w]+)?"/>
|
||||
<xs:pattern value="image/[-\w]+(\.[-\w]+)*([+][-\w]+)?"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="colors">
|
||||
|
|
|
@ -845,7 +845,7 @@
|
|||
</xs:simpleType>
|
||||
<xs:simpleType name="contentType">
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:pattern value="image\\/[-\w]+(\.[-\w]+)*([+][-\w]+)?"/>
|
||||
<xs:pattern value="image/[-\w]+(\.[-\w]+)*([+][-\w]+)?"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="colors">
|
||||
|
|
|
@ -855,7 +855,7 @@
|
|||
</xs:simpleType>
|
||||
<xs:simpleType name="contentType">
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:pattern value="image\\/[-\w]+(\.[-\w]+)*([+][-\w]+)?"/>
|
||||
<xs:pattern value="image/[-\w]+(\.[-\w]+)*([+][-\w]+)?"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="colors">
|
||||
|
|
|
@ -142,6 +142,7 @@ auto VTextCodec::availableCodecs() -> QList<QByteArray>
|
|||
while (i != codecs.constEnd())
|
||||
{
|
||||
names.append(ConstFirst(i.value()).toLatin1());
|
||||
++i;
|
||||
}
|
||||
|
||||
return names;
|
||||
|
|
|
@ -75,6 +75,7 @@ void TST_DXF::initTestCase()
|
|||
//---------------------------------------------------------------------------------------------------------------------
|
||||
void TST_DXF::TestCodecPage_data()
|
||||
{
|
||||
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
|
||||
QTest::addColumn<QString>("locale");
|
||||
|
||||
QStringList locales = SupportedLocales();
|
||||
|
@ -83,11 +84,13 @@ void TST_DXF::TestCodecPage_data()
|
|||
{
|
||||
QTest::newRow(locale.toLatin1()) << locale;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
void TST_DXF::TestCodecPage()
|
||||
{
|
||||
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
|
||||
QFETCH(QString, locale);
|
||||
|
||||
static QMap <QString, QString> locMap = LocaleMap();
|
||||
|
@ -122,4 +125,7 @@ void TST_DXF::TestCodecPage()
|
|||
|
||||
QVERIFY2(codec != nullptr, qUtf8Printable(QStringLiteral("No codec for dxf codepage %1 found.")
|
||||
.arg(dxfCodePage)));
|
||||
#else
|
||||
QSKIP("No full support for old codecs since Qt6.");
|
||||
#endif
|
||||
}
|
||||
|
|
|
@ -30,13 +30,12 @@
|
|||
|
||||
#include <QObject>
|
||||
|
||||
#include "../vmisc/defglobal.h"
|
||||
|
||||
class TST_DXF :public QObject
|
||||
{
|
||||
Q_OBJECT // NOLINT
|
||||
public:
|
||||
explicit TST_DXF(QObject *parent = nullptr);
|
||||
~TST_DXF() = default;
|
||||
|
||||
private slots:
|
||||
void initTestCase();
|
||||
|
|
Loading…
Reference in a new issue