Skip to content
Snippets Groups Projects
Commit cf3ee7cf authored by Stéphane Albert's avatar Stéphane Albert
Browse files

ENH: [mvd2-iewer] Fixed disconnected signals/slots.

parent 2bf36ddb
No related branches found
No related tags found
No related merge requests found
......@@ -67,10 +67,6 @@ Application
::Application( QApplication* qtApp ) :
I18nApplication( qtApp )
{
QObject::connect(
this, SIGNAL( aboutToQuit() ),
this, SLOT( OnAboutToQuit() )
);
}
/*******************************************************************************/
......@@ -172,11 +168,5 @@ Application
/*******************************************************************************/
/* SLOTS */
/*******************************************************************************/
void
Application
::OnAboutToQuit()
{
qDebug() << "mvd::Application::OnAboutToQuit().";
}
} // end namespace 'mvd'
......@@ -186,9 +186,6 @@ private:
//
// Slots
private slots:
/** */
void OnAboutToQuit();
};
/*****************************************************************************/
......
......@@ -207,17 +207,23 @@ MainWindow
// Connect Appllication and MainWindow when selected model is about
// to change.
QObject::connect(
qApp, SIGNAL( AboutToChangeModel( const AbstractModel* ) ),
this, SLOT( OnAboutToChangeModel( const AbstractModel* ) )
I18nApplication::Instance(),
SIGNAL( AboutToChangeModel( const AbstractModel* ) ),
// to:
this,
SLOT( OnAboutToChangeModel( const AbstractModel* ) )
);
// Connect Application and MainWindow when selected model has been
// changed.
QObject::connect(
qApp, SIGNAL( ModelChanged( AbstractModel* ) ),
this, SLOT( OnModelChanged( AbstractModel* ) )
I18nApplication::Instance(),
SIGNAL( ModelChanged( AbstractModel* ) ),
// to:
this,
SLOT( OnModelChanged( AbstractModel* ) )
);
// Show the progress dialog when a new image is loaded
QObject::connect(
this, SIGNAL( OpenImageRequest(QString) ),
......
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