https://invent.kde.org/graphics/spectacle/-/blob/6914e928d6cb9eed21b9f78722924ce1d1c198a5/src/QuickEditor/QuickEditor.cpp#L221
処理としては多分この辺か