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/knewprojectdlg.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/knewprojectdlg.cpp')
-rw-r--r-- | kfilereplace/knewprojectdlg.cpp | 124 |
1 files changed, 62 insertions, 62 deletions
diff --git a/kfilereplace/knewprojectdlg.cpp b/kfilereplace/knewprojectdlg.cpp index 5428473b..b23c1eec 100644 --- a/kfilereplace/knewprojectdlg.cpp +++ b/kfilereplace/knewprojectdlg.cpp @@ -18,14 +18,14 @@ //QT -#include <qwhatsthis.h> -#include <qcheckbox.h> -#include <qspinbox.h> -#include <qdatetimeedit.h> -#include <qlabel.h> -#include <qradiobutton.h> -#include <qtextedit.h> -#include <qlistview.h> +#include <tqwhatsthis.h> +#include <tqcheckbox.h> +#include <tqspinbox.h> +#include <tqdatetimeedit.h> +#include <tqlabel.h> +#include <tqradiobutton.h> +#include <tqtextedit.h> +#include <tqlistview.h> //KDE #include <kseparator.h> @@ -51,28 +51,28 @@ using namespace whatthisNameSpace; -KNewProjectDlg::KNewProjectDlg(RCOptions* info, QWidget *parent, const char *name) : KNewProjectDlgS(parent, name) +KNewProjectDlg::KNewProjectDlg(RCOptions* info, TQWidget *parent, const char *name) : KNewProjectDlgS(parent, name) { m_searchNowFlag = ""; m_option = info; initGUI(); - connect(m_pbLocation, SIGNAL(clicked()), this, SLOT(slotDir())); - connect(m_pbCancel, SIGNAL(clicked()), this, SLOT(slotReject())); - connect(m_pbSearchNow, SIGNAL(clicked()), this, SLOT(slotSearchNow())); - connect(m_pbSearchLater, SIGNAL(clicked()), this, SLOT(slotSearchLater())); - connect(m_leSearch, SIGNAL(textChanged(const QString&)), this, SLOT(slotSearchLineEdit(const QString&))); - connect(m_chbSizeMin, SIGNAL(toggled(bool)), this, SLOT(slotEnableSpinboxSizeMin(bool))); - connect(m_chbSizeMax, SIGNAL(toggled(bool)), this, SLOT(slotEnableSpinboxSizeMax(bool))); - connect(m_chbDateMin, SIGNAL(toggled(bool)), m_dedDateMin, SLOT(setEnabled(bool))); - connect(m_chbDateMax, SIGNAL(toggled(bool)), m_dedDateMax, SLOT(setEnabled(bool))); - connect(m_chbDateMin,SIGNAL(toggled(bool)),this, SLOT(slotEnableCbValidDate(bool))); - connect(m_chbDateMax,SIGNAL(toggled(bool)),this, SLOT(slotEnableCbValidDate(bool))); - connect(m_chbOwnerUser, SIGNAL(toggled(bool)), this, SLOT(slotEnableChbUser(bool))); - connect(m_chbOwnerGroup, SIGNAL(toggled(bool)), this, SLOT(slotEnableChbGroup(bool))); - connect(m_chbBackup, SIGNAL(toggled(bool)), this, SLOT(slotEnableChbBackup(bool))); - connect(m_pbHelp, SIGNAL(clicked()), this, SLOT(slotHelp())); + connect(m_pbLocation, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotDir())); + connect(m_pbCancel, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotReject())); + connect(m_pbSearchNow, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotSearchNow())); + connect(m_pbSearchLater, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotSearchLater())); + connect(m_leSearch, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(slotSearchLineEdit(const TQString&))); + connect(m_chbSizeMin, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotEnableSpinboxSizeMin(bool))); + connect(m_chbSizeMax, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotEnableSpinboxSizeMax(bool))); + connect(m_chbDateMin, TQT_SIGNAL(toggled(bool)), m_dedDateMin, TQT_SLOT(setEnabled(bool))); + connect(m_chbDateMax, TQT_SIGNAL(toggled(bool)), m_dedDateMax, TQT_SLOT(setEnabled(bool))); + connect(m_chbDateMin,TQT_SIGNAL(toggled(bool)),this, TQT_SLOT(slotEnableCbValidDate(bool))); + connect(m_chbDateMax,TQT_SIGNAL(toggled(bool)),this, TQT_SLOT(slotEnableCbValidDate(bool))); + connect(m_chbOwnerUser, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotEnableChbUser(bool))); + connect(m_chbOwnerGroup, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotEnableChbGroup(bool))); + connect(m_chbBackup, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotEnableChbBackup(bool))); + connect(m_pbHelp, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotHelp())); whatsThis(); } @@ -94,7 +94,7 @@ void KNewProjectDlg::saveRCOptions() void KNewProjectDlg::slotDir() { - QString directoryString = KFileDialog::getExistingDirectory(QString::null, this, i18n("Project Directory")); + TQString directoryString = KFileDialog::getExistingDirectory(TQString::null, this, i18n("Project Directory")); if(!directoryString.isEmpty()) m_cbLocation->setEditText(directoryString); } @@ -161,7 +161,7 @@ void KNewProjectDlg::slotSearchLater() slotOK(); } -void KNewProjectDlg::slotSearchLineEdit(const QString& t) +void KNewProjectDlg::slotSearchLineEdit(const TQString& t) { m_pbSearchNow->setEnabled(!t.isEmpty()); } @@ -205,8 +205,8 @@ void KNewProjectDlg::slotEnableChbBackup(bool b) //PRIVATE void KNewProjectDlg::initGUI() { - QIconSet iconSet = SmallIconSet("fileopen"); - QPixmap pixMap = iconSet.pixmap( QIconSet::Small, QIconSet::Normal ); + TQIconSet iconSet = SmallIconSet("fileopen"); + TQPixmap pixMap = iconSet.pixmap( TQIconSet::Small, TQIconSet::Normal ); m_pbLocation->setIconSet(iconSet); m_pbLocation->setFixedSize(pixMap.width() + 8, pixMap.height() + 8); @@ -224,7 +224,7 @@ void KNewProjectDlg::initGUI() void KNewProjectDlg::loadOptions() { - QStringList availableEncodingNames(KGlobal::charsets()->availableEncodingNames()); + TQStringList availableEncodingNames(KGlobal::charsets()->availableEncodingNames()); m_cbEncoding->insertStringList(availableEncodingNames); int idx = -1; int utf8Idx = -1; @@ -286,7 +286,7 @@ void KNewProjectDlg::loadDateAccessOptions() { // ================== DATE OPTIONS ======================== - QString date = m_option->m_minDate; + TQString date = m_option->m_minDate; if(date == AccessDateOption) { m_chbDateMin->setChecked(false); @@ -296,7 +296,7 @@ void KNewProjectDlg::loadDateAccessOptions() else { m_chbDateMin->setChecked(true); - m_dedDateMin->setDate(QDate::fromString(date,Qt::ISODate)); + m_dedDateMin->setDate(TQDate::fromString(date,Qt::ISODate)); m_dedDateMin->setEnabled(true); } @@ -310,7 +310,7 @@ void KNewProjectDlg::loadDateAccessOptions() else { m_chbDateMax->setChecked(true); - m_dedDateMax->setDate(QDate::fromString(date,Qt::ISODate)); + m_dedDateMax->setDate(TQDate::fromString(date,Qt::ISODate)); m_dedDateMax->setEnabled(true); } @@ -395,7 +395,7 @@ void KNewProjectDlg::saveDateAccessOptions() if(m_chbDateMin->isChecked()) { - QString date = m_dedDateMin->date().toString(Qt::ISODate); + TQString date = m_dedDateMin->date().toString(Qt::ISODate); m_option->m_minDate = date; } else @@ -403,7 +403,7 @@ void KNewProjectDlg::saveDateAccessOptions() if(m_chbDateMax->isChecked()) { - QString date = m_dedDateMax->date().toString(Qt::ISODate); + TQString date = m_dedDateMax->date().toString(Qt::ISODate); m_option->m_maxDate = date; } else @@ -447,14 +447,14 @@ void KNewProjectDlg::saveOwnerOptions() void KNewProjectDlg::saveLocationsList() { - QString current = m_cbLocation->currentText(); - QStringList list = current; + TQString current = m_cbLocation->currentText(); + TQStringList list = current; int count = m_cbLocation->listBox()->count(), i; for(i = 0; i < count; i++) { - QString text = m_cbLocation->listBox()->item(i)->text(); + TQString text = m_cbLocation->listBox()->item(i)->text(); if(text != current) list.append(text); } @@ -463,14 +463,14 @@ void KNewProjectDlg::saveLocationsList() void KNewProjectDlg::saveFiltersList() { - QString current = m_cbFilter->currentText(); - QStringList list = current; + TQString current = m_cbFilter->currentText(); + TQStringList list = current; int count = m_cbFilter->listBox()->count(), i; for(i = 0; i < count; i++) { - QString text = m_cbFilter->listBox()->item(i)->text(); + TQString text = m_cbFilter->listBox()->item(i)->text(); if(text != current) list.append(text); } @@ -479,12 +479,12 @@ void KNewProjectDlg::saveFiltersList() void KNewProjectDlg::saveBackupExtensionOptions() { - QString backupExt = m_leBackup->text(); + TQString backupExt = m_leBackup->text(); m_option->m_backup = (m_chbBackup->isChecked() && !backupExt.isEmpty()); m_option->m_backupExtension = backupExt; } -void KNewProjectDlg::setDatas(const QString& directoryString, const QString& filterString) +void KNewProjectDlg::setDatas(const TQString& directoryString, const TQString& filterString) { if (!directoryString.isEmpty()) m_cbLocation->setEditText(directoryString); @@ -493,9 +493,9 @@ void KNewProjectDlg::setDatas(const QString& directoryString, const QString& fil m_cbFilter->setEditText(filterString); } -bool KNewProjectDlg::contains(QListView* lv,const QString& s, int column) +bool KNewProjectDlg::contains(TQListView* lv,const TQString& s, int column) { - QListViewItem* i = lv->firstChild(); + TQListViewItem* i = lv->firstChild(); while (i != 0) { if(i->text(column) == s) @@ -507,24 +507,24 @@ bool KNewProjectDlg::contains(QListView* lv,const QString& s, int column) void KNewProjectDlg::whatsThis() { - QWhatsThis::add(m_cbLocation, cbLocationWhatthis); - QWhatsThis::add(m_cbFilter, cbFilterWhatthis); - - QWhatsThis::add(m_spbSizeMin, edSizeMinWhatthis); - QWhatsThis::add(m_spbSizeMax, edSizeMaxWhatthis); - - QWhatsThis::add(m_cbDateValid, cbDateValidWhatthis); - QWhatsThis::add(m_chbDateMin, chbDateMinWhatthis); - QWhatsThis::add(m_chbDateMax, chbDateMaxWhatthis); - - QWhatsThis::add(m_chbIncludeSubfolders, chbRecursiveWhatthis); - QWhatsThis::add(m_chbRegularExpressions, chbRegularExpressionsWhatthis); - QWhatsThis::add(m_chbEnableVariables, chbVariablesWhatthis); - QWhatsThis::add(m_chbCaseSensitive, chbCaseSensitiveWhatthis); - QWhatsThis::add(m_chbBackup, chbBackupWhatthis); - QWhatsThis::add(m_leBackup, chbBackupWhatthis); - QWhatsThis::add(m_leSearch, leSearchWhatthis); - QWhatsThis::add(m_leReplace, leReplaceWhatthis); + TQWhatsThis::add(m_cbLocation, cbLocationWhatthis); + TQWhatsThis::add(m_cbFilter, cbFilterWhatthis); + + TQWhatsThis::add(m_spbSizeMin, edSizeMinWhatthis); + TQWhatsThis::add(m_spbSizeMax, edSizeMaxWhatthis); + + TQWhatsThis::add(m_cbDateValid, cbDateValidWhatthis); + TQWhatsThis::add(m_chbDateMin, chbDateMinWhatthis); + TQWhatsThis::add(m_chbDateMax, chbDateMaxWhatthis); + + TQWhatsThis::add(m_chbIncludeSubfolders, chbRecursiveWhatthis); + TQWhatsThis::add(m_chbRegularExpressions, chbRegularExpressionsWhatthis); + TQWhatsThis::add(m_chbEnableVariables, chbVariablesWhatthis); + TQWhatsThis::add(m_chbCaseSensitive, chbCaseSensitiveWhatthis); + TQWhatsThis::add(m_chbBackup, chbBackupWhatthis); + TQWhatsThis::add(m_leBackup, chbBackupWhatthis); + TQWhatsThis::add(m_leSearch, leSearchWhatthis); + TQWhatsThis::add(m_leReplace, leReplaceWhatthis); } #include "knewprojectdlg.moc" |