CustomFrame: the native event handling now honours the features

This commit is contained in:
Sergio Martins
2021-02-18 15:50:12 +00:00
parent 029ba1202e
commit 9aafa2a662
2 changed files with 28 additions and 12 deletions

View File

@@ -64,6 +64,22 @@ public:
bool hasFeatures() const {
return features != Feature_None;
}
bool hasShadow() const {
return features & Feature_NativeShadow;
}
bool hasMaximize() const {
return features & Feature_NativeMaximize;
}
bool hasResize() const {
return features & Feature_NativeResize;
}
bool hasDrag() const {
return (features & Feature_NativeDrag) && !htCaptionRect.isNull();
}
};
/**