Changeset 85052 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Jul 3, 2020 11:18:35 AM (5 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/widgets
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UINameAndSystemEditor.cpp
r85051 r85052 49 49 , m_fSupportsHWVirtEx(false) 50 50 , m_fSupportsLongMode(false) 51 , m_pMainLayout(0) 51 52 , m_pNameLabel(0) 52 53 , m_pPathLabel(0) … … 60 61 { 61 62 prepare(); 63 } 64 65 void UINameAndSystemEditor::setMinimumLayoutIndent(int iIndent) 66 { 67 if (m_pMainLayout) 68 m_pMainLayout->setColumnMinimumWidth(0, iIndent); 62 69 } 63 70 … … 367 374 { 368 375 /* Create main-layout: */ 369 QGridLayout *pMainLayout = new QGridLayout(this);370 if ( pMainLayout)371 { 372 pMainLayout->setContentsMargins(0, 0, 0, 0);373 pMainLayout->setColumnStretch(0, 0);374 pMainLayout->setColumnStretch(1, 1);376 m_pMainLayout = new QGridLayout(this); 377 if (m_pMainLayout) 378 { 379 m_pMainLayout->setContentsMargins(0, 0, 0, 0); 380 m_pMainLayout->setColumnStretch(0, 0); 381 m_pMainLayout->setColumnStretch(1, 1); 375 382 376 383 int iRow = 0; … … 386 393 387 394 /* Add into layout: */ 388 pMainLayout->addWidget(m_pNameLabel, iRow, 0, 1, 1);395 m_pMainLayout->addWidget(m_pNameLabel, iRow, 0, 1, 1); 389 396 } 390 397 /* Create name editor: */ … … 393 400 { 394 401 /* Add into layout: */ 395 pMainLayout->addWidget(m_pNameLineEdit, iRow, 1, 1, 2);402 m_pMainLayout->addWidget(m_pNameLineEdit, iRow, 1, 1, 2); 396 403 } 397 404 … … 409 416 410 417 /* Add into layout: */ 411 pMainLayout->addWidget(m_pPathLabel, iRow, 0, 1, 1);418 m_pMainLayout->addWidget(m_pPathLabel, iRow, 0, 1, 1); 412 419 } 413 420 /* Create path selector: */ … … 420 427 421 428 /* Add into layout: */ 422 pMainLayout->addWidget(m_pPathSelector, iRow, 1, 1, 2);429 m_pMainLayout->addWidget(m_pPathSelector, iRow, 1, 1, 2); 423 430 } 424 431 … … 436 443 437 444 /* Add into layout: */ 438 pMainLayout->addWidget(m_pLabelFamily, iRow, 0);445 m_pMainLayout->addWidget(m_pLabelFamily, iRow, 0); 439 446 } 440 447 … … 449 456 450 457 /* Add into layout: */ 451 pMainLayout->addWidget(m_pComboFamily, iRow, 1);458 m_pMainLayout->addWidget(m_pComboFamily, iRow, 1); 452 459 } 453 460 … … 462 469 463 470 /* Add into layout: */ 464 pMainLayout->addWidget(m_pLabelType, iRow, 0);471 m_pMainLayout->addWidget(m_pLabelType, iRow, 0); 465 472 } 466 473 /* Create VM OS type combo: */ … … 472 479 473 480 /* Add into layout: */ 474 pMainLayout->addWidget(m_pComboType, iRow, 1);481 m_pMainLayout->addWidget(m_pComboType, iRow, 1); 475 482 } 476 483 … … 495 502 496 503 /* Add into layout: */ 497 pMainLayout->addLayout(pLayoutIcon, iIconRow, 2, 2, 1);504 m_pMainLayout->addLayout(pLayoutIcon, iIconRow, 2, 2, 1); 498 505 } 499 506 -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UINameAndSystemEditor.h
r83902 r85052 35 35 /* Forward declarations: */ 36 36 class QComboBox; 37 class QGridLayout; 37 38 class QLabel; 38 39 class QILineEdit; … … 74 75 bool fChoosePath = false, 75 76 bool fChooseType = true); 77 78 /** Defines minimum layout @a iIndent. */ 79 void setMinimumLayoutIndent(int iIndent); 76 80 77 81 /** Defines whether VM name stuff is @a fEnabled. */ … … 160 164 bool m_fSupportsLongMode; 161 165 166 /** Holds the main layout instance. */ 167 QGridLayout *m_pMainLayout; 168 162 169 /** Holds the VM name label instance. */ 163 170 QLabel *m_pNameLabel;
Note:
See TracChangeset
for help on using the changeset viewer.