Changeset 44658 in vbox
- Timestamp:
- Feb 12, 2013 1:30:52 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsInput.h
r44528 r44658 6 6 7 7 /* 8 * Copyright (C) 2006-201 2Oracle Corporation8 * Copyright (C) 2006-2013 Oracle Corporation 9 9 * 10 10 * This file is part of VirtualBox Open Source Edition (OSE), as … … 20 20 #define __UIGlobalSettingsInput_h__ 21 21 22 /* Local includes*/22 /* GUI includes: */ 23 23 #include "UISettingsPage.h" 24 24 #include "UIGlobalSettingsInput.gen.h" 25 26 /* Global settings / Input page / Cache / Shortcut cache item: */ 27 struct UIShortcutCacheItem 28 { 29 UIShortcutCacheItem(const QString &strKey, 30 const QString &strDescription, 31 const QString &strCurrentSequence, 32 const QString &strDefaultSequence) 33 : key(strKey) 34 , description(strDescription) 35 , currentSequence(strCurrentSequence) 36 , defaultSequence(strDefaultSequence) 37 {} 38 39 UIShortcutCacheItem(const UIShortcutCacheItem &other) 40 : key(other.key) 41 , description(other.description) 42 , currentSequence(other.currentSequence) 43 , defaultSequence(other.defaultSequence) 44 {} 45 46 UIShortcutCacheItem& operator=(const UIShortcutCacheItem &other) 47 { 48 key = other.key; 49 description = other.description; 50 currentSequence = other.currentSequence; 51 defaultSequence = other.defaultSequence; 52 return *this; 53 } 54 55 bool operator==(const UIShortcutCacheItem &other) const 56 { 57 return key == other.key; 58 } 59 60 QString key; 61 QString description; 62 QString currentSequence; 63 QString defaultSequence; 64 }; 65 66 /* Global settings / Input page / Cache / Shortcut cache: */ 67 typedef QList<UIShortcutCacheItem> UIShortcutCache; 25 68 26 69 /* Global settings / Input page / Cache: */
Note:
See TracChangeset
for help on using the changeset viewer.