summaryrefslogtreecommitdiffstats
path: root/konversation/src/viewtree.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'konversation/src/viewtree.cpp')
-rw-r--r--konversation/src/viewtree.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/konversation/src/viewtree.cpp b/konversation/src/viewtree.cpp
index 3351a90..bb036a4 100644
--- a/konversation/src/viewtree.cpp
+++ b/konversation/src/viewtree.cpp
@@ -538,10 +538,10 @@ void ViewTree::contentsMousePressEvent(TQMouseEvent* e)
// Don't change the selected item when the user only
// wants to get the context menu for a non-selected
// item.
- if (e->button() == Qt::RightButton && !item->isSelected())
+ if (e->button() == TQt::RightButton && !item->isSelected())
return;
- if (Preferences::closeButtons() && e->button() == Qt::LeftButton && isAboveIcon(vp, item))
+ if (Preferences::closeButtons() && e->button() == TQt::LeftButton && isAboveIcon(vp, item))
{
m_pressedAboveCloseButton = true;
if (!item->getCloseButtonEnabled()) TDEListView::contentsMousePressEvent(e);
@@ -551,7 +551,7 @@ void ViewTree::contentsMousePressEvent(TQMouseEvent* e)
m_pressedAboveCloseButton = false;
TDEListView::contentsMousePressEvent(e);
}
- m_middleClickItem = (Preferences::middleClickClose() && e->button() == Qt::MidButton) ? item : 0;
+ m_middleClickItem = (Preferences::middleClickClose() && e->button() == TQt::MidButton) ? item : 0;
}
}
@@ -560,19 +560,19 @@ void ViewTree::contentsMouseReleaseEvent(TQMouseEvent* e)
TQPoint vp = contentsToViewport(e->pos());
ViewTreeItem* item = static_cast<ViewTreeItem*>(itemAt(vp));
- if (!item && e->button() == Qt::RightButton)
+ if (!item && e->button() == TQt::RightButton)
return;
if (item)
{
- if (Preferences::closeButtons() && e->button() == Qt::LeftButton
+ if (Preferences::closeButtons() && e->button() == TQt::LeftButton
&& isAboveIcon(vp, item) && m_pressedAboveCloseButton
&& item->getCloseButtonEnabled())
{
emit closeView(item->getView());
}
- if (Preferences::middleClickClose() && e->button() == Qt::MidButton
+ if (Preferences::middleClickClose() && e->button() == TQt::MidButton
&& item == m_middleClickItem)
{
emit closeView(item->getView());
@@ -597,9 +597,9 @@ void ViewTree::contentsMouseMoveEvent(TQMouseEvent* e)
// Allow dragging only with the middle mouse button, just
// like for the tab bar.
- if ((e->state() & Qt::MidButton) == Qt::MidButton)
+ if ((e->state() & TQt::MidButton) == TQt::MidButton)
TDEListView::contentsMouseMoveEvent(e);
- else if ((e->state() & Qt::LeftButton) == Qt::LeftButton)
+ else if ((e->state() & TQt::LeftButton) == TQt::LeftButton)
{
if (item && (item != selectedItem()) && !item->isSeparator())
setSelected(item, true);
@@ -607,7 +607,7 @@ void ViewTree::contentsMouseMoveEvent(TQMouseEvent* e)
if (Preferences::closeButtons())
{
- if (!(e->state() & Qt::LeftButton) && !(e->state() & Qt::MidButton) && !(e->state() & Qt::RightButton))
+ if (!(e->state() & TQt::LeftButton) && !(e->state() & TQt::MidButton) && !(e->state() & TQt::RightButton))
{
if (item)
{