Changeset View
Changeset View
Standalone View
Standalone View
src/desktopicon.h
Show First 20 Lines • Show All 91 Lines • ▼ Show 20 Line(s) | 83 | Q_SIGNALS: | |||
---|---|---|---|---|---|
92 | void fallbackChanged(const QString &fallback); | 92 | void fallbackChanged(const QString &fallback); | ||
93 | 93 | | |||
94 | protected: | 94 | protected: | ||
95 | void geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry) override; | 95 | void geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry) override; | ||
96 | QImage findIcon(const QSize& size); | 96 | QImage findIcon(const QSize& size); | ||
97 | void handleFinished(QNetworkAccessManager* qnam, QNetworkReply* reply); | 97 | void handleFinished(QNetworkAccessManager* qnam, QNetworkReply* reply); | ||
98 | void handleReadyRead(QNetworkReply* reply); | 98 | void handleReadyRead(QNetworkReply* reply); | ||
99 | QIcon::Mode iconMode() const; | 99 | QIcon::Mode iconMode() const; | ||
100 | bool guessMonochrome(const QImage &img); | ||||
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; | ||
105 | QHash<int, bool> m_monochromeHeuristics; | ||||
cfeck: `QHash<int, bool>` is just a `QSet<int>`. | |||||
not really, because with a qset i could only cache those that i know are monochrome but i can't tell the difference between "i didn't test yet" and "i tested and isn't monochrome" mart: not really, because with a qset i could only cache those that i know are monochrome but i can't… | |||||
104 | QVariant m_source; | 106 | QVariant m_source; | ||
105 | bool m_smooth; | 107 | bool m_smooth; | ||
106 | bool m_changed; | 108 | bool m_changed; | ||
107 | bool m_active; | 109 | bool m_active; | ||
108 | bool m_selected; | 110 | bool m_selected; | ||
109 | bool m_isMask; | 111 | bool m_isMask; | ||
112 | bool m_isMaskHeuristic = false; | ||||
110 | QImage m_loadedImage; | 113 | QImage m_loadedImage; | ||
111 | QColor m_color = Qt::transparent; | 114 | QColor m_color = Qt::transparent; | ||
112 | QString m_fallback = QStringLiteral("unknown"); | 115 | QString m_fallback = QStringLiteral("unknown"); | ||
113 | }; | 116 | }; | ||
114 | 117 | | |||
115 | #endif | 118 | #endif |
QHash<int, bool> is just a QSet<int>.