summaryrefslogtreecommitdiffstats
path: root/ksirc/kstextview.cpp
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 /ksirc/kstextview.cpp
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 'ksirc/kstextview.cpp')
-rw-r--r--ksirc/kstextview.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/ksirc/kstextview.cpp b/ksirc/kstextview.cpp
index 625b8dda..12a6747e 100644
--- a/ksirc/kstextview.cpp
+++ b/ksirc/kstextview.cpp
@@ -1827,18 +1827,18 @@ void TextView::clearSelectionInternal()
void TextView::contentsMousePressEvent( TQMouseEvent *ev )
{
- if ( ev->button() & Qt::RightButton ) {
+ if ( ev->button() & TQt::RightButton ) {
emitLinkClickedForMouseEvent( ev );
return;
}
- if ( !( ev->button() & Qt::LeftButton ) && !(ev->button() & Qt::MidButton ) )
+ if ( !( ev->button() & TQt::LeftButton ) && !(ev->button() & TQt::MidButton ) )
return;
clearSelection( true );
SelectionPoint p;
Item *itemUnderMouse = itemAt( ev->pos(), &p, Item::SelectFuzzy );
- if ( p.item && ( ev->button() & Qt::LeftButton ) ) {
+ if ( p.item && ( ev->button() & TQt::LeftButton ) ) {
m_selectionMaybeStart = p;
p.item->setSelectionStatus( Item::NoSelection );
}
@@ -1847,7 +1847,7 @@ void TextView::contentsMousePressEvent( TQMouseEvent *ev )
if ( !href.isNull() ) {
m_dragStartPos = ev->pos();
m_dragURL = href.toTQString();
- if ( ev->button() & Qt::LeftButton )
+ if ( ev->button() & TQt::LeftButton )
m_mousePressed = true;
else
m_mmbPressed = true;
@@ -1857,7 +1857,7 @@ void TextView::contentsMousePressEvent( TQMouseEvent *ev )
void TextView::contentsMouseMoveEvent( TQMouseEvent *ev )
{
- if ( m_mousePressed && ev->state() == Qt::NoButton )
+ if ( m_mousePressed && ev->state() == TQt::NoButton )
{
m_mousePressed = false;
m_mmbPressed = false;
@@ -1881,8 +1881,8 @@ void TextView::contentsMouseMoveEvent( TQMouseEvent *ev )
if ( !i && !p.item )
return;
- if ( (ev->state() & Qt::LeftButton && m_selectionStart.item && p.item) ||
- (ev->state() & Qt::LeftButton && m_selectionMaybeStart.item && p.item))
+ if ( (ev->state() & TQt::LeftButton && m_selectionStart.item && p.item) ||
+ (ev->state() & TQt::LeftButton && m_selectionMaybeStart.item && p.item))
{
if(m_selectionMaybeStart.item != 0){
@@ -1952,7 +1952,7 @@ void TextView::contentsMouseReleaseEvent( TQMouseEvent *ev )
m_selectionMaybeStart = SelectionPoint();
- if ( (ev->button() & Qt::LeftButton) && !m_selectedText.isEmpty() )
+ if ( (ev->button() & TQt::LeftButton) && !m_selectedText.isEmpty() )
TQApplication::clipboard()->setText( m_selectedText, TQClipboard::Selection );
if ( clicked ) {
@@ -1960,7 +1960,7 @@ void TextView::contentsMouseReleaseEvent( TQMouseEvent *ev )
return;
}
- if (ev->button() & Qt::MidButton)
+ if (ev->button() & TQt::MidButton)
{
emit pasteReq( TDEApplication::clipboard()->text( TQClipboard::Selection ) );
return;