Skip to content
Permalink
Browse files

Directly use function connect, remove no more existing signals

  • Loading branch information
sbrunner committed May 11, 2016
1 parent b1f59f3 commit d03821866e2032dd077f54a7438d52259997271f
Showing with 6 additions and 15 deletions.
  1. +6 −15 src/app/qgsbookmarks.cpp
@@ -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

0 comments on commit d038218

Please sign in to comment.
You can’t perform that action at this time.