Mercurial > hg > easaier-soundaccess
comparison widgets/ItemContainer.cpp @ 88:5060939ca69d
enable/disable audio FilterStack
WaitCursor for the search
author | benoitrigolleau |
---|---|
date | Thu, 28 Jun 2007 16:17:36 +0000 |
parents | afcf540ae3a2 |
children | 486e44e12a5d |
comparison
equal
deleted
inserted
replaced
87:880dce3d7b00 | 88:5060939ca69d |
---|---|
16 | 16 |
17 #include <QtAlgorithms> | 17 #include <QtAlgorithms> |
18 #include <iostream> | 18 #include <iostream> |
19 #include <QList> | 19 #include <QList> |
20 #include <QPalette> | 20 #include <QPalette> |
21 #include <QScrollArea> | |
21 | 22 |
22 ItemContainer::ItemContainer(QWidget *parent) : QWidget(parent){ | 23 ItemContainer::ItemContainer(QWidget *parent) : QWidget(parent){ |
23 | 24 |
24 m_linkedList = new QLinkedList<int>(); | 25 m_linkedList = new QLinkedList<int>(); |
25 m_map = new QMap<int,GenericItemList*>(); | 26 m_map = new QMap<int,GenericItemList*>(); |
26 | 27 |
27 m_cpt=0; | 28 m_cpt=0; |
28 | 29 |
29 QVBoxLayout *mainlayout = new QVBoxLayout(); | 30 QVBoxLayout *mainlayout = new QVBoxLayout(); |
30 m_itemLayout = new QVBoxLayout; | 31 m_itemLayout = new QVBoxLayout; |
32 | |
31 mainlayout->addLayout(m_itemLayout); | 33 mainlayout->addLayout(m_itemLayout); |
32 mainlayout->addStretch(); | 34 mainlayout->addStretch(); |
33 | 35 |
34 this->setLayout(mainlayout); | 36 this->setLayout(mainlayout); |
35 | 37 |
50 this, SLOT(moveItem(int, int))); | 52 this, SLOT(moveItem(int, int))); |
51 connect(item, SIGNAL(selected(int)), | 53 connect(item, SIGNAL(selected(int)), |
52 this, SLOT(newItemSelected(int))); | 54 this, SLOT(newItemSelected(int))); |
53 | 55 |
54 m_itemLayout->insertWidget(0,item); | 56 m_itemLayout->insertWidget(0,item); |
57 | |
55 m_cpt++; | 58 m_cpt++; |
56 } | 59 } |
57 | 60 |
58 void ItemContainer::setSelectedItem(QVariant &data){ | 61 void ItemContainer::setSelectedItem(QVariant &data){ |
59 | 62 |