summaryrefslogtreecommitdiff
Side-by-side diff
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 ) {
if ( event->state() == QMouseEvent::LeftButton ) {
- QListViewItem *currentItem = selectedItem();
- QListViewItem *itemUnder = itemAt( QPoint( event->pos().x(), event->pos().y() - contentsY() ) );
- if ( currentItem && currentItem->itemAbove() == itemUnder )
- moveSelectedUp();
- else if ( currentItem && currentItem->itemBelow() == itemUnder )
- moveSelectedDown();
+ QListViewItem *currentItem = selectedItem();
+ QListViewItem *itemUnder = itemAt( QPoint( event->pos().x(), event->pos().y() - contentsY() ) );
+ if ( currentItem && currentItem->itemAbove() == itemUnder )
+ moveSelectedUp();
+ else if ( currentItem && currentItem->itemBelow() == itemUnder )
+ moveSelectedDown();
}
@@ -66,3 +66,3 @@ const QString *PlayListSelection::current() {
if ( item )
- return item->file();
+ return item->file();
return NULL;
@@ -93,3 +93,3 @@ void PlayListSelection::removeSelected() {
if ( item )
- delete item;
+ delete item;
setSelected( currentItem(), TRUE );
@@ -102,3 +102,3 @@ void PlayListSelection::moveSelectedUp() {
if ( item && item->itemAbove() )
- item->itemAbove()->moveItem( item );
+ item->itemAbove()->moveItem( item );
ensureItemVisible( selectedItem() );
@@ -120,3 +120,3 @@ bool PlayListSelection::prev() {
else
- return FALSE;
+ return FALSE;
ensureItemVisible( selectedItem() );
@@ -131,3 +131,3 @@ bool PlayListSelection::next() {
else
- return FALSE;
+ return FALSE;
ensureItemVisible( selectedItem() );
@@ -142,3 +142,3 @@ bool PlayListSelection::first() {
else
- return FALSE;
+ return FALSE;
ensureItemVisible( selectedItem() );
@@ -152,3 +152,3 @@ bool PlayListSelection::last() {
while ( ( item = item->nextSibling() ) )
- prevItem = item;
+ prevItem = item;
if ( prevItem )
@@ -156,3 +156,3 @@ bool PlayListSelection::last() {
else
- return FALSE;
+ return FALSE;
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:
PlayListSelectionItem( QListView *parent, QString *f ) : QListViewItem( parent ), fl( f ) {
- setText(0, *f );
+ setText(0, *f );
}