1
0
mirror of https://gitee.com/drabel/LibQQt.git synced 2025-01-04 10:18:44 +08:00
LibQQt/qqttreeview.h
tianduanrui 3f857669fc init
2016-12-29 16:49:18 +08:00

28 lines
535 B
C++
Executable File

#ifndef QQTTREEVIEW_H
#define QQTTREEVIEW_H
#include <QTreeView>
namespace Ui {
class QQTTreeView;
}
class QQTTreeView : public QTreeView
{
Q_OBJECT
public:
explicit QQTTreeView(QWidget *parent = 0);
~QQTTreeView();
private:
Ui::QQTTreeView *ui;
// QQTTreeView interface
protected:
void drawRow(QPainter *painter, const QStyleOptionViewItem &options, const QModelIndex &index) const;
void drawBranches(QPainter *painter, const QRect &rect, const QModelIndex &index) const;
};
#endif // QQTTREEVIEW_H