summaryrefslogtreecommitdiffstats
path: root/qmake/property.cpp
diff options
context:
space:
mode:
authorHou Lei <houlei@uniontech.com>2020-12-22 21:21:11 +0800
committerHou Lei <houlei@uniontech.com>2021-01-04 18:09:55 +0800
commit2d5862014096b2f1adfb1c1fa8357d01abbf8631 (patch)
tree0b57867f909cf10dcf7687648f927a9faea5f2e0 /qmake/property.cpp
parent173f163ad21835c9cf514f601b72034777ff1b19 (diff)
Adjust the format of code blocks
Change-Id: Id4a98b8b6f66ea4ea18eb90b86c1b84b6342e825 Reviewed-by: Hou Lei <houlei@uniontech.com> Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'qmake/property.cpp')
-rw-r--r--qmake/property.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/qmake/property.cpp b/qmake/property.cpp
index 971607ef61..2dc41ece0e 100644
--- a/qmake/property.cpp
+++ b/qmake/property.cpp
@@ -103,7 +103,7 @@ QMakeProperty::~QMakeProperty()
void QMakeProperty::initSettings()
{
- if(!settings) {
+ if (!settings) {
settings = new QSettings(QSettings::UserScope, "QtProject", "QMake");
settings->setFallbacksEnabled(false);
}
@@ -144,8 +144,8 @@ bool
QMakeProperty::exec()
{
bool ret = true;
- if(Option::qmake_mode == Option::QMAKE_QUERY_PROPERTY) {
- if(Option::prop::properties.isEmpty()) {
+ if (Option::qmake_mode == Option::QMAKE_QUERY_PROPERTY) {
+ if (Option::prop::properties.isEmpty()) {
initSettings();
const auto keys = settings->childKeys();
for (const QString &key : keys) {
@@ -179,7 +179,7 @@ QMakeProperty::exec()
}
for (QStringList::ConstIterator it = Option::prop::properties.cbegin();
it != Option::prop::properties.cend(); it++) {
- if(Option::prop::properties.count() > 1)
+ if (Option::prop::properties.count() > 1)
fprintf(stdout, "%s:", (*it).toLatin1().constData());
const ProKey pkey(*it);
if (!hasValue(pkey)) {