VirtualBox

Changeset 64180 in vbox


Ignore:
Timestamp:
Oct 7, 2016 1:06:04 PM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
111164
Message:

FE/Qt: bugref:6899: Accessibility support (step 80): Global properties: Input: Move UIHotKeyTable onto QITableView rails.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsInput.cpp

    r64179 r64180  
    2929# include "QIWidgetValidator.h"
    3030# include "QIStyledItemDelegate.h"
     31# include "QITableView.h"
    3132# include "UIGlobalSettingsInput.h"
    3233# include "UIShortcutPool.h"
     
    130131
    131132/* A table reflecting hot-key combinations: */
    132 class UIHotKeyTable : public QTableView
     133class UIHotKeyTable : public QITableView
    133134{
    134135    Q_OBJECT;
     
    479480
    480481UIHotKeyTable::UIHotKeyTable(QWidget *pParent, UIHotKeyTableModel *pModel, const QString &strObjectName)
    481     : QTableView(pParent)
     482    : QITableView(pParent)
    482483{
    483484    /* Set object name: */
     
    524525    connect(model(), SIGNAL(sigShortcutsLoaded()), this, SLOT(sltHandleShortcutsLoaded()));
    525526
    526     /* Reinstall delegate: */
    527     delete itemDelegate();
    528     QIStyledItemDelegate *pStyledItemDelegate = new QIStyledItemDelegate(this);
    529     setItemDelegate(pStyledItemDelegate);
     527    /* Check if we do have proper item delegate: */
     528    QIStyledItemDelegate *pStyledItemDelegate = qobject_cast<QIStyledItemDelegate*>(itemDelegate());
    530529    AssertPtrReturnVoid(pStyledItemDelegate);
    531530    {
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