Changeset 44650 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Feb 12, 2013 12:37:35 PM (12 years ago)
- svn:sync-xref-src-repo-rev:
- 83741
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/widgets
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIHotKeyEditor.cpp
r44589 r44650 300 300 } 301 301 302 UI KeySequence UIHotKeyEditor::sequence() const302 UIHotKey UIHotKeyEditor::hotKey() const 303 303 { 304 304 return m_pLineEdit->text(); 305 305 } 306 306 307 void UIHotKeyEditor::set Sequence(const UIKeySequence &sequence)308 { 309 m_pLineEdit->setText( sequence.toString());307 void UIHotKeyEditor::setHotKey(const UIHotKey &hotKey) 308 { 309 m_pLineEdit->setText(hotKey.toString()); 310 310 } 311 311 -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIHotKeyEditor.h
r44562 r44650 30 30 31 31 /* A string wrapper for hot-key sequence: */ 32 class UI KeySequence32 class UIHotKey 33 33 { 34 34 public: 35 35 36 36 /* Constructors: */ 37 UI KeySequence(const QString &strSequence = QString()) : m_strSequence(strSequence) {}38 UI KeySequence(const UIKeySequence&other) : m_strSequence(other.toString()) {}37 UIHotKey(const QString &strSequence = QString()) : m_strSequence(strSequence) {} 38 UIHotKey(const UIHotKey &other) : m_strSequence(other.toString()) {} 39 39 40 40 /* API: Conversion stuff: */ … … 46 46 QString m_strSequence; 47 47 }; 48 Q_DECLARE_METATYPE(UI KeySequence);48 Q_DECLARE_METATYPE(UIHotKey); 49 49 50 50 /* A widget wrapper for real hot-key editor: */ … … 52 52 { 53 53 Q_OBJECT; 54 Q_PROPERTY(UI KeySequence sequence READ sequence WRITE setSequenceUSER true);54 Q_PROPERTY(UIHotKey hotKey READ hotKey WRITE setHotKey USER true); 55 55 56 56 public: … … 79 79 80 80 /* API: Editor stuff: */ 81 UI KeySequence sequence() const;82 void set Sequence(const UIKeySequence &sequence);81 UIHotKey hotKey() const; 82 void setHotKey(const UIHotKey &hotKey); 83 83 84 84 /* Variables: */
Note:
See TracChangeset
for help on using the changeset viewer.