mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 13:59:52 +08:00
22 lines
347 B
C++
22 lines
347 B
C++
#include "treeview.h"
|
|
|
|
#include <QKeyEvent>
|
|
|
|
#include <utils/widgetutils.h>
|
|
|
|
using namespace vnotex;
|
|
|
|
TreeView::TreeView(QWidget *p_parent)
|
|
: QTreeView(p_parent)
|
|
{
|
|
}
|
|
|
|
void TreeView::keyPressEvent(QKeyEvent *p_event)
|
|
{
|
|
if (WidgetUtils::processKeyEventLikeVi(this, p_event)) {
|
|
return;
|
|
}
|
|
|
|
QTreeView::keyPressEvent(p_event);
|
|
}
|