summaryrefslogtreecommitdiffstats
path: root/src/widgets
diff options
context:
space:
mode:
authorRichard Moe Gustavsen <richard.gustavsen@digia.com>2014-08-06 14:36:08 +0200
committerRichard Moe Gustavsen <richard.gustavsen@digia.com>2014-08-06 16:17:06 +0200
commit1a47595d3a836c3c783dc3dbf85ce5b24f7ecf03 (patch)
tree0b19932381d73e08da0ab006fc4762484e090f8b /src/widgets
parentc1d2a04923b8c48becb200e84c253beb52ac809f (diff)
QPlatformMenu: add overloaded function 'showPopup' that takes a target rect
When showing an edit menu on touch platforms, you need to specify a target rect for where to place the menu. The target rect is normally a rectangle that encompasses the whole text selection. Using this information the OS will place the menu so that is doesn't obscure the selection itself, or fall outside the screen (or overlaps e.g the keyboard). Since we don't know the size of the menu, or if the OS will end up placing the menu above or below the pos we give it, we need to do it the correct way and forward the whole target rect instead. Change-Id: I638586e9d0dd14c430a22c403c6dce099192a075 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com> Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
Diffstat (limited to 'src/widgets')
0 files changed, 0 insertions, 0 deletions