summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
Diffstat (limited to 'vcl')
-rw-r--r--vcl/qt5/Qt5Widget.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/vcl/qt5/Qt5Widget.cxx b/vcl/qt5/Qt5Widget.cxx
index 68742b07c51e..4608482627be 100644
--- a/vcl/qt5/Qt5Widget.cxx
+++ b/vcl/qt5/Qt5Widget.cxx
@@ -681,10 +681,11 @@ QVariant Qt5Widget::inputMethodQuery(Qt::InputMethodQuery property) const
}
case Qt::ImCursorRectangle:
{
+ const qreal fRatio = m_rFrame.devicePixelRatioF();
SalExtTextInputPosEvent aPosEvent;
m_rFrame.CallCallback(SalEvent::ExtTextInputPos, &aPosEvent);
- return QVariant(
- QRect(aPosEvent.mnX, aPosEvent.mnY, aPosEvent.mnWidth, aPosEvent.mnHeight));
+ return QVariant(QRect(aPosEvent.mnX / fRatio, aPosEvent.mnY / fRatio,
+ aPosEvent.mnWidth / fRatio, aPosEvent.mnHeight / fRatio));
}
case Qt::ImAnchorPosition:
{
gmann 2014-01-28bool improvementsStephan Bergmann 2014-01-10Use boolStephan Bergmann 2013-11-09fdo#65108 inter-module includes <> include/toolsNorbert Thiebaud 2013-11-05presumably this was intended as include guardThomas Arnhold 2013-06-30Clean String and sal_Bool in toolsNorbert Thiebaud 2013-04-23execute move of global headersBjoern Michaelsen