summaryrefslogtreecommitdiffstats
path: root/kdict
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2023-11-09 10:36:57 +0900
committerMichele Calgaro <[email protected]>2023-11-09 17:21:24 +0900
commit7367a616169a4ec8b35b5a993852c336aaeec25b (patch)
tree2fd2b837621af51718278a66c8d5151fec1d77e8 /kdict
parenta14ec34f576f49ee1abf4844883fb9e3af69eeb3 (diff)
downloadtdenetwork-7367a616169a4ec8b35b5a993852c336aaeec25b.tar.gz
tdenetwork-7367a616169a4ec8b35b5a993852c336aaeec25b.zip
Replace Qt with TQt
Signed-off-by: Michele Calgaro <[email protected]> (cherry picked from commit b53c83209a6b927b27600899a780db1efc985ecb)
Diffstat (limited to 'kdict')
-rw-r--r--kdict/applet/kdictapplet.cpp6
-rw-r--r--kdict/matchview.cpp2
-rw-r--r--kdict/queryview.cpp2
-rw-r--r--kdict/toplevel.cpp4
4 files changed, 7 insertions, 7 deletions
diff --git a/kdict/applet/kdictapplet.cpp b/kdict/applet/kdictapplet.cpp
index e4bb9b14..04268177 100644
--- a/kdict/applet/kdictapplet.cpp
+++ b/kdict/applet/kdictapplet.cpp
@@ -219,7 +219,7 @@ int DictApplet::heightForWidth(int width) const
void DictApplet::resizeEvent(TQResizeEvent*)
{
- if (orientation() ==Qt::Horizontal) {
+ if (orientation() ==TQt::Horizontal) {
verticalBtn->hide();
baseWidget->show();
baseWidget->setFixedSize(width(),height());
@@ -246,7 +246,7 @@ void DictApplet::resizeEvent(TQResizeEvent*)
}
baseWidget->updateGeometry();
- } else { // orientation() ==Qt::Vertical
+ } else { // orientation() ==TQt::Vertical
verticalBtn->show();
baseWidget->hide();
verticalBtn->setFixedSize(width(),width());
@@ -338,7 +338,7 @@ void DictApplet::startQuery(const TQString &s)
sendCommand("definePhrase(TQString)",query);
- if (orientation() ==Qt::Vertical)
+ if (orientation() ==TQt::Vertical)
popupBox->hide();
}
diff --git a/kdict/matchview.cpp b/kdict/matchview.cpp
index 8d4a7dc6..556685f5 100644
--- a/kdict/matchview.cpp
+++ b/kdict/matchview.cpp
@@ -217,7 +217,7 @@ void MatchView::enableGetButton()
void MatchView::mouseButtonPressed(int button, TQListViewItem *, const TQPoint &, int)
{
- if (button == Qt::MidButton)
+ if (button == TQt::MidButton)
emit(clipboardRequested());
}
diff --git a/kdict/queryview.cpp b/kdict/queryview.cpp
index ea108c60..c96dc540 100644
--- a/kdict/queryview.cpp
+++ b/kdict/queryview.cpp
@@ -120,7 +120,7 @@ DictHTMLPart::~DictHTMLPart()
void DictHTMLPart::tdehtmlMouseReleaseEvent(tdehtml::MouseReleaseEvent *event)
{
- if (event->qmouseEvent()->button()==Qt::MidButton)
+ if (event->qmouseEvent()->button()==TQt::MidButton)
emit(middleButtonClicked());
else
TDEHTMLPart::tdehtmlMouseReleaseEvent(event);
diff --git a/kdict/toplevel.cpp b/kdict/toplevel.cpp
index 7f05207b..862d83ab 100644
--- a/kdict/toplevel.cpp
+++ b/kdict/toplevel.cpp
@@ -89,7 +89,7 @@ TopLevel::TopLevel(TQWidget* parent, const char* name)
if (global->showMatchList)
{ // show splitter, html view & match list
- splitter = new TQSplitter(Qt::Horizontal,this);
+ splitter = new TQSplitter(TQt::Horizontal,this);
splitter->setOpaqueResize( TDEGlobalSettings::opaqueResize() );
queryView->reparent(splitter,0,queryView->pos(),true);
matchView->reparent(splitter,0,matchView->pos(),true);
@@ -648,7 +648,7 @@ void TopLevel::toggleMatchListShow()
else // list is not visible -> show it
{
global->showMatchList = true;
- splitter = new TQSplitter(Qt::Horizontal,this);
+ splitter = new TQSplitter(TQt::Horizontal,this);
splitter->setOpaqueResize( TDEGlobalSettings::opaqueResize() );
setCentralWidget(splitter);
splitter->show();