Restore pass-by-ref to QRect QCalendarWidget::paintCell()
Accidentally changed to pass-by-value while doing that to QDate,
in commit af837734b2
Task-number: QTBUG-86400
Change-Id: I8d2db532f537e5f82a5f3b36e72fcf7fefdd2ee5
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
(cherry picked from commit 8db0d701e8b1fe00cdd5d71c18afff84de606013)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
aeb5165cb6
commit
d75dc06f6a
@ -2295,7 +2295,7 @@ QSize QCalendarWidget::minimumSizeHint() const
|
|||||||
Paints the cell specified by the given \a date, using the given \a painter and \a rect.
|
Paints the cell specified by the given \a date, using the given \a painter and \a rect.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
void QCalendarWidget::paintCell(QPainter *painter, QRect rect, QDate date) const
|
void QCalendarWidget::paintCell(QPainter *painter, const QRect &rect, QDate date) const
|
||||||
{
|
{
|
||||||
Q_D(const QCalendarWidget);
|
Q_D(const QCalendarWidget);
|
||||||
d->m_delegate->paintCell(painter, rect, date);
|
d->m_delegate->paintCell(painter, rect, date);
|
||||||
|
@ -147,7 +147,7 @@ protected:
|
|||||||
void resizeEvent(QResizeEvent * event) override;
|
void resizeEvent(QResizeEvent * event) override;
|
||||||
void keyPressEvent(QKeyEvent * event) override;
|
void keyPressEvent(QKeyEvent * event) override;
|
||||||
|
|
||||||
virtual void paintCell(QPainter *painter, QRect rect, QDate date) const;
|
virtual void paintCell(QPainter *painter, const QRect &rect, QDate date) const;
|
||||||
void updateCell(QDate date);
|
void updateCell(QDate date);
|
||||||
void updateCells();
|
void updateCells();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user