summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/apps/embeddedkonsole/playlistselection.cpp28
-rw-r--r--core/apps/embeddedkonsole/playlistselection.h2
2 files changed, 15 insertions, 15 deletions
diff --git a/core/apps/embeddedkonsole/playlistselection.cpp b/core/apps/embeddedkonsole/playlistselection.cpp
index b9b9401..4dd3126 100644
--- a/core/apps/embeddedkonsole/playlistselection.cpp
+++ b/core/apps/embeddedkonsole/playlistselection.cpp
@@ -53,8 +53,8 @@ void PlayListSelection::contentsMouseMoveEvent( QMouseEvent *event ) {
53 if ( event->state() == QMouseEvent::LeftButton ) { 53 if ( event->state() == QMouseEvent::LeftButton ) {
54 QListViewItem *currentItem = selectedItem(); 54 QListViewItem *currentItem = selectedItem();
55 QListViewItem *itemUnder = itemAt( QPoint( event->pos().x(), event->pos().y() - contentsY() ) ); 55 QListViewItem *itemUnder = itemAt( QPoint( event->pos().x(), event->pos().y() - contentsY() ) );
56 if ( currentItem && currentItem->itemAbove() == itemUnder ) 56 if ( currentItem && currentItem->itemAbove() == itemUnder )
57 moveSelectedUp(); 57 moveSelectedUp();
58 else if ( currentItem && currentItem->itemBelow() == itemUnder ) 58 else if ( currentItem && currentItem->itemBelow() == itemUnder )
59 moveSelectedDown(); 59 moveSelectedDown();
60 } 60 }
@@ -66,3 +66,3 @@ const QString *PlayListSelection::current() {
66 if ( item ) 66 if ( item )
67 return item->file(); 67 return item->file();
68 return NULL; 68 return NULL;
@@ -93,3 +93,3 @@ void PlayListSelection::removeSelected() {
93 if ( item ) 93 if ( item )
94 delete item; 94 delete item;
95 setSelected( currentItem(), TRUE ); 95 setSelected( currentItem(), TRUE );
@@ -102,3 +102,3 @@ void PlayListSelection::moveSelectedUp() {
102 if ( item && item->itemAbove() ) 102 if ( item && item->itemAbove() )
103 item->itemAbove()->moveItem( item ); 103 item->itemAbove()->moveItem( item );
104 ensureItemVisible( selectedItem() ); 104 ensureItemVisible( selectedItem() );
@@ -120,3 +120,3 @@ bool PlayListSelection::prev() {
120 else 120 else
121 return FALSE; 121 return FALSE;
122 ensureItemVisible( selectedItem() ); 122 ensureItemVisible( selectedItem() );
@@ -131,3 +131,3 @@ bool PlayListSelection::next() {
131 else 131 else
132 return FALSE; 132 return FALSE;
133 ensureItemVisible( selectedItem() ); 133 ensureItemVisible( selectedItem() );
@@ -142,3 +142,3 @@ bool PlayListSelection::first() {
142 else 142 else
143 return FALSE; 143 return FALSE;
144 ensureItemVisible( selectedItem() ); 144 ensureItemVisible( selectedItem() );
@@ -152,3 +152,3 @@ bool PlayListSelection::last() {
152 while ( ( item = item->nextSibling() ) ) 152 while ( ( item = item->nextSibling() ) )
153 prevItem = item; 153 prevItem = item;
154 if ( prevItem ) 154 if ( prevItem )
@@ -156,3 +156,3 @@ bool PlayListSelection::last() {
156 else 156 else
157 return FALSE; 157 return FALSE;
158 ensureItemVisible( selectedItem() ); 158 ensureItemVisible( selectedItem() );
diff --git a/core/apps/embeddedkonsole/playlistselection.h b/core/apps/embeddedkonsole/playlistselection.h
index c307f14..f340124 100644
--- a/core/apps/embeddedkonsole/playlistselection.h
+++ b/core/apps/embeddedkonsole/playlistselection.h
@@ -30,3 +30,3 @@ public:
30 PlayListSelectionItem( QListView *parent, QString *f ) : QListViewItem( parent ), fl( f ) { 30 PlayListSelectionItem( QListView *parent, QString *f ) : QListViewItem( parent ), fl( f ) {
31 setText(0, *f ); 31 setText(0, *f );
32 } 32 }