comparison widgets/ItemLayerList.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 ca1f73f027f5
children 7386cd014f52
comparison
equal deleted inserted replaced
132:e236ce53a2e7 133:894b45c9b787
32 m_labelIcon = new QLabel; 32 m_labelIcon = new QLabel;
33 m_labelName = new QLabel; 33 m_labelName = new QLabel;
34 m_checkBoxShow = new QCheckBox; 34 m_checkBoxShow = new QCheckBox;
35 m_checkBoxPlay = new QCheckBox; 35 m_checkBoxPlay = new QCheckBox;
36 m_layoutMain = new QHBoxLayout; 36 m_layoutMain = new QHBoxLayout;
37
37 38
38 /* set the correct widget parameters*/ 39 /* set the correct widget parameters*/
39 m_labelIcon->setMaximumSize(25,25); 40 m_labelIcon->setMaximumSize(25,25);
40 //labelIcon->setPixmap(QIcon(":icons/layerViewer_btn_config.png").pixmap(20)); 41 //labelIcon->setPixmap(QIcon(":icons/layerViewer_btn_config.png").pixmap(20));
41 42
68 69
69 /*add the main layout in this widget*/ 70 /*add the main layout in this widget*/
70 this->setLayout(m_layoutMain); 71 this->setLayout(m_layoutMain);
71 72
72 connect(this, SIGNAL(doubleClicked()), this, SLOT(openPropertyBox())); 73 connect(this, SIGNAL(doubleClicked()), this, SLOT(openPropertyBox()));
74 }
75
76 ItemLayerList::~ItemLayerList(){
77 /*if(m_propertyBox){
78 m_propertyBox->close();
79 delete m_propertyBox;
80 }*/
73 } 81 }
74 82
75 void ItemLayerList::setIcon(QString &icon){ 83 void ItemLayerList::setIcon(QString &icon){
76 m_labelIcon->setPixmap(QIcon(icon).pixmap(25)); 84 m_labelIcon->setPixmap(QIcon(icon).pixmap(25));
77 } 85 }
110 //connect(); 118 //connect();
111 } 119 }
112 120
113 void ItemLayerList::configAction(){ 121 void ItemLayerList::configAction(){
114 if(m_propertyBox!=0){ 122 if(m_propertyBox!=0){
115 m_propertyBox->close(); 123 //m_propertyBox->close();
124 m_propertyBox->setWindowFlags(m_propertyBox->windowFlags() | Qt::WindowStaysOnTopHint);
116 m_propertyBox->show(); 125 m_propertyBox->show();
126
117 } 127 }
118 } 128 }
119 129
120 130
121 /*********SLOTS ************/ 131 /*********SLOTS ************/