KDEUI
kglobalsettings.cpp
Go to the documentation of this file.
215 QDBusConnection::sessionBus().connect( QString(), "/KGlobalSettings", "org.kde.KGlobalSettings",
384 return g.readEntry( "allowDefaultBackgroundImages", KDE_DEFAULT_ALLOW_DEFAULT_BACKGROUND_IMAGES );
494 static const unsigned int PreferredFontNamesCount = sizeof(PreferredFontNames)/sizeof(const char*);
658 const QString xdgUserDirs = KGlobal::dirs()->localxdgconfdir() + QLatin1String( "user-dirs.dirs" );
827 QDBusMessage message = QDBusMessage::createSignal("/KGlobalSettings", "org.kde.KGlobalSettings", "notifyChange" );
933 0 != (QString(kde_overrideStyle + QLatin1String("Style"))).compare(currentStyleName, Qt::CaseInsensitive)) {
950 0 == (QString(styleStr + QLatin1String("Style"))).compare(currentStyleName, Qt::CaseInsensitive) ||
968 0 != (QString(kde_overrideStyle + QLatin1String("Style"))).compare(currentStyleName, Qt::CaseInsensitive)) {
1024 palette.setColor( state, QPalette::Midlight, schemeWindow.shade( KColorScheme::MidlightShade ) );
1029 palette.setBrush( state, QPalette::AlternateBase, schemeView.background( KColorScheme::AlternateBackground) );
1031 palette.setBrush( state, QPalette::LinkVisited, schemeView.foreground( KColorScheme::VisitedText ) );
1100 _graphicEffects = ((GraphicEffects) g.readEntry("GraphicEffectsLevel", QVariant((int) NoEffects)).toInt());
1159 bool showIcons = cg.readEntry("ShowIconsInMenuItems", !QApplication::testAttribute(Qt::AA_DontShowIconsInMenus));
static bool shadeSortColumn()
Returns if the sorted column in a K3ListView shall be drawn with a shaded background color...
Definition: kglobalsettings.cpp:375
void setBrush(ColorRole role, const QBrush &brush)
void message(KMessage::MessageType messageType, const QString &text, const QString &caption=QString())
QString readPathEntry(const QString &pKey, const QString &aDefault) const
static QString downloadPath()
The path where download are stored of the current user.
Definition: kglobalsettings.cpp:652
GUI with complex animations enabled.
Definition: kglobalsettings.h:468
static void emitChange(ChangeType changeType, int arg=0)
Notifies all KDE applications on the current display of a change.
Definition: kglobalsettings.cpp:825
QString & append(QChar ch)
const QRect screenGeometry(int screen) const
int doubleClickInterval()
The light color is lighter than dark() or shadow() and contrasts with the base color.
Definition: kcolorscheme.h:280
static bool allowDefaultBackgroundImages()
Returns if default background images are allowed by the color scheme.
Definition: kglobalsettings.cpp:381
QByteArray toLower() const
void setColor(ColorGroup group, ColorRole role, const QColor &color)
static bool singleClick()
Returns whether KDE runs in single (default) or double click mode.
Definition: kglobalsettings.cpp:233
static QPalette createNewApplicationPalette(const KSharedConfigPtr &config=KSharedConfigPtr())
Used to obtain the QPalette that will be used to set the application palette.
Definition: kglobalsettings.cpp:980
static QString desktopPath()
The path to the desktop directory of the current user.
Definition: kglobalsettings.cpp:626
QStringList split(const QString &sep, SplitBehavior behavior, Qt::CaseSensitivity cs) const
void setFont(const QFont &font, const char *className)
Display * display()
#define K_GLOBAL_STATIC(TYPE, NAME)
const T & at(int i) const
KStandardDirs * dirs()
bool isEmpty() const
virtual const QMetaObject * metaObject() const
bool isSmoothlyScalable(const QString &family, const QString &style) const
static QColor inactiveTitleColor()
The default color to use for inactive titles.
Definition: kglobalsettings.cpp:317
static bool opaqueResize()
Whether the user wishes to use opaque resizing.
Definition: kglobalsettings.cpp:813
static QRect desktopGeometry(const QPoint &point)
This function returns the desktop geometry for an application that needs to set the geometry of a wid...
Definition: kglobalsettings.cpp:732
QDBusConnection sessionBus()
static bool showContextMenusOnPress()
Returns the KDE setting for context menus.
Definition: kglobalsettings.cpp:280
void setAttribute(Qt::ApplicationAttribute attribute, bool on)
bool exists() const
bool isVirtualDesktop() const
QString & remove(int position, int n)
static KGlobalSettings * self()
Return the KGlobalSettings singleton.
Definition: kglobalsettings.cpp:188
QString homePath()
int screenNumber(const QWidget *widget) const
static KGlobalSettings::GraphicEffects _graphicEffects
Definition: kglobalsettings.cpp:77
geometry
KSharedConfigPtr config()
bool isNull() const
The dark color is in between mid() and shadow().
Definition: kcolorscheme.h:292
The midlight color is in between base() and light().
Definition: kcolorscheme.h:284
int cursorFlashTime()
QStringList keys()
int count(const T &value) const
void append(const T &value)
static QColor activeTitleColor()
The default color to use for active titles.
Definition: kglobalsettings.cpp:339
static QString videosPath()
The path where videos are stored of the current user.
Definition: kglobalsettings.cpp:676
QKeySequence fromString(const QString &str, SequenceFormat format)
static QPalette createApplicationPalette(const KSharedConfigPtr &config=KSharedConfigPtr())
Used to obtain the QPalette that will be used to set the application palette.
Definition: kglobalsettings.cpp:975
static qreal contrastF(const KSharedConfigPtr &config=KSharedConfigPtr())
Returns the contrast for borders as a floating point value.
Definition: kglobalsettings.cpp:366
QString storageLocation(StandardLocation type)
void setPalette(const QPalette &palette, const char *className)
void reparseConfiguration()
static int buttonLayout()
The layout scheme to use for dialog buttons.
Definition: kglobalsettings.cpp:819
QString protocol() const
QDBusMessage createSignal(const QString &path, const QString &interface, const QString &name)
bool send(const QDBusMessage &message) const
bool isEmpty() const
int removeAll(const T &value)
static bool wheelMouseZooms()
Typically, QScrollView derived classes can be scrolled fast by holding down the Ctrl-button during wh...
Definition: kglobalsettings.cpp:707
bool startsWith(const QString &s, Qt::CaseSensitivity cs) const
TearOffHandle
This enum describes the return type for insertTearOffHandle() whether to insert a handle or not...
Definition: kglobalsettings.h:130
QStyle * create(const QString &key)
Alternate background; for example, for use in lists.
Definition: kcolorscheme.h:141
void clear()
bool endsWith(const QString &s, Qt::CaseSensitivity cs) const
static QColor activeTextColor()
The default color to use for active texts.
Definition: kglobalsettings.cpp:350
QCoreApplication * instance()
static QFont windowTitleFont()
Returns the default window title font.
Definition: kglobalsettings.cpp:462
The shadow color is darker than light() or midlight() and contrasts the base color.
Definition: kcolorscheme.h:297
QFuture< void > map(Sequence &sequence, MapFunction function)
static GraphicEffects graphicEffectsLevelDefault()
This function determines the default level of effects on the GUI depending on the system capabilities...
Definition: kglobalsettings.cpp:797
QString localxdgconfdir() const
int logicalDpiY() const
QWidget * screen(int screen)
static bool showIconsOnPushButtons()
This function determines if the user wishes to see icons on the push buttons.
Definition: kglobalsettings.cpp:768
static QString documentPath()
The path where documents are stored of the current user.
Definition: kglobalsettings.cpp:646
static bool showFilePreview(const QString &protocol)
static const KFontData DefaultFontData[KGlobalSettingsData::FontTypesCount]
Definition: kglobalsettings.cpp:404
static QString autostartPath()
The path to the autostart directory of the current user.
Definition: kglobalsettings.cpp:633
const char * className() const
Make all globally applicable settings take effect.
Definition: kglobalsettings.h:568
void setStyleHint(StyleHint hint, StyleStrategy strategy)
Lists all possible matches in a popup list-box to choose from.
Definition: kglobalsettings.h:199
KLocale * locale()
static QFont largeFont(const QString &text=QString())
Returns a font of approx.
Definition: kglobalsettings.cpp:540
static bool changeCursorOverIcon()
Checks whether the cursor changes over icons.
Definition: kglobalsettings.cpp:255
QString cleanPath(const QString &path)
int startDragTime()
QString mid(int position, int n) const
QPoint pos()
static QColor inactiveTextColor()
The default color to use for inactive texts.
Definition: kglobalsettings.cpp:328
static int contextMenuKey()
Returns the KDE setting for the shortcut key to open context menus.
Definition: kglobalsettings.cpp:287
QDesktopWidget * desktop()
static QRect splashScreenDesktopGeometry()
This function returns the desktop geometry for an application's splash screen.
Definition: kglobalsettings.cpp:713
QStringList families(WritingSystem writingSystem) const
#define KDE_DEFAULT_ALLOW_DEFAULT_BACKGROUND_IMAGES
Definition: kglobalsettings.h:42
void reparseConfiguration()
static TearOffHandle insertTearOffHandle()
Returns whether tear-off handles are inserted in KMenus.
Definition: kglobalsettings.cpp:245
static bool isMultiHead()
Returns if the user specified multihead.
Definition: kglobalsettings.cpp:694
typedef ConstIterator
static int autoSelectDelay()
Returns the KDE setting for the auto-select option.
Definition: kglobalsettings.cpp:261
int wheelScrollLines()
Completion
This enum describes the completion mode used for by the KCompletion class.
Definition: kglobalsettings.h:179
int length() const
QString localkdedir() const
static QDebug kWarning(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
void setArguments(const QList< QVariant > &arguments)
void prepend(const T &value)
void activate()
Makes all globally applicable settings take effect and starts listening for changes to these settings...
Definition: kglobalsettings.cpp:204
static KMouseSettings & mouseSettings()
This returns the current mouse settings.
Definition: kglobalsettings.cpp:613
static GraphicEffects graphicEffectsLevel()
This function determines the desired level of effects on the GUI.
Definition: kglobalsettings.cpp:782
static bool showFilePreview(const KUrl &)
This function determines if the user wishes to see previews for the selected url. ...
Definition: kglobalsettings.cpp:805
const_iterator constEnd() const
static Completion completionMode()
Returns the preferred completion mode setting.
Definition: kglobalsettings.cpp:267
const_iterator constBegin() const
bool connect(const QString &service, const QString &path, const QString &interface, const QString &name, QObject *receiver, const char *slot)
bool isFixedPitch(const QString &family, const QString &style) const
static QString picturesPath()
The path where pictures are stored of the current user.
Definition: kglobalsettings.cpp:682
bool testAttribute(Qt::ApplicationAttribute attribute)
int compare(const QString &other) const
#define KDE_DEFAULT_INSERTTEAROFFHANDLES
Definition: kglobalsettings.h:29
static int dndEventDelay()
Returns a threshold in pixels for drag & drop operations.
Definition: kglobalsettings.cpp:227
T readEntry(const QString &key, const T &aDefault) const
static QFont smallestReadableFont()
Returns the smallest readable font.
Definition: kglobalsettings.cpp:470
Lists all possible matches in a popup list-box to choose from, and automatically fill the result when...
Definition: kglobalsettings.h:204
QByteArray encodeName(const QString &fileName)
Listen for changes to the settings.
Definition: kglobalsettings.h:569
static QString musicPath()
The path where music are stored of the current user.
Definition: kglobalsettings.cpp:688
static bool smoothScroll()
Returns if item views should force smooth scrolling.
Definition: kglobalsettings.cpp:239
#define KDE_DEFAULT_ICON_ON_PUSHBUTTON
Definition: kglobalsettings.h:35
bool mkpath(const QString &dirPath) const
int startDragDistance()
static bool naturalSorting()
Returns true, if user visible strings should be sorted in a natural way: image 1.jpg image 2...
Definition: kglobalsettings.cpp:775
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:23:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:23:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.