diff options
Diffstat (limited to 'kopete')
-rw-r--r-- | kopete/kopete/chatwindow/emoticonselector.cpp | 2 | ||||
-rw-r--r-- | kopete/kopete/chatwindow/kopeteemoticonaction.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/kopete/kopete/chatwindow/emoticonselector.cpp b/kopete/kopete/chatwindow/emoticonselector.cpp index 47dd1a59..719068d0 100644 --- a/kopete/kopete/chatwindow/emoticonselector.cpp +++ b/kopete/kopete/chatwindow/emoticonselector.cpp @@ -109,7 +109,7 @@ void EmoticonSelector::emoticonClicked(const TQString &str) // KDE4/Qt TODO: use qobject_cast instead. emit ItemSelected ( str ); if ( isVisible() && parentWidget() && - parentWidget()->inherits("TQPopupMenu") ) + parentWidget()->inherits(TQPOPUPMENU_OBJECT_NAME_STRING) ) { parentWidget()->close(); } diff --git a/kopete/kopete/chatwindow/kopeteemoticonaction.cpp b/kopete/kopete/chatwindow/kopeteemoticonaction.cpp index bb440ef2..fd9053ec 100644 --- a/kopete/kopete/chatwindow/kopeteemoticonaction.cpp +++ b/kopete/kopete/chatwindow/kopeteemoticonaction.cpp @@ -136,7 +136,7 @@ int KopeteEmoticonAction::plug( TQWidget* widget, int index ) // kdDebug(14010) << "KopeteEmoticonAction::plug( " << widget << ", " << index << " )" << endl; // KDE4/Qt TODO: Use qobject_cast instead. - if ( widget->inherits("TQPopupMenu") ) + if ( widget->inherits(TQPOPUPMENU_OBJECT_NAME_STRING) ) { TQPopupMenu* menu = static_cast<TQPopupMenu*>( widget ); int id; @@ -202,7 +202,7 @@ int KopeteEmoticonAction::plug( TQWidget* widget, int index ) return containerCount() - 1; } // KDE4/Qt TODO: Use qobject_cast instead. - else if ( widget->inherits( "TQMenuBar" ) ) + else if ( widget->inherits( TQMENUBAR_OBJECT_NAME_STRING ) ) { TQMenuBar *bar = static_cast<TQMenuBar *>( widget ); |