author | alwin <alwin> | 2004-11-02 12:35:34 (UTC) |
---|---|---|
committer | alwin <alwin> | 2004-11-02 12:35:34 (UTC) |
commit | e246d0590286f6b9b0d5d40f1a17caa78c015b21 (patch) (unidiff) | |
tree | 96195461536b3821482df56d4f7a0b6683092aed /noncore/styles/phase/phasestyle.h | |
parent | e83e5bd3f26270d61a83b8b91e07b35d2657d060 (diff) | |
download | opie-e246d0590286f6b9b0d5d40f1a17caa78c015b21.zip opie-e246d0590286f6b9b0d5d40f1a17caa78c015b21.tar.gz opie-e246d0590286f6b9b0d5d40f1a17caa78c015b21.tar.bz2 |
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.
Diffstat (limited to 'noncore/styles/phase/phasestyle.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/styles/phase/phasestyle.h | 8 |
1 files changed, 5 insertions, 3 deletions
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 | |||
@@ -37,15 +37,17 @@ class PhaseStyle : public QWindowsStyle | |||
37 | { | 37 | { |
38 | Q_OBJECT | 38 | Q_OBJECT |
39 | public: | 39 | public: |
40 | PhaseStyle(); | 40 | PhaseStyle(); |
41 | virtual ~PhaseStyle(); | 41 | virtual ~PhaseStyle(); |
42 | 42 | ||
43 | void polish( QWidget * ); | 43 | virtual void polish( QWidget * ); |
44 | void polish( QPalette& ); | 44 | virtual void polish( QPalette& ); |
45 | void polish( QApplication* ); | 45 | virtual void polish( QApplication* a); |
46 | virtual void unPolish( QWidget * ); | ||
47 | virtual void unPolish(QApplication *a); | ||
46 | 48 | ||
47 | 49 | ||
48 | void drawCheckMark ( QPainter * p, int x, int y, int w, | 50 | void drawCheckMark ( QPainter * p, int x, int y, int w, |
49 | int h, const QColorGroup & g, | 51 | int h, const QColorGroup & g, |
50 | bool act, bool dis ); | 52 | bool act, bool dis ); |
51 | void drawArrow(QPainter *p, Qt::ArrowType type, bool down, | 53 | void drawArrow(QPainter *p, Qt::ArrowType type, bool down, |