Use system cursors instead of embedded raster images where possible (#7838)
Given these changes, the knife tool now uses `Qt::SplitHCursor`, but `Qt::IBeamCursor` is also a a viable option. I am noting this should substantial concern arise over the appearance of `Qt::SplitHCursor` due to cursor themes, such as the default one applied to applications running under WSL.
This commit is contained in:
@@ -51,7 +51,7 @@ AudioFileProcessorView::AudioFileProcessorView(Instrument* instrument,
|
||||
InstrumentViewFixedSize(instrument, parent)
|
||||
{
|
||||
m_openAudioFileButton = new PixmapButton(this);
|
||||
m_openAudioFileButton->setCursor(QCursor(Qt::PointingHandCursor));
|
||||
m_openAudioFileButton->setCursor(Qt::PointingHandCursor);
|
||||
m_openAudioFileButton->move(227, 72);
|
||||
m_openAudioFileButton->setActiveGraphic(PLUGIN_NAME::getIconPixmap(
|
||||
"select_file"));
|
||||
|
||||
@@ -914,7 +914,7 @@ GigInstrumentView::GigInstrumentView( Instrument * _instrument, QWidget * _paren
|
||||
|
||||
// File Button
|
||||
m_fileDialogButton = new PixmapButton( this );
|
||||
m_fileDialogButton->setCursor( QCursor( Qt::PointingHandCursor ) );
|
||||
m_fileDialogButton->setCursor(Qt::PointingHandCursor);
|
||||
m_fileDialogButton->setActiveGraphic( PLUGIN_NAME::getIconPixmap( "fileselect_on" ) );
|
||||
m_fileDialogButton->setInactiveGraphic( PLUGIN_NAME::getIconPixmap( "fileselect_off" ) );
|
||||
m_fileDialogButton->move( 223, 68 );
|
||||
@@ -925,7 +925,7 @@ GigInstrumentView::GigInstrumentView( Instrument * _instrument, QWidget * _paren
|
||||
|
||||
// Patch Button
|
||||
m_patchDialogButton = new PixmapButton( this );
|
||||
m_patchDialogButton->setCursor( QCursor( Qt::PointingHandCursor ) );
|
||||
m_patchDialogButton->setCursor(Qt::PointingHandCursor);
|
||||
m_patchDialogButton->setActiveGraphic( PLUGIN_NAME::getIconPixmap( "patches_on" ) );
|
||||
m_patchDialogButton->setInactiveGraphic( PLUGIN_NAME::getIconPixmap( "patches_off" ) );
|
||||
m_patchDialogButton->setEnabled( false );
|
||||
|
||||
@@ -442,7 +442,7 @@ PatmanView::PatmanView( Instrument * _instrument, QWidget * _parent ) :
|
||||
|
||||
m_openFileButton = new PixmapButton( this, nullptr );
|
||||
m_openFileButton->setObjectName( "openFileButton" );
|
||||
m_openFileButton->setCursor( QCursor( Qt::PointingHandCursor ) );
|
||||
m_openFileButton->setCursor(Qt::PointingHandCursor);
|
||||
m_openFileButton->move( 227, 86 );
|
||||
m_openFileButton->setActiveGraphic( PLUGIN_NAME::getIconPixmap(
|
||||
"select_file_on" ) );
|
||||
|
||||
@@ -963,7 +963,7 @@ Sf2InstrumentView::Sf2InstrumentView( Instrument * _instrument, QWidget * _paren
|
||||
|
||||
// File Button
|
||||
m_fileDialogButton = new PixmapButton(this);
|
||||
m_fileDialogButton->setCursor(QCursor(Qt::PointingHandCursor));
|
||||
m_fileDialogButton->setCursor(Qt::PointingHandCursor);
|
||||
m_fileDialogButton->setActiveGraphic(PLUGIN_NAME::getIconPixmap("fileselect_on"));
|
||||
m_fileDialogButton->setInactiveGraphic(PLUGIN_NAME::getIconPixmap("fileselect_off"));
|
||||
m_fileDialogButton->move(217, 107);
|
||||
@@ -974,7 +974,7 @@ Sf2InstrumentView::Sf2InstrumentView( Instrument * _instrument, QWidget * _paren
|
||||
|
||||
// Patch Button
|
||||
m_patchDialogButton = new PixmapButton(this);
|
||||
m_patchDialogButton->setCursor(QCursor(Qt::PointingHandCursor));
|
||||
m_patchDialogButton->setCursor(Qt::PointingHandCursor);
|
||||
m_patchDialogButton->setActiveGraphic(PLUGIN_NAME::getIconPixmap("patches_on"));
|
||||
m_patchDialogButton->setInactiveGraphic(PLUGIN_NAME::getIconPixmap("patches_off"));
|
||||
m_patchDialogButton->setEnabled(false);
|
||||
|
||||
Reference in New Issue
Block a user