mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2025-01-09 03:31:41 +00:00
GUI: headers: use the header view manager for the tree
This allows the user to hide & show columns and change their order. The manager also restores those settings upon restart.
This commit is contained in:
parent
55aa5b3eb0
commit
7a98fbec53
@ -23,6 +23,7 @@
|
||||
#include "mkvtoolnix-gui/header_editor/track_type_page.h"
|
||||
#include "mkvtoolnix-gui/header_editor/unsigned_integer_value_page.h"
|
||||
#include "mkvtoolnix-gui/main_window/main_window.h"
|
||||
#include "mkvtoolnix-gui/util/header_view_manager.h"
|
||||
#include "mkvtoolnix-gui/util/model.h"
|
||||
#include "mkvtoolnix-gui/util/message_box.h"
|
||||
#include "mkvtoolnix-gui/util/settings.h"
|
||||
@ -183,6 +184,7 @@ Tab::setupUi() {
|
||||
ui->elements->addAction(m_expandAllAction);
|
||||
ui->elements->addAction(m_collapseAllAction);
|
||||
|
||||
Util::HeaderViewManager::create(*ui->elements, "HeaderEditor::Elements");
|
||||
Util::preventScrollingWithoutFocus(this);
|
||||
|
||||
connect(ui->elements->selectionModel(), &QItemSelectionModel::currentChanged, this, &Tab::selectionChanged);
|
||||
|
Loading…
Reference in New Issue
Block a user