Skip to content

Commit 93a339e

Browse files
jnboothLeonMatthesKDAB
authored andcommitted
cxx-qt-lib: remove Qt version gates from QFlags
1 parent d02a8ec commit 93a339e

File tree

1 file changed

+0
-3
lines changed
  • crates/cxx-qt-lib/src/core/qflags

1 file changed

+0
-3
lines changed

crates/cxx-qt-lib/src/core/qflags/mod.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,14 +106,12 @@ impl<T: QFlag> QFlags<T> {
106106
}
107107
}
108108

109-
#[cfg(cxxqt_qt_version_at_least_6_2)]
110109
/// Returns `true` if any flag set in *flag* is also set in this flags object, otherwise
111110
/// `false`. If *flag* has no flags set, the return will always be `false`.
112111
pub fn test_any_flag(self, flag: T) -> bool {
113112
self.test_any_flags(Self::from(flag))
114113
}
115114

116-
#[cfg(cxxqt_qt_version_at_least_6_2)]
117115
/// Returns `true` if any flag set in *flags* is also set in this flags object, otherwise
118116
/// `false`. If *flags* has no flags set, the return will always be `false`.
119117
pub fn test_any_flags(self, flags: Self) -> bool {
@@ -303,7 +301,6 @@ mod test {
303301
assert!(flags.test_flags(other));
304302
}
305303

306-
#[cfg(cxxqt_qt_version_at_least_6_2)]
307304
#[test]
308305
fn qflags_test_any_flags() {
309306
let flags = KeyboardModifier::ControlModifier

0 commit comments

Comments
 (0)