summaryrefslogtreecommitdiffstats
path: root/noatun
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2023-07-12 11:27:37 +0900
committerMichele Calgaro <[email protected]>2023-07-13 10:00:53 +0900
commitc34f7eb2a2bdebc0a2dabeab54f868447b466eb3 (patch)
tree3d5b51db4a07362d128ffa6b535b935a9da58f6e /noatun
parent9feec0e4d0557935a18eb914391aec99e12f24a5 (diff)
downloadtdemultimedia-c34f7eb2a2bdebc0a2dabeab54f868447b466eb3.tar.gz
tdemultimedia-c34f7eb2a2bdebc0a2dabeab54f868447b466eb3.zip
Replace _OBJECT_NAME_STRING defines with actual strings. This relates to the merging of tqtinterface with tqt3.
Signed-off-by: Michele Calgaro <[email protected]> (cherry picked from commit 1b09e1d239b1af15ea86eb3cfb6cd808520de5e4)
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 e520320c..72064a4a 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_OBJECT_NAME_STRING))
+ if (meta_widget.widget->inherits("TQSpinBox"))
value = static_cast<TQSpinBox *>(meta_widget.widget)->value();
- else if (meta_widget.widget->inherits(TQCOMBOBOX_OBJECT_NAME_STRING))
+ else if (meta_widget.widget->inherits("TQComboBox"))
value = static_cast<TQComboBox *>(meta_widget.widget)->currentText();
- else if (meta_widget.widget->inherits(TQLINEEDIT_OBJECT_NAME_STRING))
+ else if (meta_widget.widget->inherits("TQLineEdit"))
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_OBJECT_NAME_STRING)) {
+ if (validator->inherits("TQIntValidator")) {
TQIntValidator *int_validator = static_cast<TQIntValidator *>(validator);
// FIXME: Why the -hell- doesn't TQSpinBox::setValidator() do this??