summaryrefslogtreecommitdiffstats
path: root/libkdepim/kprefsdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libkdepim/kprefsdialog.cpp')
-rw-r--r--libkdepim/kprefsdialog.cpp128
1 files changed, 64 insertions, 64 deletions
diff --git a/libkdepim/kprefsdialog.cpp b/libkdepim/kprefsdialog.cpp
index 38adc8fa..ca848911 100644
--- a/libkdepim/kprefsdialog.cpp
+++ b/libkdepim/kprefsdialog.cpp
@@ -50,18 +50,18 @@
namespace KPrefsWidFactory {
-KPrefsWid *create( KConfigSkeletonItem *item, TQWidget *tqparent )
+KPrefsWid *create( KConfigSkeletonItem *item, TQWidget *parent )
{
KConfigSkeleton::ItemBool *boolItem =
dynamic_cast<KConfigSkeleton::ItemBool *>( item );
if ( boolItem ) {
- return new KPrefsWidBool( boolItem, tqparent );
+ return new KPrefsWidBool( boolItem, parent );
}
KConfigSkeleton::ItemString *stringItem =
dynamic_cast<KConfigSkeleton::ItemString *>( item );
if ( stringItem ) {
- return new KPrefsWidString( stringItem, tqparent );
+ return new KPrefsWidString( stringItem, parent );
}
KConfigSkeleton::ItemEnum *enumItem =
@@ -72,7 +72,7 @@ KPrefsWid *create( KConfigSkeletonItem *item, TQWidget *tqparent )
kdError() << "KPrefsWidFactory::create(): Enum has no choices." << endl;
return 0;
} else {
- KPrefsWidRadios *radios = new KPrefsWidRadios( enumItem, tqparent );
+ KPrefsWidRadios *radios = new KPrefsWidRadios( enumItem, parent );
TQValueList<KConfigSkeleton::ItemEnum::Choice>::ConstIterator it;
for( it = choices.begin(); it != choices.end(); ++it ) {
radios->addRadio( (*it).label );
@@ -84,7 +84,7 @@ KPrefsWid *create( KConfigSkeletonItem *item, TQWidget *tqparent )
KConfigSkeleton::ItemInt *intItem =
dynamic_cast<KConfigSkeleton::ItemInt *>( item );
if ( intItem ) {
- return new KPrefsWidInt( intItem, tqparent );
+ return new KPrefsWidInt( intItem, parent );
}
return 0;
@@ -99,10 +99,10 @@ TQValueList<TQWidget *> KPrefsWid::widgets() const
}
-KPrefsWidBool::KPrefsWidBool( KConfigSkeleton::ItemBool *item, TQWidget *tqparent )
+KPrefsWidBool::KPrefsWidBool( KConfigSkeleton::ItemBool *item, TQWidget *parent )
: mItem( item )
{
- mCheck = new TQCheckBox( item->label(), tqparent);
+ mCheck = new TQCheckBox( item->label(), parent);
connect( mCheck, TQT_SIGNAL( clicked() ), TQT_SIGNAL( changed() ) );
if ( !item->whatsThis().isNull() ) {
TQWhatsThis::add( mCheck, item->whatsThis() );
@@ -133,11 +133,11 @@ TQValueList<TQWidget *> KPrefsWidBool::widgets() const
KPrefsWidInt::KPrefsWidInt( KConfigSkeleton::ItemInt *item,
- TQWidget *tqparent )
+ TQWidget *parent )
: mItem( item )
{
- mLabel = new TQLabel( mItem->label()+':', tqparent );
- mSpin = new TQSpinBox( tqparent );
+ mLabel = new TQLabel( mItem->label()+':', parent );
+ mSpin = new TQSpinBox( parent );
if ( !item->minValue().isNull() ) {
mSpin->setMinValue( item->minValue().toInt() );
}
@@ -183,12 +183,12 @@ TQValueList<TQWidget *> KPrefsWidInt::widgets() const
KPrefsWidColor::KPrefsWidColor( KConfigSkeleton::ItemColor *item,
- TQWidget *tqparent )
+ TQWidget *parent )
: mItem( item )
{
- mButton = new KColorButton( tqparent );
+ mButton = new KColorButton( parent );
connect( mButton, TQT_SIGNAL( changed( const TQColor & ) ), TQT_SIGNAL( changed() ) );
- mLabel = new TQLabel( mButton, mItem->label()+':', tqparent );
+ mLabel = new TQLabel( mButton, mItem->label()+':', parent );
mLabel->setBuddy( mButton );
TQString whatsThis = mItem->whatsThis();
if (!whatsThis.isNull()) {
@@ -223,15 +223,15 @@ KColorButton *KPrefsWidColor::button()
KPrefsWidFont::KPrefsWidFont( KConfigSkeleton::ItemFont *item,
- TQWidget *tqparent, const TQString &sampleText )
+ TQWidget *parent, const TQString &sampleText )
: mItem( item )
{
- mLabel = new TQLabel( mItem->label()+':', tqparent );
+ mLabel = new TQLabel( mItem->label()+':', parent );
- mPreview = new TQLabel( sampleText, tqparent );
+ mPreview = new TQLabel( sampleText, parent );
mPreview->setFrameStyle( TQFrame::Panel | TQFrame::Sunken );
- mButton = new TQPushButton( i18n("Choose..."), tqparent );
+ mButton = new TQPushButton( i18n("Choose..."), parent );
connect( mButton, TQT_SIGNAL( clicked() ), TQT_SLOT( selectFont() ) );
TQString whatsThis = mItem->whatsThis();
if (!whatsThis.isNull()) {
@@ -281,11 +281,11 @@ void KPrefsWidFont::selectFont()
KPrefsWidTime::KPrefsWidTime( KConfigSkeleton::ItemDateTime *item,
- TQWidget *tqparent )
+ TQWidget *parent )
: mItem( item )
{
- mLabel = new TQLabel( mItem->label()+':', tqparent );
- mTimeEdit = new KTimeEdit( tqparent );
+ mLabel = new TQLabel( mItem->label()+':', parent );
+ mTimeEdit = new KTimeEdit( parent );
mLabel->setBuddy( mTimeEdit );
connect( mTimeEdit, TQT_SIGNAL( timeChanged( TQTime ) ), TQT_SIGNAL( changed() ) );
TQString whatsThis = mItem->whatsThis();
@@ -320,11 +320,11 @@ KTimeEdit *KPrefsWidTime::timeEdit()
KPrefsWidDuration::KPrefsWidDuration( KConfigSkeleton::ItemDateTime *item,
- TQWidget *tqparent )
+ TQWidget *parent )
: mItem( item )
{
- mLabel = new TQLabel( mItem->label()+':', tqparent );
- mTimeEdit = new TQTimeEdit( tqparent );
+ mLabel = new TQLabel( mItem->label()+':', parent );
+ mTimeEdit = new TQTimeEdit( parent );
mLabel->setBuddy( mTimeEdit );
mTimeEdit->setAutoAdvance( true );
mTimeEdit->setDisplay( TQTimeEdit::Hours | TQTimeEdit::Minutes );
@@ -361,11 +361,11 @@ TQTimeEdit *KPrefsWidDuration::timeEdit()
KPrefsWidDate::KPrefsWidDate( KConfigSkeleton::ItemDateTime *item,
- TQWidget *tqparent )
+ TQWidget *parent )
: mItem( item )
{
- mLabel = new TQLabel( mItem->label()+':', tqparent );
- mDateEdit = new KDateEdit( tqparent );
+ mLabel = new TQLabel( mItem->label()+':', parent );
+ mDateEdit = new KDateEdit( parent );
mLabel->setBuddy( mDateEdit );
connect( mDateEdit, TQT_SIGNAL( dateChanged( const TQDate& ) ), TQT_SIGNAL( changed() ) );
TQString whatsThis = mItem->whatsThis();
@@ -398,10 +398,10 @@ KDateEdit *KPrefsWidDate::dateEdit()
KPrefsWidRadios::KPrefsWidRadios( KConfigSkeleton::ItemEnum *item,
- TQWidget *tqparent )
+ TQWidget *parent )
: mItem( item )
{
- mBox = new TQButtonGroup( 1, Qt::Horizontal, mItem->label(), tqparent );
+ mBox = new TQButtonGroup( 1, Qt::Horizontal, mItem->label(), parent );
connect( mBox, TQT_SIGNAL( clicked( int ) ), TQT_SIGNAL( changed() ) );
}
@@ -440,10 +440,10 @@ TQValueList<TQWidget *> KPrefsWidRadios::widgets() const
}
KPrefsWidCombo::KPrefsWidCombo( KConfigSkeleton::ItemEnum *item,
- TQWidget *tqparent )
+ TQWidget *parent )
: mItem( item )
{
- TQHBox *hbox = new TQHBox(tqparent);
+ TQHBox *hbox = new TQHBox(parent);
new TQLabel( mItem->label(), hbox );
mCombo = new TQComboBox( hbox );
connect( mCombo, TQT_SIGNAL( activated( int ) ), TQT_SIGNAL( changed() ) );
@@ -476,12 +476,12 @@ TQComboBox* KPrefsWidCombo::comboBox()
}
KPrefsWidString::KPrefsWidString( KConfigSkeleton::ItemString *item,
- TQWidget *tqparent,
+ TQWidget *parent,
TQLineEdit::EchoMode echomode )
: mItem( item )
{
- mLabel = new TQLabel( mItem->label()+':', tqparent );
- mEdit = new TQLineEdit( tqparent );
+ mLabel = new TQLabel( mItem->label()+':', parent );
+ mEdit = new TQLineEdit( parent );
mLabel->setBuddy( mEdit );
connect( mEdit, TQT_SIGNAL( textChanged( const TQString & ) ),
TQT_SIGNAL( changed() ) );
@@ -525,12 +525,12 @@ TQValueList<TQWidget *> KPrefsWidString::widgets() const
}
-KPrefsWidPath::KPrefsWidPath( KConfigSkeleton::ItemPath *item, TQWidget *tqparent,
+KPrefsWidPath::KPrefsWidPath( KConfigSkeleton::ItemPath *item, TQWidget *parent,
const TQString &filter, uint mode )
: mItem( item )
{
- mLabel = new TQLabel( mItem->label()+':', tqparent );
- mURLRequester = new KURLRequester( tqparent );
+ mLabel = new TQLabel( mItem->label()+':', parent );
+ mURLRequester = new KURLRequester( parent );
mLabel->setBuddy( mURLRequester );
mURLRequester->setMode( mode );
mURLRequester->setFilter( filter );
@@ -590,49 +590,49 @@ void KPrefsWidManager::addWid( KPrefsWid *wid )
}
KPrefsWidBool *KPrefsWidManager::addWidBool( KConfigSkeleton::ItemBool *item,
- TQWidget *tqparent )
+ TQWidget *parent )
{
- KPrefsWidBool *w = new KPrefsWidBool( item, tqparent );
+ KPrefsWidBool *w = new KPrefsWidBool( item, parent );
addWid( w );
return w;
}
KPrefsWidTime *KPrefsWidManager::addWidTime( KConfigSkeleton::ItemDateTime *item,
- TQWidget *tqparent )
+ TQWidget *parent )
{
- KPrefsWidTime *w = new KPrefsWidTime( item, tqparent );
+ KPrefsWidTime *w = new KPrefsWidTime( item, parent );
addWid( w );
return w;
}
KPrefsWidDuration *KPrefsWidManager::addWidDuration( KConfigSkeleton::ItemDateTime *item,
- TQWidget *tqparent )
+ TQWidget *parent )
{
- KPrefsWidDuration *w = new KPrefsWidDuration( item, tqparent );
+ KPrefsWidDuration *w = new KPrefsWidDuration( item, parent );
addWid( w );
return w;
}
KPrefsWidDate *KPrefsWidManager::addWidDate( KConfigSkeleton::ItemDateTime *item,
- TQWidget *tqparent )
+ TQWidget *parent )
{
- KPrefsWidDate *w = new KPrefsWidDate( item, tqparent );
+ KPrefsWidDate *w = new KPrefsWidDate( item, parent );
addWid( w );
return w;
}
KPrefsWidColor *KPrefsWidManager::addWidColor( KConfigSkeleton::ItemColor *item,
- TQWidget *tqparent )
+ TQWidget *parent )
{
- KPrefsWidColor *w = new KPrefsWidColor( item, tqparent );
+ KPrefsWidColor *w = new KPrefsWidColor( item, parent );
addWid( w );
return w;
}
KPrefsWidRadios *KPrefsWidManager::addWidRadios( KConfigSkeleton::ItemEnum *item,
- TQWidget *tqparent )
+ TQWidget *parent )
{
- KPrefsWidRadios *w = new KPrefsWidRadios( item, tqparent );
+ KPrefsWidRadios *w = new KPrefsWidRadios( item, parent );
TQValueList<KConfigSkeleton::ItemEnum::Choice> choices;
choices = item->choices();
TQValueList<KConfigSkeleton::ItemEnum::Choice>::ConstIterator it;
@@ -644,9 +644,9 @@ KPrefsWidRadios *KPrefsWidManager::addWidRadios( KConfigSkeleton::ItemEnum *item
}
KPrefsWidCombo *KPrefsWidManager::addWidCombo( KConfigSkeleton::ItemEnum *item,
- TQWidget* tqparent )
+ TQWidget* parent )
{
- KPrefsWidCombo *w = new KPrefsWidCombo( item, tqparent );
+ KPrefsWidCombo *w = new KPrefsWidCombo( item, parent );
TQValueList<KConfigSkeleton::ItemEnum::Choice> choices;
choices = item->choices();
TQValueList<KConfigSkeleton::ItemEnum::Choice>::ConstIterator it;
@@ -658,43 +658,43 @@ KPrefsWidCombo *KPrefsWidManager::addWidCombo( KConfigSkeleton::ItemEnum *item,
}
KPrefsWidString *KPrefsWidManager::addWidString( KConfigSkeleton::ItemString *item,
- TQWidget *tqparent )
+ TQWidget *parent )
{
- KPrefsWidString *w = new KPrefsWidString( item, tqparent,
+ KPrefsWidString *w = new KPrefsWidString( item, parent,
TQLineEdit::Normal );
addWid( w );
return w;
}
KPrefsWidPath *KPrefsWidManager::addWidPath( KConfigSkeleton::ItemPath *item,
- TQWidget *tqparent, const TQString &filter, uint mode )
+ TQWidget *parent, const TQString &filter, uint mode )
{
- KPrefsWidPath *w = new KPrefsWidPath( item, tqparent, filter, mode );
+ KPrefsWidPath *w = new KPrefsWidPath( item, parent, filter, mode );
addWid( w );
return w;
}
KPrefsWidString *KPrefsWidManager::addWidPassword( KConfigSkeleton::ItemString *item,
- TQWidget *tqparent )
+ TQWidget *parent )
{
- KPrefsWidString *w = new KPrefsWidString( item, tqparent, TQLineEdit::Password );
+ KPrefsWidString *w = new KPrefsWidString( item, parent, TQLineEdit::Password );
addWid( w );
return w;
}
KPrefsWidFont *KPrefsWidManager::addWidFont( KConfigSkeleton::ItemFont *item,
- TQWidget *tqparent,
+ TQWidget *parent,
const TQString &sampleText )
{
- KPrefsWidFont *w = new KPrefsWidFont( item, tqparent, sampleText );
+ KPrefsWidFont *w = new KPrefsWidFont( item, parent, sampleText );
addWid( w );
return w;
}
KPrefsWidInt *KPrefsWidManager::addWidInt( KConfigSkeleton::ItemInt *item,
- TQWidget *tqparent )
+ TQWidget *parent )
{
- KPrefsWidInt *w = new KPrefsWidInt( item, tqparent );
+ KPrefsWidInt *w = new KPrefsWidInt( item, parent );
addWid( w );
return w;
}
@@ -733,9 +733,9 @@ void KPrefsWidManager::writeWidConfig()
}
-KPrefsDialog::KPrefsDialog( KConfigSkeleton *prefs, TQWidget *tqparent, char *name,
+KPrefsDialog::KPrefsDialog( KConfigSkeleton *prefs, TQWidget *parent, char *name,
bool modal )
- : KDialogBase(IconList,i18n("Preferences"),Ok|Apply|Cancel|Default,Ok,tqparent,
+ : KDialogBase(IconList,i18n("Preferences"),Ok|Apply|Cancel|Default,Ok,parent,
name,modal,true),
KPrefsWidManager( prefs )
{
@@ -857,9 +857,9 @@ void KPrefsDialog::slotDefault()
}
-KPrefsModule::KPrefsModule( KConfigSkeleton *prefs, TQWidget *tqparent,
+KPrefsModule::KPrefsModule( KConfigSkeleton *prefs, TQWidget *parent,
const char *name )
- : KCModule( tqparent, name ),
+ : KCModule( parent, name ),
KPrefsWidManager( prefs )
{
emit changed( false );