Changeset 44711 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Feb 15, 2013 12:37:40 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsInput.cpp
r44662 r44711 350 350 void UIHotKeyTableModel::sort(int iColumn, Qt::SortOrder order /*= Qt::AscendingOrder*/) 351 351 { 352 /* Sort whole the list: */ 352 353 qStableSort(m_shortcuts.begin(), m_shortcuts.end(), UIShortcutCacheItemFunctor(iColumn, order)); 354 /* Make sure host-combo item is always the first one: */ 355 UIShortcutCacheItem fakeHostComboItem(UIHostCombo::hostComboCacheKey(), QString(), QString(), QString()); 356 int iIndexOfHostComboItem = m_shortcuts.indexOf(fakeHostComboItem); 357 if (iIndexOfHostComboItem != -1) 358 { 359 UIShortcutCacheItem hostComboItem = m_shortcuts.takeAt(iIndexOfHostComboItem); 360 m_shortcuts.prepend(hostComboItem); 361 } 362 /* Apply the filter: */ 353 363 applyFilter(); 364 /* Notify the model: */ 354 365 emit dataChanged(index(0, 0), index(rowCount() - 1, columnCount() - 1)); 355 366 }
Note:
See TracChangeset
for help on using the changeset viewer.