summaryrefslogtreecommitdiffstats
path: root/krecipes/src/dialogs/dbimportdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'krecipes/src/dialogs/dbimportdialog.cpp')
-rw-r--r--krecipes/src/dialogs/dbimportdialog.cpp90
1 files changed, 45 insertions, 45 deletions
diff --git a/krecipes/src/dialogs/dbimportdialog.cpp b/krecipes/src/dialogs/dbimportdialog.cpp
index 6fb946d..187eee3 100644
--- a/krecipes/src/dialogs/dbimportdialog.cpp
+++ b/krecipes/src/dialogs/dbimportdialog.cpp
@@ -17,17 +17,17 @@
#include "config.h"
#endif
-#include <qpushbutton.h>
-#include <qbuttongroup.h>
-#include <qradiobutton.h>
-#include <qwidgetstack.h>
-#include <qwidget.h>
-#include <qlineedit.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qtooltip.h>
-#include <qwhatsthis.h>
-#include <qhbox.h>
+#include <ntqpushbutton.h>
+#include <ntqbuttongroup.h>
+#include <ntqradiobutton.h>
+#include <ntqwidgetstack.h>
+#include <ntqwidget.h>
+#include <ntqlineedit.h>
+#include <ntqlabel.h>
+#include <ntqlayout.h>
+#include <ntqtooltip.h>
+#include <ntqwhatsthis.h>
+#include <ntqhbox.h>
#include <kconfig.h>
#include <kdebug.h>
@@ -35,80 +35,80 @@
#include <kurlrequester.h>
#include <knuminput.h>
-DBImportDialog::DBImportDialog( QWidget *parent, const char *name )
+DBImportDialog::DBImportDialog( TQWidget *parent, const char *name )
: KDialogBase( parent, name, true, i18n( "Database Import" ),
KDialogBase::Ok | KDialogBase::Cancel, KDialogBase::Ok )
{
setButtonBoxOrientation( Vertical );
- QHBox *page = makeHBoxMainWidget();
+ TQHBox *page = makeHBoxMainWidget();
- dbButtonGroup = new QButtonGroup( page, "dbButtonGroup" );
- dbButtonGroup->setSizePolicy( QSizePolicy( ( QSizePolicy::SizeType ) 4, ( QSizePolicy::SizeType ) 5, 0, 0, dbButtonGroup->sizePolicy().hasHeightForWidth() ) );
- dbButtonGroup->setColumnLayout( 0, Qt::Vertical );
+ dbButtonGroup = new TQButtonGroup( page, "dbButtonGroup" );
+ dbButtonGroup->setSizePolicy( TQSizePolicy( ( TQSizePolicy::SizeType ) 4, ( TQSizePolicy::SizeType ) 5, 0, 0, dbButtonGroup->sizePolicy().hasHeightForWidth() ) );
+ dbButtonGroup->setColumnLayout( 0, TQt::Vertical );
dbButtonGroup->layout() ->setSpacing( 6 );
dbButtonGroup->layout() ->setMargin( 11 );
- dbButtonGroupLayout = new QVBoxLayout( dbButtonGroup->layout() );
- dbButtonGroupLayout->setAlignment( Qt::AlignTop );
+ dbButtonGroupLayout = new TQVBoxLayout( dbButtonGroup->layout() );
+ dbButtonGroupLayout->setAlignment( TQt::AlignTop );
- liteRadioButton = new QRadioButton( dbButtonGroup, "liteRadioButton" );
+ liteRadioButton = new TQRadioButton( dbButtonGroup, "liteRadioButton" );
liteRadioButton->setChecked( TRUE );
dbButtonGroupLayout->addWidget( liteRadioButton );
- mysqlRadioButton = new QRadioButton( dbButtonGroup, "mysqlRadioButton" );
+ mysqlRadioButton = new TQRadioButton( dbButtonGroup, "mysqlRadioButton" );
dbButtonGroupLayout->addWidget( mysqlRadioButton );
- psqlRadioButton = new QRadioButton( dbButtonGroup, "psqlRadioButton" );
+ psqlRadioButton = new TQRadioButton( dbButtonGroup, "psqlRadioButton" );
dbButtonGroupLayout->addWidget( psqlRadioButton );
- paramStack = new QWidgetStack( page, "paramStack" );
- paramStack->setSizePolicy( QSizePolicy( ( QSizePolicy::SizeType ) 7, ( QSizePolicy::SizeType ) 5, 0, 0, paramStack->sizePolicy().hasHeightForWidth() ) );
+ paramStack = new TQWidgetStack( page, "paramStack" );
+ paramStack->setSizePolicy( TQSizePolicy( ( TQSizePolicy::SizeType ) 7, ( TQSizePolicy::SizeType ) 5, 0, 0, paramStack->sizePolicy().hasHeightForWidth() ) );
- sqlitePage = new QWidget( paramStack, "sqlitePage" );
- serverPageLayout_2 = new QVBoxLayout( sqlitePage, 11, 6, "serverPageLayout_2" );
+ sqlitePage = new TQWidget( paramStack, "sqlitePage" );
+ serverPageLayout_2 = new TQVBoxLayout( sqlitePage, 11, 6, "serverPageLayout_2" );
- QLabel *sqliteLabel = new QLabel( i18n( "Database file:" ), sqlitePage );
+ TQLabel *sqliteLabel = new TQLabel( i18n( "Database file:" ), sqlitePage );
serverPageLayout_2->addWidget( sqliteLabel );
sqliteDBRequester = new KURLRequester( sqlitePage, "sqliteDBRequester" );
sqliteDBRequester->setShowLocalProtocol( false );
serverPageLayout_2->addWidget( sqliteDBRequester );
- QSpacerItem *vSpacer = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
+ TQSpacerItem *vSpacer = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
serverPageLayout_2->addItem(vSpacer);
paramStack->addWidget( sqlitePage, 1 );
- serverPage = new QWidget( paramStack, "serverPage" );
- serverPageLayout = new QVBoxLayout( serverPage, 11, 6, "serverPageLayout" );
+ serverPage = new TQWidget( paramStack, "serverPage" );
+ serverPageLayout = new TQVBoxLayout( serverPage, 11, 6, "serverPageLayout" );
- layout5 = new QGridLayout( 0, 1, 1, 0, 6, "layout5" );
+ layout5 = new TQGridLayout( 0, 1, 1, 0, 6, "layout5" );
- hostEdit = new QLineEdit( serverPage, "hostEdit" );
+ hostEdit = new TQLineEdit( serverPage, "hostEdit" );
layout5->addWidget( hostEdit, 0, 1 );
- hostLabel = new QLabel( serverPage, "hostLabel" );
+ hostLabel = new TQLabel( serverPage, "hostLabel" );
layout5->addWidget( hostLabel, 0, 0 );
- userEdit = new QLineEdit( serverPage, "userEdit" );
+ userEdit = new TQLineEdit( serverPage, "userEdit" );
layout5->addWidget( userEdit, 1, 1 );
- userLabel = new QLabel( serverPage, "userLabel" );
+ userLabel = new TQLabel( serverPage, "userLabel" );
layout5->addWidget( userLabel, 1, 0 );
- passwordEdit = new QLineEdit( serverPage, "passwordEdit" );
- passwordEdit->setEchoMode( QLineEdit::Password );
+ passwordEdit = new TQLineEdit( serverPage, "passwordEdit" );
+ passwordEdit->setEchoMode( TQLineEdit::Password );
layout5->addWidget( passwordEdit, 2, 1 );
- passwordLabel = new QLabel( serverPage, "passwordLabel" );
+ passwordLabel = new TQLabel( serverPage, "passwordLabel" );
layout5->addWidget( passwordLabel, 2, 0 );
portEdit = new KIntNumInput( serverPage, "portEdit" );
portEdit->setMinValue(0);
portEdit->setValue(0);
layout5->addWidget( portEdit, 3, 1 );
- portLabel = new QLabel( serverPage, "portLabel" );
+ portLabel = new TQLabel( serverPage, "portLabel" );
layout5->addWidget( portLabel, 3, 0 );
- nameEdit = new QLineEdit( serverPage, "nameEdit" );
+ nameEdit = new TQLineEdit( serverPage, "nameEdit" );
layout5->addWidget( nameEdit, 4, 1 );
- nameLabel = new QLabel( serverPage, "nameLabel" );
+ nameLabel = new TQLabel( serverPage, "nameLabel" );
layout5->addWidget( nameLabel, 4, 0 );
serverPageLayout->addLayout( layout5 );
@@ -169,7 +169,7 @@ void DBImportDialog::languageChange()
struct passwd *user;
userID = getuid();
user = getpwuid ( userID );
- QString username(user->pw_name);
+ TQString username(user->pw_name);
userEdit->setText( username );
}
@@ -187,7 +187,7 @@ void DBImportDialog::switchDBPage( int id )
}
}
-QString DBImportDialog::dbType() const
+TQString DBImportDialog::dbType() const
{
//int id=dbButtonGroup->selectedId(); //QT 3.2
int id = dbButtonGroup->id( dbButtonGroup->selected() ); //QT 3.1
@@ -199,11 +199,11 @@ QString DBImportDialog::dbType() const
case 2:
return "PostgreSQL";
default:
- return QString::null;
+ return TQString::null;
}
}
-void DBImportDialog::serverParams( QString &host, QString &user, QString &pass, int &port, QString &table ) const
+void DBImportDialog::serverParams( TQString &host, TQString &user, TQString &pass, int &port, TQString &table ) const
{
host = hostEdit->text();
user = userEdit->text();
@@ -212,7 +212,7 @@ void DBImportDialog::serverParams( QString &host, QString &user, QString &pass,
port = portEdit->value();
}
-QString DBImportDialog::dbFile() const
+TQString DBImportDialog::dbFile() const
{
return sqliteDBRequester->url();
}