summaryrefslogtreecommitdiff
path: root/src/gui/shortcutwindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-07-28 02:12:32 +0300
committerAndrei Karas <akaras@inbox.ru>2012-07-28 02:12:32 +0300
commit7898fc26ca13913637bd84008df016763358d082 (patch)
tree13ffeeab17bebd8e79391bfc75cc3cd38d068cdc /src/gui/shortcutwindow.cpp
parentf60d54307c20d4150e630620dbe0be62b2a1b8a5 (diff)
downloadmanaverse-7898fc26ca13913637bd84008df016763358d082.tar.gz
manaverse-7898fc26ca13913637bd84008df016763358d082.tar.bz2
manaverse-7898fc26ca13913637bd84008df016763358d082.tar.xz
manaverse-7898fc26ca13913637bd84008df016763358d082.zip
Simplify scrollarea opaque flag.
Diffstat (limited to 'src/gui/shortcutwindow.cpp')
-rw-r--r--src/gui/shortcutwindow.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/gui/shortcutwindow.cpp b/src/gui/shortcutwindow.cpp
index 4d7443037..a051705b8 100644
--- a/src/gui/shortcutwindow.cpp
+++ b/src/gui/shortcutwindow.cpp
@@ -97,10 +97,9 @@ ShortcutWindow::ShortcutWindow(const std::string &title,
mBoxesWidth += mItems->getBoxWidth() + border;
- mScrollArea = new ScrollArea(mItems);
+ mScrollArea = new ScrollArea(mItems, false);
mScrollArea->setPosition(SCROLL_PADDING, SCROLL_PADDING);
mScrollArea->setHorizontalScrollPolicy(gcn::ScrollArea::SHOW_NEVER);
- mScrollArea->setOpaque(false);
place(0, 0, mScrollArea, 5, 5).setPadding(0);
@@ -161,10 +160,9 @@ ShortcutWindow::~ShortcutWindow()
void ShortcutWindow::addTab(std::string name, ShortcutContainer *content)
{
- ScrollArea *scroll = new ScrollArea(content);
+ ScrollArea *scroll = new ScrollArea(content, false);
scroll->setPosition(SCROLL_PADDING, SCROLL_PADDING);
scroll->setHorizontalScrollPolicy(gcn::ScrollArea::SHOW_NEVER);
- scroll->setOpaque(false);
Tab *tab = new ShortcutTab(name, content);
mTabs->addTab(tab, scroll);
}