summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-11-04 22:49:13 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-11-05 11:40:01 +0900
commit4c58d618d3bf930d1c987ee2d89976574e42ad76 (patch)
tree52fc0b6ffdd431e92d94de1f56be7e0d032c90a1
parent786381a7671eb6260b0fc7d47cc9be2c4a7d43a4 (diff)
downloadgwenview-4c58d618d3bf930d1c987ee2d89976574e42ad76.tar.gz
gwenview-4c58d618d3bf930d1c987ee2d89976574e42ad76.zip
Replace Qt with TQt
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 858a7823349a7eeaf2e729fc2b1983f085bd2c2c)
-rw-r--r--src/gvcore/cursortracker.cpp2
-rw-r--r--src/gvcore/imageview.cpp16
-rw-r--r--src/gvdirpart/gvdirpart.cpp2
3 files changed, 10 insertions, 10 deletions
diff --git a/src/gvcore/cursortracker.cpp b/src/gvcore/cursortracker.cpp
index 5baf1b9..e6bee5c 100644
--- a/src/gvcore/cursortracker.cpp
+++ b/src/gvcore/cursortracker.cpp
@@ -48,7 +48,7 @@ bool CursorTracker::eventFilter(TQObject* object, TQEvent* _event) {
switch (_event->type()) {
case TQEvent::MouseMove: {
TQMouseEvent* event=TQT_TQMOUSEEVENT(_event);
- if (widget->rect().contains(event->pos()) || (event->stateAfter() & Qt::LeftButton)) {
+ if (widget->rect().contains(event->pos()) || (event->stateAfter() & TQt::LeftButton)) {
show();
move(event->globalPos().x() + 15, event->globalPos().y() + 15);
} else {
diff --git a/src/gvcore/imageview.cpp b/src/gvcore/imageview.cpp
index 1604528..11ffb94 100644
--- a/src/gvcore/imageview.cpp
+++ b/src/gvcore/imageview.cpp
@@ -958,10 +958,10 @@ void ImageView::performPaint( TQPainter* painter, int clipx, int clipy, int clip
void ImageView::viewportMousePressEvent(TQMouseEvent* event) {
viewport()->setFocus();
switch (event->button()) {
- case Qt::LeftButton:
+ case TQt::LeftButton:
d->mTools[d->mToolID]->leftButtonPressEvent(event);
break;
- case Qt::RightButton:
+ case TQt::RightButton:
d->mTools[d->mToolID]->rightButtonPressEvent(event);
break;
default: // Avoid compiler complain
@@ -978,8 +978,8 @@ void ImageView::viewportMouseMoveEvent(TQMouseEvent* event) {
void ImageView::viewportMouseReleaseEvent(TQMouseEvent* event) {
switch (event->button()) {
- case Qt::LeftButton:
- if (event->stateAfter() & Qt::RightButton) {
+ case TQt::LeftButton:
+ if (event->stateAfter() & TQt::RightButton) {
d->mOperaLikePrevious=true;
emit selectPrevious();
return;
@@ -987,12 +987,12 @@ void ImageView::viewportMouseReleaseEvent(TQMouseEvent* event) {
d->mTools[d->mToolID]->leftButtonReleaseEvent(event);
break;
- case Qt::MidButton:
+ case TQt::MidButton:
d->mTools[d->mToolID]->midButtonReleaseEvent(event);
break;
- case Qt::RightButton:
- if (event->stateAfter() & Qt::LeftButton) {
+ case TQt::RightButton:
+ if (event->stateAfter() & TQt::LeftButton) {
emit selectNext();
return;
}
@@ -1062,7 +1062,7 @@ void ImageView::keyPressEvent( TQKeyEvent *event ) {
TQScrollView::keyPressEvent( event );
int deltaX, deltaY;
- if (event->state() != Qt::NoButton) {
+ if (event->state() != TQt::NoButton) {
return;
}
switch (event->key()) {
diff --git a/src/gvdirpart/gvdirpart.cpp b/src/gvdirpart/gvdirpart.cpp
index 24cc05a..d836f48 100644
--- a/src/gvdirpart/gvdirpart.cpp
+++ b/src/gvdirpart/gvdirpart.cpp
@@ -68,7 +68,7 @@ GVDirPart::GVDirPart(TQWidget* parentWidget, const char* /*widgetName*/, TQObjec
mBrowserExtension = new GVDirPartBrowserExtension(this);
- mSplitter = new TQSplitter(Qt::Horizontal, parentWidget, "gwenview-kpart-splitter");
+ mSplitter = new TQSplitter(TQt::Horizontal, parentWidget, "gwenview-kpart-splitter");
mSplitter->setFocusPolicy(TQWidget::ClickFocus);
mSplitter->setOpaqueResize(true);