setCursor doesn't work

Michael Thaler michael.thaler at ph.tum.de
Fri Mar 25 16:17:41 CET 2005


Hello,

the crop tool does now recogize if the mouse pointer is over one of the 
handles. I want to change the cursor to a reisze cursor, if the mouse pointer 
is over one of the handles. For this I do the following:

void KisToolCrop::cursor (Q_INT32 handle)
{
        switch (handle)
        {
        case (UpperLeft):
        case (LowerRight):
                kdDebug() << "setCursor(KisCursor::sizeFDiagCursor()) called" 
<< endl;
                setCursor(KisCursor::sizeFDiagCursor());
                return;
        case (LowerLeft):
        case (UpperRight):
                kdDebug() << "setCursor(KisCursor::sizeBDiagCursor()) called" 
<< endl;
                setCursor(KisCursor::sizeBDiagCursor());
                return;
        }
        kdDebug() << "setCursor(KisCursor::selectCursor()) called" << endl;
        setCursor(KisCursor::selectCursor());
        return;
}

This function is actually called correctly and the correct messages are 
printed to the console but unfortunately changing the cursor does not work. 
What is the reason for this?

Michael


More information about the kimageshop mailing list