diff options
Diffstat (limited to 'lib/kofficeui/KoTooluButton.cpp')
-rw-r--r-- | lib/kofficeui/KoTooluButton.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/kofficeui/KoTooluButton.cpp b/lib/kofficeui/KoTooluButton.cpp index 566a3722..4b5b1b4d 100644 --- a/lib/kofficeui/KoTooluButton.cpp +++ b/lib/kofficeui/KoTooluButton.cpp @@ -309,8 +309,8 @@ void KoColorPanel::mousePressEvent( TQMouseEvent* e ) void KoColorPanel::mouseReleaseEvent( TQMouseEvent* ) { - if ( isVisible() && tqparentWidget() && tqparentWidget()->inherits( TQPOPUPMENU_OBJECT_NAME_STRING ) ) - tqparentWidget()->close(); + if ( isVisible() && parentWidget() && parentWidget()->inherits( TQPOPUPMENU_OBJECT_NAME_STRING ) ) + parentWidget()->close(); emit colorSelected( mapToColor( m_pressedPos ) ); } @@ -425,8 +425,8 @@ void KoColorPanel::keyPressEvent( TQKeyEvent* e ) e->ignore(); } else if ( e->key() == TQt::Key_Return ) { - if ( isVisible() && tqparentWidget() && tqparentWidget()->inherits( TQPOPUPMENU_OBJECT_NAME_STRING ) ) - tqparentWidget()->close(); + if ( isVisible() && parentWidget() && parentWidget()->inherits( TQPOPUPMENU_OBJECT_NAME_STRING ) ) + parentWidget()->close(); emit colorSelected( mapToColor( m_focusPosition ) ); } updateFocusPosition( newPos ); |