libkdegames
KGameThemeSelector Class Reference
#include <KGameThemeSelector>
Inheritance diagram for 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
KConfigDialog *dialog = new KConfigDialog(this, "settings", Settings::self()); dialog->addPage(new KGameThemeSelector(dialog, Settings::self()), i18n("Theme"), "game_theme"); dialog->show();
Definition at line 48 of file kgamethemeselector.h.
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 () |
Member Enumeration Documentation
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 52 of file kgamethemeselector.cpp.
| KGameThemeSelector::~KGameThemeSelector | ( | ) | [virtual] |
Definition at line 60 of file kgamethemeselector.cpp.
The documentation for this class was generated from the following files:
KDE 4.1 API Reference