Commits

totte  committed aeac425 Merge

Merged equalsraf/vim-qt into master

  • Participants
  • Parent commits 95c13c0, 1ada4f9

Comments (0)

Files changed (2)

File src/qt/qvimshell.cpp

 	}
 }
 
-QVariant QVimShell::inputMethodQuery(Qt::InputMethodQuery query)
+QVariant QVimShell::inputMethodQuery(Qt::InputMethodQuery query) const
 {
 	if ( query == Qt::ImFont) {
 		return font();
+	} else if ( query == Qt::ImMicroFocus ) {
+		return QRect(VimWrapper::cursorPosition(), QSize(0, charHeight()));
 	}
 
 	return QVariant();

File src/qt/qvimshell.h

 	int charWidth();
 
 	void setEncodingUtf8(bool);
-	virtual QVariant inputMethodQuery(Qt::InputMethodQuery);
+	virtual QVariant inputMethodQuery(Qt::InputMethodQuery) const;
 	void setSlowStringDrawing(bool slow) {m_slowStringDrawing = slow;}
 
 	void setBlinkTime(const long waittime, const long ontime, const long offtime);