VirtualBox

Ignore:
Timestamp:
Mar 7, 2008 2:35:57 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
28793
Message:

FE/Qt4: Removed several Qt3 support warnings. Replaced Q3* classes with the corresponding Qt4 classes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox4/src/QIStatusBar.cpp

    r7220 r7369  
    1919#include "QIStatusBar.h"
    2020
    21 #include <qpainter.h>
    22 #include <qsizegrip.h>
    23 //Added by qt3to4:
    24 #include <QPaintEvent>
     21/* Qt includes */
     22#include <QPainter>
     23//#include <qsizegrip.h>
    2524
    2625/** @clas QIStatusLine
     
    3130 */
    3231
    33 QIStatusBar::QIStatusBar (QWidget *parent, const char *name) :
    34     QStatusBar (parent, name)
     32QIStatusBar::QIStatusBar (QWidget *parent) :
     33    QStatusBar (parent)
    3534{
    3635    connect (
     
    4443 *  widgets.
    4544 */
    46 void QIStatusBar::paintEvent (QPaintEvent *)
     45void QIStatusBar::paintEvent (QPaintEvent *e)
    4746{
    48     QPainter p (this);
    49 
    50 #ifndef QT_NO_SIZEGRIP
     47    QStatusBar::paintEvent (e);
     48    return;
     49#warning port me: is this needed anymore?
     50//    QPainter p (this);
     51//
     52//#ifndef QT_NO_SIZEGRIP
    5153    // this will work provided that QStatusBar::setSizeGripEnabled() names
    5254    // its resizer child as specified (at least Qt 3.3.x does this).
    53     QSizeGrip *resizer = (QSizeGrip *) child ("QStatusBar::resizer", "QSizeGrip");
    54     int psx = (resizer && resizer->isVisible()) ? resizer->x() : width() - 12;
    55 #else
    56     int psx = width() - 12;
    57 #endif
    58 
    59     if (!message.isEmpty()) {
    60         p.setPen (colorGroup().foreground());
    61         p.drawText (6, 0, psx, height(), Qt::AlignVCenter | Qt::TextSingleLine, message);
    62     }
     55//#warning port me: check this
     56//    QSizeGrip *resizer = (QSizeGrip *) child ("QStatusBar::resizer", "QSizeGrip");
     57//    int psx = (resizer && resizer->isVisible()) ? resizer->x() : width() - 12;
     58//#else
     59//    int psx = width() - 12;
     60//#endif
     61//
     62//    if (!message.isEmpty())
     63//    {
     64//        p.setPen (colorGroup().foreground());
     65//        p.drawText (6, 0, psx, height(), Qt::AlignVCenter | Qt::TextSingleLine, message);
     66//    }
    6367}
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