summaryrefslogtreecommitdiff
path: root/noncore/settings/tabmanager
authorar <ar>2004-05-31 13:04:55 (UTC)
committer ar <ar>2004-05-31 13:04:55 (UTC)
commit27b09fe4f930b96e82cea9fb0eb1a9b87f7ec062 (patch) (unidiff)
tree5b850ee6ad8b8a48b6c49f4a6ce10e75caf234e5 /noncore/settings/tabmanager
parent5bd7c2eee656e8f30635921f15770bd4a43da9e6 (diff)
downloadopie-27b09fe4f930b96e82cea9fb0eb1a9b87f7ec062.zip
opie-27b09fe4f930b96e82cea9fb0eb1a9b87f7ec062.tar.gz
opie-27b09fe4f930b96e82cea9fb0eb1a9b87f7ec062.tar.bz2
- convert qDebug to odebug
Diffstat (limited to 'noncore/settings/tabmanager') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/tabmanager/tablistview.h24
1 files changed, 14 insertions, 10 deletions
diff --git a/noncore/settings/tabmanager/tablistview.h b/noncore/settings/tabmanager/tablistview.h
index dfd88f7..54b87b6 100644
--- a/noncore/settings/tabmanager/tablistview.h
+++ b/noncore/settings/tabmanager/tablistview.h
@@ -1,13 +1,17 @@
1#ifndef TABLISTVIEW_H 1#ifndef TABLISTVIEW_H
2#define TABLISTVIEW_H 2#define TABLISTVIEW_H
3 3
4/* OPIE */
5#include <opie2/odebug.h>
6
7/* QT */
4#include <qlistview.h> 8#include <qlistview.h>
5#include <qcursor.h> 9#include <qcursor.h>
6#include <qapplication.h> 10#include <qapplication.h>
7 11
8class TabListView : public QListView { 12class TabListView : public QListView {
9 Q_OBJECT 13 Q_OBJECT
10 14
11signals: 15signals:
12 void moveItem(QListViewItem *item, QListViewItem *newFolder); 16 void moveItem(QListViewItem *item, QListViewItem *newFolder);
13 17
@@ -19,23 +23,23 @@ public:
19 23
20protected: 24protected:
21 void contentsMouseReleaseEvent(QMouseEvent* ){ 25 void contentsMouseReleaseEvent(QMouseEvent* ){
22 QListViewItem *newGroup = this->currentItem(); 26 QListViewItem *newGroup = this->currentItem();
23 // Make sure they are both real. 27 // Make sure they are both real.
24 if (currentSelectedItem == NULL || newGroup == NULL) 28 if (currentSelectedItem == NULL || newGroup == NULL)
25 return; 29 return;
26 // Make sure they are not the same 30 // Make sure they are not the same
27 if(this->isSelected(currentSelectedItem) == true) 31 if(this->isSelected(currentSelectedItem) == true)
28 return; 32 return;
29 33
30 // Ok we have two valid items. 34 // Ok we have two valid items.
31 if(newGroup->parent()) 35 if(newGroup->parent())
32 newGroup = newGroup->parent(); 36 newGroup = newGroup->parent();
33 37
34 // Just in case the parent was null 38 // Just in case the parent was null
35 if(newGroup == NULL) 39 if(newGroup == NULL)
36 return; 40 return;
37 41
38 // If the new folder and buddies current parent are the same don't do anything. 42 // If the new folder and buddies current parent are the same don't do anything.
39 if (newGroup != currentSelectedItem->parent()) 43 if (newGroup != currentSelectedItem->parent())
40 moveItem(currentSelectedItem, newGroup); 44 moveItem(currentSelectedItem, newGroup);
41 currentSelectedItem = NULL; 45 currentSelectedItem = NULL;
@@ -46,10 +50,10 @@ private slots:
46 void itemPressed(QListViewItem *item){ 50 void itemPressed(QListViewItem *item){
47 if(item == NULL || !item->parent()){ 51 if(item == NULL || !item->parent()){
48 if(item == NULL) 52 if(item == NULL)
49 qDebug("Item is NULL"); 53 odebug << "Item is NULL" << oendl;
50 return; 54 return;
51 } 55 }
52 56
53 currentSelectedItem = item; 57 currentSelectedItem = item;
54 internalCursor.setShape(13); 58 internalCursor.setShape(13);
55 qApp->setOverrideCursor(internalCursor); 59 qApp->setOverrideCursor(internalCursor);
@@ -62,4 +66,4 @@ private:
62}; 66};
63 67
64#endif 68#endif
65 69