Re: KDialogButtonBox

2010-12-27 Thread Steven Sroka
On 27 December 2010 19:29, Giovanni Venturi wrote: > On Tuesday, December 28, 2010 01:01:26 am Steven Sroka wrote: >> I've got a problem with a program of mine because it always looks for >> slots in the superclass (KDialogButtonBox) only and not also in the >> derived c

Re: KDialogButtonBox

2010-12-27 Thread Giovanni Venturi
On Tuesday, December 28, 2010 01:01:26 am Steven Sroka wrote: > I've got a problem with a program of mine because it always looks for > slots in the superclass (KDialogButtonBox) only and not also in the > derived class. > When you derive the class you need to add Q_OBJECT after

Re: KDialogButtonBox

2010-12-27 Thread Albert Astals Cid
A Dimarts, 28 de desembre de 2010, Steven Sroka va escriure: > I've got a problem with a program of mine because it always looks for > slots in the superclass (KDialogButtonBox) only and not also in the > derived class. > > I've created my slot in my subclass, but whe

KDialogButtonBox

2010-12-27 Thread Steven Sroka
I've got a problem with a program of mine because it always looks for slots in the superclass (KDialogButtonBox) only and not also in the derived class. I've created my slot in my subclass, but when my program gets to this line: connect(nextButton, SIGNAL(clicked()), this, SLOT(nex

Re: Help with KDialogButtonBox

2010-12-24 Thread Steven Sroka
error: no matching function for call to >> ‘KReminder::addButton(KGuiItem*&, QDialogButtonBox::ButtonRole, > ----^ >> >> -->candidates are: >> >> KPushButton* KDialogButtonBox::addButton(const KGuiItem&, >

Re: Help with KDialogButtonBox

2010-12-24 Thread Michael Pyne
QDialogButtonBox::ButtonRole, ^ > > -->candidates are: > > KPushButton* KDialogButtonBox::addButton(const KGuiItem&, -^ Is your issue that the first parameter is a pointer which must be

Re: Help with KDialogButtonBox

2010-12-24 Thread Steven Sroka
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*)’ -->

Re: Help with KDialogButtonBox

2010-12-23 Thread Michael Pyne
On Thursday, December 23, 2010 18:55:35 Steven Sroka wrote: > On 23 December 2010 18:10, Michael Pyne 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 KRemin

Re: Help with KDialogButtonBox

2010-12-23 Thread Steven Sroka
On 23 December 2010 18:10, Michael Pyne wrote: > On Thursday, December 23, 2010 18:02:36 Steven Sroka wrote: >> I need some help with a KDE program I'm trying to write. >> I have my main function calling a custom class, KReminder(), which is >> sub-classed from KD

Re: Help with KDialogButtonBox

2010-12-23 Thread Michael Pyne
On Thursday, December 23, 2010 18:02:36 Steven Sroka wrote: > I need some help with a KDE program I'm trying to write. > I have my main function calling a custom class, KReminder(), which is > sub-classed from KDialogButtonBox. Within the KReminder() I have: > > KPu

Help with KDialogButtonBox

2010-12-23 Thread Steven Sroka
I need some help with a KDE program I'm trying to write. I have my main function calling a custom class, KReminder(), which is sub-classed from KDialogButtonBox. Within the KReminder() I have: KPushButton *nextButton = addButton(nextGuiItem, AcceptRole, this, SLOT(next())); 'this&