<table><tr><td style="">simgunz added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D10792">View Revision</a></tr></table><br /><div><div><p>I'm adding a new test to <tt style="background: #ebebeb; font-size: 13px;">parttest.cpp</tt> because is the only test where there is the <tt style="background: #ebebeb; font-size: 13px;">part</tt> component that allows me to access the <tt style="background: #ebebeb; font-size: 13px;">m_pageView</tt>.</p>

<p>I'm trying to call the public qslot:</p>

<p><tt style="background: #ebebeb; font-size: 13px;">part.m_pageView->openAnnotationWindow(annot1, 0);</tt></p>

<p>but I get this error:</p>

<p><tt style="background: #ebebeb; font-size: 13px;">parttest.cpp:(.text+0x14d8d): undefined reference to PageView::openAnnotationWindow(Okular::Annotation*, int)</tt></p>

<p>I've also cleaned the build dir and rerun cmake, and make but it still happens.</p>

<p>Any idea?</p>

<p>Moreover, then I don't know how to access the opened annotation window. The reference is stored in <tt style="background: #ebebeb; font-size: 13px;">part->d->m_annowindows</tt>, in the private class of PageView, which is not accessible from the tester I think.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R223 Okular</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D10792">https://phabricator.kde.org/D10792</a></div></div><br /><div><strong>To: </strong>simgunz, Okular, aacid<br /><strong>Cc: </strong>ngraham, Okular, michaelweghorn, aacid<br /></div>