diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-07-28 02:12:32 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-07-28 02:12:32 +0300 |
commit | 7898fc26ca13913637bd84008df016763358d082 (patch) | |
tree | 13ffeeab17bebd8e79391bfc75cc3cd38d068cdc /src/gui/shortcutwindow.cpp | |
parent | f60d54307c20d4150e630620dbe0be62b2a1b8a5 (diff) | |
download | plus-7898fc26ca13913637bd84008df016763358d082.tar.gz plus-7898fc26ca13913637bd84008df016763358d082.tar.bz2 plus-7898fc26ca13913637bd84008df016763358d082.tar.xz plus-7898fc26ca13913637bd84008df016763358d082.zip |
Simplify scrollarea opaque flag.
Diffstat (limited to 'src/gui/shortcutwindow.cpp')
-rw-r--r-- | src/gui/shortcutwindow.cpp | 6 |
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); } |