mirror of
https://github.com/rizinorg/cutter.git
synced 2025-02-01 09:07:26 +00:00
db0d4d85a6
This fixes a double-free in getSignatureInfo() when the string was already freed by the intermediate CutterJson. But actually just using this CutterJson makes more sense than the string anyway, so let's do that. The old JsonModel rebuilt the entire structure, defeating the main purpose of a custom model in comparison to the existing QTreeWidget. And since we are holding the json structures ourselves anyway, such a custom model does not have many benefits anyway.
17 lines
415 B
C++
17 lines
415 B
C++
#include "CutterTreeView.h"
|
|
#include "ui_CutterTreeView.h"
|
|
|
|
CutterTreeView::CutterTreeView(QWidget *parent) : QTreeView(parent), ui(new Ui::CutterTreeView())
|
|
{
|
|
ui->setupUi(this);
|
|
applyCutterStyle(this);
|
|
}
|
|
|
|
CutterTreeView::~CutterTreeView() {}
|
|
|
|
void CutterTreeView::applyCutterStyle(QTreeView *view)
|
|
{
|
|
view->setSelectionMode(QAbstractItemView::ExtendedSelection);
|
|
view->setUniformRowHeights(true);
|
|
}
|