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/kdeedu@1222475 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
tpearson 14 years ago
parent 648ba4a456
commit f81a494f39

@ -106,7 +106,7 @@ TQWidget *KVocTrainTableItem::createEditor() const
void KVocTrainTableItem::setContentFromEditor( TQWidget *w ) void KVocTrainTableItem::setContentFromEditor( TQWidget *w )
{ {
if (m_doc != 0) { if (m_doc != 0) {
if ( w->inherits( "TQComboBox" ) ) { if ( w->inherits( TQCOMBOBOX_OBJECT_NAME_STRING ) ) {
if (col() == KV_COL_MARK) { if (col() == KV_COL_MARK) {
TQComboBox *statebox = (TQComboBox*) w; TQComboBox *statebox = (TQComboBox*) w;
kvoctrainExpr *expr = m_doc->getEntry(row()); kvoctrainExpr *expr = m_doc->getEntry(row());

@ -486,7 +486,7 @@ void RandomQueryDlg::slotTransChanged(const TQString&)
{ {
mw->verify->setDefault(true); mw->verify->setDefault(true);
bool suggestions = Prefs::suggestions(); bool suggestions = Prefs::suggestions();
if ( suggestions && sender() && sender() -> isA ("TQComboBox") ) if ( suggestions && sender() && sender() -> isA (TQCOMBOBOX_OBJECT_NAME_STRING) )
{ {
TQLineEdit* edit = ((TQComboBox*) sender()) -> lineEdit(); TQLineEdit* edit = ((TQComboBox*) sender()) -> lineEdit();
resetField (edit); resetField (edit);
@ -497,7 +497,7 @@ void RandomQueryDlg::slotTransChanged(const TQString&)
else else
mw->status -> clear(); mw->status -> clear();
} }
else if ( ! suggestions && sender() && sender() -> isA ("TQLineEdit") ) else if ( ! suggestions && sender() && sender() -> isA (TQLINEEDIT_OBJECT_NAME_STRING) )
resetField ((TQLineEdit*) sender()); resetField ((TQLineEdit*) sender());
} }

Loading…
Cancel
Save