summaryrefslogtreecommitdiffstats
path: root/kfilereplace/kaddstringdlg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kfilereplace/kaddstringdlg.cpp')
-rw-r--r--kfilereplace/kaddstringdlg.cpp68
1 files changed, 34 insertions, 34 deletions
diff --git a/kfilereplace/kaddstringdlg.cpp b/kfilereplace/kaddstringdlg.cpp
index 44b51f30..18f8895d 100644
--- a/kfilereplace/kaddstringdlg.cpp
+++ b/kfilereplace/kaddstringdlg.cpp
@@ -16,13 +16,13 @@
* *
***************************************************************************/
// QT
-#include <qtextedit.h>
-#include <qlabel.h>
-#include <qpushbutton.h>
-#include <qradiobutton.h>
-#include <qlistview.h>
-#include <qwhatsthis.h>
-#include <qwidgetstack.h>
+#include <tqtextedit.h>
+#include <tqlabel.h>
+#include <tqpushbutton.h>
+#include <tqradiobutton.h>
+#include <tqlistview.h>
+#include <tqwhatsthis.h>
+#include <tqwidgetstack.h>
// KDE
#include <kmessagebox.h>
@@ -37,7 +37,7 @@
using namespace whatthisNameSpace;
-KAddStringDlg::KAddStringDlg(RCOptions* info, bool wantEdit, QWidget *parent, const char *name) : KAddStringDlgS(parent,name,true)
+KAddStringDlg::KAddStringDlg(RCOptions* info, bool wantEdit, TQWidget *parent, const char *name) : KAddStringDlgS(parent,name,true)
{
m_option = info;
m_wantEdit = wantEdit;
@@ -45,12 +45,12 @@ KAddStringDlg::KAddStringDlg(RCOptions* info, bool wantEdit, QWidget *parent, co
initGUI();
- connect(m_pbOK, SIGNAL(clicked()), this, SLOT(slotOK()));
- connect(m_rbSearchOnly, SIGNAL(pressed()), this, SLOT(slotSearchOnly()));
- connect(m_rbSearchReplace, SIGNAL(pressed()), this, SLOT(slotSearchReplace()));
- connect(m_pbAdd, SIGNAL(clicked()), this, SLOT(slotAddStringToView()));
- connect(m_pbDel, SIGNAL(clicked()), this, SLOT(slotDeleteStringFromView()));
- connect(m_pbHelp, SIGNAL(clicked()), this ,SLOT(slotHelp()));
+ connect(m_pbOK, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotOK()));
+ connect(m_rbSearchOnly, TQT_SIGNAL(pressed()), this, TQT_SLOT(slotSearchOnly()));
+ connect(m_rbSearchReplace, TQT_SIGNAL(pressed()), this, TQT_SLOT(slotSearchReplace()));
+ connect(m_pbAdd, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotAddStringToView()));
+ connect(m_pbDel, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotDeleteStringFromView()));
+ connect(m_pbHelp, TQT_SIGNAL(clicked()), this ,TQT_SLOT(slotHelp()));
whatsThis();
}
@@ -58,8 +58,8 @@ KAddStringDlg::KAddStringDlg(RCOptions* info, bool wantEdit, QWidget *parent, co
//PRIVATE
void KAddStringDlg::initGUI()
{
- m_pbAdd->setIconSet(SmallIconSet(QString::fromLatin1("forward")));
- m_pbDel->setIconSet(SmallIconSet(QString::fromLatin1("back")));
+ m_pbAdd->setIconSet(SmallIconSet(TQString::fromLatin1("forward")));
+ m_pbDel->setIconSet(SmallIconSet(TQString::fromLatin1("back")));
m_stack->addWidget(m_stringView);
m_stack->addWidget(m_stringView_2);
@@ -94,14 +94,14 @@ void KAddStringDlg::initGUI()
void KAddStringDlg::eraseViewItems()
{
- QListViewItem* item = m_sv->firstChild();
+ TQListViewItem* item = m_sv->firstChild();
if(item == 0)
return;
else
{
while(item)
{
- QListViewItem* tempItem = item;
+ TQListViewItem* tempItem = item;
item = item->nextSibling();
delete tempItem;
}
@@ -118,9 +118,9 @@ void KAddStringDlg::raiseView()
m_stack->raiseWidget(m_sv);
}
-bool KAddStringDlg::columnContains(QListView* lv,const QString& s, int column)
+bool KAddStringDlg::columnContains(TQListView* lv,const TQString& s, int column)
{
- QListViewItem* i = lv->firstChild();
+ TQListViewItem* i = lv->firstChild();
while (i != 0)
{
if(i->text(column) == s)
@@ -132,11 +132,11 @@ bool KAddStringDlg::columnContains(QListView* lv,const QString& s, int column)
void KAddStringDlg::saveViewContentIntoMap()
{
- QListViewItem* i = m_sv->firstChild();
+ TQListViewItem* i = m_sv->firstChild();
while(i != 0)
{
if(m_option->m_searchingOnlyMode)
- m_currentMap[i->text(0)] = QString::null;
+ m_currentMap[i->text(0)] = TQString::null;
else
m_currentMap[i->text(0)] = i->text(1);
i = i->nextSibling();
@@ -149,7 +149,7 @@ void KAddStringDlg::loadMapIntoView()
for (itMap = m_currentMap.begin(); itMap != m_currentMap.end(); ++itMap)
{
- QListViewItem* temp = new QListViewItem(m_sv);
+ TQListViewItem* temp = new TQListViewItem(m_sv);
temp->setText(0,itMap.key());
if(!m_option->m_searchingOnlyMode)
temp->setText(1,itMap.data());
@@ -158,10 +158,10 @@ void KAddStringDlg::loadMapIntoView()
void KAddStringDlg::whatsThis()
{
- QWhatsThis::add(m_rbSearchOnly, rbSearchOnlyWhatthis);
- QWhatsThis::add(m_rbSearchReplace, rbSearchReplaceWhatthis);
- QWhatsThis::add(m_edSearch, edSearchWhatthis);
- QWhatsThis::add(m_edReplace, edReplaceWhatthis);
+ TQWhatsThis::add(m_rbSearchOnly, rbSearchOnlyWhatthis);
+ TQWhatsThis::add(m_rbSearchReplace, rbSearchReplaceWhatthis);
+ TQWhatsThis::add(m_edSearch, edSearchWhatthis);
+ TQWhatsThis::add(m_edReplace, edReplaceWhatthis);
}
//PRIVATE SLOTS
@@ -208,24 +208,24 @@ void KAddStringDlg::slotAddStringToView()
{
if(m_option->m_searchingOnlyMode)
{
- QString text = m_edSearch->text();
+ TQString text = m_edSearch->text();
if(!(text.isEmpty() || columnContains(m_sv, text, 0)))
{
- QListViewItem* lvi = new QListViewItem(m_sv);
+ TQListViewItem* lvi = new TQListViewItem(m_sv);
lvi->setMultiLinesEnabled(true);
lvi->setText(0,text);
- m_currentMap[text] = QString::null;
+ m_currentMap[text] = TQString::null;
m_edSearch->clear();
}
}
else
{
- QString searchText = m_edSearch->text(),
+ TQString searchText = m_edSearch->text(),
replaceText = m_edReplace->text();
if(!(searchText.isEmpty() || replaceText.isEmpty() || columnContains(m_sv,searchText,0) || columnContains(m_sv,replaceText,1)))
{
- QListViewItem* lvi = new QListViewItem(m_sv);
+ TQListViewItem* lvi = new TQListViewItem(m_sv);
lvi->setMultiLinesEnabled(true);
lvi->setText(0,searchText);
m_edSearch->clear();
@@ -239,7 +239,7 @@ void KAddStringDlg::slotAddStringToView()
void KAddStringDlg::slotDeleteStringFromView()
{
// Choose current item or selected item
- QListViewItem* currentItem = m_sv->currentItem();
+ TQListViewItem* currentItem = m_sv->currentItem();
// Do nothing if list is empty
if(currentItem == 0)
@@ -266,7 +266,7 @@ void KAddStringDlg::slotDeleteStringFromView()
void KAddStringDlg::slotHelp()
{
- kapp->invokeHelp(QString::null, "kfilereplace");
+ kapp->invokeHelp(TQString::null, "kfilereplace");
}
#include "kaddstringdlg.moc"