[RFC] Using KPassivePopup from KSystrayIcon
Lubos Lunak
l.lunak at suse.cz
Thu Mar 29 19:58:57 BST 2007
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 at suse.cz , l.lunak at 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
More information about the kde-core-devel
mailing list