aboutsummaryrefslogtreecommitdiffhomepage
path: root/qt/ScintillaEditBase/PlatQt.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt/ScintillaEditBase/PlatQt.cpp')
-rw-r--r--qt/ScintillaEditBase/PlatQt.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/qt/ScintillaEditBase/PlatQt.cpp b/qt/ScintillaEditBase/PlatQt.cpp
index 52cb54bf7..b7d0e3a53 100644
--- a/qt/ScintillaEditBase/PlatQt.cpp
+++ b/qt/ScintillaEditBase/PlatQt.cpp
@@ -133,6 +133,10 @@ public:
namespace {
+const int SupportsQt[] = {
+ SC_SUPPORTS_LINE_DRAWS_FINAL,
+};
+
const FontAndCharacterSet *AsFontAndCharacterSet(const Font *f) {
return dynamic_cast<const FontAndCharacterSet *>(f);
}
@@ -205,6 +209,15 @@ void SurfaceImpl::Release() noexcept
Clear();
}
+int SurfaceImpl::Supports(int feature) noexcept
+{
+ for (const int f : SupportsQt) {
+ if (f == feature)
+ return 1;
+ }
+ return 0;
+}
+
bool SurfaceImpl::Initialised()
{
return device != nullptr;