VirtualBox

Changeset 100306 in vbox


Ignore:
Timestamp:
Jun 28, 2023 9:15:24 AM (17 months ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9080. Adding a toolbar to file table.

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

Legend:

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

    r100300 r100306  
    3434
    3535/* GUI includes: */
     36#include "QIToolBar.h"
    3637#include "QIToolButton.h"
    3738#include "UIFileTableNavigationWidget.h"
     
    4950    : QIWithRetranslateUI<QWidget>(pParent)
    5051    , m_pMainLayout(0)
     52    , m_pToolBar(0)
    5153    , m_pNavigationWidget(0)
     54    , m_pFileTableLabel(0)
    5255{
    5356}
     
    6669    AssertPtrReturnVoid(pTopLayout);
    6770
    68 
     71    m_pToolBar = new QIToolBar;
    6972    m_pNavigationWidget = new UIFileTableNavigationWidget;
    7073    m_pFileTableLabel = new QLabel;
    7174
     75    AssertReturnVoid(m_pToolBar);
    7276    AssertReturnVoid(m_pNavigationWidget);
    7377    AssertReturnVoid(m_pFileTableLabel);
     
    7579    pTopLayout->addWidget(m_pFileTableLabel);
    7680    pTopLayout->addWidget(m_pNavigationWidget);
    77     m_pMainLayout->addLayout(pTopLayout, 0, 0, 1, 4);
    7881
    79     m_pMainLayout->setRowStretch(1, 2);
     82    m_pMainLayout->addWidget(m_pToolBar, 0, 0, 1, 4);
     83    m_pMainLayout->addLayout(pTopLayout, 1, 0, 1, 4);
     84
     85    m_pMainLayout->setRowStretch(2, 2);
    8086}
    8187
  • trunk/src/VBox/Frontends/VirtualBox/src/medium/viso/UIVisoBrowserBase.h

    r100299 r100306  
    4343class QGridLayout;
    4444class QLabel;
     45class QIToolBar;
    4546class UIFileTableNavigationWidget;
    4647
    47 /** An abstract QWidget extension hosting and table view. */
     48/** An abstract QWidget extension hosting a toolbar, a navigation widget, and table view. */
    4849class UIVisoBrowserBase : public QIWithRetranslateUI<QWidget>
    4950{
     
    8182
    8283    QGridLayout        *m_pMainLayout;
     84    QIToolBar          *m_pToolBar;
    8385
    8486protected slots:
  • trunk/src/VBox/Frontends/VirtualBox/src/medium/viso/UIVisoContentBrowser.cpp

    r100299 r100306  
    506506    if (m_pTableView)
    507507    {
    508         m_pMainLayout->addWidget(m_pTableView, 1, 0, 6, 4);
     508        m_pMainLayout->addWidget(m_pTableView, 2, 0, 6, 4);
    509509        m_pTableView->setContextMenuPolicy(Qt::CustomContextMenu);
    510510        m_pTableView->setSelectionMode(QAbstractItemView::ExtendedSelection);
  • trunk/src/VBox/Frontends/VirtualBox/src/medium/viso/UIVisoHostBrowser.cpp

    r100299 r100306  
    183183    {
    184184        m_pTableView->setContextMenuPolicy(Qt::CustomContextMenu);
    185         m_pMainLayout->addWidget(m_pTableView, 1, 0, 8, 4);
     185        m_pMainLayout->addWidget(m_pTableView, 2, 0, 8, 4);
    186186        m_pTableView->setShowGrid(false);
    187187        m_pTableView->setSelectionBehavior(QAbstractItemView::SelectRows);
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