- Timestamp:
- Nov 3, 2016 4:24:26 PM (8 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/extensions
- Files:
-
- 2 edited
-
QIComboBox.cpp (modified) (2 diffs)
-
QIComboBox.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIComboBox.cpp
r64522 r64538 196 196 } 197 197 198 int QIComboBox::currentIndex() const198 int QIComboBox::currentIndex() const 199 199 { 200 200 /* Redirect to combo-box: */ … … 304 304 AssertPtrReturnVoid(m_pComboBox); 305 305 { 306 /* Configure combo-box: */ 307 connect(m_pComboBox, SIGNAL(activated(int)), this, SIGNAL(activated(int))); 308 connect(m_pComboBox, SIGNAL(activated(const QString &)), this, SIGNAL(activated(const QString &))); 309 connect(m_pComboBox, SIGNAL(currentIndexChanged(int)), this, SIGNAL(currentIndexChanged(int))); 310 connect(m_pComboBox, SIGNAL(currentIndexChanged(const QString &)), this, SIGNAL(currentIndexChanged(const QString &))); 311 connect(m_pComboBox, SIGNAL(currentTextChanged(const QString &)), this, SIGNAL(currentTextChanged(const QString &))); 312 connect(m_pComboBox, SIGNAL(editTextChanged(const QString &)), this, SIGNAL(editTextChanged(const QString &))); 313 connect(m_pComboBox, SIGNAL(highlighted(int)), this, SIGNAL(highlighted(int))); 314 connect(m_pComboBox, SIGNAL(highlighted(const QString &)), this, SIGNAL(highlighted(const QString &))); 306 315 /* Add combo-box into layout: */ 307 316 pLayout->addWidget(m_pComboBox); -
trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIComboBox.h
r64520 r64538 32 32 /** Enumerates sub-element indexes for editable case. */ 33 33 enum { SubElementEditable_Editor, SubElementEditable_Selector, SubElementEditable_Max }; 34 35 signals: 36 37 /** Notifies listeners about user chooses an item with @a iIndex in the combo-box. */ 38 void activated(int iIndex); 39 /** Notifies listeners about user chooses an item with @a strText in the combo-box. */ 40 void activated(const QString &strText); 41 42 /** Notifies listeners about current item changed to item with @a iIndex. */ 43 void currentIndexChanged(int iIndex); 44 /** Notifies listeners about current item changed to item with @a strText. */ 45 void currentIndexChanged(const QString &strText); 46 47 /** Notifies listeners about current combo-box text is changed to @a strText. */ 48 void currentTextChanged(const QString &strText); 49 /** Notifies listeners about current combo-box editable text is changed to @a strText. */ 50 void editTextChanged(const QString &strText); 51 52 /** Notifies listeners about user highlighted an item with @a iIndex in the popup list-view. */ 53 void highlighted(int iIndex); 54 /** Notifies listeners about user highlighted an item with @a strText in the popup list-view. */ 55 void highlighted(const QString &strText); 34 56 35 57 public:
Note:
See TracChangeset
for help on using the changeset viewer.

