Diffstat (limited to 'noncore/apps/opie-reader/cbkmkselector.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-reader/cbkmkselector.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/apps/opie-reader/cbkmkselector.h b/noncore/apps/opie-reader/cbkmkselector.h index 1a70048..42951e5 100644 --- a/noncore/apps/opie-reader/cbkmkselector.h +++ b/noncore/apps/opie-reader/cbkmkselector.h | |||
@@ -10,34 +10,34 @@ class CBkmkSelector : public QWidget | |||
10 | 10 | ||
11 | QListBox* bkmkselector; | 11 | QListBox* bkmkselector; |
12 | QPushButton* exitButton; | 12 | QPushButton* exitButton; |
13 | 13 | ||
14 | signals: | 14 | signals: |
15 | void selected(int i); | 15 | void selected(int i); |
16 | void cancelled(); | 16 | void cancelled(); |
17 | private slots: | 17 | private slots: |
18 | void slotSelected(QListBoxItem* t) { emit selected(bkmkselector->index(t)); } | 18 | void slotSelected(QListBoxItem* t) { emit selected(bkmkselector->index(t)); } |
19 | void slotSelected(int t) { emit selected(t); } | 19 | void slotSelected(int t) { emit selected(t); } |
20 | void slotCancel() { emit cancelled(); } | 20 | void slotCancel() { emit cancelled(); } |
21 | public: | 21 | public: |
22 | CBkmkSelector( QWidget *parent=0, const char *name=0, WFlags f = 0) : | 22 | CBkmkSelector( QWidget *parent=0, const char *name=0, WFlags f = 0) : |
23 | QWidget(parent, name, f) | 23 | QWidget(parent, name, f) |
24 | { | 24 | { |
25 | 25 | ||
26 | // QFont f("unifont", 16); | 26 | // QFont f("unifont", 16); |
27 | // setFont( f ); | 27 | // setFont( f ); |
28 | 28 | ||
29 | QVBoxLayout* grid = new QVBoxLayout(this); | 29 | QVBoxLayout* grid = new QVBoxLayout(this); |
30 | bkmkselector = new QListBox(this, "Bookmarks"); | 30 | bkmkselector = new QListBox(this, "Bookmarks"); |
31 | exitButton = new QPushButton("Cancel", this); | 31 | exitButton = new QPushButton("Cancel", this); |
32 | connect(bkmkselector, SIGNAL( selected(int) ), this, SLOT( slotSelected(int) ) ); | 32 | connect(bkmkselector, SIGNAL( selected(int) ), this, SLOT( slotSelected(int) ) ); |
33 | connect(bkmkselector, SIGNAL( clicked(QListBoxItem*) ), this, SLOT( slotSelected(QListBoxItem*) ) ); | 33 | connect(bkmkselector, SIGNAL( clicked(QListBoxItem*) ), this, SLOT( slotSelected(QListBoxItem*) ) ); |
34 | connect(exitButton, SIGNAL( released() ), this, SLOT( slotCancel() ) ); | 34 | connect(exitButton, SIGNAL( clicked() ), this, SLOT( slotCancel() ) ); |
35 | grid->addWidget(bkmkselector,1); | 35 | grid->addWidget(bkmkselector,1); |
36 | grid->addWidget(exitButton); | 36 | grid->addWidget(exitButton); |
37 | } | 37 | } |
38 | void clear() { bkmkselector->clear(); } | 38 | void clear() { bkmkselector->clear(); } |
39 | void insertItem(const QString& item) { bkmkselector->insertItem(item); } | 39 | void insertItem(const QString& item) { bkmkselector->insertItem(item); } |
40 | QString text(int index) const { return bkmkselector->text(index); } | 40 | QString text(int index) const { return bkmkselector->text(index); } |
41 | void setText(const QString& _l) { exitButton->setText(_l); } | 41 | void setText(const QString& _l) { exitButton->setText(_l); } |
42 | }; | 42 | }; |
43 | 43 | ||