From 8ab2c60ccb7a4be4119f0672c0fb51816a41d71e Mon Sep 17 00:00:00 2001 From: Christoph Egger Date: Fri, 6 Feb 2015 16:13:22 +0100 Subject: [PATCH] Fix width of basic blocks --- src/gui/widgets/BasicBlockWidget.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/widgets/BasicBlockWidget.cxx b/src/gui/widgets/BasicBlockWidget.cxx index 2880af3..5dc27ce 100644 --- a/src/gui/widgets/BasicBlockWidget.cxx +++ b/src/gui/widgets/BasicBlockWidget.cxx @@ -56,7 +56,7 @@ void BasicBlockWidget::addItem(uint8_t* bytes, size_t num_bytes, _layout.addWidget(instruction_label, current_row, 1); instruction_label->setVisible(true); - width = 12 + _widget.sizeHint().width(); + width = 12 + _widget.childrenRect().width(); height = 25 + _widget.childrenRect().height(); if (width < 250) width = 250; -- 2.39.2