[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: Re: [RFC] Using KPassivePopup from KSystrayIcon
From: Lubos Lunak <l.lunak () suse ! cz>
Date: 2007-03-29 18:58:57
Message-ID: 200703292058.57287.l.lunak () suse ! cz
[Download RAW message or body]
On čt 29. března 2007, David Faure wrote:
> It breaks SC though:
>
> /d/kde/src/4/koffice/kspread/CellStorage.cpp:320: error: call of overloaded
> ‘message(QString, int)' is ambiguous
> /d/kde/inst/kde4/include/kpassivepopup.h:207: note: candidates are: static
> KPassivePopup* KPassivePopup::message(const QString&, QWidget*)
> /d/kde/inst/kde4/include/kpassivepopup.h:215: note: static
> KPassivePopup* KPassivePopup::message(const QString&, QSystemTrayIcon*)
>
> Not that breaking SC isn't allowed currently [on mondays], but it makes me
> wonder if the API could be improved to avoid the ambiguity when passing
> 0... (QWidget*)0 works but is always a bit ugly...
No problem. Just realize we use C++ and not C, embrace the new millenium and
start using NULL ;).
--
Lubos Lunak
KDE developer
--------------------------------------------------------------
SUSE LINUX, s.r.o. e-mail: l.lunak@suse.cz , l.lunak@kde.org
Lihovarska 1060/12 tel: +420 284 028 972
190 00 Prague 9 fax: +420 284 028 951
Czech Republic http//www.suse.cz
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic