Source Code (Use browser search to find items of interest.)
Class Index
kimageshop'GeneralTab (./koffice/kimageshop/ui/kis_dlg_preferences.h:34)
class GeneralTab : public QWidget
{
Q_OBJECT
public:
GeneralTab( QWidget *_parent = 0, const char *_name = 0 );
bool saveOnExit();
private:
QCheckBox *m_saveOnExit;
};
/**
* "Directories"-tab for preferences dialog
*/
kimageshop'GeneralTab::GeneralTab() (./koffice/kimageshop/ui/kis_dlg_preferences.cc:33)
GeneralTab::GeneralTab( QWidget *_parent, const char *_name )
: QWidget( _parent, _name )
{
// Layout
QGridLayout* grid = new QGridLayout( this, 3, 1, 7, 15);
// checkbutton
m_saveOnExit = new QCheckBox( i18n( "Save and restore dialog geometries" ), this );
grid->addWidget( m_saveOnExit, 0, 0 );
// only for testing it
//KIntNumInput* i = new KIntNumInput( "a", 1, 100, 1, 1, QString::null, 10, true, this );
KIntNumInput* i = new KIntNumInput(1, this, 10, "a");
i->setRange(1, 100, 1);
grid->addWidget( i, 1, 0 );
grid->setRowStretch( 2, 1 );
}
kimageshop'GeneralTab::saveOnExit() (./koffice/kimageshop/ui/kis_dlg_preferences.cc:52)
bool GeneralTab::saveOnExit()
{
return m_saveOnExit->isChecked();
}