[Update] Upstream

This commit is contained in:
Quentin
2020-06-18 19:25:17 +02:00
96 changed files with 1051 additions and 660 deletions

View File

@@ -9,6 +9,9 @@ public:
m_width(width), m_height(height) {}
constexpr KDCoordinate width() const { return m_width; }
constexpr KDCoordinate height() const { return m_height; }
bool operator==(const KDSize &other) const {
return m_width == other.width() && m_height == other.height();
}
private:
KDCoordinate m_width;
KDCoordinate m_height;

View File

@@ -174,5 +174,5 @@ KDRect KDRect::movedTo(KDPoint p) const {
}
bool KDRect::isEmpty() const {
return (width() == 0 || height() == 0);
return (width() == 0 || height() == 0); //TODO <= 0
}