From d59cd9111c1e86b224ea62cc975c49b157e2b3cf Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 19 Oct 2012 23:56:04 +0300 Subject: Add to some controls palette inheritance from other controls. --- src/gui/shortcutwindow.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/gui/shortcutwindow.cpp') diff --git a/src/gui/shortcutwindow.cpp b/src/gui/shortcutwindow.cpp index 8a4d45188..8f4374cba 100644 --- a/src/gui/shortcutwindow.cpp +++ b/src/gui/shortcutwindow.cpp @@ -41,8 +41,9 @@ int ShortcutWindow::mBoxesWidth = 0; class ShortcutTab final : public Tab { public: - ShortcutTab(std::string name, ShortcutContainer *const content) : - Tab(), + ShortcutTab(const Widget2 *const widget, + std::string name, ShortcutContainer *const content) : + Tab(widget), mContent(content) { setCaption(name); @@ -108,7 +109,7 @@ ShortcutWindow::ShortcutWindow(const std::string &title, std::string skinFile, Window("Window", false, nullptr, skinFile), mItems(nullptr), mScrollArea(nullptr), - mTabs(new TabbedArea) + mTabs(new TabbedArea(this)) { setWindowName(title); setTitleBarHeight(getPadding() + getTitlePadding()); @@ -155,7 +156,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); - Tab *const tab = new ShortcutTab(name, content); + Tab *const tab = new ShortcutTab(this, name, content); mTabs->addTab(tab, scroll); } -- cgit v1.2.3-70-g09d2