diff options
Diffstat (limited to 'umbrello/umbrello/umllistview.cpp')
-rw-r--r-- | umbrello/umbrello/umllistview.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/umbrello/umbrello/umllistview.cpp b/umbrello/umbrello/umllistview.cpp index 9753b81a..cf38403c 100644 --- a/umbrello/umbrello/umllistview.cpp +++ b/umbrello/umbrello/umllistview.cpp @@ -145,7 +145,7 @@ bool UMLListView::eventFilter(TQObject *o, TQEvent *e) { if (e->type() != TQEvent::MouseButtonPress || !o->isA("TQHeader")) return TQListView::eventFilter(o, e); TQMouseEvent *me = TQT_TQMOUSEEVENT(e); - if (me->button() == Qt::RightButton) { + if (me->button() == TQt::RightButton) { if (m_pMenu) { m_pMenu->hide(); disconnect(m_pMenu, TQT_SIGNAL(activated(int)), this, TQT_SLOT(popupMenuSel(int))); @@ -169,19 +169,19 @@ void UMLListView::contentsMousePressEvent(TQMouseEvent *me) { UMLListViewItem * item = (UMLListViewItem*)itemAt(pt); const TQt::ButtonState button = me->button(); - if (!item || (button != Qt::RightButton && button != Qt::LeftButton)) { + if (!item || (button != TQt::RightButton && button != TQt::LeftButton)) { UMLApp::app()->getDocWindow()->updateDocumentation(true); return; } - if (button == Qt::LeftButton) { + if (button == TQt::LeftButton) { UMLObject *o = item->getUMLObject(); if (o) UMLApp::app()->getDocWindow()->showDocumentation(o, false); else UMLApp::app()->getDocWindow()->updateDocumentation(true); } - if (button == Qt::RightButton) { + if (button == TQt::RightButton) { if(m_pMenu != 0) { m_pMenu->hide(); disconnect(m_pMenu, TQT_SIGNAL(activated(int)), this, TQT_SLOT(popupMenuSel(int))); @@ -198,7 +198,7 @@ void UMLListView::contentsMousePressEvent(TQMouseEvent *me) { } void UMLListView::contentsMouseReleaseEvent(TQMouseEvent *me) { - if (me->button() != Qt::LeftButton) { + if (me->button() != TQt::LeftButton) { this->TDEListView::contentsMouseReleaseEvent(me); return; } @@ -1041,7 +1041,7 @@ void UMLListView::setView(UMLView * v) { void UMLListView::contentsMouseDoubleClickEvent(TQMouseEvent * me) { UMLListViewItem * item = static_cast<UMLListViewItem *>( currentItem() ); - if( !item || me -> button() != Qt::LeftButton ) + if( !item || me -> button() != TQt::LeftButton ) return; //see if on view Uml::ListView_Type lvType = item -> getType(); |