Logo Search packages:      
Sourcecode: akregator version File versions

void View::delayedInit (  )  [protected, slot]

this is called by the ctor, does init steps which need a properly created view and part

Definition at line 268 of file akregator_view.cpp.

References m_articleViewer, and Akregator::Part::mergePart().

Referenced by View().

{
    // HACK, FIXME:
    // for some reason, m_part->factory() is NULL at startup of kontact,
    // and thus the article viewer GUI can't be merged when creating the view.
    // Even the delayed init didn't help. Well, we retry every half a second until
    // it works. This is kind of creative, but a dirty hack nevertheless.
    if ( !m_part->mergePart(m_articleViewer) )
        QTimer::singleShot(500, this, SLOT(delayedInit()));
}


Generated by  Doxygen 1.6.0   Back to index