Index: /trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsInput.cpp
===================================================================
--- /trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsInput.cpp	(revision 64261)
+++ /trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsInput.cpp	(revision 64262)
@@ -65,16 +65,16 @@
                         const QString &strCurrentSequence,
                         const QString &strDefaultSequence)
-        : key(strKey)
-        , description(strDescription)
-        , currentSequence(strCurrentSequence)
-        , defaultSequence(strDefaultSequence)
+        : m_strKey(strKey)
+        , m_strDescription(strDescription)
+        , m_strCurrentSequence(strCurrentSequence)
+        , m_strDefaultSequence(strDefaultSequence)
     {}
 
     /** Constructs table row on the basis of @a other one. */
     UIShortcutCacheItem(const UIShortcutCacheItem &other)
-        : key(other.key)
-        , description(other.description)
-        , currentSequence(other.currentSequence)
-        , defaultSequence(other.defaultSequence)
+        : m_strKey(other.key())
+        , m_strDescription(other.description())
+        , m_strCurrentSequence(other.currentSequence())
+        , m_strDefaultSequence(other.defaultSequence())
     {}
 
@@ -83,8 +83,8 @@
     {
         /* Reassign variables: */
-        key = other.key;
-        description = other.description;
-        currentSequence = other.currentSequence;
-        defaultSequence = other.defaultSequence;
+        m_strKey = other.key();
+        m_strDescription = other.description();
+        m_strCurrentSequence = other.currentSequence();
+        m_strDefaultSequence = other.defaultSequence();
 
         /* Return this: */
@@ -96,15 +96,29 @@
     {
         /* Compare by the key only: */
-        return key == other.key;
-    }
+        return m_strKey == other.key();
+    }
+
+    /** Returns the key. */
+    QString key() const { return m_strKey; }
+    /** Returns the description. */
+    QString description() const { return m_strDescription; }
+    /** Returns the current sequence. */
+    QString currentSequence() const { return m_strCurrentSequence; }
+    /** Returns the default sequence. */
+    QString defaultSequence() const { return m_strDefaultSequence; }
+
+    /** Defines @a strCurrentSequence. */
+    void setCurrentSequence(const QString &strCurrentSequence) { m_strCurrentSequence = strCurrentSequence; }
+
+private:
 
     /** Holds the key. */
-    QString key;
+    QString m_strKey;
     /** Holds the description. */
-    QString description;
+    QString m_strDescription;
     /** Holds the current sequence. */
-    QString currentSequence;
+    QString m_strCurrentSequence;
     /** Holds the default sequence. */
-    QString defaultSequence;
+    QString m_strDefaultSequence;
 };
 
@@ -155,10 +169,10 @@
         {
             case UIHotKeyColumnIndex_Description:
-                return m_order == Qt::AscendingOrder ? item1.description < item2.description : item1.description > item2.description;
+                return m_order == Qt::AscendingOrder ? item1.description() < item2.description() : item1.description() > item2.description();
             case UIHotKeyColumnIndex_Sequence:
-                return m_order == Qt::AscendingOrder ? item1.currentSequence < item2.currentSequence : item1.currentSequence > item2.currentSequence;
+                return m_order == Qt::AscendingOrder ? item1.currentSequence() < item2.currentSequence() : item1.currentSequence() > item2.currentSequence();
             default: break;
         }
-        return m_order == Qt::AscendingOrder ? item1.key < item2.key : item1.key > item2.key;
+        return m_order == Qt::AscendingOrder ? item1.key() < item2.key() : item1.key() > item2.key();
     }
 
@@ -267,6 +281,6 @@
     {
         /* Filter out unnecessary shortcuts: */
-        if ((m_type == UIActionPoolType_Selector && item.key.startsWith(GUI_Input_MachineShortcuts)) ||
-            (m_type == UIActionPoolType_Runtime && item.key.startsWith(GUI_Input_SelectorShortcuts)))
+        if ((m_type == UIActionPoolType_Selector && item.key().startsWith(GUI_Input_MachineShortcuts)) ||
+            (m_type == UIActionPoolType_Runtime && item.key().startsWith(GUI_Input_SelectorShortcuts)))
             continue;
         /* Load shortcut cache item into model: */
@@ -299,6 +313,6 @@
     QMap<QString, QString> usedSequences;
     foreach (const UIShortcutCacheItem &item, m_shortcuts)
-        if (!item.currentSequence.isEmpty())
-            usedSequences.insertMulti(item.currentSequence, item.key);
+        if (!item.currentSequence().isEmpty())
+            usedSequences.insertMulti(item.currentSequence(), item.key());
     /* Enumerate all the duplicated sequences: */
     QSet<QString> duplicatedSequences;
@@ -391,14 +405,14 @@
                 {
                     /* Return shortcut description: */
-                    return m_filteredShortcuts[iIndex].description;
+                    return m_filteredShortcuts[iIndex].description();
                 }
                 case UIHotKeyColumnIndex_Sequence:
                 {
                     /* If that is host-combo cell: */
-                    if (m_filteredShortcuts[iIndex].key == UIHostCombo::hostComboCacheKey())
+                    if (m_filteredShortcuts[iIndex].key() == UIHostCombo::hostComboCacheKey())
                         /* We should return host-combo: */
-                        return UIHostCombo::toReadableString(m_filteredShortcuts[iIndex].currentSequence);
+                        return UIHostCombo::toReadableString(m_filteredShortcuts[iIndex].currentSequence());
                     /* In other cases we should return hot-combo: */
-                    QString strHotCombo = m_filteredShortcuts[iIndex].currentSequence;
+                    QString strHotCombo = m_filteredShortcuts[iIndex].currentSequence();
                     /* But if that is machine table and hot-combo is not empty: */
                     if (m_type == UIActionPoolType_Runtime && !strHotCombo.isEmpty())
@@ -418,10 +432,10 @@
             switch (index.column())
             {
-                case UIHotKeyColumnIndex_Sequence: return m_filteredShortcuts[iIndex].key == UIHostCombo::hostComboCacheKey() ?
-                                                          QVariant::fromValue(UIHostComboWrapper(m_filteredShortcuts[iIndex].currentSequence)) :
+                case UIHotKeyColumnIndex_Sequence: return m_filteredShortcuts[iIndex].key() == UIHostCombo::hostComboCacheKey() ?
+                                                          QVariant::fromValue(UIHostComboWrapper(m_filteredShortcuts[iIndex].currentSequence())) :
                                                           QVariant::fromValue(UIHotKey(m_type == UIActionPoolType_Runtime ?
                                                                                        UIHotKeyType_Simple : UIHotKeyType_WithModifiers,
-                                                                                       m_filteredShortcuts[iIndex].currentSequence,
-                                                                                       m_filteredShortcuts[iIndex].defaultSequence));
+                                                                                       m_filteredShortcuts[iIndex].currentSequence(),
+                                                                                       m_filteredShortcuts[iIndex].defaultSequence()));
                 default: break;
             }
@@ -438,6 +452,6 @@
                 case UIHotKeyColumnIndex_Sequence:
                 {
-                    if (m_filteredShortcuts[iIndex].key != UIHostCombo::hostComboCacheKey() &&
-                        m_filteredShortcuts[iIndex].currentSequence != m_filteredShortcuts[iIndex].defaultSequence)
+                    if (m_filteredShortcuts[iIndex].key() != UIHostCombo::hostComboCacheKey() &&
+                        m_filteredShortcuts[iIndex].currentSequence() != m_filteredShortcuts[iIndex].defaultSequence())
                         font.setBold(true);
                     break;
@@ -455,5 +469,5 @@
                 case UIHotKeyColumnIndex_Sequence:
                 {
-                    if (m_duplicatedSequences.contains(m_filteredShortcuts[iIndex].key))
+                    if (m_duplicatedSequences.contains(m_filteredShortcuts[iIndex].key()))
                         return QBrush(Qt::red);
                     break;
@@ -491,7 +505,7 @@
                     if (iShortcutIndex != -1)
                     {
-                        filteredShortcut.currentSequence = filteredShortcut.key == UIHostCombo::hostComboCacheKey() ?
-                                                           value.value<UIHostComboWrapper>().toString() :
-                                                           value.value<UIHotKey>().sequence();
+                        filteredShortcut.setCurrentSequence(filteredShortcut.key() == UIHostCombo::hostComboCacheKey() ?
+                                                            value.value<UIHostComboWrapper>().toString() :
+                                                            value.value<UIHotKey>().sequence());
                         m_shortcuts[iShortcutIndex] = filteredShortcut;
                         emit sigRevalidationRequired();
@@ -550,6 +564,6 @@
         {
             /* If neither description nor sequence matches the filter, skip item: */
-            if (!item.description.contains(m_strFilter, Qt::CaseInsensitive) &&
-                !item.currentSequence.contains(m_strFilter, Qt::CaseInsensitive))
+            if (!item.description().contains(m_strFilter, Qt::CaseInsensitive) &&
+                !item.currentSequence().contains(m_strFilter, Qt::CaseInsensitive))
                 continue;
             /* Add that item: */
@@ -775,9 +789,9 @@
     int iIndexOfHostComboItem = m_pCache->m_shortcuts.indexOf(fakeHostComboItem);
     if (iIndexOfHostComboItem != -1)
-        m_settings.setHostCombo(m_pCache->m_shortcuts[iIndexOfHostComboItem].currentSequence);
+        m_settings.setHostCombo(m_pCache->m_shortcuts[iIndexOfHostComboItem].currentSequence());
     /* Iterate over cached shortcuts: */
     QMap<QString, QString> sequences;
     foreach (const UIShortcutCacheItem &item, m_pCache->m_shortcuts)
-        sequences.insert(item.key, item.currentSequence);
+        sequences.insert(item.key(), item.currentSequence());
     /* Save shortcut sequences from cache: */
     gShortcutPool->setOverrides(sequences);
