on QQC2 the controls to be able to select, cut,copy and paste text are
responsibility of the style.
this enables onscreen text manipulation when the system is in tabletMode
state, just as D16841 for Plasma style
Details
- Reviewers
apol - Group Reviewers
Plasma - Commits
- R858:01411790d480: touchscreen text controls
they work when kirigami is in tablet mode, they are completely invisible when not
and the system behaves completely desktop-like
Diff Detail
- Repository
- R858 Qt Quick Controls 2: Desktop Style
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
org.kde.desktop/private/MobileTextActionsToolBar.qml | ||
---|---|---|
26 | Can you check whether this macro substitution actually works for the "private" folder? |
org.kde.desktop/private/MobileTextActionsToolBar.qml | ||
---|---|---|
26 | yes it works correctly, the problem in the plasma version was the separate install of the style as an import |
isn't this a bit too binary? Maybe it makes sense to have hover effects even if on tablet mode. isn't it a matter of whether it comes from a finger?
i don't think we can know that from QML, would need access to events of the textedit, which would need a c++ based eventfilter (not sure i want to go there?)
I would use the way we are using for everything which is this central tabletmode config point.
for the future, could maybe be a global eventfilter of the window which does the switch of mode when a touch event arrived or when a mouse event arrived...will have to be tought trough...