47 #include "private/qfactoryloader_p.h" 50 #include "qplatformdefs.h" 62 #include <private/qkde_p.h> 63 #include <private/qgtkstyle_p.h> 64 #include <private/qt_x11_p.h> 92 switch(
X11->desktopEnvironment) {
107 #endif // QT_NO_LIBRARY 136 #if defined(Q_WS_WIN) && defined(Q_WS_WINCE) 141 #elif defined(Q_WS_WIN) 150 #elif defined(Q_WS_X11) && defined(Q_OS_SOLARIS) 152 #elif defined(Q_WS_S60) 154 #elif defined(Q_OS_SYMBIAN) 156 #elif defined(Q_WS_X11) && defined(Q_OS_IRIX) 158 #elif defined(Q_WS_QWS) || defined(Q_WS_QPA) 160 #elif defined(Q_WS_MAC) 162 #elif defined(Q_WS_X11) 164 switch(
X11->desktopEnvironment) {
172 if (availableStyles.
contains(gtkStyleKey)) {
173 stylename = gtkStyleKey;
176 if (
X11->use_xrender)
210 #ifndef QT_NO_STYLE_GTK 216 }
else if (
X11->desktopEnvironment ==
DE_KDE) {
230 #if defined(Q_WS_X11) 233 xdgDirString =
QLatin1String(
"/usr/local/share/:/usr/share/");
237 for (
int i = 0 ; i < xdgDirs.
size() ; ++i) {
238 QDir dir(xdgDirs[i]);
245 for (
int i = 0 ; i< kdeDirs.
count() ; ++i) {
258 #if defined(Q_WS_WIN) 260 #elif defined(Q_WS_MAC) 281 if (
X11->desktopEnvironment ==
DE_KDE &&
X11->desktopVersion >= 4
289 if (
X11->desktopEnvironment ==
DE_KDE &&
X11->desktopVersion >= 4
The QDir class provides access to directory structures and their contents.
Q_CORE_EXPORT QByteArray qgetenv(const char *varName)
static QString fromLocal8Bit(const char *, int size=-1)
Returns a QString initialized with the first size characters of the 8-bit string str.
QVariant value(const QString &key, const QVariant &defaultValue=QVariant()) const
Returns the value for setting key.
#define QT_END_NAMESPACE
This macro expands to.
The QSettings class provides persistent platform-independent application settings.
void beginGroup(const QString &prefix)
Appends prefix to the current group.
QString toString() const
Returns the variant as a QString if the variant has type() String , Bool , ByteArray ...
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
int count(const T &t) const
Returns the number of occurrences of value in the list.
static const WinVersion WindowsVersion
the version of the Windows operating system on which the application is run (Windows only) ...
The QString class provides a Unicode character string.
T * qobject_cast(QObject *object)
The QObject class is the base class of all Qt objects.
bool exists() const
Returns true if the directory exists; otherwise returns false.
static QString getIconThemeName()
static QString decodeName(const QByteArray &localFileName)
This does the reverse of QFile::encodeName() using localFileName.
void append(const T &t)
Inserts value at the end of the list.
#define QT_BEGIN_NAMESPACE
This macro expands to.
static QStringList keys()
Returns the list of valid keys, i.e.
bool isEmpty() const
Returns true if the string has no characters; otherwise returns false.
void prepend(const T &t)
Inserts value at the beginning of the list.
const T & at(int i) const
Returns the item at index position i in the list.
The QStringList class provides a list of strings.
QBool contains(const QString &str, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
Returns true if the list contains the string str; otherwise returns false.
static QString fromLatin1(const char *, int size=-1)
Returns a QString initialized with the first size characters of the Latin-1 string str...
QObject * instance(const QString &key) const
int size() const
Returns the number of items in the list.
static bool desktopSettingsAware()
Returns true if Qt is set to use the system's standard colors, fonts, etc.
QStringList split(const QString &sep, SplitBehavior behavior=KeepEmptyParts, Qt::CaseSensitivity cs=Qt::CaseSensitive) const Q_REQUIRED_RESULT
Splits the string into substrings wherever sep occurs, and returns the list of those strings...
QString path() const
Returns the path.
The QFileInfo class provides system-independent file information.
The QLatin1Char class provides an 8-bit ASCII/Latin-1 character.
static QString homePath()
Returns the absolute path of the user's home directory.
The QPalette class contains color groups for each widget state.
The QIcon class provides scalable icons in different modes and states.