summaryrefslogtreecommitdiffstats
path: root/kaddressbook/addviewdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kaddressbook/addviewdialog.cpp')
-rw-r--r--kaddressbook/addviewdialog.cpp44
1 files changed, 22 insertions, 22 deletions
diff --git a/kaddressbook/addviewdialog.cpp b/kaddressbook/addviewdialog.cpp
index 68046359d..b42729e34 100644
--- a/kaddressbook/addviewdialog.cpp
+++ b/kaddressbook/addviewdialog.cpp
@@ -21,11 +21,11 @@
without including the source code for Qt in the source distribution.
*/
-#include <qbuttongroup.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qlineedit.h>
-#include <qradiobutton.h>
+#include <tqbuttongroup.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqlineedit.h>
+#include <tqradiobutton.h>
#include <klocale.h>
@@ -33,8 +33,8 @@
#include "addviewdialog.h"
-AddViewDialog::AddViewDialog( QDict<ViewFactory> *viewFactoryDict,
- QWidget *parent, const char *name )
+AddViewDialog::AddViewDialog( TQDict<ViewFactory> *viewFactoryDict,
+ TQWidget *parent, const char *name )
: KDialogBase( KDialogBase::Plain, i18n( "Add View" ),
KDialogBase::Ok | KDialogBase::Cancel, KDialogBase::Ok,
parent, name ),
@@ -42,33 +42,33 @@ AddViewDialog::AddViewDialog( QDict<ViewFactory> *viewFactoryDict,
{
mTypeId = 0;
- QWidget *page = plainPage();
+ TQWidget *page = plainPage();
- QGridLayout *layout = new QGridLayout( page, 2, 2 );
+ TQGridLayout *layout = new TQGridLayout( page, 2, 2 );
layout->setSpacing( spacingHint() );
layout->setRowStretch( 1, 1 );
layout->setColStretch( 1, 1 );
- QLabel *label = new QLabel( i18n( "View name:" ), page );
+ TQLabel *label = new TQLabel( i18n( "View name:" ), page );
layout->addWidget( label, 0, 0 );
- mViewNameEdit = new QLineEdit( page );
- connect( mViewNameEdit, SIGNAL( textChanged( const QString& ) ),
- SLOT( textChanged( const QString& ) ) );
+ mViewNameEdit = new TQLineEdit( page );
+ connect( mViewNameEdit, TQT_SIGNAL( textChanged( const TQString& ) ),
+ TQT_SLOT( textChanged( const TQString& ) ) );
layout->addWidget( mViewNameEdit, 0, 1 );
- mTypeGroup = new QButtonGroup( 0, Qt::Horizontal, i18n( "View Type" ), page );
- connect( mTypeGroup, SIGNAL( clicked( int ) ), this, SLOT( clicked( int ) ) );
+ mTypeGroup = new TQButtonGroup( 0, Qt::Horizontal, i18n( "View Type" ), page );
+ connect( mTypeGroup, TQT_SIGNAL( clicked( int ) ), this, TQT_SLOT( clicked( int ) ) );
layout->addMultiCellWidget( mTypeGroup, 1, 1, 0, 1 );
- QGridLayout *groupLayout = new QGridLayout( mTypeGroup->layout(), 3, 2 );
+ TQGridLayout *groupLayout = new TQGridLayout( mTypeGroup->layout(), 3, 2 );
groupLayout->setSpacing( spacingHint() );
int row = 0;
- QDictIterator<ViewFactory> iter( *mViewFactoryDict );
+ TQDictIterator<ViewFactory> iter( *mViewFactoryDict );
for ( iter.toFirst(); iter.current(); ++iter ) {
- QRadioButton *button = new QRadioButton( i18n((*iter)->type().utf8()),
+ TQRadioButton *button = new TQRadioButton( i18n((*iter)->type().utf8()),
mTypeGroup, (*iter)->type().latin1() );
- label = new QLabel( (*iter)->description(), mTypeGroup );
+ label = new TQLabel( (*iter)->description(), mTypeGroup );
label->setAlignment( Qt::WordBreak );
groupLayout->addWidget( button, row, 0, Qt::AlignTop );
@@ -86,12 +86,12 @@ AddViewDialog::~AddViewDialog()
{
}
-QString AddViewDialog::viewName()const
+TQString AddViewDialog::viewName()const
{
return mViewNameEdit->text();
}
-QString AddViewDialog::viewType()const
+TQString AddViewDialog::viewType()const
{
// we missuse the name property for storing the type
return mTypeGroup->find( mTypeId )->name();
@@ -102,7 +102,7 @@ void AddViewDialog::clicked( int id )
mTypeId = id;
}
-void AddViewDialog::textChanged( const QString &text )
+void AddViewDialog::textChanged( const TQString &text )
{
enableButton( KDialogBase::Ok, !text.isEmpty() );
}