VirtualBox

Ignore:
Timestamp:
Jan 12, 2017 10:16:05 AM (8 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:6899: Accessibility support (step 161): Cleanup for QIStatusBar.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/extensions
Files:
2 edited

Legend:

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

    r62493 r65252  
    1919# include <precomp.h>
    2020#else
     21/* GUI includes: */
    2122# include "QIStatusBar.h"
    2223#endif
    2324
    2425
    25 QIStatusBar::QIStatusBar (QWidget *aParent)
    26     : QStatusBar (aParent)
     26QIStatusBar::QIStatusBar(QWidget *pParent)
     27    : QStatusBar(pParent)
    2728{
    28     connect (this, SIGNAL (messageChanged (const QString&)),
    29              this, SLOT (rememberLastMessage (const QString&)));
     29    /* Make sure we remember the last one status message: */
     30    connect(this, SIGNAL(messageChanged(const QString &)),
     31            this, SLOT(sltRememberLastMessage(const QString &)));
    3032
    31     /* Remove that ugly border around the statusbar items on every platform */
    32     setStyleSheet ("QStatusBar::item { border: 0px none black; }");
     33    /* Remove that ugly border around the status-bar items on every platform: */
     34    setStyleSheet("QStatusBar::item { border: 0px none black; }");
    3335}
    3436
  • trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIStatusBar.h

    r62493 r65252  
    1616 */
    1717
    18 #ifndef __QIStatusBar_h__
    19 #define __QIStatusBar_h__
     18#ifndef ___QIStatusBar_h___
     19#define ___QIStatusBar_h___
    2020
    21 /* Qt includes */
     21/* Qt includes: */
    2222#include <QStatusBar>
    2323
    24 /**
    25  *  The QIStatusBar class is a replacement of QStatusBar with disabling
    26  *  drawing of sunken borders around every widget on the status bar.
    27  */
     24
     25/** QStatusBar subclass extending standard functionality. */
    2826class QIStatusBar : public QStatusBar
    2927{
     
    3230public:
    3331
    34     QIStatusBar (QWidget *aParent = 0);
     32    /** Constructs status-bar passing @a pParent to the base-class. */
     33    QIStatusBar(QWidget *pParent = 0);
    3534
    3635protected slots:
    3736
    38     void rememberLastMessage (const QString &aMsg) { mMessage = aMsg; }
     37    /** Remembers the last status @a strMessage. */
     38    void sltRememberLastMessage(const QString &strMessage) { m_strMessage = strMessage; }
    3939
    4040protected:
    4141
    42     QString mMessage;
     42    /** Holds the last status message. */
     43    QString m_strMessage;
    4344};
    4445
    45 #endif // __QIStatusBar_h__
     46#endif /* !___QIStatusBar_h___ */
    4647
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