┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/panels/places/placesitemlistwidget.h
diff options
context:
space:
mode:
authorChris Holland <[email protected]>2019-07-31 21:46:53 -0400
committerElvis Angelaccio <[email protected]>2020-11-04 23:16:12 +0000
commite75326077b443f5f1f1b19dc960a3a8a83979d81 (patch)
tree58075e29255e7aa5608ff85ae3d3d4ad6825c82d /src/panels/places/placesitemlistwidget.h
parentac6de72048fb50bca1823b8001fb012158050c25 (diff)
Only check if place url is mount point once during polish event.
The capacity bars will no longer update when capacity changes. It only checks the size on init. Updating during polish event is only a temporarily solution just to draft code flow for seperating logic from painting. Eventually this logic update should be in a worker thread detached from blocking the rendering thread that blocks launching the dolphin window.
Diffstat (limited to 'src/panels/places/placesitemlistwidget.h')
-rw-r--r--src/panels/places/placesitemlistwidget.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/panels/places/placesitemlistwidget.h b/src/panels/places/placesitemlistwidget.h
index e5763ad07..a82616ff3 100644
--- a/src/panels/places/placesitemlistwidget.h
+++ b/src/panels/places/placesitemlistwidget.h
@@ -22,10 +22,18 @@ public:
~PlacesItemListWidget() override;
void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget = nullptr) override;
+ void polishEvent() override;
protected:
bool isHidden() const override;
QPalette::ColorRole normalTextColorRole() const override;
+ void updateCapacityBar();
+ void resetCapacityBar();
+
+private:
+ bool m_isMountPoint;
+ bool m_drawCapacityBar;
+ qreal m_capacityBarRatio;
};
#endif