diff options
Diffstat (limited to 'kexi/migration/importoptionsdlg.cpp')
-rw-r--r-- | kexi/migration/importoptionsdlg.cpp | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/kexi/migration/importoptionsdlg.cpp b/kexi/migration/importoptionsdlg.cpp index 24ff3259..4741bf5c 100644 --- a/kexi/migration/importoptionsdlg.cpp +++ b/kexi/migration/importoptionsdlg.cpp @@ -20,11 +20,11 @@ #include "importoptionsdlg.h" #include <widget/kexicharencodingcombobox.h> -#include <qdir.h> -#include <qlabel.h> -#include <qlayout.h> -#include <qtextcodec.h> -#include <qcheckbox.h> +#include <tqdir.h> +#include <tqlabel.h> +#include <tqlayout.h> +#include <tqtextcodec.h> +#include <tqcheckbox.h> #include <kapplication.h> #include <kconfig.h> @@ -36,48 +36,48 @@ using namespace KexiMigration; -OptionsDialog::OptionsDialog( const QString& databaseFile, const QString& selectedEncoding, QWidget* parent ) +OptionsDialog::OptionsDialog( const TQString& databaseFile, const TQString& selectedEncoding, TQWidget* tqparent ) : KDialogBase( KDialogBase::Plain, i18n( "Advanced Import Options" ), Ok|Cancel, Ok, - parent, + tqparent, "KexiMigration::OptionsDialog", true, false ) { setIcon(DesktopIcon("configure")); - QGridLayout *lyr = new QGridLayout( plainPage(), 4, 3, KDialogBase::marginHint(), + TQGridLayout *lyr = new TQGridLayout( plainPage(), 4, 3, KDialogBase::marginHint(), KDialogBase::spacingHint()); m_encodingComboBox = new KexiCharacterEncodingComboBox(plainPage(), selectedEncoding); - m_encodingComboBox->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Minimum); + m_encodingComboBox->tqsetSizePolicy(TQSizePolicy::Minimum, TQSizePolicy::Minimum); lyr->addWidget( m_encodingComboBox, 1, 1 ); - QLabel* lbl = new QLabel( + TQLabel* lbl = new TQLabel( i18n("<h3>Text encoding for Microsoft Access database</h3>\n" "<p>Database file \"%1\" appears to be created by a version of Microsoft Access older than 2000.</p>" "<p>In order to properly import national characters, you may need to choose a proper text encoding " "if the database was created on a computer with a different character set.</p>") - .arg(QDir::convertSeparators(databaseFile)), plainPage()); - lbl->setAlignment( Qt::AlignAuto | Qt::WordBreak ); - lbl->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Fixed); + .tqarg(TQDir::convertSeparators(databaseFile)), plainPage()); + lbl->tqsetAlignment( TQt::AlignAuto | TQt::WordBreak ); + lbl->tqsetSizePolicy(TQSizePolicy::Minimum, TQSizePolicy::Fixed); lyr->addMultiCellWidget( lbl, 0, 0, 0, 2 ); - QLabel* lbl2 = new QLabel( m_encodingComboBox, i18n("Text encoding:"), plainPage()); + TQLabel* lbl2 = new TQLabel( m_encodingComboBox, i18n("Text encoding:"), plainPage()); lyr->addWidget( lbl2, 1, 0 ); - m_chkAlwaysUseThisEncoding = new QCheckBox( + m_chkAlwaysUseThisEncoding = new TQCheckBox( i18n("Always use this encoding in similar situations"), plainPage()); lyr->addMultiCellWidget( m_chkAlwaysUseThisEncoding, 2, 2, 1,2 ); - lyr->addItem( new QSpacerItem( 20, 111, QSizePolicy::Minimum, QSizePolicy::Expanding ), 3, 1 ); - lyr->addItem( new QSpacerItem( 121, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ), 1, 2 ); + lyr->addItem( new TQSpacerItem( 20, 111, TQSizePolicy::Minimum, TQSizePolicy::Expanding ), 3, 1 ); + lyr->addItem( new TQSpacerItem( 121, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum ), 1, 2 ); //read config kapp->config()->setGroup("ImportExport"); - QString defaultEncodingForMSAccessFiles = kapp->config()->readEntry("DefaultEncodingForMSAccessFiles"); + TQString defaultEncodingForMSAccessFiles = kapp->config()->readEntry("DefaultEncodingForMSAccessFiles"); if (!defaultEncodingForMSAccessFiles.isEmpty()) { m_encodingComboBox->setSelectedEncoding(defaultEncodingForMSAccessFiles); m_chkAlwaysUseThisEncoding->setChecked(true); |