Skip to content

Commit

Permalink
Directly use function connect, remove no more existing signals
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed May 13, 2016
1 parent b1f59f3 commit d038218
Showing 1 changed file with 6 additions and 15 deletions.
21 changes: 6 additions & 15 deletions src/app/qgsbookmarks.cpp
Expand Up @@ -495,35 +495,26 @@ QgsMergedBookmarksTableModel::QgsMergedBookmarksTableModel( QAbstractTableModel&
mProjectTableModel( projectTableModel ),
mTreeView( treeView )
{
QObject::connect(
connect(
QgisApp::instance(), SIGNAL( projectRead() ),
this, SLOT( projectRead() ) );

QObject::connect(
connect(
&mQgisTableModel, SIGNAL( layoutChanged() ),
this, SLOT( allLayoutChanged() ) );
QObject::connect(
connect(
&mQgisTableModel, SIGNAL( dataChanged( const QModelIndex&, const QModelIndex& ) ),
this, SLOT( qgisDataChanged( const QModelIndex&, const QModelIndex& ) ) );
QObject::connect(
connect(
&mQgisTableModel, SIGNAL( rowsInserted( const QModelIndex&, int, int ) ),
this, SLOT( allLayoutChanged() ) );
QObject::connect(
connect(
&mQgisTableModel, SIGNAL( rowsRemoved( const QModelIndex&, int, int ) ),
this, SLOT( allLayoutChanged() ) );

QObject::connect(
connect(
&projectTableModel, SIGNAL( layoutChanged() ),
this, SLOT( allLayoutChanged() ) );
QObject::connect(
&projectTableModel, SIGNAL( projectDataChanged( const QModelIndex&, const QModelIndex& ) ),
this, SLOT( dataChanged( const QModelIndex&, const QModelIndex& ) ) );
QObject::connect(
&projectTableModel, SIGNAL( projectRowsInserted( const QModelIndex&, int, int ) ),
this, SLOT( allLayoutChanged() ) );
QObject::connect(
&projectTableModel, SIGNAL( ProjectRowsRemoved( const QModelIndex&, int, int ) ),
this, SLOT( allLayoutChanged() ) );
}

int QgsMergedBookmarksTableModel::rowCount( const QModelIndex& parent ) const
Expand Down

0 comments on commit d038218

Please sign in to comment.