parley
#include <KGameThemeSelector>

Public Types | |
enum | NewStuffState { NewStuffDisableDownload, NewStuffEnableDownload } |
Public Member Functions | |
KGameThemeSelector (QWidget *parent, KConfigSkeleton *config, KGameThemeSelector::NewStuffState knsflags=KGameThemeSelector::NewStuffEnableDownload, const QString &groupName=QLatin1String("KGameTheme"), const QString &directory=QLatin1String("themes")) | |
virtual | ~KGameThemeSelector () |
Detailed Description
A widget used to select the game's theme.
The most common way to use the theme selector is to add it as page to a KConfigDialog
This will create a page in your KConfigDialog with the title "Theme" and using the "game_theme" icon. By default, the widget will search in the share/apps/appname/themes directory for .desktop files with a group called "KGameTheme".
Definition at line 48 of file kgamethemeselector.h.
Member Enumeration Documentation
Enumerator | |
---|---|
NewStuffDisableDownload | |
NewStuffEnableDownload |
Definition at line 52 of file kgamethemeselector.h.
Constructor & Destructor Documentation
KGameThemeSelector::KGameThemeSelector | ( | QWidget * | parent, |
KConfigSkeleton * | config, | ||
KGameThemeSelector::NewStuffState | knsflags = KGameThemeSelector::NewStuffEnableDownload , |
||
const QString & | groupName = QLatin1String("KGameTheme") , |
||
const QString & | directory = QLatin1String("themes") |
||
) |
Load a specific theme file.
- Parameters
-
groupName the title of the config group in the theme .desktop file directory subdirectory (of share/apps/appname) to search in
- Returns
- true if the theme files and properties could be loaded
Definition at line 53 of file kgamethemeselector.cpp.
|
virtual |
Definition at line 61 of file kgamethemeselector.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:42:06 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.