From 2ac7c08ca9536a5b0c08c6ff331241ce6b082af0 Mon Sep 17 00:00:00 2001 From: Christoph Egger Date: Tue, 3 Jun 2014 14:15:17 +0200 Subject: [PATCH] Remove grid --- src/gui/widgets/BasicBlockWidget.hxx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/gui/widgets/BasicBlockWidget.hxx b/src/gui/widgets/BasicBlockWidget.hxx index 98d3e63..557f556 100644 --- a/src/gui/widgets/BasicBlockWidget.hxx +++ b/src/gui/widgets/BasicBlockWidget.hxx @@ -7,8 +7,14 @@ public: : x(-5), y(-20) , dx(270), dy(45) , name(name) { + _widget.setGridStyle(Qt::NoPen); _widget.setMinimumHeight(_widget.rowHeight(0) + 10); _widget.setMaximumHeight(20); + _widget.resizeColumnToContents(0); + _widget.resizeColumnToContents(1); + _widget.resizeColumnToContents(2); + _widget.updateGeometry(); + _widget.setMaximumWidth(260); _widget.setColumnCount(3); _widget.verticalHeader()->hide(); _widget.horizontalHeader()->hide(); -- 2.39.5