next[0] = NULL; next[1] = NULL;
_widget.move(5, 20);
_widget.setGridStyle(Qt::NoPen);
+ _widget.setShowGrid(false);
+ _widget.setWordWrap(false);
_widget.setMinimumHeight(_widget.rowHeight(0) + 10);
_widget.setMaximumHeight(20);
_widget.resizeColumnToContents(0);
_widget.columnWidth(0) +
_widget.columnWidth(1) +
_widget.columnWidth(2) +
- 2;
+ 5;
_widget.setMinimumWidth(column_width);
- _widget.setMinimumHeight(_widget.rowHeight(0) * (_widget.rowCount()) + 2);
- _widget.setMaximumHeight(_widget.rowHeight(0) * (_widget.rowCount()) + 2);
+ _widget.setMinimumHeight((1 + _widget.rowHeight(0)) * (_widget.rowCount()) + 2);
+ _widget.setMaximumHeight((1 + _widget.rowHeight(0)) * (_widget.rowCount()) + 2);
- height = _widget.rowHeight(0) * (_widget.rowCount()) + 25;
+ height = (1 + _widget.rowHeight(0)) * (_widget.rowCount()) + 25;
width = column_width + 10;
if (width < 270) width = 270;
}