Ticket #8617: ListWidget-patch.cpp

File ListWidget-patch.cpp, 615 bytes (added by SF/youngelf, 17 years ago)

Patch for gui/ListWidget.cpp against the recent svn release

Line 
1*** gui/ListWidget.cpp~ Fri Mar 16 08:09:13 2007
2--- gui/ListWidget.cpp Fri Mar 16 09:19:49 2007
3***************
4*** 54,73 ****
5--- 54,74 ----
6
7 // The item is selected, thus _bgcolor is used to draw the caret and _textcolorhi to erase it
8 _caretInverse = true;
9
10 // FIXME: This flag should come from widget definition
11 _editable = true;
12 }
13
14 ListWidget::~ListWidget() {
15 delete[] _textWidth;
16+ delete _scrollBar;
17 }
18
19 Widget *ListWidget::findWidget(int x, int y) {
20 if (x >= _w - _scrollBarWidth)
21 return _scrollBar;
22
23 return this;
24 }
25
26 void ListWidget::setSelected(int item) {