summaryrefslogtreecommitdiffstats
path: root/kio/kfile
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-02 07:41:52 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-02 07:41:52 +0000
commitbf85f02dd35b67007f6732d3c7dc76d7ac7f2a3d (patch)
tree3c966548ca8c50ba05e163b7908ec39b51d47c3d /kio/kfile
parentb5fb39eb73302856329affac603779129a545abd (diff)
downloadtdelibs-bf85f02dd35b67007f6732d3c7dc76d7ac7f2a3d.tar.gz
tdelibs-bf85f02dd35b67007f6732d3c7dc76d7ac7f2a3d.zip
Update remaining kdelibs inherits() functions to use new object name defines instead of hard coded string literals
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1226843 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kio/kfile')
-rw-r--r--kio/kfile/kfilemetainfowidget.cpp14
-rw-r--r--kio/kfile/kpropertiesdialog.cpp2
2 files changed, 8 insertions, 8 deletions
diff --git a/kio/kfile/kfilemetainfowidget.cpp b/kio/kfile/kfilemetainfowidget.cpp
index 4b8adefc3..c4df4a15d 100644
--- a/kio/kfile/kfilemetainfowidget.cpp
+++ b/kio/kfile/kfilemetainfowidget.cpp
@@ -196,7 +196,7 @@ TQWidget* KFileMetaInfoWidget::makeIntWidget()
if (m_validator)
{
- if (m_validator->inherits("QIntValidator"))
+ if (m_validator->inherits(TQINTVALIDATOR_OBJECT_NAME_STRING))
{
sb->setMinValue(static_cast<TQIntValidator*>(m_validator)->bottom());
sb->setMaxValue(static_cast<TQIntValidator*>(m_validator)->top());
@@ -301,7 +301,7 @@ void KFileMetaInfoWidget::reparentValidator( TQWidget *widget,
void KFileMetaInfoWidget::slotChanged(bool value)
{
- Q_ASSERT(m_widget->inherits("QComboBox"));
+ Q_ASSERT(m_widget->inherits(TQCOMBOBOX_OBJECT_NAME_STRING));
m_value = TQVariant(value);
emit valueChanged(m_value);
m_dirty = true;
@@ -309,7 +309,7 @@ void KFileMetaInfoWidget::slotChanged(bool value)
void KFileMetaInfoWidget::slotChanged(int value)
{
- Q_ASSERT(m_widget->inherits("QSpinBox"));
+ Q_ASSERT(m_widget->inherits(TQSPINBOX_OBJECT_NAME_STRING));
m_value = TQVariant(value);
emit valueChanged(m_value);
m_dirty = true;
@@ -342,7 +342,7 @@ void KFileMetaInfoWidget::slotLineEditChanged(const TQString& value)
// that may be a little expensive for long texts, but what can we do?
void KFileMetaInfoWidget::slotMultiLineEditChanged()
{
- Q_ASSERT(m_widget->inherits("QTextEdit"));
+ Q_ASSERT(m_widget->inherits(TQTEXTEDIT_OBJECT_NAME_STRING));
m_value = TQVariant( static_cast<const TQTextEdit*>( sender() )->text() );
emit valueChanged(m_value);
m_dirty = true;
@@ -350,7 +350,7 @@ void KFileMetaInfoWidget::slotMultiLineEditChanged()
void KFileMetaInfoWidget::slotDateChanged(const TQDate& value)
{
- Q_ASSERT(m_widget->inherits("QDateEdit"));
+ Q_ASSERT(m_widget->inherits(TQDATEEDIT_OBJECT_NAME_STRING));
m_value = TQVariant(value);
emit valueChanged(m_value);
m_dirty = true;
@@ -358,7 +358,7 @@ void KFileMetaInfoWidget::slotDateChanged(const TQDate& value)
void KFileMetaInfoWidget::slotTimeChanged(const TQTime& value)
{
- Q_ASSERT(m_widget->inherits("QTimeEdit"));
+ Q_ASSERT(m_widget->inherits(TQTIMEEDIT_OBJECT_NAME_STRING));
m_value = TQVariant(value);
emit valueChanged(m_value);
m_dirty = true;
@@ -366,7 +366,7 @@ void KFileMetaInfoWidget::slotTimeChanged(const TQTime& value)
void KFileMetaInfoWidget::slotDateTimeChanged(const TQDateTime& value)
{
- Q_ASSERT(m_widget->inherits("QDateTimeEdit"));
+ Q_ASSERT(m_widget->inherits(TQDATETIMEEDIT_OBJECT_NAME_STRING));
m_value = TQVariant(value);
emit valueChanged(m_value);
m_dirty = true;
diff --git a/kio/kfile/kpropertiesdialog.cpp b/kio/kfile/kpropertiesdialog.cpp
index dde96f017..d953f830b 100644
--- a/kio/kfile/kpropertiesdialog.cpp
+++ b/kio/kfile/kpropertiesdialog.cpp
@@ -1317,7 +1317,7 @@ void KFilePropsPlugin::applyChanges()
kdDebug(250) << "KFilePropsPlugin::applyChanges" << endl;
- if (nameArea->inherits("QLineEdit"))
+ if (nameArea->inherits(TQLINEEDIT_OBJECT_NAME_STRING))
{
TQString n = ((TQLineEdit *) nameArea)->text();
// Remove trailing spaces (#4345)