mirror of
https://github.com/rizinorg/cutter.git
synced 2025-01-18 02:25:26 +00:00
Fix Compatibility with Qt6 (#2767)
This commit is contained in:
parent
7e68147eab
commit
6b4472f189
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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<void (QComboBox::*)(int)>(ui->allocatorSelector, &QComboBox::currentIndexChanged, this,
|
||||
&HeapDockWidget::onAllocatorSelected);
|
||||
|
Loading…
Reference in New Issue
Block a user