From ec4d1dc4986427e41ba29aa984ef7f8b69db9a87 Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Fri, 4 Jul 2008 16:43:47 +0000 Subject: [PATCH] added hand-cursor for all controls git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1269 0778d3d1-df1d-0410-868b-ea421aaaa00d --- data/themes/default/hand.png | Bin 0 -> 1478 bytes src/core/track.cpp | 1 + src/gui/automatable_model_view.cpp | 1 + src/gui/fx_mixer_view.cpp | 1 + src/gui/widgets/fade_button.cpp | 4 +++- src/gui/widgets/name_label.cpp | 3 ++- 6 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 data/themes/default/hand.png diff --git a/data/themes/default/hand.png b/data/themes/default/hand.png new file mode 100644 index 0000000000000000000000000000000000000000..5fad2852def2f78eac8c11cbdc874da3ea7aa5bc GIT binary patch literal 1478 zcmV;%1v&bOP)P000~a1^@s6lq3|;00001b5ch_0Itp) z=>Px#24YJ`L;(K){{a7>y{D4^000SaNLh0L01FcU01FcV0GgZ_00007bV*G`2iOM$ z4?7W3rT0<*00l-#L_t(Y$E}uMXjE4o$3JubWhV0{P9{wpXB?BU(P(yz*)fiat3ws4 zSVSm&@TC+BEp0)I%f7h?;#(iOPlCwelbC%GgxzS2zD%-67DU;Yq)NjKjFbPl&eY7m zn|trshmN61)m6!P`5o>(oX`3G&iVb3`E`5%EY;?MH6HS&O`9ZDRlo50eCI2bN`r0N zPk`#0LJEb#`o_k_Z_b=KbKLLuCr3v|Rp4jfm$g>(4E_N8 z&Fl4k-_p|ZSKzA}7{Kv1N&sFgE-r>UIy(NabLUQv%jMFBhlgAJe*f-^7cYLcW51Q_&9ZSb?n}~o95M{{8!j zL?U=R9>U=;ZEbDD<8i!RFP3E?%Q7yP3(K-lRTW*=rJz@}P|{|-`o z@Zfw?*pK!>hdDnwy`X0*&2qy{QNw#v$F^xq^_x{?a1cO0@ z5Gyv8$`Z*Sic3Dz>EiEmdT9)PI*Y@(8+wJD*)2EJ1CZo^I%{>4n;E!>#N3Adr3&WPWmT@;}4F!|_lk)Y8<{q&7DGn%P&YczG9^ zrY#3$e}BJwYHDgs2r(}IpR8Q8ZF}U|vuDnQg@r#RlSx!nUE!jacVe0*g+hUei3$4p z`WAsetAcceptDrops( TRUE ); + widget()->setCursor( QCursor( embed::getIconPixmap( "hand" ), 0, 0 ) ); } diff --git a/src/gui/fx_mixer_view.cpp b/src/gui/fx_mixer_view.cpp index ded2ff27c..2ed38dbfc 100644 --- a/src/gui/fx_mixer_view.cpp +++ b/src/gui/fx_mixer_view.cpp @@ -56,6 +56,7 @@ public: { setFixedSize( 32, 232 ); setAttribute( Qt::WA_OpaquePaintEvent, TRUE ); + setCursor( QCursor( embed::getIconPixmap( "hand" ), 0, 0 ) ); } virtual void paintEvent( QPaintEvent * ) diff --git a/src/gui/widgets/fade_button.cpp b/src/gui/widgets/fade_button.cpp index 4592f94cd..6a9cb44ff 100644 --- a/src/gui/widgets/fade_button.cpp +++ b/src/gui/widgets/fade_button.cpp @@ -3,7 +3,7 @@ /* * fade_button.cpp - implementation of fade-button * - * Copyright (c) 2005-2007 Tobias Doerffel + * Copyright (c) 2005-2008 Tobias Doerffel * * This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net * @@ -30,6 +30,7 @@ #include #include +#include "embed.h" #include "fade_button.h" #include "update_event.h" @@ -41,6 +42,7 @@ fadeButton::fadeButton( const QColor & _normal_color, m_normalColor( _normal_color ), m_activatedColor( _activated_color ) { + setCursor( QCursor( embed::getIconPixmap( "hand" ), 0, 0 ) ); } diff --git a/src/gui/widgets/name_label.cpp b/src/gui/widgets/name_label.cpp index 218934f98..27fc1d414 100644 --- a/src/gui/widgets/name_label.cpp +++ b/src/gui/widgets/name_label.cpp @@ -32,6 +32,7 @@ #include "name_label.h" +#include "embed.h" #include "rename_dialog.h" #include "bb_track_container.h" #include "bb_track.h" @@ -46,6 +47,7 @@ nameLabel::nameLabel( const QString & _initial_name, QWidget * _parent ) : m_pixmap(), m_pixmapFile( "" ) { + setCursor( QCursor( embed::getIconPixmap( "hand" ), 0, 0 ) ); } @@ -201,7 +203,6 @@ void nameLabel::paintEvent( QPaintEvent * ) QPainter p( this ); p.fillRect( rect(), parentWidget()->palette().color( backgroundRole() ) ); - p.setFont( pointSize<9>( p.font() ) ); int x = 4; if( m_pixmap.isNull() == FALSE )