diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2017-07-21 00:49:31 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-07-28 07:31:11 -0700 |
commit | 18d910f6a72c07b58da4a042b21993b5b5d0fbbd (patch) | |
tree | ef8a7c81c70559adf26618c5a36001c2026adf2d /desktop-widgets/printdialog.h | |
parent | 95b0d43104bdab212d5e6c0f843b6f193be6084e (diff) | |
download | subsurface-18d910f6a72c07b58da4a042b21993b5b5d0fbbd.tar.gz |
mapwidgetcontextmenu: add the ListView component
NOTES:
- the ListView object uses lsitItemDelagate to display all elements from
the model listModel
- onCountChanged() is used to adjust the x position based on the
maxItemWidth property which is calculated when the items are populated
with text
- onVisibleChanged() is used to deselect the last selected item by
calling listModel.selectedIdx = -1
- onOpacityChanged() i sued to make sure that the View is hidden if the
opacity becomes 0.0
- inside the View there is a MouseAre which obtains the selected item via
indexAt(x,y)
- there is a Timer with id listViewVisibleTimer, which is called each
time the user selects an item from the list and the timer performs a
"delayed hide"
- a couple of State and a Transition objects are used to preform smooth
fade-in / out animation when the ListView is hidden or becomes visible
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Diffstat (limited to 'desktop-widgets/printdialog.h')
0 files changed, 0 insertions, 0 deletions