Changeset View
Changeset View
Standalone View
Standalone View
src/icon.h
Show First 20 Lines • Show All 91 Lines • ▼ Show 20 Line(s) | |||||
92 | 92 | | |||
93 | protected: | 93 | protected: | ||
94 | void geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry) override; | 94 | void geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry) override; | ||
95 | QImage findIcon(const QSize& size); | 95 | QImage findIcon(const QSize& size); | ||
96 | void handleFinished(QNetworkReply* reply); | 96 | void handleFinished(QNetworkReply* reply); | ||
97 | void handleRedirect(QNetworkReply* reply); | 97 | void handleRedirect(QNetworkReply* reply); | ||
98 | QIcon::Mode iconMode() const; | 98 | QIcon::Mode iconMode() const; | ||
99 | bool guessMonochrome(const QImage &img); | 99 | bool guessMonochrome(const QImage &img); | ||
100 | void updatePolish() override; | ||||
100 | 101 | | |||
101 | private: | 102 | private: | ||
102 | Kirigami::PlatformTheme *m_theme = nullptr; | 103 | Kirigami::PlatformTheme *m_theme = nullptr; | ||
103 | QPointer<QNetworkReply> m_networkReply; | 104 | QPointer<QNetworkReply> m_networkReply; | ||
104 | QHash<int, bool> m_monochromeHeuristics; | 105 | QHash<int, bool> m_monochromeHeuristics; | ||
105 | QVariant m_source; | 106 | QVariant m_source; | ||
106 | bool m_smooth; | 107 | bool m_smooth; | ||
107 | bool m_changed; | 108 | bool m_changed; | ||
108 | bool m_active; | 109 | bool m_active; | ||
109 | bool m_selected; | 110 | bool m_selected; | ||
110 | bool m_isMask; | 111 | bool m_isMask; | ||
111 | bool m_isMaskHeuristic = false; | 112 | bool m_isMaskHeuristic = false; | ||
112 | QImage m_loadedImage; | 113 | QImage m_loadedImage; | ||
113 | QColor m_color = Qt::transparent; | 114 | QColor m_color = Qt::transparent; | ||
114 | QString m_fallback = QStringLiteral("unknown"); | 115 | QString m_fallback = QStringLiteral("unknown"); | ||
116 | | ||||
117 | QImage m_icon; | ||||
115 | }; | 118 | }; | ||
116 | 119 | |