Elements panel: during a drag and drop operation, the hovered item is now expanded after a short time not moving the mouse.

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/branches/0.3@1124 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
xavier
2010-11-14 20:11:57 +00:00
parent 1acbf1f54c
commit f59bf133d1

View File

@@ -67,6 +67,7 @@ ElementsPanel::ElementsPanel(QWidget *parent) :
setDragEnabled(true);
setAcceptDrops(true);
setDropIndicatorShown(true);
setAutoExpandDelay(1000);
// taille des elements
setIconSize(QSize(50, 50));
@@ -337,6 +338,8 @@ void ElementsPanel::dragMoveEvent(QDragMoveEvent *e) {
scroll_bar -> setValue(scroll_bar -> value() + 1);
}
QTreeWidget::dragMoveEvent(e);
// recupere la categorie cible pour le deplacement / la copie
ElementsCategory *target_category = categoryForPos(e -> pos());
if (!target_category) {