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