diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:54:04 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:54:04 +0000 |
commit | dc6b8e72fed2586239e3514819238c520636c9d9 (patch) | |
tree | 88b200df0a0b7fab9d6f147596173556f1ed9a13 /kfilereplace/koptionsdlg.cpp | |
parent | 6927d4436e54551917f600b706a8d6109e49de1c (diff) | |
download | tdewebdev-dc6b8e72fed2586239e3514819238c520636c9d9.tar.gz tdewebdev-dc6b8e72fed2586239e3514819238c520636c9d9.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1157656 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kfilereplace/koptionsdlg.cpp')
-rw-r--r-- | kfilereplace/koptionsdlg.cpp | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/kfilereplace/koptionsdlg.cpp b/kfilereplace/koptionsdlg.cpp index 3980a7a6..fc0dc899 100644 --- a/kfilereplace/koptionsdlg.cpp +++ b/kfilereplace/koptionsdlg.cpp @@ -17,12 +17,12 @@ ***************************************************************************/ // QT -#include <qcheckbox.h> -#include <qspinbox.h> -#include <qwhatsthis.h> -#include <qpushbutton.h> -#include <qlabel.h> -#include <qlineedit.h> +#include <tqcheckbox.h> +#include <tqspinbox.h> +#include <tqwhatsthis.h> +#include <tqpushbutton.h> +#include <tqlabel.h> +#include <tqlineedit.h> // KDE #include <kcharsets.h> @@ -41,19 +41,19 @@ using namespace whatthisNameSpace; -KOptionsDlg::KOptionsDlg(RCOptions* info, QWidget *parent, const char *name) : KOptionsDlgS(parent,name,true) +KOptionsDlg::KOptionsDlg(RCOptions* info, TQWidget *parent, const char *name) : KOptionsDlgS(parent,name,true) { m_config = new KConfig("kfilereplacerc"); m_option = info; initGUI(); - connect(m_pbOK, SIGNAL(clicked()), this, SLOT(slotOK())); - connect(m_pbDefault, SIGNAL(clicked()),this,SLOT(slotDefaults())); - connect(m_chbBackup, SIGNAL(toggled(bool)), this, SLOT(slotChbBackup(bool))); - connect(m_pbHelp, SIGNAL(clicked()), this, SLOT(slotHelp())); - connect(m_chbConfirmStrings, SIGNAL(toggled(bool)), this, SLOT(slotChbConfirmStrings(bool))); - connect(m_chbShowConfirmDialog, SIGNAL(toggled(bool)), this, SLOT(slotChbShowConfirmDialog(bool))); + connect(m_pbOK, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotOK())); + connect(m_pbDefault, TQT_SIGNAL(clicked()),this,TQT_SLOT(slotDefaults())); + connect(m_chbBackup, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotChbBackup(bool))); + connect(m_pbHelp, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotHelp())); + connect(m_chbConfirmStrings, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotChbConfirmStrings(bool))); + connect(m_chbShowConfirmDialog, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotChbShowConfirmDialog(bool))); whatsThis(); } @@ -82,7 +82,7 @@ void KOptionsDlg::slotDefaults() m_chbIgnoreFiles->setChecked(IgnoreFilesOption); m_chbConfirmStrings->setChecked(AskConfirmReplaceOption); - QStringList bkList = QStringList::split(",",BackupExtensionOption,true); + TQStringList bkList = TQStringList::split(",",BackupExtensionOption,true); bool enableBackup = (bkList[0] == "true" ? true : false); @@ -141,7 +141,7 @@ void KOptionsDlg::initGUI() m_config->setGroup("Notification Messages"); m_option->m_notifyOnErrors = m_config->readBoolEntry(rcNotifyOnErrors, true); - QString dontAskAgain = m_config->readEntry(rcDontAskAgain,"no"); + TQString dontAskAgain = m_config->readEntry(rcDontAskAgain,"no"); m_chbConfirmStrings->setChecked(m_option->m_askConfirmReplace); @@ -153,7 +153,7 @@ void KOptionsDlg::initGUI() m_chbShowConfirmDialog->setChecked(true); } - QStringList availableEncodingNames(KGlobal::charsets()->availableEncodingNames()); + TQStringList availableEncodingNames(KGlobal::charsets()->availableEncodingNames()); m_cbEncoding->insertStringList( availableEncodingNames ); int idx = -1; int utf8Idx = -1; @@ -200,7 +200,7 @@ void KOptionsDlg::saveRCOptions() m_option->m_encoding = m_cbEncoding->currentText(); m_option->m_caseSensitive = m_chbCaseSensitive->isChecked(); m_option->m_recursive = m_chbRecursive->isChecked(); - QString backupExt = m_leBackup->text(); + TQString backupExt = m_leBackup->text(); m_option->m_backup = (m_chbBackup->isChecked() && !backupExt.isEmpty()); m_option->m_backupExtension = backupExt; m_option->m_variables = m_chbVariables->isChecked(); @@ -221,16 +221,16 @@ void KOptionsDlg::saveRCOptions() void KOptionsDlg::whatsThis() { // Create help QWhatsThis - QWhatsThis::add(m_chbCaseSensitive, chbCaseSensitiveWhatthis); - QWhatsThis::add(m_chbRecursive, chbRecursiveWhatthis); - QWhatsThis::add(m_chbHaltOnFirstOccurrence, chbHaltOnFirstOccurrenceWhatthis); - QWhatsThis::add(m_chbFollowSymLinks, chbFollowSymLinksWhatthis); - QWhatsThis::add(m_chbIgnoreHidden, chbIgnoreHiddenWhatthis); - QWhatsThis::add(m_chbIgnoreFiles, chbIgnoreFilesWhatthis); - QWhatsThis::add(m_chbRegularExpressions, chbRegularExpressionsWhatthis); - QWhatsThis::add(m_chbVariables, chbVariablesWhatthis); - QWhatsThis::add(m_chbBackup, chbBackupWhatthis); - QWhatsThis::add(m_chbConfirmStrings, chbConfirmStringsWhatthis); + TQWhatsThis::add(m_chbCaseSensitive, chbCaseSensitiveWhatthis); + TQWhatsThis::add(m_chbRecursive, chbRecursiveWhatthis); + TQWhatsThis::add(m_chbHaltOnFirstOccurrence, chbHaltOnFirstOccurrenceWhatthis); + TQWhatsThis::add(m_chbFollowSymLinks, chbFollowSymLinksWhatthis); + TQWhatsThis::add(m_chbIgnoreHidden, chbIgnoreHiddenWhatthis); + TQWhatsThis::add(m_chbIgnoreFiles, chbIgnoreFilesWhatthis); + TQWhatsThis::add(m_chbRegularExpressions, chbRegularExpressionsWhatthis); + TQWhatsThis::add(m_chbVariables, chbVariablesWhatthis); + TQWhatsThis::add(m_chbBackup, chbBackupWhatthis); + TQWhatsThis::add(m_chbConfirmStrings, chbConfirmStringsWhatthis); } #include "koptionsdlg.moc" |