Skip to content
Verified Commit a80b8f7a authored by ivan tkachenko's avatar ivan tkachenko 🗯
Browse files

QMenuProxy & Plasma::Types::PopupPlacement: Reverse direction for RTL

Function naming is taken directly from QStyle where visualRect() is used
to flip rectangles within components' bounding boxes automatically if needed.

The QQmlProperty trick is taken from some internal Qt test. It relies on
assumption that QtQuick module is imported without an alias, which is
the case in 99% of pragmatic QML code, with exceptions being Qt tests,
Qt3D and JavaScript modules with QML/JS engine extension of importing
QML modules. Overall, in ~/kde/src:

  Searching 324578 files for "import QtQuick (\d\.\d{1,2} )?as" (regex, case sensitive)
  ...
  114 matches across 109 files
parent 4eb0750a
Pipeline #314840 canceled with stage
in 2 minutes and 24 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment