Skip to content

Commit

Permalink
plugins/qtermwidget: Use Qt::ImCursorRectangle instead of deprecated …
Browse files Browse the repository at this point in the history
…Qt::ImMicroFocus

Qt::ImMicroFocus has been deprecated in QT 5.14 and has been removed from
Qt6. Use its replacement, Qt::ImCursorRectangle instead.
  • Loading branch information
ptitjano authored and nyalldawson committed Apr 10, 2023
1 parent 18812fb commit 76b5c7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/grass/qtermwidget/TerminalDisplay.cpp
Expand Up @@ -2903,7 +2903,7 @@ QVariant TerminalDisplay::inputMethodQuery( Qt::InputMethodQuery query ) const
const QPoint cursorPos = _screenWindow ? _screenWindow->cursorPosition() : QPoint(0,0);
switch ( query )
{
case Qt::ImMicroFocus:
case Qt::ImCursorRectangle:
return imageToWidget(QRect(cursorPos.x(),cursorPos.y(),1,1));
break;
case Qt::ImFont:
Expand Down

0 comments on commit 76b5c7d

Please sign in to comment.