Changeset 44652 in vbox
- Timestamp:
- Feb 12, 2013 12:46:35 PM (12 years ago)
- svn:sync-xref-src-repo-rev:
- 83743
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIHotKeyEditor.h
r44651 r44652 29 29 class UIHotKeyLineEdit; 30 30 31 /* A string wrapper for hot-key sequence: */31 /* A string pair wrapper for hot-key sequence: */ 32 32 class UIHotKey 33 33 { … … 36 36 /* Constructors: */ 37 37 UIHotKey() {} 38 UIHotKey(const QString &strSequence) 38 UIHotKey(const QString &strSequence, 39 const QString &strDefaultSequence) 39 40 : m_strSequence(strSequence) 41 , m_strDefaultSequence(strDefaultSequence) 40 42 {} 41 43 UIHotKey(const UIHotKey &other) 42 44 : m_strSequence(other.sequence()) 45 , m_strDefaultSequence(other.defaultSequence()) 43 46 {} 44 47 … … 47 50 { 48 51 m_strSequence = other.sequence(); 52 m_strDefaultSequence = other.defaultSequence(); 49 53 return *this; 50 54 } … … 52 56 /* API: Access stuff: */ 53 57 const QString& sequence() const { return m_strSequence; } 58 const QString& defaultSequence() const { return m_strDefaultSequence; } 54 59 void setSequence(const QString &strSequence) { m_strSequence = strSequence; } 55 60 … … 58 63 /* Variables: */ 59 64 QString m_strSequence; 65 QString m_strDefaultSequence; 60 66 }; 61 67 Q_DECLARE_METATYPE(UIHotKey);
Note:
See TracChangeset
for help on using the changeset viewer.