Mercurial > hg > easaier-soundaccess
comparison widgets/ItemAudioFilterList.cpp @ 133:894b45c9b787
kill all windows when the program is closed
popups are always on top
author | benoitrigolleau |
---|---|
date | Thu, 08 Nov 2007 16:26:40 +0000 |
parents | 5060939ca69d |
children | 7386cd014f52 |
comparison
equal
deleted
inserted
replaced
132:e236ce53a2e7 | 133:894b45c9b787 |
---|---|
62 this->setLayout(m_layoutMain); | 62 this->setLayout(m_layoutMain); |
63 | 63 |
64 connect(this, SIGNAL(doubleClicked()), this, SLOT(openPropertyBox())); | 64 connect(this, SIGNAL(doubleClicked()), this, SLOT(openPropertyBox())); |
65 } | 65 } |
66 | 66 |
67 ItemAudioFilterList::~ItemAudioFilterList(){ | |
68 if(m_propertyBox){ | |
69 m_propertyBox->close(); | |
70 delete m_propertyBox; | |
71 } | |
72 | |
73 } | |
74 | |
67 void ItemAudioFilterList::setIcon(QString &icon){ | 75 void ItemAudioFilterList::setIcon(QString &icon){ |
68 m_labelIcon->setPixmap(QIcon(icon).pixmap(25)); | 76 m_labelIcon->setPixmap(QIcon(icon).pixmap(25)); |
69 } | 77 } |
70 | 78 |
71 void ItemAudioFilterList::setName(QString &name){ | 79 void ItemAudioFilterList::setName(QString &name){ |
87 } | 95 } |
88 } | 96 } |
89 | 97 |
90 void ItemAudioFilterList::configAction(){ | 98 void ItemAudioFilterList::configAction(){ |
91 if(m_propertyBox!=0){ | 99 if(m_propertyBox!=0){ |
92 m_propertyBox->close(); | 100 //m_propertyBox->close(); |
101 m_propertyBox->setWindowFlags(m_propertyBox->windowFlags() | Qt::WindowStaysOnTopHint); | |
93 m_propertyBox->show(); | 102 m_propertyBox->show(); |
94 } | 103 } |
95 } | 104 } |
96 | 105 |
97 | 106 |