[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: KTitleWidget *titleWidget error
From: Urs Wolfer <uwolfer () kde ! org>
Date: 2007-07-29 20:24:03
Message-ID: 200707292224.08567.uwolfer () kde ! org
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
On Sunday 29 July 2007 22.10:38 dave selby wrote:
> I am trying to define a private prototype KTitleWidget pointer ie ...
>
> private:
>
> // Widgets.
>
> KTitleWidget *titleWidget;
> QLabel* labUser;
> QLineEdit* leUser;
> ....
>
> I keep getting the following error ...
>
> /home/dave/kde/src/4.0/KDE/kdeadmin/kcron/kttask.h:144: error: ISO C++
> forbids declaration of 'KTitleWidget' with no type
> /home/dave/kde/src/4.0/KDE/kdeadmin/kcron/kttask.h:144: error:
> expected ';' before '*' token
>
> Can ayone help ?
I think you are missing the KTitleWidget include.
#include <KTitleWidget>
(Or if you are working in a header, better use
class KTitleWidget;
and add the include in the .cpp file.
Bye
urs
["signature.asc" (application/pgp-signature)]
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic