Commit 2a1a5685 authored by Jan Möbius's avatar Jan Möbius

Added light cursor

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@7870 383ad7c9-94d9-4d36-a494-682f7c89f535
parent e78164c0
......@@ -463,6 +463,12 @@ void Core::slotObjectOpened ( int _id ) {
QString filename = object->path() + OpenFlipper::Options::dirSeparator() + object->name();
BaseObject* object2;
PluginFunctions::getObject(_id,object2);
/**
* \todo This is wrong here. If a core adds any object, this has already been called!
* If a plugin does that, its also wrong as this adds the name of the object rather than the filename!
*
*/
if ( OpenFlipper::Options::gui() )
coreWidget_->addRecent( filename, object2->dataType() );
......
......@@ -107,9 +107,11 @@ void CoreWidget::setActionMode(const Viewer::ActionMode _am){
switch ( _am )
{
case Viewer::ExamineMode:
case Viewer::LightMode:
cursorPainter_->setCursor(Qt::PointingHandCursor);
break;
case Viewer::LightMode:
cursorPainter_->setCursor(QCursor( QPixmap( OpenFlipper::Options::iconDirStr() + QDir::separator() + "cursor_light.png" )));
break;
case Viewer::PickingMode:
cursorPainter_->setCursor(Qt::ArrowCursor);
if (pick_mode_idx_ != -1) {
......
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