Esempio n. 1
0
void KOViewManager::connectTodoView(KOTodoView *todoView)
{
    if(!todoView) return;

    // SIGNALS/SLOTS FOR TODO VIEW
    connect(todoView, SIGNAL(purgeCompletedSignal()),
            mMainView, SLOT(purgeCompleted()));
    connect(todoView, SIGNAL(unSubTodoSignal()),
            mMainView, SLOT(todo_unsub()));
    connect(todoView, SIGNAL(unAllSubTodoSignal()),
            mMainView, SLOT(makeSubTodosIndependents()));
}
void KOViewManager::connectTodoView( KOTodoView *todoView )
{
    if ( !todoView ) {
        return;
    }

    // SIGNALS/SLOTS FOR TODO VIEW
    connect( todoView, SIGNAL(purgeCompletedSignal()),
             mMainView, SLOT(purgeCompleted()) );
    connect( todoView, SIGNAL(unSubTodoSignal()),
             mMainView, SLOT(todo_unsub()) );
    connect( todoView, SIGNAL(unAllSubTodoSignal()),
             mMainView, SLOT(makeSubTodosIndependents()) );
    connect( mMainView, SIGNAL(categoryConfigChanged()),
             todoView, SLOT(updateCategories()) );
}