summaryrefslogtreecommitdiffstats
path: root/noatun
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-02-24 07:08:32 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-02-24 07:08:32 +0000
commit4ddfca384ced9ad654213aef9dc2c3973720b980 (patch)
treeb01b4c232af26752115dca42ee4cc7632982e549 /noatun
parent1b4dc219564ccb5131bc23bd11c200076f09bfbc (diff)
downloadtdemultimedia-4ddfca384ced9ad654213aef9dc2c3973720b980.tar.gz
tdemultimedia-4ddfca384ced9ad654213aef9dc2c3973720b980.zip
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/kdemultimedia@1222475 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'noatun')
-rw-r--r--noatun/modules/metatag/edit.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/noatun/modules/metatag/edit.cpp b/noatun/modules/metatag/edit.cpp
index beb0fd0d..83c53c1f 100644
--- a/noatun/modules/metatag/edit.cpp
+++ b/noatun/modules/metatag/edit.cpp
@@ -122,11 +122,11 @@ void Editor::saveControl(KFileMetaInfo& meta_info, const MetaWidget &meta_widget
if (!meta_widget.widget->isEnabled())
return;
- if (meta_widget.widget->inherits("TQSpinBox"))
+ if (meta_widget.widget->inherits(TQSPINBOX_OBJECT_NAME_STRING))
value = static_cast<TQSpinBox *>(meta_widget.widget)->value();
- else if (meta_widget.widget->inherits("TQComboBox"))
+ else if (meta_widget.widget->inherits(TQCOMBOBOX_OBJECT_NAME_STRING))
value = static_cast<TQComboBox *>(meta_widget.widget)->currentText();
- else if (meta_widget.widget->inherits("TQLineEdit"))
+ else if (meta_widget.widget->inherits(TQLINEEDIT_OBJECT_NAME_STRING))
value = static_cast<TQLineEdit *>(meta_widget.widget)->text();
TQString group = keyGroup(meta_info, meta_widget.key);
@@ -204,7 +204,7 @@ MetaWidget* Editor::createControl(KFileMetaInfo& meta_info, const TQString &labe
box->setValidator(validator);
// Is it an integer validator
- if (validator->inherits("TQIntValidator")) {
+ if (validator->inherits(TQINTVALIDATOR_OBJECT_NAME_STRING)) {
TQIntValidator *int_validator = static_cast<TQIntValidator *>(validator);
// FIXME: Why the -hell- doesn't TQSpinBox::setValidator() do this??