|
Lines 211-219
Link Here
|
| 211 |
|
211 |
|
| 212 |
class alListBox: public alWidgetPre<QTreeWidget2> |
212 |
class alListBox: public alWidgetPre<QTreeWidget2> |
| 213 |
{ |
213 |
{ |
|
|
214 |
Q_OBJECT |
| 215 |
int currentIndex; |
| 214 |
public: |
216 |
public: |
| 215 |
alListBox(const QString& id,const QString& parent): |
217 |
alListBox(const QString& id,const QString& parent): |
| 216 |
alWidgetPre<QTreeWidget2>(id,parent) |
218 |
alWidgetPre<QTreeWidget2>(id,parent), currentIndex(0) |
| 217 |
{ |
219 |
{ |
| 218 |
wnd_->setAlternatingRowColors(true); |
220 |
wnd_->setAlternatingRowColors(true); |
| 219 |
//setings to be compatible with QListView |
221 |
//setings to be compatible with QListView |
|
Lines 225-230
Link Here
|
| 225 |
void setAttr(const QString& name,const QString& value); |
227 |
void setAttr(const QString& name,const QString& value); |
| 226 |
void registerEvent(const QString&); |
228 |
void registerEvent(const QString&); |
| 227 |
QString postData() const ; |
229 |
QString postData() const ; |
|
|
230 |
public slots: |
| 231 |
void onSelection(QTreeWidgetItem* current, QTreeWidgetItem*); |
| 228 |
}; |
232 |
}; |
| 229 |
|
233 |
|
| 230 |
class alComboBox: public alWidgetPre<QComboBox> |
234 |
class alComboBox: public alWidgetPre<QComboBox> |