RabbitCommon
v2.3.3
Loading...
Searching...
No Matches
Src
FileBrowser
FileBroserTreeView.h
1
// Copyright Copyright (c) Kang Lin studio, All Rights Reserved
2
// Author Kang Lin <kl222@126.com>
3
// File browser
4
5
#ifndef FILEBROSERTREEVIEW_H
6
#define FILEBROSERTREEVIEW_H
7
8
#include <QObject>
9
#include <QTreeView>
10
11
class
CFileBroserTreeView
:
public
QTreeView
12
{
13
Q_OBJECT
14
public
:
15
CFileBroserTreeView
(QWidget *parent =
nullptr
);
16
virtual
~CFileBroserTreeView
();
17
18
Q_SIGNALS:
19
void
sigChanged(
const
QString &szItem,
bool
bDir);
20
21
// QAbstractItemView interface
22
protected
slots:
23
virtual
void
selectionChanged(
const
QItemSelection &selected,
const
QItemSelection &deselected)
override
;
24
virtual
void
currentChanged(
const
QModelIndex ¤t,
const
QModelIndex &previous)
override
;
25
};
26
27
#endif
// FILEBROSERTREEVIEW_H
CFileBroserTreeView
Definition
FileBroserTreeView.h:12
作者:康林 (kl222@126.com)
版权所有(c) 康林工作室 保留所有权力