summaryrefslogtreecommitdiffstats
path: root/lib/kofficeui/KoTooluButton.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-07-11 21:42:08 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-07-13 09:04:02 +0900
commit462dc85dcb12aab8e19797dadf48799656708a54 (patch)
tree901511cb5d29b2a094b1149d0621add8cb15c0e9 /lib/kofficeui/KoTooluButton.cpp
parent75cc9de8f47db776021b5e8153c930d9af2108b6 (diff)
downloadkoffice-462dc85d.tar.gz
koffice-462dc85d.zip
Replace _OBJECT_NAME_STRING defines with actual strings. This relates to the merging of tqtinterface with tqt3.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 20e4a19b0d7cc800d57be50c56d69023adae4046)
Diffstat (limited to 'lib/kofficeui/KoTooluButton.cpp')
-rw-r--r--lib/kofficeui/KoTooluButton.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/kofficeui/KoTooluButton.cpp b/lib/kofficeui/KoTooluButton.cpp
index 1cd5e1c61..0d24cd161 100644
--- a/lib/kofficeui/KoTooluButton.cpp
+++ b/lib/kofficeui/KoTooluButton.cpp
@@ -309,7 +309,7 @@ void KoColorPanel::mousePressEvent( TQMouseEvent* e )
void KoColorPanel::mouseReleaseEvent( TQMouseEvent* )
{
- if ( isVisible() && parentWidget() && parentWidget()->inherits( TQPOPUPMENU_OBJECT_NAME_STRING ) )
+ if ( isVisible() && parentWidget() && parentWidget()->inherits( "TQPopupMenu" ) )
parentWidget()->close();
emit colorSelected( mapToColor( m_pressedPos ) );
}
@@ -425,7 +425,7 @@ void KoColorPanel::keyPressEvent( TQKeyEvent* e )
e->ignore();
}
else if ( e->key() == TQt::Key_Return ) {
- if ( isVisible() && parentWidget() && parentWidget()->inherits( TQPOPUPMENU_OBJECT_NAME_STRING ) )
+ if ( isVisible() && parentWidget() && parentWidget()->inherits( "TQPopupMenu" ) )
parentWidget()->close();
emit colorSelected( mapToColor( m_focusPosition ) );
}