summaryrefslogtreecommitdiffstats
path: root/kviewshell
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2023-11-06 11:39:17 +0900
committerMichele Calgaro <[email protected]>2023-11-07 11:44:25 +0900
commitb93a9330d8b06f081d4ea3d2d48cdba2b6b2ce46 (patch)
treea322378de9225faac7c5226d1aaa01c4bfcdf527 /kviewshell
parent0181791a29594df4dbf38706d0b9ed509b3141f4 (diff)
downloadtdegraphics-b93a9330d8b06f081d4ea3d2d48cdba2b6b2ce46.tar.gz
tdegraphics-b93a9330d8b06f081d4ea3d2d48cdba2b6b2ce46.zip
Replace Qt with TQt
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'kviewshell')
-rw-r--r--kviewshell/documentWidget.cpp10
-rw-r--r--kviewshell/kviewshell.kcfg2
-rw-r--r--kviewshell/marklist.cpp6
-rw-r--r--kviewshell/pageView.cpp4
-rw-r--r--kviewshell/plugins/djvu/libdjvu/DjVuAnno.h4
-rw-r--r--kviewshell/plugins/djvu/libdjvu/DjVuText.cpp2
-rw-r--r--kviewshell/plugins/djvu/libdjvu/DjVuText.h4
-rw-r--r--kviewshell/plugins/djvu/libdjvu/GRect.h4
-rw-r--r--kviewshell/plugins/djvu/libdjvu/JB2Image.h4
-rw-r--r--kviewshell/plugins/djvu/libdjvu/MMRDecoder.cpp4
10 files changed, 22 insertions, 22 deletions
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 @@
</group>
<group name="Accessibility" >
<entry key="PaperColor" type="Color" >
- <default code="true" >Qt::white</default>
+ <default code="true" >TQt::white</default>
</entry>
<entry key="ChangeColors" type="Bool" >
<default>false</default>
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<b)?a:b; }
//******************************** DjVuTXT **********************************
//***************************************************************************
-const char DjVuTXT::end_of_column = 013; // VT:Qt::Vertical Tab
+const char DjVuTXT::end_of_column = 013; // VT: Vertical Tab
const char DjVuTXT::end_of_region = 035; // GS: Group Separator
const char DjVuTXT::end_of_paragraph = 037; // US: Unit Separator
const char DjVuTXT::end_of_line = 012; // LF: Line Feed
diff --git a/kviewshell/plugins/djvu/libdjvu/DjVuText.h b/kviewshell/plugins/djvu/libdjvu/DjVuText.h
index abd57a62..6f23c3b3 100644
--- a/kviewshell/plugins/djvu/libdjvu/DjVuText.h
+++ b/kviewshell/plugins/djvu/libdjvu/DjVuText.h
@@ -171,13 +171,13 @@ public:
control character:
\begin{tabular}{lll}
{\bf Name} & {\bf Octal} & {\bf Ascii name} \\\hline\\
- {\tt DjVuText::end_of_column} & 013 & VT,Qt::Vertical Tab \\
+ {\tt DjVuText::end_of_column} & 013 & VT, Vertical Tab \\
{\tt DjVuText::end_of_region} & 035 & GS, Group Separator \\
{\tt DjVuText::end_of_paragraph} & 037 & US, Unit Separator \\
{\tt DjVuText::end_of_line} & 012 & LF: Line Feed
\end{tabular} */
GUTF8String textUTF8;
- static const char end_of_column ; // VT:Qt::Vertical Tab
+ static const char end_of_column ; // VT: Vertical Tab
static const char end_of_region ; // GS: Group Separator
static const char end_of_paragraph ; // US: Unit Separator
static const char end_of_line ; // LF: Line Feed
diff --git a/kviewshell/plugins/djvu/libdjvu/GRect.h b/kviewshell/plugins/djvu/libdjvu/GRect.h
index 67c0ce94..518691ea 100644
--- a/kviewshell/plugins/djvu/libdjvu/GRect.h
+++ b/kviewshell/plugins/djvu/libdjvu/GRect.h
@@ -131,7 +131,7 @@ namespace DJVU {
class GRect
{
public:
- /** #Qt::OrientationBits# defines 3 mutually exclusive
+ /** #OrientationBits# defines 3 mutually exclusive
bits to indicate the image orientation.
There are four possible rotation values for an image
@@ -149,7 +149,7 @@ public:
};
/** #Orientations# defines all 8 possible orientations, using
- the three \Ref{Qt::OrientationBits}.
+ the three \Ref{OrientationBits}.
\begin{itemize}
\item {\em TDLRNR} for Top Down, Left to Right, No Rotation.
\item {\em BULRNR} for Bottom Up, Left to Right, No Rotation.
diff --git a/kviewshell/plugins/djvu/libdjvu/JB2Image.h b/kviewshell/plugins/djvu/libdjvu/JB2Image.h
index d3f2acaa..4619445e 100644
--- a/kviewshell/plugins/djvu/libdjvu/JB2Image.h
+++ b/kviewshell/plugins/djvu/libdjvu/JB2Image.h
@@ -196,9 +196,9 @@ class ByteStream;
class JB2Blit {
public:
- /**Qt::Horizontal coordinate of the blit. */
+ /** Horizontal coordinate of the blit. */
unsigned short left;
- /**Qt::Vertical coordinate of the blit. */
+ /** Vertical coordinate of the blit. */
unsigned short bottom;
/** Index of the shape to blit. */
unsigned int shapeno;
diff --git a/kviewshell/plugins/djvu/libdjvu/MMRDecoder.cpp b/kviewshell/plugins/djvu/libdjvu/MMRDecoder.cpp
index add09e3b..3dced77a 100644
--- a/kviewshell/plugins/djvu/libdjvu/MMRDecoder.cpp
+++ b/kviewshell/plugins/djvu/libdjvu/MMRDecoder.cpp
@@ -602,7 +602,7 @@ MMRDecoder::scanruns(const unsigned short **endptr)
b1 += *pr++;
break;
}
- /*Qt::Horizontal Mode */
+ /* Horizontal Mode */
case H:
{
// First run
@@ -616,7 +616,7 @@ MMRDecoder::scanruns(const unsigned short **endptr)
*xr = rle; xr++; rle = 0;
break;
}
- /*Qt::Vertical Modes */
+ /* Vertical Modes */
case V0:
case VR3:
case VR2: