diff options
author | Qt Forward Merge Bot <qt_forward_merge_bot@qt-project.org> | 2019-10-26 01:01:13 +0200 |
---|---|---|
committer | Qt Forward Merge Bot <qt_forward_merge_bot@qt-project.org> | 2019-10-26 01:01:14 +0200 |
commit | 86e74d60d2ab66a142a3ed02aabcadaab53b94ed (patch) | |
tree | 11ebf7349863272acb4821ceeb99c394407c5121 /src/tools | |
parent | 9d504e1150e4bd49d34aba5cee938d1fd9f7e80c (diff) | |
parent | 48603baf949f12928476f11e17fd387b8903d971 (diff) |
Merge remote-tracking branch 'origin/5.14' into 5.15
Change-Id: I208a36bf1c88c8291baaa5ca8fe8e838bc9d7aea
Diffstat (limited to 'src/tools')
-rw-r--r-- | src/tools/androiddeployqt/main.cpp | 2 | ||||
-rw-r--r-- | src/tools/androidtestrunner/main.cpp | 2 | ||||
-rw-r--r-- | src/tools/uic/cpp/cppwriteinitialization.cpp | 36 |
3 files changed, 20 insertions, 20 deletions
diff --git a/src/tools/androiddeployqt/main.cpp b/src/tools/androiddeployqt/main.cpp index 7101a2bf3c..feecfba8fb 100644 --- a/src/tools/androiddeployqt/main.cpp +++ b/src/tools/androiddeployqt/main.cpp @@ -1258,7 +1258,7 @@ bool updateLibsXml(Options *options) QFileInfo extraLibInfo(extraLib); QString name = extraLibInfo.fileName().mid(sizeof("lib") - 1); name.chop(sizeof(".so") - 1); - extraLibs += QLatin1String(" <item>%1;%2").arg(it.key(), name); + extraLibs += QLatin1String(" <item>%1;%2</item>\n").arg(it.key(), name); } } diff --git a/src/tools/androidtestrunner/main.cpp b/src/tools/androidtestrunner/main.cpp index f61d407d4a..1046c7b7ef 100644 --- a/src/tools/androidtestrunner/main.cpp +++ b/src/tools/androidtestrunner/main.cpp @@ -277,7 +277,7 @@ static void printHelp() " $PATH will be used.\n" " --activity <acitvity>: The Activity to run. If missing the first\n" " activity from AndroidManifest.qml file will be used.\n" - " --timout <seconds>: Timeout to run the test.\n" + " --timeout <seconds>: Timeout to run the test.\n" " Default is 5 minutes.\n" " --make <make cmd>: make command, needed to install the qt library.\n" " If make is missing make sure the --path is set.\n" diff --git a/src/tools/uic/cpp/cppwriteinitialization.cpp b/src/tools/uic/cpp/cppwriteinitialization.cpp index 717bff4a51..0349061089 100644 --- a/src/tools/uic/cpp/cppwriteinitialization.cpp +++ b/src/tools/uic/cpp/cppwriteinitialization.cpp @@ -502,7 +502,7 @@ void WriteInitialization::acceptUI(DomUI *node) const QString varConn = connection + QLatin1String("Connection"); m_output << m_indent << varConn << " = QSqlDatabase::database(" - << language::charliteral(connection, m_dindent) << ");\n"; + << language::charliteral(connection, m_dindent) << ")" << language::eol; } acceptWidget(node->elementWidget()); @@ -551,7 +551,7 @@ void WriteInitialization::acceptUI(DomUI *node) m_refreshInitialization += m_indent; m_refreshInitialization += QLatin1String("(void)"); m_refreshInitialization += varName ; - m_refreshInitialization += QLatin1String(";\n"); + m_refreshInitialization += language::eol; } m_output << m_option.indent @@ -682,7 +682,7 @@ void WriteInitialization::acceptWidget(DomWidget *node) m_output << "Qt" << language::qualifier << language::dockWidgetArea(pstyle->elementNumber()) << ", "; } - m_output << varName << ");\n"; + m_output << varName << ")" << language::eol; } else if (m_uic->customWidgetsInfo()->extends(className, QLatin1String("QStatusBar"))) { m_output << m_indent << parentWidget << language::derefPointer << "setStatusBar(" << varName << ')' << language::eol; @@ -881,7 +881,7 @@ void WriteInitialization::acceptLayout(DomLayout *node) if (!m_layoutChain.top() && !isGroupBox) m_output << m_driver->findOrInsertWidget(m_widgetChain.top()); - m_output << ");\n"; + m_output << ")" << language::eol; // Suppress margin on a read child layout const bool suppressMarginDefault = m_layoutChain.top(); @@ -979,7 +979,7 @@ void WriteInitialization::acceptSpacer(DomSpacer *node) { m_output << m_indent << m_driver->findOrInsertSpacer(node) << " = "; writeSpacerItem(node, m_output); - m_output << ";\n"; + m_output << language::eol; } static inline QString formLayoutRole(int column, int colspan) @@ -1041,7 +1041,7 @@ void WriteInitialization::acceptLayoutItem(DomLayoutItem *node) if (layout->attributeClass().contains(QLatin1String("Box")) && !node->attributeAlignment().isEmpty()) m_output << ", 0, " << language::enumValue(node->attributeAlignment()); } - m_output << ");\n\n"; + m_output << ")" << language::eol << "\n"; } void WriteInitialization::acceptActionGroup(DomActionGroup *node) @@ -1053,7 +1053,7 @@ void WriteInitialization::acceptActionGroup(DomActionGroup *node) varName = m_driver->findOrInsertActionGroup(m_actionGroupChain.top()); m_output << m_indent << actionName << " = " << language::operatorNew - << "QActionGroup(" << varName << ");\n"; + << "QActionGroup(" << varName << ")" << language::eol; writeProperties(actionName, QLatin1String("QActionGroup"), node->elementProperty()); m_actionGroupChain.push(node); @@ -1536,7 +1536,7 @@ void WriteInitialization::writeProperties(const QString &varName, if (leftMargin != -1 || topMargin != -1 || rightMargin != -1 || bottomMargin != -1) { m_output << m_indent << varName << language::derefPointer << "setContentsMargins(" << leftMargin << ", " << topMargin << ", " - << rightMargin << ", " << bottomMargin << ");\n"; + << rightMargin << ", " << bottomMargin << ")" << language::eol; } } @@ -1566,9 +1566,9 @@ QString WriteInitialization::writeSizePolicy(const DomSizePolicy *sp) m_output << ')' << language::eol; m_output << m_indent << spName << ".setHorizontalStretch(" - << sp->elementHorStretch() << ");\n"; + << sp->elementHorStretch() << ")" << language::eol; m_output << m_indent << spName << ".setVerticalStretch(" - << sp->elementVerStretch() << ");\n"; + << sp->elementVerStretch() << ")" << language::eol; return spName; } // Check for a font with the given properties in the FontPropertiesNameMap @@ -1591,11 +1591,11 @@ QString WriteInitialization::writeFontProperties(const DomFont *f) << language::eol; if (f->hasElementFamily() && !f->elementFamily().isEmpty()) { m_output << m_indent << fontName << ".setFamily(" - << language::qstring(f->elementFamily(), m_dindent) << ");\n"; + << language::qstring(f->elementFamily(), m_dindent) << ")" << language::eol; } if (f->hasElementPointSize() && f->elementPointSize() > 0) { m_output << m_indent << fontName << ".setPointSize(" << f->elementPointSize() - << ");\n"; + << ")" << language::eol; } if (f->hasElementBold()) { @@ -1780,7 +1780,7 @@ QString WriteInitialization::writeIconProperties(const DomResourceIcon *i) if (iconHasStatePixmaps(i)) { // Theme + default state pixmaps: // Generate code to check the theme and default to state pixmaps - m_output << m_indent << language::stackVariable("QIcon", iconName) << ";\n"; + m_output << m_indent << language::stackVariable("QIcon", iconName) << language::eol; const char themeNameStringVariableC[] = "iconThemeName"; // Store theme name in a variable m_output << m_indent; @@ -1853,7 +1853,7 @@ void WriteInitialization::writeColorGroup(DomColorGroup *colorGroup, const QStri m_output << m_indent << paletteName << ".setColor(" << group << ", QPalette" << language::qualifier << language::paletteColorRole(i) << ", " << domColor2QString(color) - << ");\n"; + << ")" << language::eol; } // new format @@ -1871,7 +1871,7 @@ void WriteInitialization::writeColorGroup(DomColorGroup *colorGroup, const QStri m_output << m_indent << paletteName << ".setBrush(" << language::enumValue(group) << ", " << "QPalette" << language::qualifier << roleName - << ", " << brushName << ");\n"; + << ", " << brushName << ")" << language::eol; if (!versionAdded.isNull()) m_output << "#endif\n"; } @@ -2086,12 +2086,12 @@ void WriteInitialization::initializeComboBox(DomWidget *w) m_output << iconValue << ", "; if (needsTranslation(text->elementString())) { - m_output << "QString());\n"; + m_output << "QString())" << language::eol; m_refreshOut << m_indent << varName << language::derefPointer << "setItemText(" << i << ", " << trCall(text->elementString()) << ')' << language::eol; } else { - m_output << noTrCall(text->elementString()) << ");\n"; + m_output << noTrCall(text->elementString()) << ")" << language::eol; } } m_refreshOut << "\n"; @@ -2582,7 +2582,7 @@ void WriteInitialization::acceptConnection(DomConnection *connection) m_output << m_indent; language::formatConnection(m_output, theSignal, theSlot); - m_output << ";\n"; + m_output << language::eol; } static void generateMultiDirectiveBegin(QTextStream &outputStream, const QSet<QString> &directives) |