QCursor BrushTool::cursor() { if ( isAdjusting ) // being dynamically resized { return circleCursors(); // two circles cursor } if ( mEditor->preference()->isOn( SETTING::DOTTED_CURSOR ) ) { return dottedCursor(); // preview stroke size cursor } if ( mEditor->preference()->isOn( SETTING::TOOL_CURSOR ) ) // doesn't need else { return QCursor( QPixmap( ":icons/brush.png" ), 0, 13 ); } return Qt::CrossCursor; }
QCursor SmudgeTool::cursor() { qDebug() << "smudge tool"; if (isAdjusting) // being dynamically resized { return circleCursors(); // two circles cursor } if ( mEditor->preference()->isOn( SETTING::DOTTED_CURSOR ) ) { return dottedCursor(); // preview stroke size cursor } if ( toolMode == 0 ) { //normal mode return QCursor(QPixmap(":icons/smudge.png"),3 ,16); } else { // blured mode return QCursor(QPixmap(":icons/liquify.png"),3,16); } }