[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: KIconLoader::loadIcon
From: "Petter E. Stokke" <gibreel () project23 ! no>
Date: 2003-08-02 20:00:29
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
On Sat, 2003-08-02 at 21:28, Mark Bucciarelli wrote:
> On Saturday 02 August 2003 3:42 pm, Simon Perreault wrote:
> > On August 2, 2003 15:11, Mark Bucciarelli wrote:
> > > QPixmap icon = KGlobal::iconLoader()->loadIcon( "knotes",
> > > KIcon::Toolbar, KIcon::SizeMedium );
> > >
> > > produce this error:
> > >
> > > preferences.cpp:36: no matching function for call to
> > > `KIconLoader::loadIcon( const char[7], KIcon::Group, KIcon::StdSizes)'
> > > /home/kdecvs/kde-cvs/include/kiconloader.h:133: candidates are: QPixmap
> > > KIconLoader::loadIcon(const QString&, KIcon::Group, int = 0, int =
> > > KIcon::DefaultState, QString* = 0, bool = false) const
> >
> > Maybe you forgot to #include <qstring.h>?
>
> Thanks for the quick response. If I include that header, I get the same
> error.
>
> Note that I get a similar error when I call
>
> spinner->setSuffix(" minutes").
>
> The compiler want's a QString there as well. I'm missing something basic here
I may be completely wrong, but could it be because you're compiling with
QT_NO_ASCII_CAST defined? I seem to remember running into the same
problem at one time.
--
Petter E. Stokke <gibreel@project23.no> http://www.gibreel.net/
PGP key: http://www.gibreel.net/key.asc
Fingerprint: 4FF3 12BD 692A 0FFF 984F 78DA 4776 81FB 1906 3A9F
["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