Project

General

Profile

Actions

Bug #5900

open

Context menu disappears in treeview-dragdrop example

Added by Heiko Gerdau over 6 years ago. Updated over 6 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
08/29/2017
Due date:
% Done:

0%

Estimated time:

Description

In your treeview-dragdrop example consider the treeview (folder) on the left.

Right click with mouse-> context menu appears.

Now sort the treeview. Again right click -> no context menu.

So what changed? The mouseWentUp event seem to fire more than once.

If it fires an even number of times the context menu is shown, on odd numbers it is hidden.

The reason for that is the following code part in TreeViewDragDrop::showPopup.

if (popup_->isHidden())

popup_->popup(event);

else

popup_->hide();

I do not understand the "else" anyway, but the main question (bug) is

why does mouseWentUp fire more than once?

Regards,

Heiko

Actions #1

Updated by Heiko Gerdau over 6 years ago

Of course it's the other way around:

odd number ---> shown

even number ---> hidden

sorry

Actions

Also available in: Atom PDF