diff options
Diffstat (limited to 'tdemdi')
-rw-r--r-- | tdemdi/tdemdichildarea.cpp | 2 | ||||
-rw-r--r-- | tdemdi/tdemdichildfrm.cpp | 2 | ||||
-rw-r--r-- | tdemdi/tdemdichildfrmcaption.cpp | 6 | ||||
-rw-r--r-- | tdemdi/tdemdichildview.cpp | 2 | ||||
-rw-r--r-- | tdemdi/tdemdichildview.h | 2 | ||||
-rw-r--r-- | tdemdi/tdemditaskbar.cpp | 6 | ||||
-rw-r--r-- | tdemdi/test/main.cpp | 4 |
7 files changed, 12 insertions, 12 deletions
diff --git a/tdemdi/tdemdichildarea.cpp b/tdemdi/tdemdichildarea.cpp index 5ae455b46..bebbf0b71 100644 --- a/tdemdi/tdemdichildarea.cpp +++ b/tdemdi/tdemdichildarea.cpp @@ -249,7 +249,7 @@ void KMdiChildArea::resizeEvent( TQResizeEvent* e ) void KMdiChildArea::mousePressEvent( TQMouseEvent *e ) { //Popup the window menu - if ( e->button() & Qt::RightButton ) + if ( e->button() & TQt::RightButton ) emit popupWindowMenu( mapToGlobal( e->pos() ) ); } diff --git a/tdemdi/tdemdichildfrm.cpp b/tdemdi/tdemdichildfrm.cpp index f83a8b86a..6bf5d69f5 100644 --- a/tdemdi/tdemdichildfrm.cpp +++ b/tdemdi/tdemdichildfrm.cpp @@ -283,7 +283,7 @@ void KMdiChildFrm::mouseMoveEvent( TQMouseEvent *e ) if ( m_bResizing ) { - if ( !( e->state() & Qt::RightButton ) && !( e->state() & Qt::MidButton ) ) + if ( !( e->state() & TQt::RightButton ) && !( e->state() & TQt::MidButton ) ) { // same as: if no button or left button pressed TQPoint p = parentWidget()->mapFromGlobal( e->globalPos() ); diff --git a/tdemdi/tdemdichildfrmcaption.cpp b/tdemdi/tdemdichildfrmcaption.cpp index 1ab6d1902..b7ec51bdc 100644 --- a/tdemdi/tdemdichildfrmcaption.cpp +++ b/tdemdi/tdemdichildfrmcaption.cpp @@ -85,7 +85,7 @@ KMdiChildFrmCaption::~KMdiChildFrmCaption() void KMdiChildFrmCaption::mousePressEvent( TQMouseEvent *e ) { - if ( e->button() == Qt::LeftButton ) + if ( e->button() == TQt::LeftButton ) { setMouseTracking( false ); if ( KMdiMainFrm::frameDecorOfAttachedViews() != KMdi::Win95Look ) @@ -95,7 +95,7 @@ void KMdiChildFrmCaption::mousePressEvent( TQMouseEvent *e ) m_pParent->m_bDragging = true; m_offset = mapToParent( e->pos() ); } - else if ( e->button() == Qt::RightButton ) + else if ( e->button() == TQt::RightButton ) { m_pParent->systemMenu()->popup( mapToGlobal( e->pos() ) ); } @@ -105,7 +105,7 @@ void KMdiChildFrmCaption::mousePressEvent( TQMouseEvent *e ) void KMdiChildFrmCaption::mouseReleaseEvent( TQMouseEvent *e ) { - if ( e->button() == Qt::LeftButton ) + if ( e->button() == TQt::LeftButton ) { if ( KMdiMainFrm::frameDecorOfAttachedViews() != KMdi::Win95Look ) TQApplication::restoreOverrideCursor(); diff --git a/tdemdi/tdemdichildview.cpp b/tdemdi/tdemdichildview.cpp index 7f9e07595..d2c273175 100644 --- a/tdemdi/tdemdichildview.cpp +++ b/tdemdi/tdemdichildview.cpp @@ -524,7 +524,7 @@ bool KMdiChildView::eventFilter( TQObject *obj, TQEvent *e ) if ( e->type() == TQEvent::KeyPress && isAttached() ) { TQKeyEvent* ke = ( TQKeyEvent* ) e; - if ( ke->key() == Qt::Key_Tab ) + if ( ke->key() == TQt::Key_Tab ) { TQWidget* w = ( TQWidget* ) obj; TQWidget::FocusPolicy wfp = w->focusPolicy(); diff --git a/tdemdi/tdemdichildview.h b/tdemdi/tdemdichildview.h index 66bd913ce..4681f5fdf 100644 --- a/tdemdi/tdemdichildview.h +++ b/tdemdi/tdemdichildview.h @@ -465,7 +465,7 @@ protected: virtual void closeEvent( TQCloseEvent *e ); /** - * It only catches TQEvent::KeyPress events there. If a Qt::Key_Tab is pressed, the internal MDI focus + * It only catches TQEvent::KeyPress events there. If a TQt::Key_Tab is pressed, the internal MDI focus * handling is called. That means if the last focusable child widget of this is called, it will jump to the * first focusable child widget of this. * See KMdiChildView::setFirstFocusableChildWidget and KMdiChildView::lastFirstFocusableChildWidget diff --git a/tdemdi/tdemditaskbar.cpp b/tdemdi/tdemditaskbar.cpp index d064c25c2..e10730dea 100644 --- a/tdemdi/tdemditaskbar.cpp +++ b/tdemdi/tdemditaskbar.cpp @@ -77,10 +77,10 @@ void KMdiTaskBarButton::mousePressEvent( TQMouseEvent* e ) { switch ( e->button() ) { - case Qt::LeftButton: + case TQt::LeftButton: emit leftMouseButtonClicked( m_pWindow ); break; - case Qt::RightButton: + case TQt::RightButton: emit rightMouseButtonClicked( m_pWindow ); break; default: @@ -363,7 +363,7 @@ void KMdiTaskBar::layoutTaskBar( int taskBarWidth ) newButtonWidth = buttonAreaWidth / buttonCount; else newButtonWidth = 0; - if ( orientation() == Qt::Vertical ) + if ( orientation() == TQt::Vertical ) newButtonWidth = 80; if ( newButtonWidth > 0 ) for ( b = m_pButtonList->first();b;b = m_pButtonList->next() ) diff --git a/tdemdi/test/main.cpp b/tdemdi/test/main.cpp index 234c4df8c..7d404ea8e 100644 --- a/tdemdi/test/main.cpp +++ b/tdemdi/test/main.cpp @@ -54,7 +54,7 @@ int main( int argc, char **argv ) Hello* h1 = new Hello( "Hello1", "Click the right mouse button on the mainframe!", mainWdg); h1->setTabCaption("Tab changed"); - h1->setBackgroundColor( Qt::white ); + h1->setBackgroundColor( TQt::white ); mainWdg->addWindow( h1); // SHOW(h1->caption()); // SHOW(h1->tabCaption()); @@ -66,7 +66,7 @@ int main( int argc, char **argv ) // SHOW(h2->tabCaption()); Hello* h3 = new Hello( "Hello3", "Dock me using the taskbar button context menu!", 0); - h3->setBackgroundColor( Qt::white ); + h3->setBackgroundColor( TQt::white ); h3->setFont( TQFont("times",20,TQFont::Bold) ); mainWdg->addWindow( h3, KMdi::Detach ); // undock this! h3->setGeometry( 20, 20, 400, 100); |