From e246d0590286f6b9b0d5d40f1a17caa78c015b21 Mon Sep 17 00:00:00 2001 From: alwin Date: Tue, 02 Nov 2004 12:35:34 +0000 Subject: uiuiui - fixed a bug which let running applications crash if switched style from phase to any other. Reason was that in phase-style a special menubaritem- drawroutine was set but not RESET to qte default if this style was removed I'd implemented the unPolish routine and just set this callback to 0 (qt-default) and now it works nice. --- (limited to 'noncore/styles/phase/phasestyle.h') diff --git a/noncore/styles/phase/phasestyle.h b/noncore/styles/phase/phasestyle.h index cbaa534..ae53efe 100644 --- a/noncore/styles/phase/phasestyle.h +++ b/noncore/styles/phase/phasestyle.h @@ -40,9 +40,11 @@ public: PhaseStyle(); virtual ~PhaseStyle(); - void polish( QWidget * ); - void polish( QPalette& ); - void polish( QApplication* ); + virtual void polish( QWidget * ); + virtual void polish( QPalette& ); + virtual void polish( QApplication* a); + virtual void unPolish( QWidget * ); + virtual void unPolish(QApplication *a); void drawCheckMark ( QPainter * p, int x, int y, int w, -- cgit v0.9.0.2