[Marble-commits] KDE/kdeedu/marble/src/plugins/declarative
Dennis Nienhüser
earthwings at gentoo.org
Sun Jan 9 17:50:47 CET 2011
SVN commit 1213213 by nienhueser:
searchResultChanged() has changed its interface
M +4 -4 MarbleDeclarativeRunnerManager.cpp
M +1 -1 MarbleDeclarativeRunnerManager.h
--- trunk/KDE/kdeedu/marble/src/plugins/declarative/MarbleDeclarativeRunnerManager.cpp #1213212:1213213
@@ -33,8 +33,8 @@
m_runnerManager = new Marble::MarbleRunnerManager( pluginManager, this );
connect( m_runnerManager, SIGNAL( searchFinished( QString ) ),
this, SIGNAL( searchFinished() ) );
- connect( m_runnerManager, SIGNAL( searchResultChanged( MarblePlacemarkModel* ) ),
- this, SLOT( searchModelChanged( MarblePlacemarkModel* ) ) );
+ connect( m_runnerManager, SIGNAL( searchResultChanged( QAbstractItemModel* ) ),
+ this, SLOT( searchModelChanged( QAbstractItemModel* ) ) );
}
m_runnerManager->findPlacemarks( term );
@@ -55,9 +55,9 @@
return result;
}
-void MarbleRunnerManager::searchModelChanged( MarblePlacemarkModel *model )
+void MarbleRunnerManager::searchModelChanged( QAbstractItemModel *model )
{
- m_searchResult = model;
+ m_searchResult = static_cast<MarblePlacemarkModel*>( model );
}
}
--- trunk/KDE/kdeedu/marble/src/plugins/declarative/MarbleDeclarativeRunnerManager.h #1213212:1213213
@@ -58,7 +58,7 @@
private Q_SLOTS:
/** Search progress update */
- void searchModelChanged( MarblePlacemarkModel *model );
+ void searchModelChanged( QAbstractItemModel *model );
private:
/** Wrapped Marble runner manager */
More information about the Marble-commits
mailing list