Commit 6df7c06e authored by Jan Möbius's avatar Jan Möbius

Missing setter function in pickmode class

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@11578 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 7dea43e2
......@@ -101,6 +101,10 @@ bool PickMode::tracking() const {
return tracking_;
}
void PickMode::cursor(const QCursor _cursor) {
cursor_ = _cursor;
}
QCursor PickMode::cursor() const{
return cursor_;
}
......
......@@ -210,6 +210,15 @@ class PickMode
*/
QCursor cursor() const;
/** \brief PickMode cursor
*
* The cursor associated with this pick mode. You can define a non standard
* cursor that is visible, if this pick mode is active.
*
* @param _cursor The cursor to be used in this pickmode
*/
void cursor(const QCursor _cursor);
/** \brief PickMode toolbar
*
* Each pickmode can have a toolbar that will be visible at the top of the screen.
......@@ -1291,7 +1300,7 @@ public:
*/
void setPickModeMouseTracking(const std::string& _name, bool _mouseTracking);
/** \brief Set the additinal toolbar of the given PickMode
/** \brief Set the additional toolbar of the given PickMode
*
* Set the additional toolbar that should be shown in the pickMode
*
......
......@@ -300,7 +300,7 @@ void CoreWidget::setPickModeCursor(const std::string& _name, QCursor _cursor)
{
for (uint i=0; i < pick_modes_.size(); i++)
if ( pick_modes_[i].name() == _name ){
pick_modes_[i].cursor() = _cursor;
pick_modes_[i].cursor( _cursor );
//switch cursor if pickMode is active
if (pick_mode_name_ == _name && pickingMode() )
......
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