diff --git a/src/widgets/HeapBinsGraphView.cpp b/src/widgets/HeapBinsGraphView.cpp index 320938ee..0e61ae02 100644 --- a/src/widgets/HeapBinsGraphView.cpp +++ b/src/widgets/HeapBinsGraphView.cpp @@ -195,7 +195,7 @@ void HeapBinsGraphView::addBlock(GraphLayout::GraphBlock block, const QString &t double width = 0; // split text into different lines - auto lines = text.split(QRegExp("[\n]"), QString::SkipEmptyParts); + auto lines = text.split("\n", CUTTER_QT_SKIP_EMPTY_PARTS); // width of the block is the maximum width of a line for (QString &line : lines) { @@ -226,4 +226,4 @@ void HeapBinsGraphView::blockContextMenuRequested(GraphView::GraphBlock &block, addressableItemContextMenu.exec(pos); event->accept(); } -} \ No newline at end of file +} diff --git a/src/widgets/HeapDockWidget.cpp b/src/widgets/HeapDockWidget.cpp index 428fb52a..d30ca0b5 100644 --- a/src/widgets/HeapDockWidget.cpp +++ b/src/widgets/HeapDockWidget.cpp @@ -8,7 +8,7 @@ HeapDockWidget::HeapDockWidget(MainWindow *main) ui->setupUi(this); ui->allocatorSelector->addItem("Glibc Heap"); - ui->verticalLayout->setMargin(0); + ui->verticalLayout->setContentsMargins(0, 0, 0, 0); connect(ui->allocatorSelector, &QComboBox::currentIndexChanged, this, &HeapDockWidget::onAllocatorSelected);