Changeset 67382 in vbox for trunk/src/VBox
- Timestamp:
- Jun 14, 2017 8:00:59 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/selector/UISnapshotDetailsWidget.cpp
r67380 r67382 774 774 AssertPtrReturnVoid(pLayout1); 775 775 { 776 /* Create left widget: */777 Q Widget *pWidgetLeft = new QWidget;778 AssertPtrReturnVoid(p WidgetLeft);776 /* Create left layout: */ 777 QIFlowLayout *pLayoutLeft = new QIFlowLayout; 778 AssertPtrReturnVoid(pLayoutLeft); 779 779 { 780 /* Create left layout: */ 781 QIFlowLayout *pLayoutLeft = new QIFlowLayout(pWidgetLeft); 782 AssertPtrReturnVoid(pLayoutLeft); 783 { 784 /* Configure layout: */ 785 pLayoutLeft->setContentsMargins(0, 0, 0, 0); 786 787 /* Create 'General' element: */ 788 m_details[DetailsElementType_General] = createDetailsElement(DetailsElementType_General); 789 AssertPtrReturnVoid(m_details[DetailsElementType_General]); 790 pLayoutLeft->addWidget(m_details[DetailsElementType_General]); 791 792 /* Create 'System' element: */ 793 m_details[DetailsElementType_System] = createDetailsElement(DetailsElementType_System); 794 AssertPtrReturnVoid(m_details[DetailsElementType_System]); 795 pLayoutLeft->addWidget(m_details[DetailsElementType_System]); 796 } 780 /* Configure layout: */ 781 pLayoutLeft->setContentsMargins(0, 0, 0, 0); 782 783 /* Create 'General' element: */ 784 m_details[DetailsElementType_General] = createDetailsElement(DetailsElementType_General); 785 AssertPtrReturnVoid(m_details[DetailsElementType_General]); 786 pLayoutLeft->addWidget(m_details[DetailsElementType_General]); 787 788 /* Create 'System' element: */ 789 m_details[DetailsElementType_System] = createDetailsElement(DetailsElementType_System); 790 AssertPtrReturnVoid(m_details[DetailsElementType_System]); 791 pLayoutLeft->addWidget(m_details[DetailsElementType_System]); 797 792 798 793 /* Add to layout: */ 799 pLayout1->add Widget(pWidgetLeft);794 pLayout1->addLayout(pLayoutLeft); 800 795 } 801 796 802 /* Create right widget: */803 Q Widget *pWidgetRight = new QWidget;804 AssertPtrReturnVoid(p WidgetRight);797 /* Create right layout: */ 798 QVBoxLayout *pLayoutRight = new QVBoxLayout; 799 AssertPtrReturnVoid(pLayoutRight); 805 800 { 806 /* Create right layout: */ 807 QVBoxLayout *pLayoutRight = new QVBoxLayout(pWidgetRight); 808 AssertPtrReturnVoid(pLayoutRight); 809 { 810 /* Configure layout: */ 811 pLayoutRight->setContentsMargins(0, 0, 0, 0); 812 813 /* Create 'Preview' element: */ 814 m_details[DetailsElementType_Preview] = createDetailsElement(DetailsElementType_Preview); 815 AssertPtrReturnVoid(m_details[DetailsElementType_Preview]); 816 connect(m_details[DetailsElementType_Preview], &UISnapshotDetailsElement::sigAnchorClicked, 817 this, &UISnapshotDetailsWidget::sltHandleAnchorClicked); 818 pLayoutRight->addWidget(m_details[DetailsElementType_Preview]); 819 pLayoutRight->addStretch(); 820 } 801 /* Configure layout: */ 802 pLayoutRight->setContentsMargins(0, 0, 0, 0); 803 804 /* Create 'Preview' element: */ 805 m_details[DetailsElementType_Preview] = createDetailsElement(DetailsElementType_Preview); 806 AssertPtrReturnVoid(m_details[DetailsElementType_Preview]); 807 connect(m_details[DetailsElementType_Preview], &UISnapshotDetailsElement::sigAnchorClicked, 808 this, &UISnapshotDetailsWidget::sltHandleAnchorClicked); 809 pLayoutRight->addWidget(m_details[DetailsElementType_Preview]); 810 pLayoutRight->addStretch(); 821 811 822 812 /* Add to layout: */ 823 pLayout1->add Widget(pWidgetRight);813 pLayout1->addLayout(pLayoutRight); 824 814 } 825 815 … … 876 866 m_pLayoutDetails->addLayout(pLayout2); 877 867 } 868 869 /* Add stretch: */ 870 m_pLayoutDetails->addStretch(); 878 871 } 879 872
Note:
See TracChangeset
for help on using the changeset viewer.