From 1ce71a6a113df553c5517b4b2e8af05bc32ba705 Mon Sep 17 00:00:00 2001 From: BogDan Vatra Date: Thu, 24 Oct 2019 13:18:37 +0300 Subject: Fix bundled_libs section from libs.xml Fixes: QTBUG-79376 Change-Id: If7681365110341379913ae46a96a2f2296197b8f Reviewed-by: Eskil Abrahamsen Blomfeldt --- src/tools/androiddeployqt/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/tools') 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(" %1;%2").arg(it.key(), name); + extraLibs += QLatin1String(" %1;%2\n").arg(it.key(), name); } } -- cgit v1.2.3 From b5b9eb68c47cda1dc2a36644867a3550c1b3640e Mon Sep 17 00:00:00 2001 From: BogDan Vatra Date: Tue, 22 Oct 2019 08:41:31 +0300 Subject: Fix typo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I9a429805414fb50aa059677beb5f8f8a48b72d9b Reviewed-by: MÃ¥rten Nordheim --- src/tools/androidtestrunner/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/tools') 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 : The Activity to run. If missing the first\n" " activity from AndroidManifest.qml file will be used.\n" - " --timout : Timeout to run the test.\n" + " --timeout : Timeout to run the test.\n" " Default is 5 minutes.\n" " --make : make command, needed to install the qt library.\n" " If make is missing make sure the --path is set.\n" -- cgit v1.2.3 From 968cc365d24e3995d8456ed209fc1287a4935975 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cristi=C3=A1n=20Maureira-Fredes?= Date: Fri, 25 Oct 2019 15:28:20 +0200 Subject: uic: Add language::eol in more cases for python code Change-Id: I0ab4b37399d3fba6d27cf90cab22676a3c599e5a Reviewed-by: Friedemann Kleint --- src/tools/uic/cpp/cppwriteinitialization.cpp | 36 ++++++++++++++-------------- 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'src/tools') 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 &directives) -- cgit v1.2.3