Merge pull request #1127 from Trial97/scale_cat

This commit is contained in:
Tayou
2023-07-03 15:46:56 +02:00
committed by Sefa Eyeoglu
parent 3cc68fcea4
commit 7025f75903
3 changed files with 31 additions and 20 deletions

View File

@ -85,10 +85,8 @@ public:
virtual QRegion visualRegionForSelection(const QItemSelection &selection) const override;
int spacing() const
{
return m_spacing;
};
int spacing() const { return m_spacing; };
void setPaintCat(bool visible);
public slots:
virtual void updateGeometries() override;
@ -139,6 +137,8 @@ private:
int m_currentItemsPerRow = -1;
int m_currentCursorColumn= -1;
mutable QCache<int, QRect> geometryCache;
bool m_catVisible = false;
QPixmap m_catPixmap;
// point where the currently active mouse action started in geometry coordinates
QPoint m_pressedPosition;