VirtualBox

Changeset 97384 in vbox


Ignore:
Timestamp:
Nov 3, 2022 1:54:17 PM (2 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
154384
Message:

FE/Qt: bugref:6669: Preferences/Settings dialog: Dialog type for the interface.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/UISettingsDialog.h

    r97383 r97384  
    6868public:
    6969
     70    /** Dialog types. */
     71    enum DialogType { DialogType_Global, DialogType_Machine };
     72
    7073    /** Constructs settings dialog passing @a pParent to the base-class. */
    7174    UISettingsDialog(QWidget *pParent);
    7275    /** Destructs settings dialog. */
    7376    virtual ~UISettingsDialog() RT_OVERRIDE;
     77
     78    /** Returns dialog type. */
     79    virtual DialogType dialogType() const = 0;
    7480
    7581    /** Performs modal dialog call. */
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/UISettingsDialogSpecific.h

    r97383 r97384  
    6161                           const QString &strControl = QString());
    6262
     63    /** Returns dialog type. */
     64    virtual DialogType dialogType() const { return DialogType_Global; }
     65
    6366protected:
    6467
     
    108111    UISettingsDialogMachine(QWidget *pParent, const QUuid &uMachineId,
    109112                            const QString &strCategory, const QString &strControl, UIActionPool *pActionPool);
     113
     114    /** Returns dialog type. */
     115    virtual DialogType dialogType() const { return DialogType_Machine; }
    110116
    111117protected:
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