Fix a number of runtime object identification problems which led to an even larger array of minor glitches

NOTE: kdevelop and kdewebdev still need to be fully repaired


git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/amarok@1222475 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
tpearson 14 years ago
parent 65e9d3ec36
commit 147b8fea24

@ -244,7 +244,7 @@ PlayPauseAction::engineStateChanged( Engine::State state, Engine::State /*oldSt
//update menu texts for this special action //update menu texts for this special action
for( int x = 0; x < containerCount(); ++x ) { for( int x = 0; x < containerCount(); ++x ) {
TQWidget *w = container( x ); TQWidget *w = container( x );
if( w->inherits( "TQPopupMenu" ) ) if( w->inherits( TQPOPUPMENU_OBJECT_NAME_STRING ) )
static_cast<TQPopupMenu*>(w)->changeItem( itemId( x ), text ); static_cast<TQPopupMenu*>(w)->changeItem( itemId( x ), text );
//TODO KToolBar sucks so much //TODO KToolBar sucks so much
// else if( w->inherits( "KToolBar" ) ) // else if( w->inherits( "KToolBar" ) )

@ -184,14 +184,14 @@ AmarokConfigDialog::AmarokConfigDialog( TQWidget *parent, const char* name, KCon
addPage( opt9, i18n( "Media Devices" ), Amarok::icon( "device" ), i18n( "Configure Portable Player Support" ) ); addPage( opt9, i18n( "Media Devices" ), Amarok::icon( "device" ), i18n( "Configure Portable Player Support" ) );
// Show information labels (must be done after insertions) // Show information labels (must be done after insertions)
TQObjectList *list = queryList( "TQLabel", "infoPixmap" ); TQObjectList *list = queryList( TQLABEL_OBJECT_NAME_STRING, "infoPixmap" );
TQPixmap const info = KGlobal::iconLoader()->iconPath( "messagebox_info", -KIcon::SizeHuge ); TQPixmap const info = KGlobal::iconLoader()->iconPath( "messagebox_info", -KIcon::SizeHuge );
for( TQObject *label = list->first(); label; label = list->next() ) for( TQObject *label = list->first(); label; label = list->next() )
static_cast<TQLabel*>(label)->setPixmap( info ); static_cast<TQLabel*>(label)->setPixmap( info );
delete list; delete list;
//stop KFont Requesters getting stupidly large //stop KFont Requesters getting stupidly large
list = queryList( "TQLabel", "m_sampleLabel" ); list = queryList( TQLABEL_OBJECT_NAME_STRING, "m_sampleLabel" );
for( TQObject *label = list->first(); label; label = list->next() ) for( TQObject *label = list->first(); label; label = list->next() )
static_cast<TQLabel*>(label)->setMaximumWidth( 250 ); static_cast<TQLabel*>(label)->setMaximumWidth( 250 );
delete list; delete list;

@ -547,7 +547,7 @@ bool PlayerWidget::event( TQEvent *e )
return true; return true;
case 6/*TQEvent::KeyPress*/: case 6/*TQEvent::KeyPress*/:
if (static_cast<TQKeyEvent*>(e)->key() == Qt::Key_D/* && (m_pAnalyzer->inherits("TQGLWidget")*/) if (static_cast<TQKeyEvent*>(e)->key() == Qt::Key_D/* && (m_pAnalyzer->inherits(TQGLWIDGET_OBJECT_NAME_STRING)*/)
{ {
if( m_pAnalyzer->parent() ) if( m_pAnalyzer->parent() )
{ {

@ -862,7 +862,7 @@ void CriteriaEditor::loadEditWidgets()
/* Store lastCriteria. This information is used above to decide whether it's necessary to change the Widgets */ /* Store lastCriteria. This information is used above to decide whether it's necessary to change the Widgets */
m_lastCriteria = m_criteriaCombo->currentText(); m_lastCriteria = m_criteriaCombo->currentText();
TQObjectList* list = m_editBox->queryList( "TQWidget" ); TQObjectList* list = m_editBox->queryList( TQWIDGET_OBJECT_NAME_STRING );
for( TQObject *obj = list->first(); obj; obj = list->next() ) for( TQObject *obj = list->first(); obj; obj = list->next() )
static_cast<TQWidget*>(obj)->deleteLater(); static_cast<TQWidget*>(obj)->deleteLater();

@ -74,7 +74,7 @@ namespace SingleShotPool
{ {
TQTimer *timer = static_cast<TQTimer*>( parent->child( slot ) ); TQTimer *timer = static_cast<TQTimer*>( parent->child( slot ) );
return timer && timer->isA( "TQTimer" ) && timer->isActive(); return timer && timer->isA( TQTIMER_OBJECT_NAME_STRING ) && timer->isActive();
} }
} }
@ -148,7 +148,7 @@ StatusBar::polish()
TQWidget::polish(); TQWidget::polish();
int h = 0; int h = 0;
TQObjectList *list = queryList( "TQWidget", 0, false, false ); TQObjectList *list = queryList( TQWIDGET_OBJECT_NAME_STRING, 0, false, false );
for( TQObject * o = list->first(); o; o = list->next() ) { for( TQObject * o = list->first(); o; o = list->next() ) {
int _h = static_cast<TQWidget*>( o ) ->minimumSizeHint().height(); int _h = static_cast<TQWidget*>( o ) ->minimumSizeHint().height();
@ -157,7 +157,7 @@ StatusBar::polish()
// debug() << o->className() << ", " << o->name() << ": " << _h << ": " << static_cast<TQWidget*>(o)->minimumHeight() << endl; // debug() << o->className() << ", " << o->name() << ": " << _h << ": " << static_cast<TQWidget*>(o)->minimumHeight() << endl;
if ( o->inherits( "TQLabel" ) ) if ( o->inherits( TQLABEL_OBJECT_NAME_STRING ) )
static_cast<TQLabel*>(o)->setIndent( 4 ); static_cast<TQLabel*>(o)->setIndent( 4 );
} }
@ -172,7 +172,7 @@ StatusBar::polish()
void void
StatusBar::paintEvent( TQPaintEvent* ) StatusBar::paintEvent( TQPaintEvent* )
{ {
TQObjectList *list = queryList( "TQWidget", 0, false, false ); TQObjectList *list = queryList( TQWIDGET_OBJECT_NAME_STRING, 0, false, false );
TQPainter p( this ); TQPainter p( this );
for( TQObject * o = list->first(); o; o = list->next() ) { for( TQObject * o = list->first(); o; o = list->next() ) {

Loading…
Cancel
Save