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 Aug 3, 2022
1 parent 7b595ae commit 4e66c90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/grass/qtermwidget/TerminalDisplay.cpp
Expand Up @@ -2707,7 +2707,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 4e66c90

Please sign in to comment.