mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 13:59:52 +08:00
LocationList: make header sections resizable
This commit is contained in:
parent
a453d69296
commit
516aaa95ca
@ -3,6 +3,7 @@
|
||||
#include <QVBoxLayout>
|
||||
#include <QToolButton>
|
||||
#include <QLabel>
|
||||
#include <QHeaderView>
|
||||
|
||||
#include "treewidget.h"
|
||||
#include "widgetsfactory.h"
|
||||
@ -53,6 +54,7 @@ void LocationList::setupUI()
|
||||
// When updated, pay attention to the Columns enum.
|
||||
m_tree->setHeaderLabels(QStringList() << tr("Path") << tr("Line") << tr("Text"));
|
||||
TreeWidget::showHorizontalScrollbar(m_tree);
|
||||
m_tree->header()->setSectionResizeMode(QHeaderView::Interactive);
|
||||
connect(m_tree, &QTreeWidget::itemActivated,
|
||||
this, [this](QTreeWidgetItem *p_item, int p_col) {
|
||||
Q_UNUSED(p_col);
|
||||
|
Loading…
x
Reference in New Issue
Block a user