From 69cac65817d949cda2672ec4f0aa73d5e66a0ba1 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 22 Jun 2011 00:30:31 +0000 Subject: TQt4 port kdenetwork This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1237912 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kdict/queryview.cpp | 52 ++++++++++++++++++++++++++-------------------------- 1 file changed, 26 insertions(+), 26 deletions(-) (limited to 'kdict/queryview.cpp') diff --git a/kdict/queryview.cpp b/kdict/queryview.cpp index 045b4e49..e48397e1 100644 --- a/kdict/queryview.cpp +++ b/kdict/queryview.cpp @@ -40,8 +40,8 @@ TQString SaveHelper::lastPath; -SaveHelper::SaveHelper(const TQString &saveName, const TQString &filter, TQWidget *parent) - : p_arent(parent), s_aveName(saveName), f_ilter(filter), file(0), tmpFile(0) +SaveHelper::SaveHelper(const TQString &saveName, const TQString &filter, TQWidget *tqparent) + : p_arent(tqparent), s_aveName(saveName), f_ilter(filter), file(0), tmpFile(0) { } @@ -74,7 +74,7 @@ TQFile* SaveHelper::getFile(const TQString &dialogTitle) if (url.isLocalFile()) { if (TQFileInfo(url.path()).exists() && (KMessageBox::warningContinueCancel(global->topLevel, - i18n("A file named %1 already exists.\nDo you want to replace it?").arg(url.path()), + i18n("A file named %1 already exists.\nDo you want to replace it?").tqarg(url.path()), dialogTitle, i18n("&Replace")) != KMessageBox::Continue)) { return 0; } @@ -109,8 +109,8 @@ BrowseData::BrowseData(const TQString &Nhtml, const TQString &NqueryText) //********* DictHTMLPart ****************************************** -DictHTMLPart::DictHTMLPart(TQWidget *parentWidget, const char *widgetname) - : KHTMLPart(parentWidget,widgetname) +DictHTMLPart::DictHTMLPart(TQWidget *tqparentWidget, const char *widgetname) + : KHTMLPart(tqparentWidget,widgetname) {} @@ -120,7 +120,7 @@ DictHTMLPart::~DictHTMLPart() void DictHTMLPart::khtmlMouseReleaseEvent(khtml::MouseReleaseEvent *event) { - if (event->qmouseEvent()->button()==MidButton) + if (event->qmouseEvent()->button()==Qt::MidButton) emit(middleButtonClicked()); else KHTMLPart::khtmlMouseReleaseEvent(event); @@ -140,7 +140,7 @@ QueryView::QueryView(TQWidget *_parent) part->setJScriptEnabled(false); part->setJavaEnabled(false); part->setURLCursor(KCursor::handCursor()); - setFocusPolicy(TQWidget::NoFocus); + setFocusPolicy(TQ_NoFocus); connect(part, TQT_SIGNAL(completed()), TQT_SLOT(partCompleted())); connect(part, TQT_SIGNAL(middleButtonClicked()), TQT_SLOT(middleButtonClicked())); rightBtnMenu = new KPopupMenu(this); @@ -184,11 +184,11 @@ void QueryView::optionsChanged() saveCurrentResultPos(); currentHTMLHeader = TQString("