forked from qt-creator/qt-creator
Fix coding style for else statements
Change-Id: I1309db70e98d678e150388c76ce665e988fdf081 Reviewed-by: Eike Ziller <eike.ziller@digia.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
c67f7f6349
commit
ad9e7ccab6
@@ -107,9 +107,9 @@ QmlConsoleView::QmlConsoleView(QWidget *parent) :
|
||||
if (Utils::HostOsInfo::isAnyUnixHost() && !Utils::HostOsInfo::isMacHost()
|
||||
&& baseName == QLatin1String("windows")) {
|
||||
// Sometimes we get the standard windows 95 style as a fallback
|
||||
if (QStyleFactory::keys().contains(QLatin1String("Fusion")))
|
||||
if (QStyleFactory::keys().contains(QLatin1String("Fusion"))) {
|
||||
baseName = QLatin1String("fusion"); // Qt5
|
||||
else { // Qt4
|
||||
} else { // Qt4
|
||||
// e.g. if we are running on a KDE4 desktop
|
||||
QByteArray desktopEnvironment = qgetenv("DESKTOP_SESSION");
|
||||
if (desktopEnvironment == "kde")
|
||||
|
||||
@@ -309,9 +309,8 @@ protected:
|
||||
if (QString::fromUtf8(id->chars(), id->size()) != QLatin1String("QVariant"))
|
||||
return ast;
|
||||
return call->expression_list->value;
|
||||
}
|
||||
// QVariant::fromValue(foo) -> foo
|
||||
else if (QualifiedNameAST *q = idExp->name->asQualifiedName()) {
|
||||
} else if (QualifiedNameAST *q = idExp->name->asQualifiedName()) {
|
||||
SimpleNameAST *simpleRhsName = q->unqualified_name->asSimpleName();
|
||||
if (!simpleRhsName
|
||||
|| !q->nested_name_specifier_list
|
||||
|
||||
Reference in New Issue
Block a user