Use Qt's dialog where applicable (#1843)

This commit is contained in:
pajlada
2020-10-31 16:42:48 +01:00
committed by GitHub
parent 523874dc21
commit 1ee1e8837f
27 changed files with 118 additions and 62 deletions
+9
View File
@@ -59,6 +59,15 @@ public:
return static_cast<Q>(this->value_) & static_cast<Q>(flag);
}
FlagsEnum operator|(T flag)
{
FlagsEnum xd;
xd.value_ = this->value_;
xd.set(flag, true);
return xd;
}
bool hasAny(FlagsEnum flags) const
{
return static_cast<Q>(this->value_) & static_cast<Q>(flags.value_);