Changeset 64539 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Nov 3, 2016 4:29:32 PM (8 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/widgets
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIFilePathSelector.cpp
r60953 r64539 62 62 63 63 UIFilePathSelector::UIFilePathSelector(QWidget *pParent /* = 0 */) 64 : QIWithRetranslateUI<Q ComboBox>(pParent)64 : QIWithRetranslateUI<QIComboBox>(pParent) 65 65 , m_enmMode(Mode_Folder) 66 66 , m_strHomeDir(QDir::current().absolutePath()) … … 125 125 if (m_fEditable) 126 126 { 127 Q ComboBox::setEditable(true);127 QIComboBox::setEditable(true); 128 128 Assert(lineEdit()); 129 129 connect(lineEdit(), SIGNAL(textEdited(const QString &)), … … 142 142 this, SLOT(onTextEdited(const QString &))); 143 143 } 144 Q ComboBox::setEditable(false);144 QIComboBox::setEditable(false); 145 145 } 146 146 } … … 161 161 { 162 162 /* Call to base-class: */ 163 Q ComboBox::setToolTip(strToolTip);163 QIComboBox::setToolTip(strToolTip); 164 164 165 165 /* Remember if the tool-tip overriden: */ … … 180 180 QMetaObject::invokeMethod(this, "refreshText", Qt::QueuedConnection); 181 181 182 return QIWithRetranslateUI<Q ComboBox>::eventFilter(pObject, pEvent);182 return QIWithRetranslateUI<QIComboBox>::eventFilter(pObject, pEvent); 183 183 } 184 184 185 185 void UIFilePathSelector::resizeEvent(QResizeEvent *pEvent) 186 186 { 187 QIWithRetranslateUI<Q ComboBox>::resizeEvent(pEvent);187 QIWithRetranslateUI<QIComboBox>::resizeEvent(pEvent); 188 188 refreshText(); 189 189 } … … 200 200 refreshText(); 201 201 } 202 QIWithRetranslateUI<Q ComboBox>::focusInEvent(pEvent);202 QIWithRetranslateUI<QIComboBox>::focusInEvent(pEvent); 203 203 } 204 204 … … 210 210 refreshText(); 211 211 } 212 QIWithRetranslateUI<Q ComboBox>::focusOutEvent(pEvent);212 QIWithRetranslateUI<QIComboBox>::focusOutEvent(pEvent); 213 213 } 214 214 … … 487 487 /* Set the tool-tip: */ 488 488 if (!m_fToolTipOverriden) 489 Q ComboBox::setToolTip(m_strNoneToolTipFocused);489 QIComboBox::setToolTip(m_strNoneToolTipFocused); 490 490 setItemData(PathId, toolTip(), Qt::ToolTipRole); 491 491 … … 517 517 /* Set the tool-tip: */ 518 518 if (!m_fToolTipOverriden) 519 Q ComboBox::setToolTip(m_strNoneToolTip);519 QIComboBox::setToolTip(m_strNoneToolTip); 520 520 setItemData(PathId, toolTip(), Qt::ToolTipRole); 521 521 } … … 537 537 /* Set the tool-tip: */ 538 538 if (!m_fToolTipOverriden) 539 Q ComboBox::setToolTip(fullPath());539 QIComboBox::setToolTip(fullPath()); 540 540 setItemData(PathId, toolTip(), Qt::ToolTipRole); 541 541 } -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIFilePathSelector.h
r60928 r64539 19 19 #define ___UIFilePathSelector_h___ 20 20 21 /* Qt includes: */22 #include <QComboBox>23 24 21 /* GUI includes: */ 22 #include "QIComboBox.h" 25 23 #include "QIWithRetranslateUI.h" 26 24 … … 33 31 34 32 35 /** Q ComboBox extension providing GUI with33 /** QIComboBox extension providing GUI with 36 34 * possibility to choose/reflect file/folder path. */ 37 class UIFilePathSelector: public QIWithRetranslateUI<Q ComboBox>35 class UIFilePathSelector: public QIWithRetranslateUI<QIComboBox> 38 36 { 39 37 Q_OBJECT; … … 62 60 }; 63 61 64 /** Constructs file-path selector passing @a pParent to Q ComboBox base-class. */62 /** Constructs file-path selector passing @a pParent to QIComboBox base-class. */ 65 63 UIFilePathSelector(QWidget *pParent = 0); 66 64
Note:
See TracChangeset
for help on using the changeset viewer.