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>
pull/11/head
Michele Calgaro 1 year ago
parent 41c9f7dc9d
commit bef9c28857
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -434,7 +434,7 @@ bool KrBookmarkHandler::eventFilter( TQObject *obj, TQEvent *ev ) {
switch (TQT_TQMOUSEEVENT(ev)->button()) {
case Qt::RightButton:
_middleClick = false;
if( obj->inherits( TQPOPUPMENU_OBJECT_NAME_STRING ) ) {
if( obj->inherits( "TQPopupMenu" ) ) {
int id = static_cast<TQPopupMenu*>(TQT_TQWIDGET(obj))->idAt( TQT_TQMOUSEEVENT(ev)->pos() );
if( TQT_BASE_OBJECT(obj) == TQT_BASE_OBJECT(_mainBookmarkPopup) && _specialBookmarkIDs.contains( id ) ) {

@ -101,7 +101,7 @@ void KrRemoteEncodingMenu::loadSettings()
int KrRemoteEncodingMenu::plug( TQWidget *widget, int index )
{
if( widget->inherits( TQPOPUPMENU_OBJECT_NAME_STRING ) )
if( widget->inherits( "TQPopupMenu" ) )
{
connect( widget, TQT_SIGNAL(aboutToShow()), this, TQT_SLOT(slotCheckEnabled()));
slotCheckEnabled();

@ -1002,7 +1002,7 @@ bool Krusader::queryClose() {
if( hid )
w->show();
if( w->inherits( TQDIALOG_OBJECT_NAME_STRING ) )
if( w->inherits( "TQDialog" ) )
fprintf( stderr, "Failed to close: %s\n", w->className() );
return false;

Loading…
Cancel
Save