summaryrefslogtreecommitdiff
path: root/src/gui/windows
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-05-22 23:29:25 +0300
committerAndrei Karas <akaras@inbox.ru>2018-05-22 23:29:25 +0300
commitf1dfe88c7a0c30de14439277c4ba7d69bd495fbf (patch)
tree2bfa5831dc055db21b21930b162dd39e6921e86f /src/gui/windows
parent6dff7bd4ebf3c1718ac18f756c5f65acbd83ebe9 (diff)
downloadmanaplus-f1dfe88c7a0c30de14439277c4ba7d69bd495fbf.tar.gz
manaplus-f1dfe88c7a0c30de14439277c4ba7d69bd495fbf.tar.bz2
manaplus-f1dfe88c7a0c30de14439277c4ba7d69bd495fbf.tar.xz
manaplus-f1dfe88c7a0c30de14439277c4ba7d69bd495fbf.zip
Set skin object in shortcut containers for future usage.
Diffstat (limited to 'src/gui/windows')
-rw-r--r--src/gui/windows/shortcutwindow.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/windows/shortcutwindow.cpp b/src/gui/windows/shortcutwindow.cpp
index 1b53ad455..6d431c37c 100644
--- a/src/gui/windows/shortcutwindow.cpp
+++ b/src/gui/windows/shortcutwindow.cpp
@@ -72,7 +72,7 @@ ShortcutWindow::ShortcutWindow(const std::string &restrict title,
mDragOffsetY = 0;
if (content != nullptr)
- content->setWidget2(this);
+ content->setSkin(this, mSkin);
if (setupWindow != nullptr)
setupWindow->registerWindowForReset(this);
@@ -181,7 +181,7 @@ void ShortcutWindow::addTab(const std::string &name,
std::string());
scroll->setPosition(SCROLL_PADDING, SCROLL_PADDING);
scroll->setHorizontalScrollPolicy(ScrollArea::SHOW_NEVER);
- content->setWidget2(this);
+ content->setSkin(this, mSkin);
Tab *const tab = new ShortcutTab(this, name, content);
mTabs->addTab(tab, scroll);
mPages.push_back(content);