VirtualBox

Changeset 71186 in vbox


Ignore:
Timestamp:
Mar 4, 2018 1:07:19 PM (7 years ago)
Author:
vboxsync
Message:

FE/Qt bugref:6699 Add a toolbar to the file table widget

Location:
trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/guestctrl
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/guestctrl/UIGuestControlFileTable.cpp

    r71185 r71186  
    2121
    2222/* Qt includes: */
     23# include <QAction>
    2324# include <QDir>
    2425# include <QHeaderView>
     
    2829/* GUI includes: */
    2930# include "QILineEdit.h"
     31# include "UIIconPool.h"
    3032# include "UIGuestControlFileTable.h"
    3133# include "UIToolBar.h"
     
    349351    , m_pMainLayout(0)
    350352    , m_pCurrentLocationEdit(0)
    351 
     353    , m_pToolBar(0)
    352354{
    353355    prepareObjects();
     
    379381    m_pMainLayout->setContentsMargins(0, 0, 0, 0);
    380382    setLayout(m_pMainLayout);
     383
     384
     385    m_pToolBar = new UIToolBar;
     386    if (m_pToolBar)
     387    {
     388        m_pMainLayout->addWidget(m_pToolBar);
     389    }
     390    m_pActionRefresh = new QAction(this);
     391    m_pActionRefresh->setIcon(UIIconPool::iconSet(QString(":/refresh_22px.png")));
     392
     393    m_pToolBar->addAction(m_pActionRefresh);
     394
     395
     396
    381397
    382398    m_pCurrentLocationEdit = new QILineEdit;
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/guestctrl/UIGuestControlFileTable.h

    r71185 r71186  
    3333
    3434/* Forward declarations: */
     35class QAction;
    3536class QILineEdit;
    3637class QVBoxLayout;
     
    114115private:
    115116
    116     void                    prepareObjects();
    117     QVBoxLayout             *m_pMainLayout;
    118     QILineEdit              *m_pCurrentLocationEdit;
     117    void           prepareObjects();
     118    QVBoxLayout    *m_pMainLayout;
     119    QILineEdit     *m_pCurrentLocationEdit;
     120    UIToolBar      *m_pToolBar;
     121    QAction        *m_pActionRefresh;
    119122
    120123    friend class UIGuestControlFileModel;
Note: See TracChangeset for help on using the changeset viewer.

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