Skip to content
Snippets Groups Projects
Commit 6549e83e authored by Guillaume Pasero's avatar Guillaume Pasero
Browse files

REFAC: QtWidgetView doesn't have to provide direct access to the Application

parent 7b5b83ed
No related branches found
No related tags found
No related merge requests found
......@@ -1431,11 +1431,11 @@ MainWindow
if( !( *it )->IsClosable() )
{
assert( !( *it )->GetApplication().IsNull() );
assert( ( *it )->GetModel()->GetApplication() );
// qDebug() << "OTB-application:" << ( *it )->GetApplication()->GetDocName();
names.push_back( ( *it )->GetApplication()->GetDocName() );
names.push_back( ( *it )->GetModel()->GetApplication()->GetDocName() );
}
}
......
......@@ -217,13 +217,13 @@ ApplicationLauncher
ApplicationLauncher::NewOtbApplicationWidget( appName, isStandalone );
assert( appWidget!=NULL );
assert( appWidget->GetApplication() );
assert( appWidget->GetModel()->GetApplication() );
QMainWindow * mainWindow = new QMainWindow( p, flags );
mainWindow->setWindowTitle(
QString( "%1 (OTB-" OTB_VERSION_STRING ")" )
.arg( appWidget->GetApplication()->GetDocName() )
.arg( appWidget->GetModel()->GetApplication()->GetDocName() )
);
mainWindow->setWindowIcon( QIcon( ":/otb_small.png" ) );
......@@ -251,11 +251,11 @@ ApplicationLauncher
);
assert( appWidget!=NULL );
assert( appWidget->GetApplication() );
assert( appWidget->GetModel()->GetApplication() );
appWidget->setWindowTitle(
QString( "%1 (OTB-" OTB_VERSION_STRING ")" )
.arg( appWidget->GetApplication()->GetDocName() )
.arg( appWidget->GetModel()->GetApplication()->GetDocName() )
);
appWidget->setWindowIcon( QIcon( ":/icons/process" ) );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment