App/DocumentObserver: make slot methods unimplemented rather pure-virtual and clenup derived classes accordingly

This commit is contained in:
Alexander Golubev
2015-08-02 18:52:03 +03:00
committed by wmayer
parent 546603a287
commit c30aeb06c1
11 changed files with 10 additions and 99 deletions

View File

@@ -254,10 +254,6 @@ void DocumentProtector::init()
moveToThread(QCoreApplication::instance()->thread());
}
void DocumentProtector::slotCreatedDocument(const App::Document& Doc)
{
}
void DocumentProtector::slotDeletedDocument(const App::Document& Doc)
{
if (&Doc == getDocument()) {
@@ -265,18 +261,6 @@ void DocumentProtector::slotDeletedDocument(const App::Document& Doc)
}
}
void DocumentProtector::slotCreatedObject(const App::DocumentObject& Obj)
{
}
void DocumentProtector::slotDeletedObject(const App::DocumentObject& Obj)
{
}
void DocumentProtector::slotChangedObject(const App::DocumentObject& Obj, const App::Property& Prop)
{
}
void DocumentProtector::validate()
{
if (!this->getDocument())