mirror of
https://github.com/rizinorg/cutter.git
synced 2025-01-31 00:35:05 +00:00
Remove vertical numbers in debug widgets
This commit is contained in:
parent
a63c3401b6
commit
44e68146db
@ -1,6 +1,7 @@
|
||||
#include "BacktraceWidget.h"
|
||||
#include "ui_BacktraceWidget.h"
|
||||
#include "common/JsonModel.h"
|
||||
#include "QHeaderView"
|
||||
|
||||
#include "core/MainWindow.h"
|
||||
|
||||
@ -20,6 +21,7 @@ BacktraceWidget::BacktraceWidget(MainWindow *main, QAction *action) :
|
||||
modelBacktrace->setHorizontalHeaderItem(4, new QStandardItem(tr("Frame Size")));
|
||||
viewBacktrace->setFont(Config()->getFont());
|
||||
viewBacktrace->setModel(modelBacktrace);
|
||||
viewBacktrace->verticalHeader()->setVisible(false);
|
||||
viewBacktrace->setHorizontalScrollMode(QAbstractItemView::ScrollPerPixel);
|
||||
ui->verticalLayout->addWidget(viewBacktrace);
|
||||
|
||||
@ -74,7 +76,7 @@ void BacktraceWidget::setBacktraceGrid()
|
||||
}
|
||||
|
||||
viewBacktrace->setModel(modelBacktrace);
|
||||
viewBacktrace->resizeColumnsToContents();;
|
||||
viewBacktrace->resizeColumnsToContents();
|
||||
}
|
||||
|
||||
void BacktraceWidget::fontsUpdatedSlot()
|
||||
|
@ -30,6 +30,6 @@ private slots:
|
||||
private:
|
||||
std::unique_ptr<Ui::BacktraceWidget> ui;
|
||||
QStandardItemModel *modelBacktrace = new QStandardItemModel(1, 5, this);
|
||||
QTableView *viewBacktrace = new QTableView;
|
||||
QTableView *viewBacktrace = new QTableView(this);
|
||||
RefreshDeferrer *refreshDeferrer;
|
||||
};
|
@ -29,6 +29,7 @@ ThreadsWidget::ThreadsWidget(MainWindow *main, QAction *action) :
|
||||
modelThreads->setHorizontalHeaderItem(COLUMN_STATUS, new QStandardItem(tr("Status")));
|
||||
modelThreads->setHorizontalHeaderItem(COLUMN_PATH, new QStandardItem(tr("Path")));
|
||||
ui->viewThreads->horizontalHeader()->setDefaultAlignment(Qt::AlignLeft | Qt::AlignVCenter);
|
||||
ui->viewThreads->verticalHeader()->setVisible(false);
|
||||
ui->viewThreads->setFont(Config()->getFont());
|
||||
|
||||
modelFilter = new ThreadsFilterModel(this);
|
||||
|
Loading…
Reference in New Issue
Block a user