summaryrefslogtreecommitdiff
path: root/src/gui/itemshortcutcontainer.cpp
diff options
context:
space:
mode:
authorIra Rice <irarice@gmail.com>2009-01-12 16:04:35 -0700
committerIra Rice <irarice@gmail.com>2009-01-12 16:04:35 -0700
commit8e387c0a6992baa503797b6448bbccfc1d426447 (patch)
tree0b7aa43b36b3a92028bef1f82b709d83f8c6d690 /src/gui/itemshortcutcontainer.cpp
parent7f8f7bcd329e62d240914686b01a9cd68624309c (diff)
downloadmana-8e387c0a6992baa503797b6448bbccfc1d426447.tar.gz
mana-8e387c0a6992baa503797b6448bbccfc1d426447.tar.bz2
mana-8e387c0a6992baa503797b6448bbccfc1d426447.tar.xz
mana-8e387c0a6992baa503797b6448bbccfc1d426447.zip
Some code style cleanups, as well as uncommented the font setting for
the emote shortcut window (which I meant to test before committing. Don't remove this line, as text drawing behavior is rather crazy without it). Signed-off-by: Ira Rice <irarice@gmail.com>
Diffstat (limited to 'src/gui/itemshortcutcontainer.cpp')
-rw-r--r--src/gui/itemshortcutcontainer.cpp15
1 files changed, 5 insertions, 10 deletions
diff --git a/src/gui/itemshortcutcontainer.cpp b/src/gui/itemshortcutcontainer.cpp
index 7e2eeac0..e66dc04f 100644
--- a/src/gui/itemshortcutcontainer.cpp
+++ b/src/gui/itemshortcutcontainer.cpp
@@ -59,8 +59,7 @@ ItemShortcutContainer::~ItemShortcutContainer()
mBackgroundImg->decRef();
}
-void
-ItemShortcutContainer::logic()
+void ItemShortcutContainer::logic()
{
gcn::Widget::logic();
@@ -73,8 +72,7 @@ ItemShortcutContainer::logic()
}
}
-void
-ItemShortcutContainer::draw(gcn::Graphics *graphics)
+void ItemShortcutContainer::draw(gcn::Graphics *graphics)
{
Graphics *g = static_cast<Graphics*>(graphics);
@@ -134,8 +132,7 @@ ItemShortcutContainer::draw(gcn::Graphics *graphics)
}
}
-void
-ItemShortcutContainer::mouseDragged(gcn::MouseEvent &event)
+void ItemShortcutContainer::mouseDragged(gcn::MouseEvent &event)
{
if (event.getButton() == gcn::MouseEvent::LEFT) {
if (!mItemMoved && mItemClicked) {
@@ -160,8 +157,7 @@ ItemShortcutContainer::mouseDragged(gcn::MouseEvent &event)
}
}
-void
-ItemShortcutContainer::mousePressed(gcn::MouseEvent &event)
+void ItemShortcutContainer::mousePressed(gcn::MouseEvent &event)
{
const int index = getIndexFromGrid(event.getX(), event.getY());
if (index == -1) {
@@ -178,8 +174,7 @@ ItemShortcutContainer::mousePressed(gcn::MouseEvent &event)
}
}
-void
-ItemShortcutContainer::mouseReleased(gcn::MouseEvent &event)
+void ItemShortcutContainer::mouseReleased(gcn::MouseEvent &event)
{
if (event.getButton() == gcn::MouseEvent::LEFT)
{