|
@ -11,6 +11,7 @@ MainWindow::MainWindow(QWidget* parent) |
|
|
{ |
|
|
{ |
|
|
ui->setupUi(this); |
|
|
ui->setupUi(this); |
|
|
prepareTableView(); |
|
|
prepareTableView(); |
|
|
|
|
|
prepareTreeView(); |
|
|
auto tm = new TreeModel(); |
|
|
auto tm = new TreeModel(); |
|
|
tm->showSelectedLog(nullptr); |
|
|
tm->showSelectedLog(nullptr); |
|
|
ui->treeView->setModel(tm); |
|
|
ui->treeView->setModel(tm); |
|
@ -40,3 +41,9 @@ void MainWindow::prepareTableView() |
|
|
QHeaderView::ResizeMode::ResizeToContents); |
|
|
QHeaderView::ResizeMode::ResizeToContents); |
|
|
ui->tableView->horizontalHeader()->setSectionsMovable(true); |
|
|
ui->tableView->horizontalHeader()->setSectionsMovable(true); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/*************************************************************************************************/ |
|
|
|
|
|
void MainWindow::prepareTreeView() |
|
|
|
|
|
{ |
|
|
|
|
|
ui->treeView->header()->setSectionResizeMode(QHeaderView::ResizeToContents); |
|
|
|
|
|
} |
|
|