Qtopia Home - Classes - Annotated - Functions - Qt Embedded

SettingsWidget Class Reference

The SettingsWidget class is a virtual base class for Qtopia Desktop component configuration widgets. More...

#include <common/settingswidget.h>

List of all member functions.

Public Members


Detailed Description

The SettingsWidget class is a virtual base class for Qtopia Desktop component configuration widgets.

Configuration widgets of all Qtopia Desktop components are embedded in a tabbed configuration dialog. Inherit your configuration class from this base class to add a configuration page for your Qtopia Desktop component to the tabbed dialog.

Tip: Create your configuration widget GUI using Qt Designer and use multiple inheritance to inherit from this base class and the GUI widget.


Member Function Documentation

void SettingsWidget::applySettings () [pure virtual]

This function is called by Qtopia Desktop when the user selects the "Apply" or "Ok" action in the Qtopia Desktop configuration dialog. A Qtopia Desktop components implementation of this function should store the configuration selected in the configuration GUI widget to disk.

void SettingsWidget::resetSettings () [pure virtual]

This function is called by Qtopia Desktop when the user selects the "Reset" action in the Qtopia Desktop configuration dialog. A Qtopia Desktop components implementation of this function should reset the GUI configuration widget to the configuration values currently on disk.

QWidget * SettingsWidget::widget () [pure virtual]

This function is called by Qtopia Desktop on startup to build the tabbed configuration dialog. A Qtopia Desktop components implementation of this function should return a pointer to it's configuration widget.


This file is part of the Qtopia platform, copyright © 1995-2004 Trolltech, all rights reserved.


Copyright © 2001-2004 Trolltech Trademarks
Qtopia version 2.0.1