Commit 2074992c authored by Sebastian Eichelbaum's avatar Sebastian Eichelbaum
Browse files

[STYLE]

parent a5bbda77
......@@ -165,13 +165,13 @@ void WQt4Gui::slotAddDatasetOrModuleToBrowser( boost::shared_ptr< WModule > modu
m_mainWindow->getPropertyManager()->connectProperties( module->getProperties() );
// create a new event for this and insert it into event queue
QCoreApplication::postEvent ( m_mainWindow->getDatasetBrowser(), new WModuleAssocEvent( module ) );
QCoreApplication::postEvent( m_mainWindow->getDatasetBrowser(), new WModuleAssocEvent( module ) );
}
void WQt4Gui::slotActivateDatasetOrModuleInBrowser( boost::shared_ptr< WModule > module )
{
// create a new event for this and insert it into event queue
QCoreApplication::postEvent ( m_mainWindow->getDatasetBrowser(), new WModuleReadyEvent( module ) );
QCoreApplication::postEvent( m_mainWindow->getDatasetBrowser(), new WModuleReadyEvent( module ) );
}
std::vector< boost::shared_ptr< WDataSet > > WQt4Gui::getDataSetList( int subjectId, bool onlyTextures )
......
......@@ -123,10 +123,12 @@ bool WQtDatasetBrowser::event( QEvent* event )
if ( !e )
{
// this should never happen, since the type is set to WQT_ASSOC_EVENT.
WLogger::getLogger()->addLogMessage( "Event is not an WModueAssocEvent although its type claims it. Ignoring event.", "DatasetBrowser", LL_WARNING );
WLogger::getLogger()->addLogMessage( "Event is not an WModueAssocEvent although its type claims it. Ignoring event.",
"DatasetBrowser", LL_WARNING );
}
WLogger::getLogger()->addLogMessage( "Inserting module " + e->getModule()->getName() + " to dataset browser.", "DatasetBrowser", LL_DEBUG );
WLogger::getLogger()->addLogMessage( "Inserting module " + e->getModule()->getName() + " to dataset browser.",
"DatasetBrowser", LL_DEBUG );
// finally add the module
// TODO(schurade): is this differentiation between data and "normal" modules really needed?
......@@ -150,10 +152,12 @@ bool WQtDatasetBrowser::event( QEvent* event )
if ( !e )
{
// this should never happen, since the type is set to WQT_Ready_EVENT.
WLogger::getLogger()->addLogMessage( "Event is not an WModueReadyEvent although its type claims it. Ignoring event.", "DatasetBrowser", LL_WARNING );
WLogger::getLogger()->addLogMessage( "Event is not an WModueReadyEvent although its type claims it. Ignoring event.",
"DatasetBrowser", LL_WARNING );
}
WLogger::getLogger()->addLogMessage( "Activating module " + e->getModule()->getName() + " in dataset browser.", "DatasetBrowser", LL_DEBUG );
WLogger::getLogger()->addLogMessage( "Activating module " + e->getModule()->getName() + " in dataset browser.",
"DatasetBrowser", LL_DEBUG );
// iterate tree items and find proper one
QTreeWidgetItemIterator it( m_treeWidget );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment