Squish Date Time Scroll Bar Test - qt

How can I scroll till specific object visible in Squish Tests (QT application)? The scroll bar has date (Month, Day and Year) to pick. Please provide any suggestions on how to locate the object and scroll or drag to a particular date.

Is it possible to move the scroll bar by clicking on it and then nativeType Up/Down? Or you do a simple turning for 1 click with mouseMove, mousePress, mouseMove, mouseRelease.
After you have done this, you might check the properties of the object if the date is correct. If not, do it again until you have the correct date.

Related

How to display ngx-timepicker-field timepicker next to a div , instead of showing it as a pop up

I want to display a time picker in my application in which either user can enter the time manually or pick it from a time picker.
And for this, I am using the ngx-timepicker-field and it works perfectly fine.
The issue is instead of showing the time picker pop up in the middle of the page is there any option available to show it near to the input filed or a div. similar to appends to input option available for ngx-material-timepicker
Reference link: https://agranom.github.io/ngx-material-timepicker/
Any help would be highly appreciated.
Thanks

Fullcalendar customizing the Agenda display

I want to make three changes to the fullcalendar Agenda view.
Remove start time from events, essentially I just want to display the title in each slot.
Change the height of timeslots, I have tried adjusting the contentHeight but that had no apparent effect.
Show 30min slots on Y-axis, I know about axisFormat option but it still only displays the full hours.
If anyone can give me any suggestions on how to accomplish these 3 changes?
Fullcalendar have rich callback set to configure:
You should use eventRender to modify it (hide title in already constructed is best way of it). Do not try construct new element and replace original
The same eventRender where you can add CSS or class and then change per event or direct from CSS
Agenda view does not have time slots at all, it is time-ordered list which does not represent proportion of time-lenght between events. If you wan't time based view, then try singe day view and set slotDuration as close as you want, even on the fly with buttons or keybind. + when setting slotDuration, if you wan't support adding events, change also snapDuration

Flowchart always shows all nodes collapsed, any way to expand them?

We are using a flowchart activity as base for our workflow. All the activities that I drop on the designer surface of the flowchart are shown in collapsed state. Even if I click on "Expand all" in the top right of the designer.
First I thought it's a problem with my activity designer code, but the same holds true for standard activities like Sequence: They can not be shown in expanded mode when inside a flowchart. They do not show their regular Expand/Collapse icon in the top right, too.
A little sequence inside another sequence is expandable:
But inside the flowchart, the same sequence is not:
Is that by design, intentionally, or am I just missing some very basic piece? I would like to expand individual activities (we have a lot with elaborated designers), but at the moment this seems to work only in Sequence-like base activities, not in flowchart.
I think it will be so complicated if your Flow chart has a lot of items so they prefer levels which you can see it in the navigation menu when you hit double click to the Sequence Item
and also the Same if you have Sequence WF and you added Flow Chart item will be the Same

Full Calendar agenda view with many all-day events

I am using full calendar in a new web app and have ran into a problem once we deployed. On the Agenda view with the all-day slot enabled the all-day slot expands as events are added. this did not present any issues during our initial test but we have ran into a problem with many events. The all-day slot continues to expand eventually making the agenda view disappear or be too small to be functional. Is there a work around to add a scroll bar to the all-day tab or set a min height for the agenda view? I have tried everything I can think of and have been unable to get anything to work. Please see attached screen shot from the calendar test files.
While you can restrict the size of the all day section my modifiying it's class. The events themselves are positioned by absolute x - y coordinates on the page and aren't actually inside the all day section at all, so scrolling that box would be pointless anyway.
I'd say without modifying the source considerably this is not possible.
I'm not sure what you mean by setting a min-height?

Qt drag and drop animation

I have two QTreeViews side by side and I want to implement dragging one item from one table into the other table. What I would like to do however is that when the item to be dropped reaches the destination table, that the two rows sort of "make space for it" and separate to really show the user exactly where the item would be dropped. Could someone point me in the right direction as to how to do this as I have no idea really where to start.
Thanks,
Stephen
http://doc.trolltech.com/latest/dnd.html should lead you to pretty much anything you want to do re drag and drop.
As for your specific goal, you need to implement QWidget::dragMoveEvent(QDragMoveEvent* event), which will get called every time the mouse moves within the destination tree while dragging an item. Then get the position of the cursor with QDragMoveEvent::pos(). After that, while in dragMoveEvent, use QTreeView::indexAt(pos()) to get the item under the mouse. Now, I don't know how to get the items to separate in a smooth animated way, which would be ideal. But what you can do is (temporarily) add a blank item to the list, which will have the almost identical effect. Then implement QWidget::dropEvent() to handle the drop event, and when this happens delete the blank item and insert the dragged item in the location where it was.

Resources