diff options
author | Andrzej Rybczak <electricityispower@gmail.com> | 2012-10-05 21:25:22 +0200 |
---|---|---|
committer | Andrzej Rybczak <electricityispower@gmail.com> | 2012-10-05 21:25:22 +0200 |
commit | 1eb000371416ad1defec39cdcc3a711833a7b7c7 (patch) | |
tree | d0af59bab42537b45492eca0a08930af87f25a34 /src/browser.cpp | |
parent | 044464962c9ccbf9ff017379e67724ce58553b60 (diff) |
window: rename Where to Scroll and make it enum class
Diffstat (limited to 'src/browser.cpp')
-rw-r--r-- | src/browser.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/browser.cpp b/src/browser.cpp index 6cc17881..56990b75 100644 --- a/src/browser.cpp +++ b/src/browser.cpp @@ -153,7 +153,7 @@ void Browser::spacePressed() { i = w.choice(); w.at(i).setSelected(!w.at(i).isSelected()); - w.scroll(NC::wDown); + w.scroll(NC::Scroll::Down); return; } @@ -198,7 +198,7 @@ void Browser::spacePressed() break; } } - w.scroll(NC::wDown); + w.scroll(NC::Scroll::Down); } void Browser::mouseButtonPressed(MEVENT me) @@ -221,7 +221,7 @@ void Browser::mouseButtonPressed(MEVENT me) size_t pos = w.choice(); spacePressed(); if (pos < w.size()-1) - w.scroll(NC::wUp); + w.scroll(NC::Scroll::Up); } break; case itPlaylist: @@ -231,7 +231,7 @@ void Browser::mouseButtonPressed(MEVENT me) size_t pos = w.choice(); spacePressed(); if (pos < w.size()-1) - w.scroll(NC::wUp); + w.scroll(NC::Scroll::Up); } else enterPressed(); |