[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: Re: KDE/kdelibs/kfile
From: Thomas Braxton <kde.braxton () gmail ! com>
Date: 2009-06-30 23:42:45
Message-ID: 928c3f1b0906301642u35f2f8d3i385b543fa764135f () mail ! gmail ! com
[Download RAW message or body]
Shouldn't this be readConfig(const KConfigGroup & group) ?
Sorry about the top-post.
On Jun 30, 2009 3:36 PM, "Andreas Pakulat" <apaku@gmx.de> wrote:
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;
[Attachment #3 (text/html)]
<p>Shouldn't this be readConfig(const KConfigGroup & group) ?<br>
Sorry about the top-post.</p>
<p><blockquote type="cite">On Jun 30, 2009 3:36 PM, "Andreas Pakulat" \
<<a href="mailto:apaku@gmx.de">apaku@gmx.de</a>> wrote:<br><br>SVN commit \
989749 by apaku:<br> <br>
Provide a readConfig method so one can let the widget read its config from a<br>
custom config group. Useful when embedding this widget somewhere else than the<br>
kfiledialog.<br>
<br>
<br>
M +6 -0 kfilewidget.cpp<br>
M +7 -0 kfilewidget.h<br>
<br>
<br>
--- trunk/KDE/kdelibs/kfile/kfilewidget.cpp #989748:989749<br>
@@ -2645,6 +2645,11 @@<br>
return d->ops;<br>
}<br>
<br>
+void KFileWidget::readConfig( KConfigGroup& group )<br>
+{<br>
+ d->readConfig(group);<br>
+}<br>
+<br>
QString KFileWidgetPrivate::locationEditCurrentText() const<br>
{<br>
return QDir::fromNativeSeparators(locationEdit->currentText().trimmed());<br>
@@ -2678,4 +2683,5 @@<br>
ops->setInlinePreviewShown(show);<br>
}<br>
<br>
+<br>
#include "kfilewidget.moc"<br>
--- trunk/KDE/kdelibs/kfile/kfilewidget.h #989748:989749<br>
@@ -481,6 +481,13 @@<br>
*/<br>
KDirOperator* dirOperator();<br>
<br>
+ /**<br>
+ * reads the configuration for this widget from the given config group<br>
+ * @param group the KConfiGroup to read from<br>
+ * @since 4.4<br>
+ */<br>
+ void readConfig( KConfigGroup& group );<br>
+<br>
private:<br>
friend class KFileWidgetPrivate;<br>
KFileWidgetPrivate* const d;<br>
</blockquote></p>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic