summaryrefslogtreecommitdiff
path: root/src/gui/widgets
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/layoutarray.h13
-rw-r--r--src/gui/widgets/layoutcell.cpp2
2 files changed, 10 insertions, 5 deletions
diff --git a/src/gui/widgets/layoutarray.h b/src/gui/widgets/layoutarray.h
index cca05e091..2cf2c0eda 100644
--- a/src/gui/widgets/layoutarray.h
+++ b/src/gui/widgets/layoutarray.h
@@ -47,8 +47,10 @@ class LayoutArray final
/**
* Returns a reference on the cell at given position.
*/
- LayoutCell &at(const int x, const int y,
- const int w = 1, const int h = 1) A_WARN_UNUSED;
+ LayoutCell &at(const int x,
+ const int y,
+ const int w,
+ const int h) A_WARN_UNUSED;
/**
* Places a widget in a given cell.
@@ -57,8 +59,11 @@ class LayoutArray final
* @note When @a w is 1, the width of column @a x is reset to zero if
* it was AUTO_DEF. Similarly for @a h.
*/
- LayoutCell &place(Widget *const widget, const int x, const int y,
- const int w = 1, const int h = 1);
+ LayoutCell &place(Widget *const widget,
+ const int x,
+ const int y,
+ const int w,
+ const int h);
/**
* Sets the minimum width of a column.
diff --git a/src/gui/widgets/layoutcell.cpp b/src/gui/widgets/layoutcell.cpp
index 7db5d0783..b3c26b903 100644
--- a/src/gui/widgets/layoutcell.cpp
+++ b/src/gui/widgets/layoutcell.cpp
@@ -104,7 +104,7 @@ void LayoutCell::computeSizes()
LayoutCell &LayoutCell::at(const int x, const int y)
{
- return getArray().at(x, y);
+ return getArray().at(x, y, 1, 1);
}
LayoutCell &LayoutCell::place(Widget *const wg,