Changeset 67922 in vbox
- Timestamp:
- Jul 12, 2017 10:17:05 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumDetailsWidget.cpp
r67863 r67922 209 209 { 210 210 /* Configure label: */ 211 m_pLabelType->setAlignment(Qt::AlignRight | Qt::AlignTrailing | Qt::AlignVCenter); 211 m_pLabelType->setAlignment(Qt::AlignRight | Qt::AlignVCenter); 212 212 213 /* Add into layout: */ 213 214 pLayoutOptions->addWidget(m_pLabelType, 0, 0); 214 215 } 216 215 217 /* Create type layout: */ 216 218 QHBoxLayout *pLayoutType = new QHBoxLayout; … … 219 221 /* Configure layout: */ 220 222 pLayoutType->setContentsMargins(0, 0, 0, 0); 223 221 224 /* Create type editor: */ 222 225 m_pComboBoxType = new QComboBox; … … 232 235 pLayoutType->addWidget(m_pComboBoxType); 233 236 } 237 234 238 /* Create type error pane: */ 235 239 m_pErrorPaneType = new QLabel; … … 240 244 m_pErrorPaneType->setPixmap(UIIconPool::iconSet(":/status_error_16px.png") 241 245 .pixmap(QSize(iIconMetric, iIconMetric))); 246 242 247 /* Add into layout: */ 243 248 pLayoutType->addWidget(m_pErrorPaneType); 244 249 } 250 245 251 /* Add into layout: */ 246 252 pLayoutOptions->addLayout(pLayoutType, 0, 1); … … 252 258 { 253 259 /* Configure label: */ 254 m_pLabelLocation->setAlignment(Qt::AlignRight | Qt::AlignTrailing | Qt::AlignVCenter); 260 m_pLabelLocation->setAlignment(Qt::AlignRight | Qt::AlignVCenter); 261 255 262 /* Add into layout: */ 256 263 pLayoutOptions->addWidget(m_pLabelLocation, 1, 0); 257 264 } 265 258 266 /* Create location layout: */ 259 267 QHBoxLayout *pLayoutLocation = new QHBoxLayout; … … 262 270 /* Configure layout: */ 263 271 pLayoutLocation->setContentsMargins(0, 0, 0, 0); 272 264 273 /* Create location editor: */ 265 274 m_pSelectorLocation = new UIFilePathSelector; … … 277 286 pLayoutLocation->addWidget(m_pSelectorLocation); 278 287 } 288 279 289 /* Create location error pane: */ 280 290 m_pErrorPaneLocation = new QLabel; … … 288 298 pLayoutLocation->addWidget(m_pErrorPaneLocation); 289 299 } 300 290 301 /* Add into layout: */ 291 302 pLayoutOptions->addLayout(pLayoutLocation, 1, 1); … … 311 322 312 323 /* Add into layout: */ 313 pLayoutOptions->addWidget(m_pButtonBox, 2, 0, 1, 2);324 pLayoutOptions->addWidget(m_pButtonBox, 3, 0, 1, 2); 314 325 } 315 326 } … … 404 415 { 405 416 /* Clear type combo-box: */ 417 m_pLabelType->setEnabled(m_newData.m_fValid); 418 m_pComboBoxType->setEnabled(m_newData.m_fValid); 406 419 m_pComboBoxType->clear(); 407 420 if (m_newData.m_fValid) … … 436 449 437 450 /* Load location: */ 451 m_pLabelLocation->setEnabled(m_newData.m_fValid); 452 m_pSelectorLocation->setEnabled(m_newData.m_fValid); 438 453 m_pSelectorLocation->setPath(m_newData.m_options.m_strLocation); 439 454 sltLocationPathChanged(m_pSelectorLocation->path());
Note:
See TracChangeset
for help on using the changeset viewer.

