LCDTextItem has a default constructor that doesn't initialize any
From: Erik Hovland <erik@hovland.org>
of the class's members.
---
libs/libmyth/lcddevice.h | 7 +------
1 files changed, 1 insertions(+), 6 deletions(-)
diff --git a/libs/libmyth/lcddevice.h b/libs/libmyth/lcddevice.h
index bf98c72..ce40da4 100644
a
|
b
|
enum CHECKED_STATE {CHECKED = 0, UNCHECKED, NOTCHECKABLE }; |
20 | 20 | class MPUBLIC LCDMenuItem |
21 | 21 | { |
22 | 22 | public: |
23 | | LCDMenuItem() {} |
24 | 23 | LCDMenuItem(bool item_selected, CHECKED_STATE item_checked, |
25 | 24 | QString item_name, unsigned int item_indent = 0) |
26 | 25 | { |
27 | 26 | selected = item_selected; |
28 | 27 | checked = item_checked; |
29 | 28 | name = item_name; |
| 29 | scroll = false; |
30 | 30 | indent = item_indent; |
31 | 31 | scrollPosition = indent; |
32 | 32 | } |
33 | 33 | |
34 | | ~LCDMenuItem() {} |
35 | | |
36 | 34 | CHECKED_STATE isChecked() { return checked; } |
37 | 35 | bool isSelected() { return selected; } |
38 | 36 | QString ItemName() { return name; } |
… |
… |
enum TEXT_ALIGNMENT {ALIGN_LEFT, ALIGN_RIGHT, ALIGN_CENTERED }; |
62 | 60 | class MPUBLIC LCDTextItem |
63 | 61 | { |
64 | 62 | public: |
65 | | LCDTextItem() {} |
66 | 63 | LCDTextItem(unsigned int row, TEXT_ALIGNMENT align, QString text, |
67 | 64 | QString screen = "Generic", bool scroll = false, |
68 | 65 | QString widget = "textWidget") |
… |
… |
class MPUBLIC LCDTextItem |
75 | 72 | itemScrollable = scroll; |
76 | 73 | } |
77 | 74 | |
78 | | ~LCDTextItem(){}; |
79 | | |
80 | 75 | unsigned int getRow() { return itemRow; } |
81 | 76 | TEXT_ALIGNMENT getAlignment() { return itemAlignment; } |
82 | 77 | QString getText() { return itemText; } |