summaryrefslogtreecommitdiffstats
path: root/kdat/ktreeview.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-11-06 11:29:21 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-11-07 09:56:56 +0900
commit16c7639b7aa81b924da8b4edc1d4212860b8f00d (patch)
tree64c03f99f28faf0fdc74e420a6a48cfc7b95a07f /kdat/ktreeview.cpp
parent7dede5a42269fdc0139308cd28343ece65c52b8e (diff)
downloadtdeadmin-16c7639b7aa81b924da8b4edc1d4212860b8f00d.tar.gz
tdeadmin-16c7639b7aa81b924da8b4edc1d4212860b8f00d.zip
Replace Qt with TQt
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 65a06ba9047c5b3bbe201d2e453f30868bd3fad3)
Diffstat (limited to 'kdat/ktreeview.cpp')
-rw-r--r--kdat/ktreeview.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/kdat/ktreeview.cpp b/kdat/ktreeview.cpp
index 24712d4..f3a98ce 100644
--- a/kdat/ktreeview.cpp
+++ b/kdat/ktreeview.cpp
@@ -350,7 +350,7 @@ void KTreeViewItem::paintHighlight(TQPainter* p, int indent, const TQColorGroup&
textRect.setCoords(l - 1, t - 1, r + 1, b + 1);
p->setPen(TQPen(TQt::yellow, 0, TQt::DotLine));
p->setBackgroundColor(fc);
- p->setBackgroundMode(Qt::OpaqueMode);
+ p->setBackgroundMode(TQt::OpaqueMode);
p->drawRect(textRect);
textRect.setCoords(l - 2, t - 2, r + 2, b + 2);
p->setPen(fc);
@@ -1701,7 +1701,7 @@ void KTreeView::mousePressEvent(TQMouseEvent *e)
{
// first: check which button was pressed
- if (e->button() == Qt::MidButton)
+ if (e->button() == TQt::MidButton)
{
// RB: the MMB is hardcoded to the "rubberband" scroll mode
if (!rubberband_mode) {
@@ -1709,7 +1709,7 @@ void KTreeView::mousePressEvent(TQMouseEvent *e)
}
return;
}
- else if ( ( rubberband_mode ) && ( e->button() != Qt::RightButton ) )
+ else if ( ( rubberband_mode ) && ( e->button() != TQt::RightButton ) )
{
// another button was pressed while rubberbanding, stop the move.
// RB: if we allow other buttons while rubberbanding the tree can expand
@@ -1751,7 +1751,7 @@ void KTreeView::mousePressEvent(TQMouseEvent *e)
// hit item (to show info on the file/dir label clicked)
else if (item->boundingRect(indentation(item)).contains(cellCoord)) {
setCurrentItem(itemClicked); // highlight item
- if ( e->button() == Qt::RightButton ) {
+ if ( e->button() == TQt::RightButton ) {
emit popupMenu( itemClicked, mapToGlobal( TQPoint( e->pos().x(), e->pos().y() ) ) );
}
}
@@ -1761,7 +1761,7 @@ void KTreeView::mousePressEvent(TQMouseEvent *e)
void KTreeView::mouseReleaseEvent(TQMouseEvent *e)
{
/* if it's the MMB end rubberbanding */
- if (rubberband_mode && e->button()==Qt::MidButton)
+ if (rubberband_mode && e->button()==TQt::MidButton)
{
end_rubberband();
}