Changeset 7381 in vbox
- Timestamp:
- Mar 8, 2008 9:01:57 PM (17 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox4
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox4/include/QIStateIndicator.h
r7369 r7381 54 54 protected: 55 55 56 virtual void paintEvent (QPaintEvent * event);56 virtual void paintEvent (QPaintEvent *aEv); 57 57 virtual void drawContents (QPainter *aPainter); 58 58 59 59 #ifdef Q_WS_MAC 60 60 virtual void mousePressEvent (QMouseEvent *aEv); 61 #endif 61 #endif 62 62 virtual void mouseDoubleClickEvent (QMouseEvent *aEv); 63 63 virtual void contextMenuEvent (QContextMenuEvent *aEv); -
trunk/src/VBox/Frontends/VirtualBox4/src/QIStateIndicator.cpp
r7369 r7381 95 95 } 96 96 97 void QIStateIndicator::paintEvent (QPaintEvent * /* event*/)97 void QIStateIndicator::paintEvent (QPaintEvent * /* aEv */) 98 98 { 99 QPainter painter (this);100 drawContents (&painter);99 QPainter painter (this); 100 drawContents (&painter); 101 101 } 102 102 … … 108 108 #warning port me 109 109 /* I didn't see any benefits of caching the icon 110 * background drawing in Qt4. This is already done 111 * by Qt itself. Also there is no "NoAutoErase" 110 * background drawing in Qt4. This is already done 111 * by Qt itself. Also there is no "NoAutoErase" 112 112 * anymore. Disable this for now. */ 113 113 // if (testAttribute (Qt::WNoAutoErase)) … … 160 160 161 161 #ifdef Q_WS_MAC 162 /** 163 * Make the left button also show the context menu to make things 164 * simpler for users with single mouse button mice (laptops++). 162 /** 163 * Make the left button also show the context menu to make things 164 * simpler for users with single mouse button mice (laptops++). 165 165 */ 166 166 void QIStateIndicator::mousePressEvent (QMouseEvent *aEv)
Note:
See TracChangeset
for help on using the changeset viewer.