mirror of
https://github.com/wxWidgets/wxWidgets.git
synced 2026-09-23 14:45:04 +08:00
Fix compilation error in non-wxQt ports in wxSlider tests
Fix error in the last commit and also emit a warning when using Qt 6.8.
This commit is contained in:
@@ -229,8 +229,14 @@ void SliderTestCase::Thumb()
|
||||
|
||||
CPPUNIT_ASSERT(track.GetCount() != 0);
|
||||
CPPUNIT_ASSERT_EQUAL(1, release.GetCount());
|
||||
#if defined(__WXMSW__) || defined(__WXGTK__) || \
|
||||
(defined(__WXQT__) && QT_VERSION < QT_VERSION_CHECK(6, 8, 0))
|
||||
|
||||
#ifdef __WXQT__
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(6, 8, 0)
|
||||
WARN("wxEVT_SCROLL_CHANGED is generated twice with Qt 6.8, skipping test");
|
||||
return;
|
||||
#endif
|
||||
#endif
|
||||
#if defined(__WXMSW__) || defined(__WXGTK__) || defined(__WXQT__)
|
||||
CPPUNIT_ASSERT_EQUAL(1, changed.GetCount());
|
||||
#endif
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user