Changeset 105031 in vbox
- Timestamp:
- Jun 26, 2024 11:13:53 AM (5 months ago)
- 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 247 247 248 248 /** Defines the parent @a pTable reference. */ 249 void setTable(UIShortcutConfiguration Table*pTable);249 void setTable(UIShortcutConfigurationView *pTable); 250 250 251 251 /** Loads a @a list of shortcuts to the model. */ … … 290 290 291 291 /** Holds the parent table reference. */ 292 UIShortcutConfiguration Table*m_pTable;292 UIShortcutConfigurationView *m_pTable; 293 293 294 294 /** Holds current filter. */ … … 306 306 307 307 /** QITableView subclass representing shortcut configuration table. */ 308 class UIShortcutConfiguration Table: public QITableView308 class UIShortcutConfigurationView : public QITableView 309 309 { 310 310 Q_OBJECT; … … 315 315 * @param pModel Brings the model this table is bound to. 316 316 * @param strObjectName Brings the object name this table has, required for fast referencing. */ 317 UIShortcutConfiguration Table(QWidget *pParent, UIShortcutConfigurationModel *pModel, const QString &strObjectName);317 UIShortcutConfigurationView(QWidget *pParent, UIShortcutConfigurationModel *pModel, const QString &strObjectName); 318 318 /** Destructs table. */ 319 virtual ~UIShortcutConfiguration Table() RT_OVERRIDE;319 virtual ~UIShortcutConfigurationView() RT_OVERRIDE; 320 320 321 321 private slots: … … 347 347 } 348 348 349 void UIShortcutConfigurationModel::setTable(UIShortcutConfiguration Table*pTable)349 void UIShortcutConfigurationModel::setTable(UIShortcutConfigurationView *pTable) 350 350 { 351 351 m_pTable = pTable; … … 687 687 688 688 /********************************************************************************************************************************* 689 * Class UIShortcutConfiguration Table implementation.*689 * Class UIShortcutConfigurationView implementation. * 690 690 *********************************************************************************************************************************/ 691 691 692 UIShortcutConfiguration Table::UIShortcutConfigurationTable(QWidget *pParent,693 694 692 UIShortcutConfigurationView::UIShortcutConfigurationView(QWidget *pParent, 693 UIShortcutConfigurationModel *pModel, 694 const QString &strObjectName) 695 695 : QITableView(pParent) 696 696 , m_pItemEditorFactory(0) … … 705 705 } 706 706 707 UIShortcutConfiguration Table::~UIShortcutConfigurationTable()707 UIShortcutConfigurationView::~UIShortcutConfigurationView() 708 708 { 709 709 /* Cleanup all: */ … … 711 711 } 712 712 713 void UIShortcutConfiguration Table::sltHandleShortcutsLoaded()713 void UIShortcutConfigurationView::sltHandleShortcutsLoaded() 714 714 { 715 715 /* Resize columns to feat contents: */ … … 721 721 } 722 722 723 void UIShortcutConfiguration Table::prepare()723 void UIShortcutConfigurationView::prepare() 724 724 { 725 725 /* Configure self: */ … … 741 741 if (pHotKeyTableModel) 742 742 connect(pHotKeyTableModel, &UIShortcutConfigurationModel::sigShortcutsLoaded, 743 this, &UIShortcutConfiguration Table::sltHandleShortcutsLoaded);743 this, &UIShortcutConfigurationView::sltHandleShortcutsLoaded); 744 744 745 745 /* Check if we do have proper item delegate: */ … … 770 770 } 771 771 772 void UIShortcutConfiguration Table::cleanup()772 void UIShortcutConfigurationView::cleanup() 773 773 { 774 774 /* Cleanup item editor factory: */ … … 893 893 894 894 /* Prepare Manager UI table: */ 895 m_pTableManager = new UIShortcutConfiguration Table(pTabManager, m_pModelManager, "m_pTableManager");895 m_pTableManager = new UIShortcutConfigurationView(pTabManager, m_pModelManager, "m_pTableManager"); 896 896 if (m_pTableManager) 897 897 { … … 930 930 931 931 /* Create Runtime UI table: */ 932 m_pTableRuntime = new UIShortcutConfiguration Table(pTabMachine, m_pModelRuntime, "m_pTableRuntime");932 m_pTableRuntime = new UIShortcutConfigurationView(pTabMachine, m_pModelRuntime, "m_pTableRuntime"); 933 933 if (m_pTableRuntime) 934 934 { -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIShortcutConfigurationEditor.h
r104313 r105031 39 39 class QTabWidget; 40 40 class UIShortcutConfigurationModel; 41 class UIShortcutConfiguration Table;41 class UIShortcutConfigurationView; 42 42 43 43 /** Shortcut search functor template. */ … … 213 213 QLineEdit *m_pEditorFilterManager; 214 214 /** Holds the Manager UI shortcuts table instance. */ 215 UIShortcutConfiguration Table*m_pTableManager;215 UIShortcutConfigurationView *m_pTableManager; 216 216 /** Holds the Runtime UI shortcuts filter instance. */ 217 217 QLineEdit *m_pEditorFilterRuntime; 218 218 /** Holds the Runtime UI shortcuts table instance. */ 219 UIShortcutConfiguration Table*m_pTableRuntime;219 UIShortcutConfigurationView *m_pTableRuntime; 220 220 }; 221 221
Note:
See TracChangeset
for help on using the changeset viewer.