aboutsummaryrefslogtreecommitdiff
path: root/dw/table.cc
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2014-09-22 21:57:56 +0200
committerSebastian Geerken <devnull@localhost>2014-09-22 21:57:56 +0200
commitafbbb4180fd2f4ab7bc534811ebfc0ede00d8a93 (patch)
tree1bf879bee5ec0f91c89312ae7d4175ca51ebdc14 /dw/table.cc
parent6d7df83ccc6d259dbdc2c35b99c9d9d5507fae68 (diff)
Cleaned up: Style::box*() -> Widget::box*().
Diffstat (limited to 'dw/table.cc')
-rw-r--r--dw/table.cc13
1 files changed, 5 insertions, 8 deletions
diff --git a/dw/table.cc b/dw/table.cc
index f7747cf4..d1154111 100644
--- a/dw/table.cc
+++ b/dw/table.cc
@@ -112,14 +112,13 @@ void Table::sizeRequestImpl (core::Requisition *requisition)
/**
* \bug Baselines are not regarded here.
*/
- requisition->width = getStyle()->boxDiffWidth ()
- + (numCols + 1) * getStyle()->hBorderSpacing;
+ requisition->width =
+ boxDiffWidth () + (numCols + 1) * getStyle()->hBorderSpacing;
for (int col = 0; col < numCols; col++)
requisition->width += colWidths->get (col);
requisition->ascent =
- getStyle()->boxDiffHeight () + cumHeight->get (numRows)
- + getStyle()->vBorderSpacing;
+ boxDiffHeight () + cumHeight->get (numRows) + getStyle()->vBorderSpacing;
requisition->descent = 0;
correctRequisition (requisition, core::splitHeightPreserveDescent);
@@ -175,10 +174,8 @@ void Table::sizeAllocateImpl (core::Allocation *allocation)
* \bug Baselines are not regarded here.
*/
- int offy =
- allocation->y + getStyle()->boxOffsetY () + getStyle()->vBorderSpacing;
- int x =
- allocation->x + getStyle()->boxOffsetX () + getStyle()->hBorderSpacing;
+ int offy = allocation->y + boxOffsetY () + getStyle()->vBorderSpacing;
+ int x = allocation->x + boxOffsetX () + getStyle()->hBorderSpacing;
for (int col = 0; col < numCols; col++) {
for (int row = 0; row < numRows; row++) {