VirtualBox

Ignore:
Timestamp:
Feb 8, 2017 2:05:28 PM (8 years ago)
Author:
vboxsync
Message:

FE/Qt: Global preferences: Input page: Small rework related to cache management (manual life-scope control).

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

Legend:

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

    r65678 r65679  
    219219
    220220/** Global settings: Input page cache structure. */
    221 class UISettingsCacheGlobalInput : public QObject
    222 {
    223     Q_OBJECT;
    224 
     221class UISettingsCacheGlobalInput
     222{
    225223public:
    226224
    227     /** Constructs cache passing @a pParent to the base-class. */
    228     UISettingsCacheGlobalInput(QObject *pParent)
    229         : QObject(pParent)
    230         , m_fAutoCapture(false)
     225    /** Constructs cache. */
     226    UISettingsCacheGlobalInput()
     227        : m_fAutoCapture(false)
    231228    {}
    232229
     
    806803    , m_pSelectorFilterEditor(0), m_pSelectorModel(0), m_pSelectorTable(0)
    807804    , m_pMachineFilterEditor(0), m_pMachineModel(0), m_pMachineTable(0)
    808     , m_pCache(new UISettingsCacheGlobalInput(this))
     805    , m_pCache(new UISettingsCacheGlobalInput)
    809806{
    810807    /* Apply UI decorations: */
     
    867864}
    868865
     866UIGlobalSettingsInput::~UIGlobalSettingsInput()
     867{
     868    /* Cleanup cache: */
     869    delete m_pCache;
     870    m_pCache = 0;
     871}
     872
    869873void UIGlobalSettingsInput::loadToCacheFrom(QVariant &data)
    870874{
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsInput.h

    r65678 r65679  
    4747    /* Constructor: */
    4848    UIGlobalSettingsInput();
     49    /* Destructor: */
     50    ~UIGlobalSettingsInput();
    4951
    5052protected:
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