mirror of
https://gitee.com/drabel/LibQQt.git
synced 2025-01-04 10:18:44 +08:00
28 lines
535 B
C++
Executable File
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
|