mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-19 03:16:10 +00:00
Mark functions as override where possible (#18)
This commit is contained in:
parent
25a4d06697
commit
7f71cace8e
@ -51,9 +51,9 @@ class PieView : public QAbstractItemView
|
|||||||
public:
|
public:
|
||||||
explicit PieView(QWidget *parent = 0);
|
explicit PieView(QWidget *parent = 0);
|
||||||
|
|
||||||
QRect visualRect(const QModelIndex &index) const;
|
QRect visualRect(const QModelIndex &index) const override;
|
||||||
void scrollTo(const QModelIndex &index, ScrollHint hint = EnsureVisible);
|
void scrollTo(const QModelIndex &index, ScrollHint hint = EnsureVisible) override;
|
||||||
QModelIndex indexAt(const QPoint &point) const;
|
QModelIndex indexAt(const QPoint &point) const override;
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void reset() override;
|
void reset() override;
|
||||||
@ -65,33 +65,33 @@ protected slots:
|
|||||||
void rowsAboutToBeRemoved(const QModelIndex &parent, int start, int end) override;
|
void rowsAboutToBeRemoved(const QModelIndex &parent, int start, int end) override;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
bool edit(const QModelIndex &index, EditTrigger trigger, QEvent *event);
|
bool edit(const QModelIndex &index, EditTrigger trigger, QEvent *event) override;
|
||||||
QModelIndex moveCursor(QAbstractItemView::CursorAction cursorAction,
|
QModelIndex moveCursor(QAbstractItemView::CursorAction cursorAction,
|
||||||
Qt::KeyboardModifiers modifiers);
|
Qt::KeyboardModifiers modifiers) override;
|
||||||
|
|
||||||
int horizontalOffset() const;
|
int horizontalOffset() const override;
|
||||||
int verticalOffset() const;
|
int verticalOffset() const override;
|
||||||
|
|
||||||
bool isIndexHidden(const QModelIndex &index) const;
|
bool isIndexHidden(const QModelIndex &index) const override;
|
||||||
|
|
||||||
void setSelection(const QRect &, QItemSelectionModel::SelectionFlags command);
|
void setSelection(const QRect &, QItemSelectionModel::SelectionFlags command) override;
|
||||||
|
|
||||||
void mousePressEvent(QMouseEvent *event);
|
void mousePressEvent(QMouseEvent *event) override;
|
||||||
|
|
||||||
void mouseMoveEvent(QMouseEvent *event);
|
void mouseMoveEvent(QMouseEvent *event) override;
|
||||||
void mouseReleaseEvent(QMouseEvent *event);
|
void mouseReleaseEvent(QMouseEvent *event) override;
|
||||||
|
|
||||||
void paintEvent(QPaintEvent *event);
|
void paintEvent(QPaintEvent *event) override;
|
||||||
void resizeEvent(QResizeEvent *event);
|
void resizeEvent(QResizeEvent *event) override;
|
||||||
void scrollContentsBy(int dx, int dy);
|
void scrollContentsBy(int dx, int dy) override;
|
||||||
|
|
||||||
QRegion visualRegionForSelection(const QItemSelection &selection) const;
|
QRegion visualRegionForSelection(const QItemSelection &selection) const override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
QRect itemRect(const QModelIndex &index) const;
|
QRect itemRect(const QModelIndex &index) const;
|
||||||
QRegion itemRegion(const QModelIndex &index) const;
|
QRegion itemRegion(const QModelIndex &index) const;
|
||||||
int rows(const QModelIndex &index = QModelIndex()) const;
|
int rows(const QModelIndex &index = QModelIndex()) const;
|
||||||
void updateGeometries();
|
void updateGeometries() override;
|
||||||
int getMin(int x, int y);
|
int getMin(int x, int y);
|
||||||
|
|
||||||
int margin;
|
int margin;
|
||||||
|
Loading…
Reference in New Issue
Block a user