From b93a9330d8b06f081d4ea3d2d48cdba2b6b2ce46 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Mon, 6 Nov 2023 11:39:17 +0900 Subject: Replace Qt with TQt Signed-off-by: Michele Calgaro --- kviewshell/documentWidget.cpp | 10 +++++----- kviewshell/kviewshell.kcfg | 2 +- kviewshell/marklist.cpp | 6 +++--- kviewshell/pageView.cpp | 4 ++-- kviewshell/plugins/djvu/libdjvu/DjVuAnno.h | 4 ++-- kviewshell/plugins/djvu/libdjvu/DjVuText.cpp | 2 +- kviewshell/plugins/djvu/libdjvu/DjVuText.h | 4 ++-- kviewshell/plugins/djvu/libdjvu/GRect.h | 4 ++-- kviewshell/plugins/djvu/libdjvu/JB2Image.h | 4 ++-- kviewshell/plugins/djvu/libdjvu/MMRDecoder.cpp | 4 ++-- 10 files changed, 22 insertions(+), 22 deletions(-) (limited to 'kviewshell') diff --git a/kviewshell/documentWidget.cpp b/kviewshell/documentWidget.cpp index 988fda30..a4737821 100644 --- a/kviewshell/documentWidget.cpp +++ b/kviewshell/documentWidget.cpp @@ -450,7 +450,7 @@ void DocumentWidget::mousePressEvent ( TQMouseEvent * e ) } // Check if the mouse is pressed on a regular hyperlink - if (e->button() == Qt::LeftButton) { + if (e->button() == TQt::LeftButton) { if (pageData->hyperLinkList.size() > 0) for(unsigned int i = 0; i < pageData->hyperLinkList.size(); i++) { if (pageData->hyperLinkList[i].box.contains(e->pos())) { @@ -464,7 +464,7 @@ void DocumentWidget::mousePressEvent ( TQMouseEvent * e ) setCursor(TQt::IbeamCursor); } - if (e->button() == Qt::RightButton || (!moveTool && e->button() == Qt::LeftButton)) + if (e->button() == TQt::RightButton || (!moveTool && e->button() == TQt::LeftButton)) { setCursor(TQt::IbeamCursor); // If Shift is not pressed clear the current selection, @@ -486,7 +486,7 @@ void DocumentWidget::mouseReleaseEvent ( TQMouseEvent *e ) // otherwise the mouse cursor in the centeringScrollview is wrong e->ignore(); - if (e->button() == Qt::RightButton || (!moveTool && e->button() == Qt::LeftButton)) + if (e->button() == TQt::RightButton || (!moveTool && e->button() == TQt::LeftButton)) { // If the selectedRectangle is empty then there was only a single right click. if (firstSelectedPoint == e->pos()) @@ -589,7 +589,7 @@ void DocumentWidget::mouseMoveEvent ( TQMouseEvent * e ) clearStatusBarTimer.start(200, true); // clear the statusbar after 200 msec. // Left mouse button pressed -> Text scroll function - if ((e->state() & Qt::LeftButton) != 0 && moveTool) + if ((e->state() & TQt::LeftButton) != 0 && moveTool) { // Pass the mouse event on to the owner of this widget ---under // normal circumstances that is the centeringScrollView which will @@ -598,7 +598,7 @@ void DocumentWidget::mouseMoveEvent ( TQMouseEvent * e ) } // Right mouse button pressed -> Text copy function - if ((e->state() & Qt::RightButton) != 0 || (!moveTool && (e->state() & Qt::LeftButton != 0))) + if ((e->state() & TQt::RightButton) != 0 || (!moveTool && (e->state() & TQt::LeftButton != 0))) { if (selectedRectangle.isEmpty()) { firstSelectedPoint = e->pos(); diff --git a/kviewshell/kviewshell.kcfg b/kviewshell/kviewshell.kcfg index b292b1ec..9a025e8a 100644 --- a/kviewshell/kviewshell.kcfg +++ b/kviewshell/kviewshell.kcfg @@ -81,7 +81,7 @@ - Qt::white + TQt::white false diff --git a/kviewshell/marklist.cpp b/kviewshell/marklist.cpp index 9c2a7dee..799b5eea 100644 --- a/kviewshell/marklist.cpp +++ b/kviewshell/marklist.cpp @@ -258,11 +258,11 @@ bool MarkListWidget::isVisible() void MarkListWidget::mousePressEvent(TQMouseEvent* e) { // Select Page - if (e->button() == Qt::LeftButton) + if (e->button() == TQt::LeftButton) { emit selected(pageNumber); } - else if (e->button() == Qt::RightButton) + else if (e->button() == TQt::RightButton) { emit showPopupMenu(pageNumber, e->globalPos()); } @@ -502,7 +502,7 @@ void MarkList::updateWidgetSize(const PageNumber& pageNumber) void MarkList::mousePressEvent(TQMouseEvent* e) { - if (e->button() == Qt::RightButton) + if (e->button() == TQt::RightButton) { // We call showPopupMenu with an invalid pageNumber to indicate that // the mouse does not point at a thumbnailWidget. diff --git a/kviewshell/pageView.cpp b/kviewshell/pageView.cpp index f59e197b..c651b0b6 100644 --- a/kviewshell/pageView.cpp +++ b/kviewshell/pageView.cpp @@ -195,7 +195,7 @@ void PageView::keyPressEvent( TQKeyEvent* e ) void PageView::contentsMousePressEvent( TQMouseEvent* e ) { - if (e->button() == Qt::LeftButton) + if (e->button() == TQt::LeftButton) { if (moveTool) { @@ -222,7 +222,7 @@ void PageView::contentsMouseMoveEvent( TQMouseEvent* e ) { TQPoint newPos = e->globalPos(); - if (e->state() == Qt::LeftButton && moveTool) + if (e->state() == TQt::LeftButton && moveTool) { TQPoint delta = dragGrabPos - newPos; scrollBy(delta.x(), delta.y()); diff --git a/kviewshell/plugins/djvu/libdjvu/DjVuAnno.h b/kviewshell/plugins/djvu/libdjvu/DjVuAnno.h index 54c91e83..2fc77cbb 100644 --- a/kviewshell/plugins/djvu/libdjvu/DjVuAnno.h +++ b/kviewshell/plugins/djvu/libdjvu/DjVuAnno.h @@ -151,10 +151,10 @@ public: special cases. \end{description} */ int mode; - /**Qt::Horizontal page alignment. Possible values are #ALIGN_LEFT#, + /** Horizontal page alignment. Possible values are #ALIGN_LEFT#, #ALIGN_CENTER#, #ALIGN_RIGHT# and #ALIGN_UNSPEC#. */ alignment hor_align; - /**Qt::Vertical page alignment. Possible values are #ALIGN_TOP#, + /** Vertical page alignment. Possible values are #ALIGN_TOP#, #ALIGN_CENTER#, #ALIGN_BOTTOM# and #ALIGN_UNSPEC#. */ alignment ver_align; /** List of defined map areas. They may be just areas of highlighting diff --git a/kviewshell/plugins/djvu/libdjvu/DjVuText.cpp b/kviewshell/plugins/djvu/libdjvu/DjVuText.cpp index 152efa2c..fc69e154 100644 --- a/kviewshell/plugins/djvu/libdjvu/DjVuText.cpp +++ b/kviewshell/plugins/djvu/libdjvu/DjVuText.cpp @@ -87,7 +87,7 @@ static inline TYPE min(TYPE a,TYPE b) { return (a