>On 23 December 2010 22:13, Michael Pyne <mp...@kde.org> wrote:
> On Thursday, December 23, 2010 18:55:35 Steven Sroka wrote:
>> On 23 December 2010 18:10, Michael Pyne <mp...@kde.org> wrote:
>> > On Thursday, December 23, 2010 18:02:36 Steven Sroka wrote:
>> >> 'this' refers to KReminder(). The 'addButton' function expects the
>> >> third argument to be a QObject* and not a KReminder* const, so I'm
>> >> getting an error. I've tried the KDE forums, but I haven't found a fix
>> >> for this.
>> >
>> > Whatever KReminder member function you're in is declared to be const.
>> > That changes the type of this from KReminder* to KReminder *const.
>>
>> I'm in setupObjects(), which is not declared as const. Only a slot and
>> my d-pointer are declared const.
>
> OK, if it's not that then the only things I could think of off-hand would be a
> missing #include (or a misspelled one), but that should lead to many other
> error messages than just that, or a possible syntax error earlier which gets
> the C++ parser confused as to what's going on.
>
> Having the exact error message would probably be useful as well.

-->In member function ‘void KReminder::setupObjects()’:
-->error: no matching function for call to
‘KReminder::addButton(KGuiItem*&, QDialogButtonBox::ButtonRole,
KReminder* const, const char*)’

-->candidates are:
<snip - (4 qt versions of the addButton function)>
KPushButton* KDialogButtonBox::addButton(const KGuiItem&,
QDialogButtonBox::ButtonRole, QObject*, const char*)



>
> Regards,
>  - Michael Pyne
>
>
>>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
>
>



-- 
Steven Sroka
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

Reply via email to