Commit c695e012 authored by Jan Möbius's avatar Jan Möbius
Browse files

Use self painted whatsthis cursor

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@8166 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 3339f515
...@@ -119,7 +119,7 @@ void CoreWidget::setActionMode(const Viewer::ActionMode _am){ ...@@ -119,7 +119,7 @@ void CoreWidget::setActionMode(const Viewer::ActionMode _am){
} }
break; break;
case Viewer::QuestionMode: case Viewer::QuestionMode:
cursorPainter_->setCursor(Qt::WhatsThisCursor); cursorPainter_->setCursor(QCursor( QPixmap( OpenFlipper::Options::iconDirStr() + QDir::separator() + "cursor_whatsthis.png" )));
break; break;
} }
......
...@@ -256,10 +256,15 @@ void CursorPainter::cursorToTexture() ...@@ -256,10 +256,15 @@ void CursorPainter::cursorToTexture()
xOff_ = 7; xOff_ = 7;
yOff_ = 1; yOff_ = 1;
break; break;
case Qt::WhatsThisCursor:
cImg.load (OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+"cursor_whatsthis.png");
xOff_ = 7;
yOff_ = 1;
break;
case Qt::BitmapCursor: case Qt::BitmapCursor:
cImg = QImage(( nativeCursor_.pixmap().toImage() ) );
xOff_ = nativeCursor_.hotSpot().x(); xOff_ = nativeCursor_.hotSpot().x();
yOff_ = nativeCursor_.hotSpot().y(); yOff_ = nativeCursor_.hotSpot().y();
cImg = QImage(( nativeCursor_.pixmap().toImage() ) );
break; break;
default: default:
std::cerr << "cursorToTexture: Unknown cursor shape!" << nativeCursor_.shape() << std::endl; std::cerr << "cursorToTexture: Unknown cursor shape!" << nativeCursor_.shape() << std::endl;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment