summaryrefslogtreecommitdiffstats
path: root/libkdepim/kprefsdialog.h
diff options
context:
space:
mode:
Diffstat (limited to 'libkdepim/kprefsdialog.h')
-rw-r--r--libkdepim/kprefsdialog.h121
1 files changed, 63 insertions, 58 deletions
diff --git a/libkdepim/kprefsdialog.h b/libkdepim/kprefsdialog.h
index 3667a7ae9..e94b4a44a 100644
--- a/libkdepim/kprefsdialog.h
+++ b/libkdepim/kprefsdialog.h
@@ -41,7 +41,7 @@ class TQComboBox;
class TQLabel;
class TQSpinBox;
class TQButtonGroup;
-class QTimeEdit;
+class TQTimeEdit;
class KTimeEdit;
class KDateEdit;
class KURLRequester;
@@ -55,9 +55,10 @@ class KURLRequester;
KPrefsDialog. The control element consists of a set of widgets for handling
a certain type of configuration information.
*/
-class KDE_EXPORT KPrefsWid : public QObject
+class KDE_EXPORT KPrefsWid : public TQObject
{
Q_OBJECT
+ TQ_OBJECT
public:
/**
This function is called to read value of the setting from the
@@ -92,15 +93,15 @@ class KDE_EXPORT KPrefsWidBool : public KPrefsWid
{
public:
/**
- Create a bool value control element consisting of a QCheckbox.
+ Create a bool value control element consisting of a TQCheckbox.
@param item The KConfigSkeletonItem representing the preferences entry.
- @param parent Parent widget.
+ @param tqparent Parent widget.
*/
- KPrefsWidBool( KConfigSkeleton::ItemBool *item, TQWidget *parent );
+ KPrefsWidBool( KConfigSkeleton::ItemBool *item, TQWidget *tqparent );
/**
- Return the QCheckbox used by this control element.
+ Return the TQCheckbox used by this control element.
*/
TQCheckBox *checkBox();
@@ -130,9 +131,9 @@ class KDE_EXPORT KPrefsWidInt : public KPrefsWid
spinbox.
@param item The KConfigSkeletonItem representing the preferences entry.
- @param parent Parent widget.
+ @param tqparent Parent widget.
*/
- KPrefsWidInt( KConfigSkeleton::ItemInt *item, TQWidget *parent );
+ KPrefsWidInt( KConfigSkeleton::ItemInt *item, TQWidget *tqparent );
/**
Return TQLabel used by this control element.
@@ -170,9 +171,9 @@ class KDE_EXPORT KPrefsWidTime : public KPrefsWid
Create a time value control element consisting of a label and a spinbox.
@param item The KConfigSkeletonItem representing the preferences entry.
- @param parent Parent widget.
+ @param tqparent Parent widget.
*/
- KPrefsWidTime( KConfigSkeleton::ItemDateTime *item, TQWidget *parent );
+ KPrefsWidTime( KConfigSkeleton::ItemDateTime *item, TQWidget *tqparent );
/**
Return TQLabel used by this widget.
@@ -208,9 +209,9 @@ class KDE_EXPORT KPrefsWidDuration : public KPrefsWid
spinbox.
@param item The KConfigSkeletonItem representing the preferences entry.
- @param parent Parent widget.
+ @param tqparent Parent widget.
*/
- KPrefsWidDuration( KConfigSkeleton::ItemDateTime *item, TQWidget *parent );
+ KPrefsWidDuration( KConfigSkeleton::ItemDateTime *item, TQWidget *tqparent );
/**
Return TQLabel used by this widget.
@@ -219,7 +220,7 @@ class KDE_EXPORT KPrefsWidDuration : public KPrefsWid
/**
Return TQSpinBox used by this widget.
*/
- QTimeEdit *timeEdit();
+ TQTimeEdit *timeEdit();
void readConfig();
void writeConfig();
@@ -228,7 +229,7 @@ class KDE_EXPORT KPrefsWidDuration : public KPrefsWid
KConfigSkeleton::ItemDateTime *mItem;
TQLabel *mLabel;
- QTimeEdit *mTimeEdit;
+ TQTimeEdit *mTimeEdit;
};
/**
@@ -245,9 +246,9 @@ class KDE_EXPORT KPrefsWidDate : public KPrefsWid
Create a time value control element consisting of a label and a date box.
@param item The KConfigSkeletonItem representing the preferences entry.
- @param parent Parent widget.
+ @param tqparent Parent widget.
*/
- KPrefsWidDate( KConfigSkeleton::ItemDateTime *item, TQWidget *parent );
+ KPrefsWidDate( KConfigSkeleton::ItemDateTime *item, TQWidget *tqparent );
/**
Return TQLabel used by this widget.
@@ -278,15 +279,16 @@ class KDE_EXPORT KPrefsWidDate : public KPrefsWid
class KDE_EXPORT KPrefsWidColor : public KPrefsWid
{
Q_OBJECT
+ TQ_OBJECT
public:
/**
Create a color value control element consisting of a test field and a
button for opening a color dialog.
@param item The KConfigSkeletonItem representing the preferences entry.
- @param parent Parent widget.
+ @param tqparent Parent widget.
*/
- KPrefsWidColor( KConfigSkeleton::ItemColor *item, TQWidget *parent );
+ KPrefsWidColor( KConfigSkeleton::ItemColor *item, TQWidget *tqparent );
/**
Destruct color setting widget.
*/
@@ -320,17 +322,18 @@ class KDE_EXPORT KPrefsWidColor : public KPrefsWid
class KDE_EXPORT KPrefsWidFont : public KPrefsWid
{
Q_OBJECT
+ TQ_OBJECT
public:
/**
Create a font value control element consisting of a test field and a
button for opening a font dialog.
@param item The KConfigSkeletonItem representing the preferences entry.
- @param parent Parent widget.
+ @param tqparent Parent widget.
@param sampleText Sample text for previewing the selected font.
*/
KPrefsWidFont( KConfigSkeleton::ItemFont *item,
- TQWidget *parent, const TQString &sampleText );
+ TQWidget *tqparent, const TQString &sampleText );
/**
Destruct font setting widget.
*/
@@ -382,9 +385,9 @@ class KDE_EXPORT KPrefsWidRadios : public KPrefsWid
with several radio buttons.
@param item The KConfigSkeletonItem representing the preferences entry.
- @param parent Parent widget.
+ @param tqparent Parent widget.
*/
- KPrefsWidRadios( KConfigSkeleton::ItemEnum *item, TQWidget *parent );
+ KPrefsWidRadios( KConfigSkeleton::ItemEnum *item, TQWidget *tqparent );
virtual ~KPrefsWidRadios();
/**
@@ -394,7 +397,7 @@ class KDE_EXPORT KPrefsWidRadios : public KPrefsWid
@param whatsThis What's This help for the button.
*/
void addRadio( const TQString &text,
- const TQString &whatsThis = TQString::null );
+ const TQString &whatsThis = TQString() );
/**
Return the box widget used by this widget.
@@ -430,9 +433,9 @@ class KDE_EXPORT KPrefsWidCombo : public KPrefsWid
combo box.
@param item The KConfigSkeletonItem representing the preferences entry.
- @param parent Parent widget.
+ @param tqparent Parent widget.
*/
- KPrefsWidCombo( KConfigSkeleton::ItemEnum *item, TQWidget *parent );
+ KPrefsWidCombo( KConfigSkeleton::ItemEnum *item, TQWidget *tqparent );
virtual ~KPrefsWidCombo();
void readConfig();
@@ -463,10 +466,10 @@ class KDE_EXPORT KPrefsWidString : public KPrefsWid
line edit.
@param item The KConfigSkeletonItem representing the preferences entry.
- @param parent Parent widget.
+ @param tqparent Parent widget.
@param echomode Describes how a line edit should display its contents.
*/
- KPrefsWidString( KConfigSkeleton::ItemString *item, TQWidget *parent,
+ KPrefsWidString( KConfigSkeleton::ItemString *item, TQWidget *tqparent,
TQLineEdit::EchoMode echomode=TQLineEdit::Normal );
/**
Destructor.
@@ -510,12 +513,12 @@ class KDE_EXPORT KPrefsWidPath : public KPrefsWid
line edit.
@param item The KConfigSkeletonItem representing the preferences entry.
- @param parent Parent widget.
+ @param tqparent Parent widget.
@param filter URLRequester filter
@param mode Describes how a line edit should display its contents.
*/
- KPrefsWidPath( KConfigSkeleton::ItemPath *item, TQWidget *parent,
- const TQString &filter = TQString::null, uint mode = KFile::File );
+ KPrefsWidPath( KConfigSkeleton::ItemPath *item, TQWidget *tqparent,
+ const TQString &filter = TQString(), uint mode = KFile::File );
/**
Destructor.
*/
@@ -576,116 +579,116 @@ class KDE_EXPORT KPrefsWidManager
Register a @ref KPrefsWidBool object.
@param item The KConfigSkeletonItem representing the preferences entry.
- @param parent Parent widget.
+ @param tqparent Parent widget.
*/
KPrefsWidBool *addWidBool( KConfigSkeleton::ItemBool *item,
- TQWidget *parent );
+ TQWidget *tqparent );
/**
Register a @ref KPrefsWidInt object.
@param item The KConfigSkeletonItem representing the preferences entry.
- @param parent Parent widget.
+ @param tqparent Parent widget.
*/
KPrefsWidInt *addWidInt( KConfigSkeleton::ItemInt *item,
- TQWidget *parent );
+ TQWidget *tqparent );
/**
Register a @ref KPrefsWidDate object.
@param item The KConfigSkeletonItem representing the preferences entry.
- @param parent Parent widget.
+ @param tqparent Parent widget.
*/
KPrefsWidDate *addWidDate( KConfigSkeleton::ItemDateTime *item,
- TQWidget *parent );
+ TQWidget *tqparent );
/**
Register a @ref KPrefsWidTime object.
@param item The KConfigSkeletonItem representing the preferences entry.
- @param parent Parent widget.
+ @param tqparent Parent widget.
*/
KPrefsWidTime *addWidTime( KConfigSkeleton::ItemDateTime *item,
- TQWidget *parent );
+ TQWidget *tqparent );
/**
Register a @ref KPrefsWidDuration object.
@param item The KConfigSkeletonItem representing the preferences entry.
- @param parent Parent widget.
+ @param tqparent Parent widget.
*/
KPrefsWidDuration *addWidDuration( KConfigSkeleton::ItemDateTime *item,
- TQWidget *parent );
+ TQWidget *tqparent );
/**
Register a @ref KPrefsWidColor object.
@param item The KConfigSkeletonItem representing the preferences entry.
- @param parent Parent widget.
+ @param tqparent Parent widget.
*/
KPrefsWidColor *addWidColor( KConfigSkeleton::ItemColor *item,
- TQWidget *parent );
+ TQWidget *tqparent );
/**
Register a @ref KPrefsWidRadios object. The choices represented by the
given item object are automatically added as radio buttons.
@param item The KConfigSkeletonItem representing the preferences entry.
- @param parent Parent widget.
+ @param tqparent Parent widget.
*/
KPrefsWidRadios *addWidRadios( KConfigSkeleton::ItemEnum *item,
- TQWidget *parent );
+ TQWidget *tqparent );
/**
Register a @ref KPrefsWidCombo object. The choices represented by the
given item object are automatically added to the combo box.
@param item The KConfigSkeletonItem representing the preferences entry.
- @param parent Parent widget.
+ @param tqparent Parent widget.
*/
KPrefsWidCombo *addWidCombo( KConfigSkeleton::ItemEnum *item,
- TQWidget *parent );
+ TQWidget *tqparent );
/**
Register a @ref KPrefsWidString object.
@param item The KConfigSkeletonItem representing the preferences entry.
- @param parent Parent widget.
+ @param tqparent Parent widget.
*/
KPrefsWidString *addWidString( KConfigSkeleton::ItemString *item,
- TQWidget *parent );
+ TQWidget *tqparent );
/**
Register a path @ref KPrefsWidPath object.
@param item The KConfigSkeletonItem representing the preferences entry.
- @param parent Parent widget.
+ @param tqparent Parent widget.
@param filter URLRequester filter
@param mode URLRequester mode
*/
- KPrefsWidPath *addWidPath ( KConfigSkeleton::ItemPath *item, TQWidget *parent,
- const TQString &filter = TQString::null,
+ KPrefsWidPath *addWidPath ( KConfigSkeleton::ItemPath *item, TQWidget *tqparent,
+ const TQString &filter = TQString(),
uint mode = KFile::File );
/**
Register a password @ref KPrefsWidString object, with echomode set to TQLineEdit::Password.
@param item The KConfigSkeletonItem representing the preferences entry.
- @param parent Parent widget.
+ @param tqparent Parent widget.
*/
KPrefsWidString *addWidPassword ( KConfigSkeleton::ItemString *item,
- TQWidget *parent );
+ TQWidget *tqparent );
/**
Register a @ref KPrefsWidFont object.
@param item The KConfigSkeletonItem representing the preferences
entry.
- @param parent Parent widget.
+ @param tqparent Parent widget.
@param sampleText Sample text for previewing the selected font.
*/
KPrefsWidFont *addWidFont( KConfigSkeleton::ItemFont *item,
- TQWidget *parent, const TQString &sampleText );
+ TQWidget *tqparent, const TQString &sampleText );
/** Set all widgets to default values. */
void setWidDefaults();
@@ -718,16 +721,17 @@ class KDE_EXPORT KPrefsWidManager
class KDE_EXPORT KPrefsDialog : public KDialogBase, public KPrefsWidManager
{
Q_OBJECT
+ TQ_OBJECT
public:
/**
Create a KPrefsDialog for a KPrefs object.
@param prefs KPrefs object used to access te configuration.
- @param parent Parent widget.
+ @param tqparent Parent widget.
@param name Widget name.
@param modal true, if dialog has to be modal, false for non-modal.
*/
- KPrefsDialog( KConfigSkeleton *prefs, TQWidget *parent = 0, char *name = 0,
+ KPrefsDialog( KConfigSkeleton *prefs, TQWidget *tqparent = 0, char *name = 0,
bool modal = false );
/**
Destructor.
@@ -771,8 +775,9 @@ class KDE_EXPORT KPrefsDialog : public KDialogBase, public KPrefsWidManager
class KDE_EXPORT KPrefsModule : public KCModule, public KPrefsWidManager
{
Q_OBJECT
+ TQ_OBJECT
public:
- KPrefsModule( KConfigSkeleton *, TQWidget *parent = 0, const char *name = 0 );
+ KPrefsModule( KConfigSkeleton *, TQWidget *tqparent = 0, const char *name = 0 );
virtual void addWid( KPrefsWid * );