VirtualBox

Changeset 105031 in vbox


Ignore:
Timestamp:
Jun 26, 2024 11:13:53 AM (5 months ago)
Author:
vboxsync
Message:

FE/Qt: bugref:10681: UIShortcutConfigurationEditor: Small cleanup.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIShortcutConfigurationEditor.cpp

    r105030 r105031  
    247247
    248248    /** Defines the parent @a pTable reference. */
    249     void setTable(UIShortcutConfigurationTable *pTable);
     249    void setTable(UIShortcutConfigurationView *pTable);
    250250
    251251    /** Loads a @a list of shortcuts to the model. */
     
    290290
    291291    /** Holds the parent table reference. */
    292     UIShortcutConfigurationTable *m_pTable;
     292    UIShortcutConfigurationView *m_pTable;
    293293
    294294    /** Holds current filter. */
     
    306306
    307307/** QITableView subclass representing shortcut configuration table. */
    308 class UIShortcutConfigurationTable : public QITableView
     308class UIShortcutConfigurationView : public QITableView
    309309{
    310310    Q_OBJECT;
     
    315315      * @param  pModel         Brings the model this table is bound to.
    316316      * @param  strObjectName  Brings the object name this table has, required for fast referencing. */
    317     UIShortcutConfigurationTable(QWidget *pParent, UIShortcutConfigurationModel *pModel, const QString &strObjectName);
     317    UIShortcutConfigurationView(QWidget *pParent, UIShortcutConfigurationModel *pModel, const QString &strObjectName);
    318318    /** Destructs table. */
    319     virtual ~UIShortcutConfigurationTable() RT_OVERRIDE;
     319    virtual ~UIShortcutConfigurationView() RT_OVERRIDE;
    320320
    321321private slots:
     
    347347}
    348348
    349 void UIShortcutConfigurationModel::setTable(UIShortcutConfigurationTable *pTable)
     349void UIShortcutConfigurationModel::setTable(UIShortcutConfigurationView *pTable)
    350350{
    351351    m_pTable = pTable;
     
    687687
    688688/*********************************************************************************************************************************
    689 *   Class UIShortcutConfigurationTable implementation.                                                                           *
     689*   Class UIShortcutConfigurationView implementation.                                                                            *
    690690*********************************************************************************************************************************/
    691691
    692 UIShortcutConfigurationTable::UIShortcutConfigurationTable(QWidget *pParent,
    693                                                            UIShortcutConfigurationModel *pModel,
    694                                                            const QString &strObjectName)
     692UIShortcutConfigurationView::UIShortcutConfigurationView(QWidget *pParent,
     693                                                         UIShortcutConfigurationModel *pModel,
     694                                                         const QString &strObjectName)
    695695    : QITableView(pParent)
    696696    , m_pItemEditorFactory(0)
     
    705705}
    706706
    707 UIShortcutConfigurationTable::~UIShortcutConfigurationTable()
     707UIShortcutConfigurationView::~UIShortcutConfigurationView()
    708708{
    709709    /* Cleanup all: */
     
    711711}
    712712
    713 void UIShortcutConfigurationTable::sltHandleShortcutsLoaded()
     713void UIShortcutConfigurationView::sltHandleShortcutsLoaded()
    714714{
    715715    /* Resize columns to feat contents: */
     
    721721}
    722722
    723 void UIShortcutConfigurationTable::prepare()
     723void UIShortcutConfigurationView::prepare()
    724724{
    725725    /* Configure self: */
     
    741741    if (pHotKeyTableModel)
    742742        connect(pHotKeyTableModel, &UIShortcutConfigurationModel::sigShortcutsLoaded,
    743                 this, &UIShortcutConfigurationTable::sltHandleShortcutsLoaded);
     743                this, &UIShortcutConfigurationView::sltHandleShortcutsLoaded);
    744744
    745745    /* Check if we do have proper item delegate: */
     
    770770}
    771771
    772 void UIShortcutConfigurationTable::cleanup()
     772void UIShortcutConfigurationView::cleanup()
    773773{
    774774    /* Cleanup item editor factory: */
     
    893893
    894894            /* Prepare Manager UI table: */
    895             m_pTableManager = new UIShortcutConfigurationTable(pTabManager, m_pModelManager, "m_pTableManager");
     895            m_pTableManager = new UIShortcutConfigurationView(pTabManager, m_pModelManager, "m_pTableManager");
    896896            if (m_pTableManager)
    897897            {
     
    930930
    931931            /* Create Runtime UI table: */
    932             m_pTableRuntime = new UIShortcutConfigurationTable(pTabMachine, m_pModelRuntime, "m_pTableRuntime");
     932            m_pTableRuntime = new UIShortcutConfigurationView(pTabMachine, m_pModelRuntime, "m_pTableRuntime");
    933933            if (m_pTableRuntime)
    934934            {
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIShortcutConfigurationEditor.h

    r104313 r105031  
    3939class QTabWidget;
    4040class UIShortcutConfigurationModel;
    41 class UIShortcutConfigurationTable;
     41class UIShortcutConfigurationView;
    4242
    4343/** Shortcut search functor template. */
     
    213213    QLineEdit                    *m_pEditorFilterManager;
    214214    /** Holds the Manager UI shortcuts table instance. */
    215     UIShortcutConfigurationTable *m_pTableManager;
     215    UIShortcutConfigurationView *m_pTableManager;
    216216    /** Holds the Runtime UI shortcuts filter instance. */
    217217    QLineEdit                    *m_pEditorFilterRuntime;
    218218    /** Holds the Runtime UI shortcuts table instance. */
    219     UIShortcutConfigurationTable *m_pTableRuntime;
     219    UIShortcutConfigurationView *m_pTableRuntime;
    220220};
    221221
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