Changeset 79440 in vbox
- Timestamp:
- Jul 1, 2019 2:52:03 PM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 131694
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/softkeyboard/UISoftKeyboard.cpp
r79437 r79440 1134 1134 if (!pItem || pItem == m_pLayoutListWidget->currentItem()) 1135 1135 return; 1136 m_pLayoutListWidget->blockSignals(true); 1136 1137 m_pLayoutListWidget->setCurrentItem(pItem); 1138 m_pLayoutListWidget->blockSignals(false); 1137 1139 } 1138 1140 … … 1151 1153 if (!m_pLayoutListWidget || layoutNames.size() != layoutUidList.size()) 1152 1154 return; 1155 QUuid currentItemUid; 1156 if (m_pLayoutListWidget->currentItem()) 1157 currentItemUid = m_pLayoutListWidget->currentItem()->data(Qt::UserRole).toUuid(); 1158 m_pLayoutListWidget->blockSignals(true); 1153 1159 m_pLayoutListWidget->clear(); 1154 1160 for (int i = 0; i < layoutNames.size(); ++i) … … 1157 1163 pItem->setData(Qt::UserRole, layoutUidList[i]); 1158 1164 m_pLayoutListWidget->addItem(pItem); 1159 } 1165 if (layoutUidList[i] == currentItemUid) 1166 m_pLayoutListWidget->setCurrentItem(pItem); 1167 } 1168 m_pLayoutListWidget->blockSignals(false); 1160 1169 } 1161 1170 … … 1205 1214 pLayout->addWidget(m_pLayoutListWidget); 1206 1215 connect(m_pLayoutListWidget, &QListWidget::currentItemChanged, this, &UILayoutSelector::sltCurrentItemChanged); 1216 1207 1217 m_pLayoutListWidget->setSelectionMode(QAbstractItemView::SingleSelection); 1208 1218 QHBoxLayout *pButtonsLayout = new QHBoxLayout;
Note:
See TracChangeset
for help on using the changeset viewer.