author | leseb <leseb> | 2002-07-08 14:58:34 (UTC) |
---|---|---|
committer | leseb <leseb> | 2002-07-08 14:58:34 (UTC) |
commit | 8b6a15ef84bc6b1c9c1a82689788c6e281780495 (patch) (unidiff) | |
tree | 1d2c2f416aab46103d244a0b9d5b1c764c9f5452 /noncore/settings/tabmanager/tablistview.h | |
parent | c92049007eaf6615a059425073b03a827d11831e (diff) | |
download | opie-8b6a15ef84bc6b1c9c1a82689788c6e281780495.zip opie-8b6a15ef84bc6b1c9c1a82689788c6e281780495.tar.gz opie-8b6a15ef84bc6b1c9c1a82689788c6e281780495.tar.bz2 |
Sync with 1.2 version + some bug fixes
Diffstat (limited to 'noncore/settings/tabmanager/tablistview.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/tabmanager/tablistview.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/noncore/settings/tabmanager/tablistview.h b/noncore/settings/tabmanager/tablistview.h index 97f9dec..dfd88f7 100644 --- a/noncore/settings/tabmanager/tablistview.h +++ b/noncore/settings/tabmanager/tablistview.h | |||
@@ -5,9 +5,9 @@ | |||
5 | #include <qcursor.h> | 5 | #include <qcursor.h> |
6 | #include <qapplication.h> | 6 | #include <qapplication.h> |
7 | 7 | ||
8 | class TabListView : public QListView { | 8 | class TabListView : public QListView { |
9 | Q_OBJECT | 9 | Q_OBJECT |
10 | 10 | ||
11 | signals: | 11 | signals: |
12 | void moveItem(QListViewItem *item, QListViewItem *newFolder); | 12 | void moveItem(QListViewItem *item, QListViewItem *newFolder); |
13 | 13 | ||
@@ -19,23 +19,23 @@ public: | |||
19 | 19 | ||
20 | protected: | 20 | protected: |
21 | void contentsMouseReleaseEvent(QMouseEvent* ){ | 21 | void contentsMouseReleaseEvent(QMouseEvent* ){ |
22 | QListViewItem *newGroup = this->currentItem(); | 22 | QListViewItem *newGroup = this->currentItem(); |
23 | // Make sure they are both real. | 23 | // Make sure they are both real. |
24 | if (currentSelectedItem == NULL || newGroup == NULL) | 24 | if (currentSelectedItem == NULL || newGroup == NULL) |
25 | return; | 25 | return; |
26 | // Make sure they are not the same | 26 | // Make sure they are not the same |
27 | if(this->isSelected(currentSelectedItem) == true) | 27 | if(this->isSelected(currentSelectedItem) == true) |
28 | return; | 28 | return; |
29 | 29 | ||
30 | // Ok we have two valid items. | 30 | // Ok we have two valid items. |
31 | if(newGroup->parent()) | 31 | if(newGroup->parent()) |
32 | newGroup = newGroup->parent(); | 32 | newGroup = newGroup->parent(); |
33 | 33 | ||
34 | // Just in case the parent was null | 34 | // Just in case the parent was null |
35 | if(newGroup == NULL) | 35 | if(newGroup == NULL) |
36 | return; | 36 | return; |
37 | 37 | ||
38 | // If the new folder and buddies current parent are the same don't do anything. | 38 | // If the new folder and buddies current parent are the same don't do anything. |
39 | if (newGroup != currentSelectedItem->parent()) | 39 | if (newGroup != currentSelectedItem->parent()) |
40 | moveItem(currentSelectedItem, newGroup); | 40 | moveItem(currentSelectedItem, newGroup); |
41 | currentSelectedItem = NULL; | 41 | currentSelectedItem = NULL; |
@@ -49,7 +49,7 @@ private slots: | |||
49 | qDebug("Item is NULL"); | 49 | qDebug("Item is NULL"); |
50 | return; | 50 | return; |
51 | } | 51 | } |
52 | 52 | ||
53 | currentSelectedItem = item; | 53 | currentSelectedItem = item; |
54 | internalCursor.setShape(13); | 54 | internalCursor.setShape(13); |
55 | qApp->setOverrideCursor(internalCursor); | 55 | qApp->setOverrideCursor(internalCursor); |
@@ -62,4 +62,4 @@ private: | |||
62 | }; | 62 | }; |
63 | 63 | ||
64 | #endif | 64 | #endif |
65 | 65 | ||