summaryrefslogtreecommitdiffstats
path: root/plugins/search/searchwidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/search/searchwidget.cpp')
-rw-r--r--plugins/search/searchwidget.cpp82
1 files changed, 41 insertions, 41 deletions
diff --git a/plugins/search/searchwidget.cpp b/plugins/search/searchwidget.cpp
index 2ed19e8..b7e2627 100644
--- a/plugins/search/searchwidget.cpp
+++ b/plugins/search/searchwidget.cpp
@@ -21,11 +21,11 @@
#include <kapplication.h>
#include <khtmlview.h>
-#include <qlayout.h>
-#include <qfile.h>
-#include <qtextstream.h>
-#include <qstring.h>
-#include <qstringlist.h>
+#include <tqlayout.h>
+#include <tqfile.h>
+#include <tqtextstream.h>
+#include <tqstring.h>
+#include <tqstringlist.h>
#include <klineedit.h>
#include <kpushbutton.h>
#include <kglobal.h>
@@ -59,55 +59,55 @@ namespace kt
SearchWidget::SearchWidget(SearchPlugin* sp) : html_part(0),sp(sp)
{
- QVBoxLayout* layout = new QVBoxLayout(this);
- layout->setAutoAdd(true);
+ TQVBoxLayout* tqlayout = new TQVBoxLayout(this);
+ tqlayout->setAutoAdd(true);
sbar = new SearchBar(this);
html_part = new HTMLPart(this);
right_click_menu = new KPopupMenu(this);
right_click_menu->insertSeparator();
back_id = right_click_menu->insertItem(
- KGlobal::iconLoader()->loadIconSet(QApplication::reverseLayout()
+ KGlobal::iconLoader()->loadIconSet(TQApplication::reverseLayout()
? "forward" : "back",KIcon::Small),
- i18n("Back"),html_part,SLOT(back()));
+ i18n("Back"),html_part,TQT_SLOT(back()));
right_click_menu->insertItem(
KGlobal::iconLoader()->loadIconSet("reload",KIcon::Small),
- i18n("Reload"),html_part,SLOT(reload()));
+ i18n("Reload"),html_part,TQT_SLOT(reload()));
right_click_menu->setItemEnabled(back_id,false);
sbar->m_back->setEnabled(false);
- connect(sbar->m_search_button,SIGNAL(clicked()),this,SLOT(searchPressed()));
- connect(sbar->m_clear_button,SIGNAL(clicked()),this,SLOT(clearPressed()));
- connect(sbar->m_search_text,SIGNAL(returnPressed()),this,SLOT(searchPressed()));
- connect(sbar->m_back,SIGNAL(clicked()),html_part,SLOT(back()));
- connect(sbar->m_reload,SIGNAL(clicked()),html_part,SLOT(reload()));
+ connect(sbar->m_search_button,TQT_SIGNAL(clicked()),this,TQT_SLOT(searchPressed()));
+ connect(sbar->m_clear_button,TQT_SIGNAL(clicked()),this,TQT_SLOT(clearPressed()));
+ connect(sbar->m_search_text,TQT_SIGNAL(returnPressed()),this,TQT_SLOT(searchPressed()));
+ connect(sbar->m_back,TQT_SIGNAL(clicked()),html_part,TQT_SLOT(back()));
+ connect(sbar->m_reload,TQT_SIGNAL(clicked()),html_part,TQT_SLOT(reload()));
sbar->m_clear_button->setIconSet(
- KGlobal::iconLoader()->loadIconSet(QApplication::reverseLayout()
+ KGlobal::iconLoader()->loadIconSet(TQApplication::reverseLayout()
? "clear_left" : "locationbar_erase",KIcon::Small));
sbar->m_back->setIconSet(
- KGlobal::iconLoader()->loadIconSet(QApplication::reverseLayout()
+ KGlobal::iconLoader()->loadIconSet(TQApplication::reverseLayout()
? "forward" : "back", KIcon::Small));
sbar->m_reload->setIconSet(
KGlobal::iconLoader()->loadIconSet("reload",KIcon::Small));
- connect(html_part,SIGNAL(backAvailable(bool )),
- this,SLOT(onBackAvailable(bool )));
- connect(html_part,SIGNAL(onURL(const QString& )),
- this,SLOT(onURLHover(const QString& )));
- connect(html_part,SIGNAL(openTorrent(const KURL& )),
- this,SLOT(onOpenTorrent(const KURL& )));
- connect(html_part,SIGNAL(popupMenu(const QString&, const QPoint& )),
- this,SLOT(showPopupMenu(const QString&, const QPoint& )));
- connect(html_part,SIGNAL(searchFinished()),this,SLOT(onFinished()));
- connect(html_part,SIGNAL(saveTorrent(const KURL& )),
- this,SLOT(onSaveTorrent(const KURL& )));
+ connect(html_part,TQT_SIGNAL(backAvailable(bool )),
+ this,TQT_SLOT(onBackAvailable(bool )));
+ connect(html_part,TQT_SIGNAL(onURL(const TQString& )),
+ this,TQT_SLOT(onURLHover(const TQString& )));
+ connect(html_part,TQT_SIGNAL(openTorrent(const KURL& )),
+ this,TQT_SLOT(onOpenTorrent(const KURL& )));
+ connect(html_part,TQT_SIGNAL(popupMenu(const TQString&, const TQPoint& )),
+ this,TQT_SLOT(showPopupMenu(const TQString&, const TQPoint& )));
+ connect(html_part,TQT_SIGNAL(searchFinished()),this,TQT_SLOT(onFinished()));
+ connect(html_part,TQT_SIGNAL(saveTorrent(const KURL& )),
+ this,TQT_SLOT(onSaveTorrent(const KURL& )));
KParts::PartManager* pman = html_part->partManager();
- connect(pman,SIGNAL(partAdded(KParts::Part*)),this,SLOT(onFrameAdded(KParts::Part* )));
+ connect(pman,TQT_SIGNAL(partAdded(KParts::Part*)),this,TQT_SLOT(onFrameAdded(KParts::Part* )));
- connect(html_part->browserExtension(),SIGNAL(loadingProgress(int)),this,SLOT(loadingProgress(int)));
+ connect(html_part->browserExtension(),TQT_SIGNAL(loadingProgress(int)),this,TQT_SLOT(loadingProgress(int)));
prog = 0;
}
@@ -143,8 +143,8 @@ namespace kt
KHTMLPart* frame = dynamic_cast<KHTMLPart*>(p);
if (frame)
{
- connect(frame,SIGNAL(popupMenu(const QString&, const QPoint& )),
- this,SLOT(showPopupMenu(const QString&, const QPoint& )));
+ connect(frame,TQT_SIGNAL(popupMenu(const TQString&, const TQPoint& )),
+ this,TQT_SLOT(showPopupMenu(const TQString&, const TQPoint& )));
}
}
@@ -155,7 +155,7 @@ namespace kt
html_part->copy();
}
- void SearchWidget::search(const QString & text,int engine)
+ void SearchWidget::search(const TQString & text,int engine)
{
if (!html_part)
return;
@@ -171,11 +171,11 @@ namespace kt
if (engine < 0 || (Uint32)engine >= sl.getNumEngines())
engine = sbar->m_search_engine->currentItem();
- QString s_url = sl.getSearchURL(engine).prettyURL();
- s_url.replace("FOOBAR", KURL::encode_string(text), true);
+ TQString s_url = sl.getSearchURL(engine).prettyURL();
+ s_url.tqreplace("FOOBAR", KURL::encode_string(text), true);
KURL url = KURL::fromPathOrURL(s_url);
- statusBarMsg(i18n("Searching for %1...").arg(text));
+ statusBarMsg(i18n("Searching for %1...").tqarg(text));
//html_part->openURL(url);
html_part->openURLRequest(url,KParts::URLArgs());
}
@@ -190,7 +190,7 @@ namespace kt
sbar->m_search_text->clear();
}
- void SearchWidget::onURLHover(const QString & url)
+ void SearchWidget::onURLHover(const TQString & url)
{
statusBarMsg(url);
}
@@ -206,10 +206,10 @@ namespace kt
void SearchWidget::onSaveTorrent(const KURL & url)
{
- KFileDialog fdlg(QString::null,"*.torrent | " + i18n("torrent files"),this,0,true);
+ KFileDialog fdlg(TQString(),"*.torrent | " + i18n("torrent files"),this,0,true);
fdlg.setSelection(url.fileName());
fdlg.setOperationMode(KFileDialog::Saving);
- if (fdlg.exec() == QDialog::Accepted)
+ if (fdlg.exec() == TQDialog::Accepted)
{
KURL save_url = fdlg.selectedURL();
// start a copy job
@@ -219,7 +219,7 @@ namespace kt
}
}
- void SearchWidget::showPopupMenu(const QString & url,const QPoint & p)
+ void SearchWidget::showPopupMenu(const TQString & url,const TQPoint & p)
{
right_click_menu->popup(p);
}
@@ -235,7 +235,7 @@ namespace kt
html_part = 0;
}
- void SearchWidget::statusBarMsg(const QString & url)
+ void SearchWidget::statusBarMsg(const TQString & url)
{
sp->getGUI()->changeStatusbar(url);
}