class KGlobalSettings |
|
|
Access the KDE global configuration.
Author David Faure \ |
|
|
The default color to use for inactive texts. Returns the inactive text color |
|
The default color to use for inactive titles. Returns the inactive title color |
|
Returns if default background images are allowed by the color scheme. A "default" background image is just that, i.e. the user has not actively selected a background image to use. Returns true if default background images may be used |
|
Returns the alternate background color used by K3ListView with K3ListViewItem. Any other list that uses alternating background colors should use this too, to obey to the user's preferences. Returns the same as color(View, BackgroundNormal) if the user doesn't want alternating backgrounds. Returns the alternate background color See also calculateAlternateBackgroundColor Deprecated use KColorScheme(View).background(AlternateBackground) instead. Color accessors in KGlobalSettings are broken because they do not take widget state into account. KColorScheme fixes this, as well as offering access to the full range of new color roles in KDE4. |
|
Emitted when the application has changed either its GUI style, its font or its palette in response to a kdisplay request. Normally, widgets will update their styles automatically, but you should connect to this to program special behavior. |
|
Returns the KDE setting for the auto-select option. Returns the auto-select delay or -1 if auto-select is disabled. |
|
The path to the autostart directory of the current user. Returns the path of the autostart directory |
|
Returns the default base (background) color. Returns the default base (background) color See also QPalette.base() Deprecated use KColorScheme(View).background() instead. Color accessors in KGlobalSettings are broken because they do not take widget state into account. KColorScheme fixes this, as well as offering access to the full range of new color roles in KDE4. |
|
Emitted by BlockShortcuts |
|
Returns the button background color Returns the button background color Deprecated use KColorScheme(Button).background() instead. Color accessors in KGlobalSettings are broken because they do not take widget state into account. KColorScheme fixes this, as well as offering access to the full range of new color roles in KDE4. |
|
The layout scheme to use for dialog buttons Returns Returns the number of the scheme to use. See also KDialog.setButtonStyle |
|
Returns the button text color Returns the button text color Deprecated use KColorScheme(Button).foreground() instead. Color accessors in KGlobalSettings are broken because they do not take widget state into account. KColorScheme fixes this, as well as offering access to the full range of new color roles in KDE4. |
|
Calculates a color based on base to be used as alternating color for e.g. listviews. base - the base for the calculation Returns the calculated color See also alternateBackgroundColor Deprecated use KColorScheme([set]).background(AlternateBackground) instead. You shouldn't need to use this; all color sets now provide their own alternate background color (as well as a variety of other colors) that KColorScheme provides access to. If for some reason KColorScheme does not meet your needs, you probably want to look at KColorUtils for various methods to manipulate colors. |
|
Checks whether the cursor changes over icons. Returns the KDE setting for "change cursor over icon" |
|
Returns the preferred completion mode setting. Returns Completion. Default is CompletionPopup. |
|
Returns the KDE setting for the shortcut key to open context menus. Returns the key that pops up context menus. |
|
Returns the contrast for borders. Returns the contrast (between 0 for minimum and 10 for maximum contrast) |
|
Returns the contrast for borders as a floating point value. config - pointer to the config from which to read the contrast setting (the default is to use KGlobal.config()) Returns the contrast (between 0.0 for minimum and 1.0 for maximum contrast) |
|
Used to obtain the QPalette that will be used to set the application palette. This is only useful for configuration modules such as krdb and should not be used in normal circumstances. Returns the QPalette |
|
Emitted when the cursor theme has been changed. |
|
This function returns the desktop geometry for an application that needs to set the geometry of a widget on the screen manually. It takes into account the user's display settings (number of screens, Xinerama, etc), and the user's preferences (if KDE should be Xinerama aware). Note that this can break in multi-head (not Xinerama) mode because this point could be on multiple screens. Use with care.
point - a reference point for the widget, for instance one that the widget should be adjacent or on top of. Returns the geometry to use for the desktop. Note that it might not start at (0,0). |
|
This function returns the desktop geometry for an application that needs to set the geometry of a widget on the screen manually. It takes into account the user's display settings (number of screens, Xinerama, etc), and the user's preferences (if KDE should be Xinerama aware).
w - the widget in question. This is used to determine which screen to use in Xinerama or multi-head mode. Returns the geometry to use for the desktop. Note that it might not start at (0,0). |
|
The path to the desktop directory of the current user. Returns the user's desktop directory |
|
Returns a threshold in pixels for drag & drop operations. As long as the mouse movement has not exceeded this number of pixels in either X or Y direction no drag operation may be started. This prevents spurious drags when the user intended to click on something but moved the mouse a bit while doing so. For this to work you must save the position of the mouse (oldPos) in the QWidget.mousePressEvent(). When the position of the mouse (newPos) in a QWidget.mouseMoveEvent() exceeds this threshold you may start a drag which should originate from oldPos. Example code: void KColorCells.mousePressEvent( QMouseEvent *e ) { mOldPos = e->pos(); }Returns the threshold for drag & drop in pixels |
|
The path where documents are stored of the current user. Returns the path of the document directory |
|
Notifies all KDE applications on the current display of a change. This is typically called by kcontrol modules after changing the corresponding config file. Do not call this from a normal KDE application. |
|
Returns the default fixed font. Returns the default fixed font. |
|
Returns the default general font. Returns the default general font. |
|
Returns the default color for text highlights. Returns the default color for text highlights See also QPalette.hightlight() Deprecated use KColorScheme(Selection).background() instead. Color accessors in KGlobalSettings are broken because they do not take widget state into account. KColorScheme fixes this, as well as offering access to the full range of new color roles in KDE4. |
|
Returns the default color for highlighted text. Returns the default color for highlighted text See also QPalette.hightlightedText() Deprecated use KColorScheme(Selection).foreground() instead. Color accessors in KGlobalSettings are broken because they do not take widget state into account. KColorScheme fixes this, as well as offering access to the full range of new color roles in KDE4. |
|
Emitted when the global icon settings have been changed. group - the new group |
|
The default color to use for inactive texts. Returns the inactive text color |
|
The default color to use for inactive titles. Returns the inactive title color |
|
Returns whether tear-off handles are inserted in KMenus. Returns whether tear-off handles are inserted in KMenus.
|
|
Returns if the user specified multihead. In case the display has multiple screens, the return value of this function specifies if the user wants KDE to run on all of them or just on the primary On Windows, settings are retrieved from the system. Returns true if the user chose multi head |
|
Emitted when the application has changed its font in response to a KControl request. Normally widgets will update their fonts automatically, but you should connect to this to monitor global font changes, especially if you are using explicit fonts. Note: If you derive from a QWidget-based class, a faster method is to reimplement QWidget.changeEvent(). This is the preferred way to get informed about font updates. |
|
Emitted when the application has changed its palette due to a KControl request. Normally, widgets will update their palette automatically, but you should connect to this to program special behavior. |
|
Emitted when the application has changed its GUI style in response to a KControl request. Normally, widgets will update their styles automatically (as they would respond to an explicit setGUIStyle() call), but you should connect to this to program special behavior. |
|
Returns a font of approx. 48 pt. capable of showing text. text - the text to test Returns the font that is capable to show the text with 48 pt |
|
Returns the default link color. Returns the default link color Deprecated use KColorScheme([set]).foreground(LinkText) instead. Color accessors in KGlobalSettings are broken because they do not take widget state into account. KColorScheme fixes this, as well as offering access to the full range of new color roles in KDE4. Also note that link color is now a standard foreground role, defined for each color set; the link color for one set may be different from the link color for another set. |
|
Returns the default menu font. Returns the default menu font. |
|
This returns the current mouse settings. On Windows, settings are retrieved from the system. Returns the current mouse settings |
|
Whether the user wishes to use opaque resizing. Primarily intended for QSplitter.setOpaqueResize() Returns Returns true if user wants to use opaque resizing. |
|
Return the KGlobalSettings singleton. This is used to connect to its signals, to be notified of changes. |
|
Emitted when the global settings have been changed. KGlobalSettings takes care of calling reparseConfiguration on KGlobal.config() so that applications/classes using this only have to re-read the configuration category - the category among the SettingsCategory enum. |
|
Returns if the sorted column in a K3ListView shall be drawn with a shaded background color. Returns true if the sorted column shall be shaded |
|
Returns the KDE setting for context menus. Returns whether context menus should be shown on button press or button release (click). |
|
This function determines if the user wishes to see previews for the selected url Returns Returns true if user wants to show previews. |
|
This function determines if the user wishes to see icons on the push buttons. Returns Returns true if user wants to show icons. |
|
Returns whether KDE runs in single (default) or double click mode. see http://developer.kde.org/documentation/standards/kde/style/mouse/index.html Returns true if single click mode, or false if double click mode.
|
|
Returns the smallest readable font. This can be used in dockers, rulers and other places where space is at a premium. |
|
This function returns the desktop geometry for an application's splash screen. It takes into account the user's display settings (number of screens, Xinerama, etc), and the user's preferences (if KDE should be Xinerama aware). Returns the geometry to use for the desktop. Note that it might not start at (0,0). |
|
Returns the default taskbar font. Returns the default taskbar font. |
|
Returns the default text color. Returns the default text color See also QPalette.text() Deprecated use KColorScheme(View).foreground() instead. Color accessors in KGlobalSettings are broken because they do not take widget state into account. KColorScheme fixes this, as well as offering access to the full range of new color roles in KDE4. |
|
Returns the default toolbar font. Returns the default toolbar font. |
|
The default color to use when highlighting toolbar buttons. Returns the toolbar highlight color Deprecated use KColorScheme(Button).decoration(HoverColor) instead. Color accessors in KGlobalSettings are broken because they do not take widget state into account. KColorScheme fixes this, as well as offering access to the full range of new color roles in KDE4. Note that each color set now provides its own colors to be used for focus and hover effects. |
|
Emitted when the settings for toolbars have been changed. KToolBar will know what to do. |
|
Returns the default color for visited links. Returns the default color for visited links Deprecated use KColorScheme([set]).foreground(VisitedText) instead. Color accessors in KGlobalSettings are broken because they do not take widget state into account. KColorScheme fixes this, as well as offering access to the full range of new color roles in KDE4. Also note that visited link color is now a standard foreground role, defined for each color set; the cisited link color for one set may be different from the visited link color for another set. |
|
Checks whether to show feedback when in item (specifically an icon) is activated. Returns whether to show some feedback when an item is activated. |
|
Returns the speed of the visual activation feedback. Returns the speed of the visual activation feedback, between 0 for minimum and 100 for maximum speed |
|
Typically, QScrollView derived classes can be scrolled fast by holding down the Ctrl-button during wheel-scrolling. But QTextEdit and derived classes perform zooming instead of fast scrolling. This value determines whether the user wants to zoom or scroll fast with Ctrl-wheelscroll. Returns true if the user wishes to zoom with the mouse wheel, false for scrolling |
|
Returns the default window title font. Returns the default window title font. |
PaletteChanged | - | ||
FontChanged | - | ||
StyleChanged | - | ||
SettingsChanged | - | ||
IconChanged | - | ||
CursorChanged | - | ||
ToolbarStyleChanged | - | ||
ClipboardConfigChanged | - | ||
BlockShortcuts | - |
CompletionNone | - | No completion is used. | |
CompletionAuto | - | Text is automatically filled in whenever possible. | |
CompletionMan | - | Same as automatic except shortest match is used for completion. | |
CompletionShell | - | Complete text much in the same way as a typical *nix shell would. | |
CompletionPopup | - | Lists all possible matches in a popup list-box to choose from. | |
CompletionPopupAuto | - | Lists all possible matches in a popup list-box to choose from, and automatically fill the result whenever possible. |
SETTINGS_MOUSE | - | ||
SETTINGS_COMPLETION | - | ||
SETTINGS_PATHS | - | ||
SETTINGS_POPUPMENU | - | ||
SETTINGS_QT | - | ||
SETTINGS_SHORTCUTS | - |
Disable | - | disable tear - off handles | |
ApplicationLevel | - | enable on application level | |
Enable | - | enable tear - off handles |