Hello all again :-) Em Sex 06 Ago 2004 10:32, Chris Cannam escreveu: > I'm probably being very stupid, but I don't quite see how this change > works. It seems you've changed instances like > > QIconSet icon = QIconSet(QCanvasPixmap(pixmapDir + "/toolbar/matrix.xpm")); > //... > icon = QIconSet(QCanvasPixmap(pixmapDir + "/toolbar/notation.xpm")); > > into > > QCanvasPixmap pixmap( pixmapDir + "/toolbar/matrix.xpm" ); > QIconSet icon = QIconSet( pixmap ); > //... > pixmap.load( pixmapDir + "/toolbar/notation.xpm" ); > icon = QIconSet( pixmap ); > > But I don't see what the difference is.
Just a current example without changes ( forget the deprecated thing ) if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/lib/kde3/include -I/usr/lib/qt3/include -I/usr/X11R6/include -I../base -I../sound -fexceptions -I/usr/X11R6/include -I/usr/include/freetype2 -DQT_THREAD_SUPPORT -D_REENTRANT -DRGKDE3 -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -DNDEBUG -DNO_DEBUG -O2 -fno-exceptions -fno-check-new -fno-gcse -fexceptions -MT eventfilter.o -MD -MP -MF ".deps/eventfilter.Tpo" \ -c -o eventfilter.o `test -f 'eventfilter.cpp' || echo './'`eventfilter.cpp; \ then mv -f ".deps/eventfilter.Tpo" ".deps/eventfilter.Po"; \ else rm -f ".deps/eventfilter.Tpo"; exit 1; \ fi cc1plus: warning: command line option "-Wmissing-prototypes" is valid for C/ObjC but not for C++ cc1plus: warning: command line option "-Wmissing-prototypes" is valid for C/ObjC but not for C++ editviewbase.cpp: In member function `virtual void EditViewBase::setupActions(QString, bool)': editviewbase.cpp:203: warning: `key' is deprecated (declared at /usr/lib/kde3/include/kstdaccel.h:452) editviewbase.cpp:203: warning: `key' is deprecated (declared at /usr/lib/kde3/include/kstdaccel.h:452) editviewbase.cpp:209: warning: `key' is deprecated (declared at /usr/lib/kde3/include/kstdaccel.h:452) editviewbase.cpp:209: warning: `key' is deprecated (declared at /usr/lib/kde3/include/kstdaccel.h:452) /usr/lib/qt3/include/qcanvas.h:419: error: `QCanvasPixmap::QCanvasPixmap(const QCanvasPixmap&)' is private editviewbase.cpp:215: error: within this context /usr/lib/qt3/include/qcanvas.h:419: error: `QCanvasPixmap::QCanvasPixmap(const QCanvasPixmap&)' is private editviewbase.cpp:220: error: within this context /usr/lib/qt3/include/qcanvas.h:419: error: `QCanvasPixmap::QCanvasPixmap(const QCanvasPixmap&)' is private editviewbase.cpp:225: error: within this context make[3]: ** [editviewbase.o] Erro 1 The private copy constructor of QCanvasPixmap is strangely called. :-/ -- Helio Chissini de Castro KDE Project South America Primary Contact Curitiba - Brasil
pgp1f3wj9vUjc.pgp
Description: PGP signature
