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

Albert Astals Cid aacid at kde.org
Wed Jul 3 23:26:00 BST 2019


El dimarts, 2 de juliol de 2019, a les 21:50:53 CEST, Mayank Choudhary va escriure:
> 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?

Maybe you can push your code to a clone in invent.kde.org so we can see it?

It's hard to figure out what is wrong with code when the description is so vague.

Cheers,
  Albert

> 
> 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
> >
> >
> >
> 






More information about the Okular-devel mailing list