Please enable JavaScript to use RhodeCode Enterprise
##// END OF EJS Templates
Thibaud Rabillard
- Thu, 09 Nov 2017 15:14:45
Show More
0
gui/include/DragAndDrop/DragDropHelper.h
gui/include/DragAndDrop/DragDropHelper.h
+4
0
@@
-63,6
+63,10
public:
63
63
void setHightlightedDragWidget ( VisualizationDragWidget * dragWidget );
64
64
VisualizationDragWidget * getHightlightedDragWidget () const ;
65
65
66
/// Delays the closing of a widget during a drag&drop operation
67
void delayedCloseWidget ( QWidget * widget );
68
void doCloseWidgets ();
69
66
70
private :
67
71
class DragDropHelperPrivate ;
68
72
spimpl :: unique_impl_ptr < DragDropHelperPrivate > impl ;
0
gui/src/DragAndDrop/DragDropHelper.cpp
gui/src/DragAndDrop/DragDropHelper.cpp
+17
0
@@
-38,6
+38,8
struct DragDropHelper::DragDropHelperPrivate {
38
38
QMetaObject :: Connection m_DragWidgetDestroyedConnection ;
39
39
QMetaObject :: Connection m_HighlightedWidgetDestroyedConnection ;
40
40
41
QList < QWidget *> m_WidgetToClose ;
42
41
43
explicit DragDropHelperPrivate ()
42
44
: m_PlaceHolder { std :: make_unique < QWidget > ()},
43
45
m_DragDropScroller { std :: make_unique < DragDropScroller > ()},
@@
-209,6
+211,21
VisualizationDragWidget *DragDropHelper::getHightlightedDragWidget() const
209
211
return impl -> m_HighlightedDragWidget ;
210
212
}
211
213
214
void DragDropHelper :: delayedCloseWidget ( QWidget * widget )
215
{
216
widget -> hide ();
217
impl -> m_WidgetToClose << widget ;
218
}
219
220
void DragDropHelper :: doCloseWidgets ()
221
{
222
for ( auto widget : impl -> m_WidgetToClose ) {
223
widget -> close ();
224
}
225
226
impl -> m_WidgetToClose . clear ();
227
}
228
212
229
bool DragDropHelper :: checkMimeDataForVisualization ( const QMimeData * mimeData ,
213
230
VisualizationDragDropContainer * dropContainer )
214
231
{
0
gui/src/Visualization/VisualizationDragDropContainer.cpp
gui/src/Visualization/VisualizationDragDropContainer.cpp
+3
-2
@@
-210,8
+210,9
void VisualizationDragDropContainer::startDrag(VisualizationDragWidget *dragWidg
210
210
// do not add the placeHolder
211
211
}
212
212
213
// Note: The exec() is blocking on windows but not on linux and macOS
214
drag -> exec ( Qt :: MoveAction | Qt :: CopyAction );
213
drag -> exec ( Qt :: MoveAction | Qt :: CopyAction , Qt :: MoveAction );
214
215
helper . doCloseWidgets ();
215
216
}
216
217
else {
217
218
qCWarning ( LOG_VisualizationDragDropContainer ())
0
gui/src/Visualization/VisualizationTabWidget.cpp
gui/src/Visualization/VisualizationTabWidget.cpp
+3
-3
0
gui/src/Visualization/VisualizationZoneWidget.cpp
gui/src/Visualization/VisualizationZoneWidget.cpp
+2
-2
Site-wide shortcuts
/
Use quick search box
g h
Goto home page
g g
Goto my private gists page
g G
Goto my public gists page
g 0-9
Goto bookmarked items from 0-9
n r
New repository page
n g
New gist page
Repositories
g s
Goto summary page
g c
Goto changelog page
g f
Goto files page
g F
Goto files page with file search activated
g p
Goto pull requests page
g o
Goto repository settings
g O
Goto repository access permissions settings
t s
Toggle sidebar on some pages