- Timestamp:
- Aug 8, 2019 3:26:00 PM (5 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/extensions
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIComboBox.cpp
r80198 r80199 216 216 } 217 217 218 QVariant QIComboBox::currentData(int iRole /* = Qt::UserRole */) const 219 { 220 /* Redirect to combo-box: */ 221 AssertPtrReturn(m_pComboBox, QVariant()); 222 return m_pComboBox->currentData(iRole); 223 } 224 218 225 void QIComboBox::addItems(const QStringList &items) const 219 226 { … … 279 286 /* Redirect to combo-box: */ 280 287 AssertPtrReturn(m_pComboBox, -1); 281 return m_pComboBox->find Data(strText, flags);288 return m_pComboBox->findText(strText, flags); 282 289 } 283 290 -
trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIComboBox.h
r80197 r80199 88 88 /** Returns the text of the current item in the combo-box. */ 89 89 QString currentText() const; 90 /** Returns the data of the current item in the combo-box. */ 91 QVariant currentData(int iRole = Qt::UserRole) const; 90 92 91 93 /** Adds the @a items into the combo-box. */
Note:
See TracChangeset
for help on using the changeset viewer.