Mercurial > hg > easaier-soundaccess
comparison widgets/InfoWidget.cpp @ 155:708c00883180
add the RelatedMediaWidget in the InfoWidget
author | lbajardsilogic |
---|---|
date | Thu, 15 Nov 2007 10:59:02 +0000 |
parents | 1b8f08375391 |
children | c3296b15c43e |
comparison
equal
deleted
inserted
replaced
154:1b8f08375391 | 155:708c00883180 |
---|---|
18 | 18 |
19 #include <iostream> | 19 #include <iostream> |
20 | 20 |
21 #include "sv/main/MainWindow.h" | 21 #include "sv/main/MainWindow.h" |
22 #include "RelatedMediaWidget.h" | 22 #include "RelatedMediaWidget.h" |
23 #include "AdvancedToolBox.h" | |
23 | 24 |
24 InfoWidget::InfoWidget(RelatedMediaWidget * relMediaWidget) : QWidget() | 25 InfoWidget::InfoWidget(RelatedMediaWidget * relMediaWidget) : QWidget() |
25 { | 26 { |
26 m_infoLayout = new QGridLayout; | 27 m_infoLayout = new QGridLayout; |
27 | 28 |
29 infoWidget->setLayout(m_infoLayout); | 30 infoWidget->setLayout(m_infoLayout); |
30 | 31 |
31 QScrollArea * scrollArea = new QScrollArea; | 32 QScrollArea * scrollArea = new QScrollArea; |
32 scrollArea->setWidget(infoWidget); | 33 scrollArea->setWidget(infoWidget); |
33 scrollArea->setWidgetResizable(true); | 34 scrollArea->setWidgetResizable(true); |
35 scrollArea->setMinimumHeight(250); | |
36 | |
37 AdvancedToolBox * toolBox= new AdvancedToolBox; | |
38 toolBox->addItem("File Information", scrollArea); | |
39 toolBox->addItem("Related Media", relMediaWidget); | |
34 | 40 |
35 QVBoxLayout *mainLayout = new QVBoxLayout; | 41 QVBoxLayout *mainLayout = new QVBoxLayout; |
36 mainLayout->addWidget(scrollArea, Qt::AlignTop); | 42 mainLayout->addWidget(toolBox); |
37 mainLayout->addWidget(relMediaWidget, Qt::AlignTop); | |
38 | 43 |
39 setLayout(mainLayout); | 44 setLayout(mainLayout); |
40 } | 45 } |
41 | 46 |
42 InfoWidget::~InfoWidget() | 47 InfoWidget::~InfoWidget() |