forked from graycatya/CatLearnQt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
cat
committed
Feb 17, 2022
1 parent
da52d79
commit 6611a43
Showing
3 changed files
with
86 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
#include "CatHeaderViewBasic.h" | ||
|
||
CatHeaderViewBasic::CatHeaderViewBasic(Qt::Orientation orientation, QWidget *parent) | ||
: QHeaderView(orientation, parent) | ||
{ | ||
|
||
} | ||
|
||
CatHeaderViewBasic::~CatHeaderViewBasic() | ||
{ | ||
|
||
} | ||
|
||
bool CatHeaderViewBasic::eventFilter(QObject *object, QEvent *event) | ||
{ | ||
|
||
} | ||
|
||
void CatHeaderViewBasic::mousePressEvent(QMouseEvent *event) | ||
{ | ||
|
||
} | ||
|
||
void CatHeaderViewBasic::mouseMoveEvent(QMouseEvent *event) | ||
{ | ||
|
||
} | ||
|
||
void CatHeaderViewBasic::paintSection(QPainter *painter, const QRect &rect, int logicalIndex) const | ||
{ | ||
|
||
} | ||
|
||
QRect CatHeaderViewBasic::sectionRect(int logicalIndex) const | ||
{ | ||
|
||
} | ||
|
||
QRect CatHeaderViewBasic::buttonMenuRect(int logicalIndex) const | ||
{ | ||
|
||
} | ||
|
||
QRect CatHeaderViewBasic::prevRect(int logicalIndex) const | ||
{ | ||
|
||
} | ||
|
||
QRect CatHeaderViewBasic::nextRect(int logicalIndex) const | ||
{ | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#ifndef CATHEADERVIEWBASIC_H | ||
#define CATHEADERVIEWBASIC_H | ||
|
||
#include <QHeaderView> | ||
|
||
class CatHeaderViewBasic : public QHeaderView | ||
{ | ||
Q_OBJECT | ||
public: | ||
enum VIEWSTATE { | ||
CHECKBOX, | ||
}; | ||
explicit CatHeaderViewBasic(Qt::Orientation orientation, QWidget * parent = 0); | ||
~CatHeaderViewBasic(); | ||
|
||
protected: | ||
bool eventFilter(QObject *object, QEvent *event) override; | ||
void mousePressEvent(QMouseEvent *event) override; | ||
void mouseMoveEvent(QMouseEvent *event) override; | ||
void paintSection(QPainter *painter, const QRect &rect, int logicalIndex) const override; | ||
|
||
QRect sectionRect(int logicalIndex) const; | ||
QRect buttonMenuRect(int logicalIndex) const; | ||
QRect prevRect(int logicalIndex) const; | ||
QRect nextRect(int logicalIndex) const; | ||
|
||
private: | ||
|
||
|
||
}; | ||
|
||
#endif // CATHEADERVIEWBASIC_H |