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

31 lines
581 B
C++
Executable File

#ifndef QQTHEADERVIEW_H
#define QQTHEADERVIEW_H
#include <QHeaderView>
class QQTHeaderView : public QHeaderView
{
Q_OBJECT
public:
explicit QQTHeaderView(Qt::Orientation orientation = Qt::Horizontal, QWidget *parent = 0);
signals:
public slots:
// QHeaderView interface
protected:
void paintSection(QPainter *painter, const QRect &rect, int logicalIndex) const;
QSize sectionSizeFromContents(int logicalIndex) const;
// QWidget interface
protected:
void paintEvent(QPaintEvent *);
private:
Qt::Orientation ori;
};
#endif // QQTHEADERVIEW_H