An original Qt/KDE widget style.
State Changed From-To: open->feedback Does not compile on my STABLE: c++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include -I/usr/X11R6/include -I/usr/local/include -pthread -DQT_THREAD_SUPPORT -I/usr/local/include -I/usr/local/include -I/usr/X11R6/include -D_GETOPT_H -D_THREAD_SAFE -O2 -O -pipe -fno-exceptions -fno-check-new -DQT_PLUGIN -c phasestyle.cc -Wp,-MD,.deps/phasestyle.TPlo -fPIC -DPIC -o .libs/phasestyle.o phasestyle.cc: In method `void PhaseStyle::drawKStylePrimitive(KStyle::KStylePrimitive, QPainter *, const QWidget *, const QRect &, const QColorGroup &, unsigned int = Style_Default, const QStyleOption & = QStyleOption::Default) const': phasestyle.cc:1088: comparison of distinct pointer types `const QSlider *' and `QWidget *const' lacks a cast phasestyle.cc: In method `void PhaseStyle::drawComplexControl(QStyle::ComplexControl, QPainter *, const QWidget *, const QRect &, const QColorGroup &, unsigned int = Style_Default, unsigned int = SC_All, unsigned int = SC_None, const QStyleOption & = QStyleOption::Default) const': phasestyle.cc:1622: comparison of distinct pointer types `const QComboBox *' and `QWidget *const' lacks a cast phasestyle.cc:1777: comparison of distinct pointer types `const QSpinWidget *' and `QWidget *const' lacks a cast Can you investigate?
My investigation does not find a problem. This compiles fine under gcc-3.3.3. -Wall and -pedantic issue no warnings in this area. These are standard pointer comparisons between base and derived types, so the casting should be implicit. In addition, my x11-themes/qinx port was recently committed, and it uses the exact same construct. I suspect that the problem is elsewhere. If necessary I can provide a patch to perform explicit casting in the worst case.
Attached is a diff of the earlier shar that includes a patch to work with gcc-2.95 on -STABLE.
State Changed From-To: feedback->closed Committed, thanks!