From kde-commits Tue Jun 30 23:42:45 2009 From: Thomas Braxton Date: Tue, 30 Jun 2009 23:42:45 +0000 To: kde-commits Subject: Re: KDE/kdelibs/kfile Message-Id: <928c3f1b0906301642u35f2f8d3i385b543fa764135f () mail ! gmail ! com> X-MARC-Message: https://marc.info/?l=kde-commits&m=124653891819677 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--0016e641fe060e3d62046d995d87" --0016e641fe060e3d62046d995d87 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Shouldn't this be readConfig(const KConfigGroup & group) ? Sorry about the top-post. On Jun 30, 2009 3:36 PM, "Andreas Pakulat" 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; --0016e641fe060e3d62046d995d87 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

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:
<= br>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.


=C2=A0M =C2=A0+6 -0 =C2=A0 =C2=A0 =C2=A0kfilewidget.cpp
=C2=A0M =C2=A0+7 -0 =C2=A0 =C2=A0 =C2=A0kfilewidget.h


--- trunk/KDE/kdelibs/kfile/kfilewidget.cpp #989748:989749
@@ -2645,6 +2645,11 @@
=C2=A0 =C2=A0 return d->ops;
=C2=A0}

+void KFileWidget::readConfig( KConfigGroup& group )
+{
+ =C2=A0 =C2=A0d->readConfig(group);
+}
+
=C2=A0QString KFileWidgetPrivate::locationEditCurrentText() const
=C2=A0{
=C2=A0 =C2=A0 return QDir::fromNativeSeparators(locationEdit->currentTe= xt().trimmed());
@@ -2678,4 +2683,5 @@
=C2=A0 =C2=A0 ops->setInlinePreviewShown(show);
=C2=A0}

+
=C2=A0#include "kfilewidget.moc"
--- trunk/KDE/kdelibs/kfile/kfilewidget.h #989748:989749
@@ -481,6 +481,13 @@
=C2=A0 =C2=A0 =C2=A0*/
=C2=A0 =C2=A0 KDirOperator* dirOperator();

+ =C2=A0 =C2=A0/**
+ =C2=A0 =C2=A0 * reads the configuration for this widget from the given co= nfig group
+ =C2=A0 =C2=A0 * @param group the KConfiGroup to read from
+ =C2=A0 =C2=A0 * @since 4.4
+ =C2=A0 =C2=A0 */
+ =C2=A0 =C2=A0void readConfig( KConfigGroup& group );
+
=C2=A0private:
=C2=A0 =C2=A0 friend class KFileWidgetPrivate;
=C2=A0 =C2=A0 KFileWidgetPrivate* const d;

--0016e641fe060e3d62046d995d87--