|
Revision 458, 0.7 kB
(checked in by krobillard, 17 months ago)
|
|
Merged Thune thread_safe branch into trunk (r386:457)
|
| Line | |
|---|
| 1 | |
|---|
| 2 | |
|---|
| 3 | |
|---|
| 4 | |
|---|
| 5 | #include "StackDisplay.h" |
|---|
| 6 | #include "internal.h" |
|---|
| 7 | |
|---|
| 8 | |
|---|
| 9 | StackDisplay::StackDisplay( QWidget* parent ) : QListWidget( parent ) |
|---|
| 10 | { |
|---|
| 11 | } |
|---|
| 12 | |
|---|
| 13 | |
|---|
| 14 | |
|---|
| 15 | |
|---|
| 16 | |
|---|
| 17 | void StackDisplay::update( UThread* ut, UString* tmp ) |
|---|
| 18 | { |
|---|
| 19 | clear(); |
|---|
| 20 | |
|---|
| 21 | if( ut ) |
|---|
| 22 | { |
|---|
| 23 | UCell* it = UR_TOS; |
|---|
| 24 | while( it != UR_BOS ) |
|---|
| 25 | { |
|---|
| 26 | tmp->used = 0; |
|---|
| 27 | ur_toStr( it, tmp, 0 ); |
|---|
| 28 | ur_termCStr( tmp ); |
|---|
| 29 | |
|---|
| 30 | insertItem( 0, tmp->ptr.c ); |
|---|
| 31 | |
|---|
| 32 | it = ur_s_prev( it ); |
|---|
| 33 | } |
|---|
| 34 | } |
|---|
| 35 | } |
|---|
| 36 | |
|---|
| 37 | |
|---|
| 38 | |
|---|