From 731df076120b69e0dcf981ad3ed6f08de7ec77a3 Mon Sep 17 00:00:00 2001 From: Ali Hatami Date: Sat, 8 Jun 2024 18:25:58 +0330 Subject: [PATCH] Test Hiding Columns --- gui/view/MainWindow.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gui/view/MainWindow.cpp b/gui/view/MainWindow.cpp index a1b8936..973bbf1 100644 --- a/gui/view/MainWindow.cpp +++ b/gui/view/MainWindow.cpp @@ -1,6 +1,8 @@ #include "MainWindow.h" #include "ui_MainWindow.h" +#include "viewmodel/table/ELogColumn.h" + /*************************************************************************************************/ MainWindow::MainWindow(QWidget* parent) : QMainWindow(parent) @@ -20,6 +22,10 @@ MainWindow::~MainWindow() void MainWindow::setTable(QAbstractTableModel* model) { ui->tableView->setModel(model); + + ui->tableView->setColumnHidden(ELogColumn::id, true); + ui->tableView->setColumnHidden(ELogColumn::scope, true); + ui->tableView->setColumnHidden(ELogColumn::lineno, true); } /*************************************************************************************************/