[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdelibs/kio/kfile
From: Kevin Ottens <ervin () kde ! org>
Date: 2010-11-04 8:46:48
Message-ID: 20101104084648.4DE55AC89B () svn ! kde ! org
[Download RAW message or body]
SVN commit 1192899 by ervin:
Don't use deprecated API when KDE_NO_DEPRECATED is set.
M +4 -0 kfilemetainfowidget.cpp
--- trunk/KDE/kdelibs/kio/kfile/kfilemetainfowidget.cpp #1192898:1192899
@@ -260,9 +260,11 @@
//sb->setValidator(m_validator);
}
+#ifndef KDE_NO_DEPRECATED
// make sure that an uint cannot be set to a value < 0
if (d->m_item.properties().type() == QVariant::UInt)
sb->setMinimum(qMax(sb->minimum(), 0));
+#endif
connect(sb, SIGNAL(valueChanged(int)), this, SLOT(slotChanged(int)));
return sb;
@@ -303,6 +305,7 @@
return b;
}
+#ifndef KDE_NO_DEPRECATED
if (d->m_item.properties().attributes() & PredicateProperties::MultiLine) {
KTextEdit *edit = new KTextEdit( this );
edit->setAcceptRichText(false);
@@ -314,6 +317,7 @@
reparentValidator(edit, d->m_validator);
return edit;
}
+#endif
KLineEdit* e = new KLineEdit(d->m_item.value().toString(), this);
if (d->m_validator) {
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic