[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdelibs/kfile
From: Andreas Pakulat <apaku () gmx ! de>
Date: 2009-06-30 20:35:52
Message-ID: 1246394152.894269.16999.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 989749 by apaku:
Provide a readConfig method so one can let the widget read its config from a
custom config group. Useful when embedding this widget somewhere else than the
kfiledialog.
M +6 -0 kfilewidget.cpp
M +7 -0 kfilewidget.h
--- trunk/KDE/kdelibs/kfile/kfilewidget.cpp #989748:989749
@@ -2645,6 +2645,11 @@
return d->ops;
}
+void KFileWidget::readConfig( KConfigGroup& group )
+{
+ d->readConfig(group);
+}
+
QString KFileWidgetPrivate::locationEditCurrentText() const
{
return QDir::fromNativeSeparators(locationEdit->currentText().trimmed());
@@ -2678,4 +2683,5 @@
ops->setInlinePreviewShown(show);
}
+
#include "kfilewidget.moc"
--- trunk/KDE/kdelibs/kfile/kfilewidget.h #989748:989749
@@ -481,6 +481,13 @@
*/
KDirOperator* dirOperator();
+ /**
+ * reads the configuration for this widget from the given config group
+ * @param group the KConfiGroup to read from
+ * @since 4.4
+ */
+ void readConfig( KConfigGroup& group );
+
private:
friend class KFileWidgetPrivate;
KFileWidgetPrivate* const d;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic