Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qquickplatformtheme.cpp
Go to the documentation of this file.
1// Copyright (C) 2021 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
5
6#include <QtGui/private/qguiapplication_p.h>
7
9
20
25
32{
33 // Allow tests to force some theme hint values, otherwise they get very messy and difficult to understand.
34 switch (themeHint) {
36 bool isInt = false;
37 const int showDirsFirst = qEnvironmentVariableIntValue("QT_QUICK_DIALOGS_SHOW_DIRS_FIRST", &isInt);
38 if (isInt)
39 return showDirsFirst != 0;
40 break;
41 }
42 default:
43 break;
44 }
46}
47
49
50#include "moc_qquickplatformtheme_p.cpp"
static QPlatformTheme * platformTheme()
\inmodule QtCore
Definition qobject.h:103
ThemeHint
This enum describes the available theme hints.
static QVariant getThemeHint(QPlatformTheme::ThemeHint themeHint)
Q_INVOKABLE QVariant themeHint(QPlatformTheme::ThemeHint themeHint) const
QQuickPlatformTheme(QObject *parent=nullptr)
\inmodule QtCore
Definition qvariant.h:65
Combined button and popup list for selecting options.
Q_CORE_EXPORT int qEnvironmentVariableIntValue(const char *varName, bool *ok=nullptr) noexcept