summaryrefslogtreecommitdiff
path: root/src/gui/windows/shortcutwindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-12-24 01:21:54 +0300
committerAndrei Karas <akaras@inbox.ru>2017-12-24 01:21:54 +0300
commitd8abec8cfce526f9b4779b674b172514100d01a2 (patch)
tree305c62d9503a1a508044883bcd336ea07d3c17f8 /src/gui/windows/shortcutwindow.cpp
parentb717426195ce73de9a70412a1e40fb01898264ae (diff)
downloadmanaverse-d8abec8cfce526f9b4779b674b172514100d01a2.tar.gz
manaverse-d8abec8cfce526f9b4779b674b172514100d01a2.tar.bz2
manaverse-d8abec8cfce526f9b4779b674b172514100d01a2.tar.xz
manaverse-d8abec8cfce526f9b4779b674b172514100d01a2.zip
Remove default parameters from scrollarea.
Diffstat (limited to 'src/gui/windows/shortcutwindow.cpp')
-rw-r--r--src/gui/windows/shortcutwindow.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gui/windows/shortcutwindow.cpp b/src/gui/windows/shortcutwindow.cpp
index 1bb35d3f1..bff1efe58 100644
--- a/src/gui/windows/shortcutwindow.cpp
+++ b/src/gui/windows/shortcutwindow.cpp
@@ -54,7 +54,7 @@ ShortcutWindow::ShortcutWindow(const std::string &restrict title,
int width, int height) :
Window("Window", Modal_false, nullptr, skinFile),
mItems(content),
- mScrollArea(new ScrollArea(this, mItems, Opaque_false)),
+ mScrollArea(new ScrollArea(this, mItems, Opaque_false, std::string())),
mTabs(nullptr),
mPages(),
mButtonIndex(0)
@@ -171,7 +171,10 @@ void ShortcutWindow::addTab(const std::string &name,
{
if ((content == nullptr) || (mTabs == nullptr))
return;
- ScrollArea *const scroll = new ScrollArea(this, content, Opaque_false);
+ ScrollArea *const scroll = new ScrollArea(this,
+ content,
+ Opaque_false,
+ std::string());
scroll->setPosition(SCROLL_PADDING, SCROLL_PADDING);
scroll->setHorizontalScrollPolicy(ScrollArea::SHOW_NEVER);
content->setWidget2(this);