VirtualBox

Changeset 7381 in vbox


Ignore:
Timestamp:
Mar 8, 2008 9:01:57 PM (17 years ago)
Author:
vboxsync
Message:

FE/Qt4: Converntions.

Location:
trunk/src/VBox/Frontends/VirtualBox4
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox4/include/QIStateIndicator.h

    r7369 r7381  
    5454protected:
    5555
    56     virtual void paintEvent (QPaintEvent *event);
     56    virtual void paintEvent (QPaintEvent *aEv);
    5757    virtual void drawContents (QPainter *aPainter);
    5858
    5959#ifdef Q_WS_MAC
    6060    virtual void mousePressEvent (QMouseEvent *aEv);
    61 #endif 
     61#endif
    6262    virtual void mouseDoubleClickEvent (QMouseEvent *aEv);
    6363    virtual void contextMenuEvent (QContextMenuEvent *aEv);
  • trunk/src/VBox/Frontends/VirtualBox4/src/QIStateIndicator.cpp

    r7369 r7381  
    9595}
    9696
    97 void QIStateIndicator::paintEvent (QPaintEvent * /*event*/)
     97void QIStateIndicator::paintEvent (QPaintEvent * /* aEv */)
    9898{
    99     QPainter painter(this);
    100     drawContents(&painter);
     99    QPainter painter (this);
     100    drawContents (&painter);
    101101}
    102102
     
    108108#warning port me
    109109        /* 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"
    112112         * anymore. Disable this for now. */
    113113//        if (testAttribute (Qt::WNoAutoErase))
     
    160160
    161161#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++).
    165165 */
    166166void QIStateIndicator::mousePressEvent (QMouseEvent *aEv)
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette