From 612abd137add36ae609341a204ae96f054cff3e8 Mon Sep 17 00:00:00 2001 From: grindhold Date: Tue, 28 Oct 2014 15:32:35 +0100 Subject: [PATCH 1/2] fixed other occurences of hand cursor than beat-editor --- src/gui/AutomatableModelView.cpp | 2 +- src/gui/widgets/FxLine.cpp | 2 +- src/gui/widgets/fade_button.cpp | 2 +- src/gui/widgets/track_label_button.cpp | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gui/AutomatableModelView.cpp b/src/gui/AutomatableModelView.cpp index e60d0429a..9a495ad77 100644 --- a/src/gui/AutomatableModelView.cpp +++ b/src/gui/AutomatableModelView.cpp @@ -41,7 +41,7 @@ AutomatableModelView::AutomatableModelView( ::Model* model, QWidget* _this ) : m_unit( QString::null ) { widget()->setAcceptDrops( true ); - widget()->setCursor( QCursor( embed::getIconPixmap( "hand" ), 0, 0 ) ); + widget()->setCursor( QCursor( embed::getIconPixmap( "hand" ), 3, 3 ) ); } diff --git a/src/gui/widgets/FxLine.cpp b/src/gui/widgets/FxLine.cpp index ea8f6353d..fe8606436 100644 --- a/src/gui/widgets/FxLine.cpp +++ b/src/gui/widgets/FxLine.cpp @@ -59,7 +59,7 @@ FxLine::FxLine( QWidget * _parent, FxMixerView * _mv, int _channelIndex) : setFixedSize( 33, FxLineHeight ); setAttribute( Qt::WA_OpaquePaintEvent, true ); - setCursor( QCursor( embed::getIconPixmap( "hand" ), 0, 0 ) ); + setCursor( QCursor( embed::getIconPixmap( "hand" ), 3, 3 ) ); // mixer sends knob m_sendKnob = new knob( knobBright_26, this, tr("Channel send amount") ); diff --git a/src/gui/widgets/fade_button.cpp b/src/gui/widgets/fade_button.cpp index 0ae0c1f89..2d1c7163b 100644 --- a/src/gui/widgets/fade_button.cpp +++ b/src/gui/widgets/fade_button.cpp @@ -44,7 +44,7 @@ fadeButton::fadeButton( const QColor & _normal_color, m_activatedColor( _activated_color ) { setAttribute( Qt::WA_OpaquePaintEvent, true ); - setCursor( QCursor( embed::getIconPixmap( "hand" ), 0, 0 ) ); + setCursor( QCursor( embed::getIconPixmap( "hand" ), 3, 3 ) ); setFocusPolicy( Qt::NoFocus ); } diff --git a/src/gui/widgets/track_label_button.cpp b/src/gui/widgets/track_label_button.cpp index f26485701..6840a2f41 100644 --- a/src/gui/widgets/track_label_button.cpp +++ b/src/gui/widgets/track_label_button.cpp @@ -45,7 +45,7 @@ trackLabelButton::trackLabelButton( trackView * _tv, QWidget * _parent ) : { setAttribute( Qt::WA_OpaquePaintEvent, true ); setAcceptDrops( true ); - setCursor( QCursor( embed::getIconPixmap( "hand" ), 0, 0 ) ); + setCursor( QCursor( embed::getIconPixmap( "hand" ), 3, 3 ) ); setToolButtonStyle( Qt::ToolButtonTextBesideIcon ); if( configManager::inst()->value( "ui", From c115b83ff8c148003fc06bbd8c4415fd7381fcbd Mon Sep 17 00:00:00 2001 From: grindhold Date: Tue, 28 Oct 2014 15:21:22 +0100 Subject: [PATCH 2/2] fixed hotspot of hand-cursor --- src/core/track.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/track.cpp b/src/core/track.cpp index 31dcbd12b..6cf25afa8 100644 --- a/src/core/track.cpp +++ b/src/core/track.cpp @@ -262,7 +262,7 @@ trackContentObjectView::trackContentObjectView( trackContentObject * _tco, setAttribute( Qt::WA_OpaquePaintEvent, true ); setAttribute( Qt::WA_DeleteOnClose, true ); setFocusPolicy( Qt::StrongFocus ); - setCursor( QCursor( embed::getIconPixmap( "hand" ), 0, 0 ) ); + setCursor( QCursor( embed::getIconPixmap( "hand" ), 3, 3 ) ); move( 0, 1 ); show();