diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-10-20 01:15:01 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-10-20 13:55:43 +0300 |
commit | 230e3d909340a3fb501ab1e67ae95a86eb58e2aa (patch) | |
tree | dbfa9e9724f8836a02ffa1b49edf6f1e1f060851 /src/gui/shortcutwindow.cpp | |
parent | 79b4bbbe0ead006bec273c247eaa50c2fd585863 (diff) | |
download | manaverse-230e3d909340a3fb501ab1e67ae95a86eb58e2aa.tar.gz manaverse-230e3d909340a3fb501ab1e67ae95a86eb58e2aa.tar.bz2 manaverse-230e3d909340a3fb501ab1e67ae95a86eb58e2aa.tar.xz manaverse-230e3d909340a3fb501ab1e67ae95a86eb58e2aa.zip |
Add palette inheritance to shortcutcontainer class.
Diffstat (limited to 'src/gui/shortcutwindow.cpp')
-rw-r--r-- | src/gui/shortcutwindow.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/shortcutwindow.cpp b/src/gui/shortcutwindow.cpp index 8f4374cba..3003392ca 100644 --- a/src/gui/shortcutwindow.cpp +++ b/src/gui/shortcutwindow.cpp @@ -74,6 +74,7 @@ ShortcutWindow::ShortcutWindow(const std::string &title, mDragOffsetX = 0; mDragOffsetY = 0; + content->setWidget2(this); setupWindow->registerWindowForReset(this); const int border = SCROLL_PADDING * 2 + getPadding() * 2; @@ -156,6 +157,7 @@ void ShortcutWindow::addTab(std::string name, ShortcutContainer *const content) ScrollArea *const scroll = new ScrollArea(content, false); scroll->setPosition(SCROLL_PADDING, SCROLL_PADDING); scroll->setHorizontalScrollPolicy(gcn::ScrollArea::SHOW_NEVER); + content->setWidget2(this); Tab *const tab = new ShortcutTab(this, name, content); mTabs->addTab(tab, scroll); } |