Changeset 14004 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Nov 10, 2008 12:52:37 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox4/src/VBoxSelectorWnd.cpp
r13869 r14004 1142 1142 1143 1143 VBoxVMItem* pItem = NULL; 1144 QMenu* pCurMenu = trayIconMenu; 1144 1145 QMenu* pSubMenu = NULL; 1145 for (int i = 0; i < mVMModel->rowCount(); i++) 1146 { 1146 Assert(pCurMenu); 1147 1148 int iCurItemCount = 0; 1149 1150 for (int i = 0; i < mVMModel->rowCount(); i++, iCurItemCount++) 1151 { 1152 if (iCurItemCount > 14) /* 15 machines per sub menu. */ 1153 { 1154 pSubMenu = new QMenu (tr("Next 20 machines ...")); 1155 Assert(pSubMenu); 1156 pCurMenu->addMenu (pSubMenu); 1157 pCurMenu = pSubMenu; 1158 iCurItemCount = 0; 1159 } 1160 1147 1161 pItem = mVMModel->itemByRow(i); 1148 1162 Assert(pItem); … … 1172 1186 } 1173 1187 1174 trayIconMenu->addMenu (pSubMenu);1188 pCurMenu->addMenu (pSubMenu); 1175 1189 } 1176 1190
Note:
See TracChangeset
for help on using the changeset viewer.