VirtualBox

Changeset 44652 in vbox


Ignore:
Timestamp:
Feb 12, 2013 12:46:35 PM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
83743
Message:

FE/Qt: 6065: Updating UIHotKey: Class extended with default hot-key support.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIHotKeyEditor.h

    r44651 r44652  
    2929class UIHotKeyLineEdit;
    3030
    31 /* A string wrapper for hot-key sequence: */
     31/* A string pair wrapper for hot-key sequence: */
    3232class UIHotKey
    3333{
     
    3636    /* Constructors: */
    3737    UIHotKey() {}
    38     UIHotKey(const QString &strSequence)
     38    UIHotKey(const QString &strSequence,
     39             const QString &strDefaultSequence)
    3940        : m_strSequence(strSequence)
     41        , m_strDefaultSequence(strDefaultSequence)
    4042    {}
    4143    UIHotKey(const UIHotKey &other)
    4244        : m_strSequence(other.sequence())
     45        , m_strDefaultSequence(other.defaultSequence())
    4346    {}
    4447
     
    4750    {
    4851        m_strSequence = other.sequence();
     52        m_strDefaultSequence = other.defaultSequence();
    4953        return *this;
    5054    }
     
    5256    /* API: Access stuff: */
    5357    const QString& sequence() const { return m_strSequence; }
     58    const QString& defaultSequence() const { return m_strDefaultSequence; }
    5459    void setSequence(const QString &strSequence) { m_strSequence = strSequence; }
    5560
     
    5863    /* Variables: */
    5964    QString m_strSequence;
     65    QString m_strDefaultSequence;
    6066};
    6167Q_DECLARE_METATYPE(UIHotKey);
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