mirror of
https://github.com/miek/inspectrum.git
synced 2026-03-06 16:27:14 +01:00
spelling
This commit is contained in:
@@ -41,13 +41,13 @@ bool Cursor::mouseEvent(QEvent::Type type, QMouseEvent *event)
|
||||
{
|
||||
// If the mouse pointer moves over a cursor, display a resize pointer
|
||||
if (pointOverCursor(event->pos()) && type != QEvent::Leave) {
|
||||
if (!cursorOverrided) {
|
||||
cursorOverrided = true;
|
||||
if (!cursorOverriden) {
|
||||
cursorOverriden = true;
|
||||
QApplication::setOverrideCursor(QCursor(cursorShape));
|
||||
}
|
||||
// Restore pointer if it moves off the cursor, or leaves the widget
|
||||
} else if (cursorOverrided) {
|
||||
cursorOverrided = false;
|
||||
} else if (cursorOverriden) {
|
||||
cursorOverriden = false;
|
||||
QApplication::restoreOverrideCursor();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user