• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdegames API Reference
  • KDE Home
  • Contact Us
 

libkdegames

Public Types | Public Slots | Public Member Functions | List of all members
KgThemeSelector Class Reference

#include <KgThemeSelector>

Inheritance diagram for KgThemeSelector:
Inheritance graph
[legend]

Public Types

enum  Option { DefaultBehavior = 0, EnableNewStuffDownload = 1 << 0 }
 

Public Slots

void showAsDialog (const QString &caption=QString())
 

Public Member Functions

 KgThemeSelector (KgThemeProvider *provider, Options options=DefaultBehavior, QWidget *parent=0)
 
virtual ~KgThemeSelector ()
 

Detailed Description

Theme selection widget.

This widget allows the user to change the theme selection of a KgThemeProvider. Selections are immediately applied to allow the user to quickly preview themes. In simple cases, the widget can be used standalone with the showAsDialog() method.

K_GLOBAL_STATIC_WITH_ARGS(KgThemeSelector, selector, (provider))
...
selector->showAsDialog();

Definition at line 42 of file kgthemeselector.h.

Member Enumeration Documentation

enum KgThemeSelector::Option

Flags which control the behavior of KgThemeSelector.

Enumerator
DefaultBehavior 
EnableNewStuffDownload 

Enable downloading of additional themes with KNewStuff3.

This requires a KNS3 config file to be installed for this app.

Definition at line 48 of file kgthemeselector.h.

Constructor & Destructor Documentation

KgThemeSelector::KgThemeSelector ( KgThemeProvider *  provider,
Options  options = DefaultBehavior,
QWidget *  parent = 0 
)
explicit

Definition at line 62 of file kgthemeselector.cpp.

KgThemeSelector::~KgThemeSelector ( )
virtual

Definition at line 95 of file kgthemeselector.cpp.

Member Function Documentation

void KgThemeSelector::showAsDialog ( const QString &  caption = QString())
slot

Create and show a non-modal dialog which displays this selector.

The dialog will be automatically cleaned up when it's closed, but it is ensured that the selector is not deleted.

This method does nothing if the selector widget is already visible.

Definition at line 214 of file kgthemeselector.cpp.


The documentation for this class was generated from the following files:
  • kgthemeselector.h
  • kgthemeselector.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:44:35 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

libkdegames

Skip menu "libkdegames"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdegames API Reference

Skip menu "kdegames API Reference"
  • granatier
  • kapman
  • kblackbox
  • kgoldrunner
  • kigo
  • kmahjongg
  • KShisen
  • ksquares
  • libkdegames
  •   highscore
  •   libkdegamesprivate
  •     kgame
  • libkmahjongg
  • palapeli
  •   libpala

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal