How to select a sidebar item when the sidebar is collapsed in autotests/parttest

Mayank Choudhary mayankchd10 at gmail.com
Tue Jul 2 20:50:53 BST 2019


I tried  QTest::mouseMove() & QPoint() method but the cursor moves out of
the okular instead of the sidebar. Does part.m_sidebar is the right
candidate for selecting the sidebar?

On Tue, 2 Jul 2019, 4:30 am Albert Astals Cid, <aacid at kde.org> wrote:

> El dimarts, 2 de juliol de 2019, a les 0:52:42 CEST, Mayank Choudhary va
> escriure:
> > Hello,
> >
> > I'm writing an autotest in parttest.cpp where initially when the part is
> > opened, the sidebar is collapsed. Now I need to click on thumbnails item
> > (say) in order to open it. How can I?
>
> What would the user do? Click on it, right? So the test should ideally do
> the same by using QTest::mouseClick
>
> Cheers,
>   Albert
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/okular-devel/attachments/20190703/900df399/attachment.html>


More information about the Okular-devel mailing list