Changeset 65252 in vbox
- Timestamp:
- Jan 12, 2017 10:16:05 AM (8 years ago)
- 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 19 19 # include <precomp.h> 20 20 #else 21 /* GUI includes: */ 21 22 # include "QIStatusBar.h" 22 23 #endif 23 24 24 25 25 QIStatusBar::QIStatusBar (QWidget *aParent)26 : QStatusBar (aParent)26 QIStatusBar::QIStatusBar(QWidget *pParent) 27 : QStatusBar(pParent) 27 28 { 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 &))); 30 32 31 /* Remove that ugly border around the status bar items on every platform*/32 setStyleSheet 33 /* Remove that ugly border around the status-bar items on every platform: */ 34 setStyleSheet("QStatusBar::item { border: 0px none black; }"); 33 35 } 34 36 -
trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIStatusBar.h
r62493 r65252 16 16 */ 17 17 18 #ifndef __ QIStatusBar_h__19 #define __ QIStatusBar_h__18 #ifndef ___QIStatusBar_h___ 19 #define ___QIStatusBar_h___ 20 20 21 /* Qt includes */21 /* Qt includes: */ 22 22 #include <QStatusBar> 23 23 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. */ 28 26 class QIStatusBar : public QStatusBar 29 27 { … … 32 30 public: 33 31 34 QIStatusBar (QWidget *aParent = 0); 32 /** Constructs status-bar passing @a pParent to the base-class. */ 33 QIStatusBar(QWidget *pParent = 0); 35 34 36 35 protected slots: 37 36 38 void rememberLastMessage (const QString &aMsg) { mMessage = aMsg; } 37 /** Remembers the last status @a strMessage. */ 38 void sltRememberLastMessage(const QString &strMessage) { m_strMessage = strMessage; } 39 39 40 40 protected: 41 41 42 QString mMessage; 42 /** Holds the last status message. */ 43 QString m_strMessage; 43 44 }; 44 45 45 #endif / / __QIStatusBar_h__46 #endif /* !___QIStatusBar_h___ */ 46 47
Note:
See TracChangeset
for help on using the changeset viewer.