Changeset 62112 in vbox
- Timestamp:
- Jul 7, 2016 3:04:58 PM (9 years ago)
- svn:sync-xref-src-repo-rev:
- 108595
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIStatusBarIndicator.cpp
r60362 r62112 33 33 /* GUI includes: */ 34 34 # include "QIStatusBarIndicator.h" 35 36 /* Other VBox includes: */ 37 # include <iprt/assert.h> 35 38 36 39 #endif /* !VBOX_WITH_PRECOMPILED_HEADERS */ … … 114 117 QITextStatusBarIndicator::QITextStatusBarIndicator(QWidget *pParent /* = 0 */) 115 118 : QIStatusBarIndicator(pParent) 119 , m_pLabel(0) 116 120 { 117 121 /* Create main-layout: */ … … 122 126 pMainLayout->setContentsMargins(0, 0, 0, 0); 123 127 pMainLayout->setSpacing(0); 124 /* Cre te label: */128 /* Create label: */ 125 129 m_pLabel = new QLabel; 126 130 if (m_pLabel) … … 134 138 QString QITextStatusBarIndicator::text() const 135 139 { 140 AssertPtrReturn(m_pLabel, QString()); 136 141 return m_pLabel->text(); 137 142 } … … 139 144 void QITextStatusBarIndicator::setText(const QString &strText) 140 145 { 146 AssertPtrReturnVoid(m_pLabel); 141 147 m_pLabel->setText(strText); 142 148 }
Note:
See TracChangeset
for help on using the changeset viewer.