Remove vertical numbers in debug widgets

This commit is contained in:
itayc0hen 2019-12-06 11:15:27 +02:00 committed by Itay Cohen
parent a63c3401b6
commit 44e68146db
3 changed files with 5 additions and 2 deletions

View File

@ -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()

View File

@ -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;
};

View File

@ -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);