mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-25 18:30:20 +01:00
fix a bunch of warnings
This commit is contained in:
parent
0efe65d738
commit
8939af7407
@ -49,7 +49,7 @@ AudioControls::AudioControls( QWidget* parent )
|
||||
font.setPixelSize( 12 );
|
||||
|
||||
#ifdef Q_WS_MAC
|
||||
font.setPointSize( font.pointSize() - 2 );
|
||||
font.setPixelSize( font.pixelSize() - 2 );
|
||||
#endif
|
||||
|
||||
ui->artistTrackLabel->setFont( font );
|
||||
|
@ -48,10 +48,9 @@ public slots:
|
||||
|
||||
private slots:
|
||||
void clearStatus();
|
||||
|
||||
private:
|
||||
void settingsChanged();
|
||||
|
||||
private:
|
||||
void audioStarted( const QVariant &input );
|
||||
void audioFinished( const QVariant &input );
|
||||
void audioStopped();
|
||||
|
@ -53,8 +53,8 @@ AlbumProxyModel::setSourceAlbumModel( AlbumModel* sourceModel )
|
||||
{
|
||||
m_model = sourceModel;
|
||||
|
||||
connect( m_model, SIGNAL( trackCountChanged( unsigned int ) ),
|
||||
SIGNAL( sourceTrackCountChanged( unsigned int ) ) );
|
||||
if ( m_model && m_model->metaObject()->indexOfSignal( "trackCountChanged(uint)" ) > -1 )
|
||||
connect( m_model, SIGNAL( trackCountChanged( unsigned int ) ), SIGNAL( sourceTrackCountChanged( unsigned int ) ) );
|
||||
|
||||
QSortFilterProxyModel::setSourceModel( sourceModel );
|
||||
}
|
||||
|
@ -65,6 +65,9 @@ void
|
||||
LoadingSpinner::fadeOut()
|
||||
{
|
||||
m_showHide->setDirection( QTimeLine::Backward );
|
||||
if( m_showHide->state() == QTimeLine::Running )
|
||||
m_showHide->stop();
|
||||
|
||||
m_showHide->start();
|
||||
}
|
||||
|
||||
|
@ -57,8 +57,8 @@ TrackProxyModel::setSourceTrackModel( TrackModel* sourceModel )
|
||||
{
|
||||
m_model = sourceModel;
|
||||
|
||||
connect( m_model, SIGNAL( trackCountChanged( unsigned int ) ),
|
||||
SIGNAL( sourceTrackCountChanged( unsigned int ) ) );
|
||||
if ( m_model && m_model->metaObject()->indexOfSignal( "trackCountChanged(uint)" ) > -1 )
|
||||
connect( m_model, SIGNAL( trackCountChanged( unsigned int ) ), SIGNAL( sourceTrackCountChanged( unsigned int ) ) );
|
||||
|
||||
QSortFilterProxyModel::setSourceModel( m_model );
|
||||
}
|
||||
|
@ -133,7 +133,10 @@ TrackView::setTrackModel( TrackModel* model )
|
||||
m_proxyModel->setSourceTrackModel( m_model );
|
||||
}
|
||||
|
||||
connect( m_model, SIGNAL( itemSizeChanged( QModelIndex ) ), SLOT( onItemResized( QModelIndex ) ) );
|
||||
|
||||
if ( m_model && m_model->metaObject()->indexOfSignal( "itemSizeChanged(QModelIndex)" ) > -1 )
|
||||
connect( m_model, SIGNAL( itemSizeChanged( QModelIndex ) ), SLOT( onItemResized( QModelIndex ) ) );
|
||||
|
||||
connect( m_model, SIGNAL( loadingStarted() ), m_loadingSpinner, SLOT( fadeIn() ) );
|
||||
connect( m_model, SIGNAL( loadingFinished() ), m_loadingSpinner, SLOT( fadeOut() ) );
|
||||
|
||||
|
@ -46,8 +46,9 @@ TreeProxyModel::setSourceModel( TreeModel* sourceModel )
|
||||
{
|
||||
m_model = sourceModel;
|
||||
|
||||
connect( m_model, SIGNAL( trackCountChanged( unsigned int ) ),
|
||||
SIGNAL( sourceTrackCountChanged( unsigned int ) ) );
|
||||
if ( m_model && m_model->metaObject()->indexOfSignal( "trackCountChanged(uint)" ) > -1 )
|
||||
connect( m_model, SIGNAL( trackCountChanged( unsigned int ) ), SIGNAL( sourceTrackCountChanged( unsigned int ) ) );
|
||||
|
||||
|
||||
QSortFilterProxyModel::setSourceModel( sourceModel );
|
||||
}
|
||||
|
@ -198,8 +198,6 @@ ViewManager::show( const Tomahawk::dynplaylist_ptr& playlist )
|
||||
{
|
||||
m_dynamicWidgets[ playlist ] = new Tomahawk::DynamicWidget( playlist, m_stack );
|
||||
|
||||
connect( playlist.data(), SIGNAL( deleted( Tomahawk::dynplaylist_ptr ) ), this, SLOT( onDynamicDeleted( Tomahawk::dynplaylist_ptr ) ) );
|
||||
|
||||
playlist->resolve();
|
||||
}
|
||||
|
||||
|
@ -232,7 +232,8 @@ JabberPlugin::connectPlugin( bool startup )
|
||||
//FIXME: we're badly workarounding some missing reconnection api here, to be fixed soon
|
||||
QTimer::singleShot( 1000, m_client, SLOT( connectToServer() ) );
|
||||
|
||||
connect(m_client->connection(), SIGNAL(error(SocketError)), SLOT(onError(SocketError)));
|
||||
if ( m_client->connection() )
|
||||
connect(m_client->connection(), SIGNAL(error(SocketError)), SLOT(onError(SocketError)));
|
||||
|
||||
m_state = Connecting;
|
||||
emit stateChanged( m_state );
|
||||
|
@ -35,8 +35,11 @@ SourcesProxyModel::SourcesProxyModel( SourcesModel* model, QObject* parent )
|
||||
|
||||
setSourceModel( model );
|
||||
|
||||
connect( model, SIGNAL( askForExpand( QModelIndex ) ), this, SLOT( askedToExpand( QModelIndex ) ) );
|
||||
connect( model, SIGNAL( selectRequest( QModelIndex ) ), this, SLOT( selectRequested( QModelIndex ) ) );
|
||||
|
||||
if ( model && model->metaObject()->indexOfSignal( "trackCountChanged(QModelIndex)" ) > -1 )
|
||||
connect( model, SIGNAL( askForExpand( QModelIndex ) ), this, SLOT( askedToExpand( QModelIndex ) ) );
|
||||
if ( model && model->metaObject()->indexOfSignal( "selectRequest(QModelIndex)" ) > -1 )
|
||||
connect( model, SIGNAL( selectRequest( QModelIndex ) ), this, SLOT( selectRequested( QModelIndex ) ) );
|
||||
}
|
||||
|
||||
|
||||
|
@ -106,7 +106,6 @@ SourceTreeView::SourceTreeView( QWidget* parent )
|
||||
header()->setStretchLastSection( false );
|
||||
header()->setResizeMode( 0, QHeaderView::Stretch );
|
||||
|
||||
connect( m_model, SIGNAL( clicked( QModelIndex ) ), SIGNAL( clicked( QModelIndex ) ) );
|
||||
connect( this, SIGNAL( clicked( QModelIndex ) ), SLOT( onItemActivated( QModelIndex ) ) );
|
||||
connect( this, SIGNAL( expanded( QModelIndex ) ), this, SLOT( onItemExpanded( QModelIndex ) ) );
|
||||
// connect( selectionModel(), SIGNAL( selectionChanged( QItemSelection, QItemSelection ) ), SLOT( onSelectionChanged() ) );
|
||||
|
Loading…
x
Reference in New Issue
Block a user