Review Request: Make the writeConfig() method a public slot
Frank Reininghaus
frank78ac at googlemail.com
Mon Jan 30 22:21:05 GMT 2012
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/103829/#review10252
-----------------------------------------------------------
AFAIK, changing the order of virtual member functions might break binary compatibility:
http://techbase.kde.org/Policies/Binary_Compatibility_Issues_With_C++
- Frank Reininghaus
On Jan. 30, 2012, 8:57 p.m., Laszlo Papp wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/103829/
> -----------------------------------------------------------
>
> (Updated Jan. 30, 2012, 8:57 p.m.)
>
>
> Review request for kdelibs and David Faure.
>
>
> Description
> -------
>
> According to the kconfig-xt example [1], it seems to me we need to call this
> method for settings changing. Therefore, it is not enough to just set the
> certain properties separately. I currently need to wrap this writeConfig()
> method in a helper class in order to get an invokable or slot version.
>
> There are at least two ways of addressing the issue in question:
> 1) Make the current method Q_INVOKABLE
> 2) Make the method actually a slot
>
> I personally chose the second alternative since the method already returns
> void, thus a potential candidate for being a slot. According to the Qt
> documentation, it is not a problem for having a virtual (public) slot:
> "You can also define slots to be virtual, which we have found quite useful in
> practice."
>
> [1] http://techbase.kde.org/Development/Tutorials/Using_KConfig_XT#Example
>
>
> Diffs
> -----
>
> kdecore/config/kcoreconfigskeleton.h b42ff22
>
> Diff: http://git.reviewboard.kde.org/r/103829/diff/diff
>
>
> Testing
> -------
>
> Tested on Archlinux for building only.
>
>
> Thanks,
>
> Laszlo Papp
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20120130/e06c0358/attachment.htm>
More information about the kde-core-devel
mailing list