VirtualBox

Changeset 77322 in vbox for trunk/src


Ignore:
Timestamp:
Feb 14, 2019 8:11:08 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
128851
Message:

FE/Qt: bugref:9080. Some cleanup and commenting.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/medium/viso
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/src/VBox/Frontends/VirtualBox/src/medium/viso/UIVisoBrowserBase.cpp

    r77321 r77322  
    3636*   UILocationSelector definition.                                                                                   *
    3737*********************************************************************************************************************************/
    38 
     38/** A QWidget extension used to show/hide parents treeview (thru signals) and show the path of
     39 * the current selected file item. */
    3940class UILocationSelector : public QIWithRetranslateUI<QWidget>
    4041{
     
    5859private:
    5960
    60     void prepareWidget();
     61    void prepareWidgets();
    6162    QLineEdit   *m_pLineEdit;
    6263    QGridLayout *m_pMainLayout;
     
    7475    , m_pExpandButton(0)
    7576{
    76     prepareWidget();
     77    prepareWidgets();
    7778}
    7879
     
    9899void UILocationSelector::retranslateUi()
    99100{
     101    if (m_pExpandButton)
     102        m_pExpandButton->setToolTip(QApplication::translate("UIVisoCreator", "Click to show/hide the tree view"));
    100103}
    101104
     
    115118}
    116119
    117 void UILocationSelector::prepareWidget()
     120void UILocationSelector::prepareWidgets()
    118121{
    119122    m_pMainLayout = new QGridLayout;
     
    141144    }
    142145    setLayout(m_pMainLayout);
     146    retranslateUi();
    143147}
    144148
  • TabularUnified trunk/src/VBox/Frontends/VirtualBox/src/medium/viso/UIVisoCreator.cpp

    r77321 r77322  
    120120}
    121121
    122 // bool UIVisoCreator::event(QEvent *pEvent)
    123 // {
    124 
    125 //     if (pEvent->type() == QEvent::KeyPress)
    126 //     {
    127 //         printf("key press %d\n", pEvent->type());
    128 //     }
    129 //     return false;
    130 // }
    131 
    132 // bool UIVisoCreator::eventFilter(QObject *, QEvent *pEvent)
    133 // {
    134 //     if (pEvent->type() == QEvent::KeyPress)
    135 //     {
    136 //         printf("key press in filter %d\n", pEvent->type());
    137 //     }
    138 
    139 //     return false;
    140 // }
    141 
    142122void UIVisoCreator::sltHandleAddObjectsToViso(QStringList pathList)
    143123{
  • TabularUnified trunk/src/VBox/Frontends/VirtualBox/src/medium/viso/UIVisoCreator.h

    r77321 r77322  
    7171
    7272    virtual void retranslateUi() /* override */;
    73     // virtual bool event(QEvent *pEvent) /* override */;
    74     // virtual bool eventFilter(QObject *pObj, QEvent *pEvent) /* override */;
    7573
    7674private slots:
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette