diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-05-18 16:27:04 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-05-18 16:27:04 +0300 |
commit | 03c74387d37cefcc18e59db203d17d78cda40e8e (patch) | |
tree | 74e7291b97b67bb75984f5f5819944f058a9ace7 /src/gui/windows/outfitwindow.cpp | |
parent | 3d7cb45edeb4f75bad321d54d84fe2d13b487db9 (diff) | |
download | manaverse-03c74387d37cefcc18e59db203d17d78cda40e8e.tar.gz manaverse-03c74387d37cefcc18e59db203d17d78cda40e8e.tar.bz2 manaverse-03c74387d37cefcc18e59db203d17d78cda40e8e.tar.xz manaverse-03c74387d37cefcc18e59db203d17d78cda40e8e.zip |
Move mousebutton into separate file.
Diffstat (limited to 'src/gui/windows/outfitwindow.cpp')
-rw-r--r-- | src/gui/windows/outfitwindow.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/windows/outfitwindow.cpp b/src/gui/windows/outfitwindow.cpp index 7748ae256..fb2b4a4e7 100644 --- a/src/gui/windows/outfitwindow.cpp +++ b/src/gui/windows/outfitwindow.cpp @@ -369,7 +369,7 @@ void OutfitWindow::draw(Graphics *graphics) void OutfitWindow::mouseDragged(MouseEvent &event) { - if (event.getButton() == MouseEvent::LEFT) + if (event.getButton() == MouseButton::LEFT) { if (dragDrop.isEmpty() && mItemClicked) { @@ -415,7 +415,7 @@ void OutfitWindow::mousePressed(MouseEvent &event) const int index = getIndexFromGrid(event.getX(), event.getY()); if (index == -1) { - if (event.getButton() == MouseEvent::RIGHT && viewport) + if (event.getButton() == MouseButton::RIGHT && viewport) { viewport->showOutfitsPopup(); event.consume(); @@ -449,7 +449,7 @@ void OutfitWindow::mousePressed(MouseEvent &event) void OutfitWindow::mouseReleased(MouseEvent &event) { - if (event.getButton() == MouseEvent::LEFT) + if (event.getButton() == MouseButton::LEFT) { if (mCurrentOutfit < 0 || mCurrentOutfit >= static_cast<signed int>(OUTFITS_COUNT)) |