- Timestamp:
- Jun 4, 2008 3:01:57 PM (17 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox4
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox4/include/QILabel_p.h
r9386 r9391 87 87 void resizeEvent (QResizeEvent *aEvent); 88 88 void mousePressEvent (QMouseEvent *aEvent); 89 void mouseReleaseEvent (QMouseEvent *aEvent); 90 void mouseMoveEvent (QMouseEvent *aEvent); 89 91 void contextMenuEvent (QContextMenuEvent *aEvent); 90 92 … … 129 131 static QRegExp mElideRegExp; 130 132 QSize mOwnSizeHint; 133 bool mStartDraging; 131 134 }; 132 135 -
trunk/src/VBox/Frontends/VirtualBox4/src/QILabel.cpp
r9386 r9391 288 288 geometry().contains (aEvent->pos()) && 289 289 mFullSizeSeclection) 290 { 290 mStartDraging = true; 291 else 292 QLabel::mousePressEvent (aEvent); 293 } 294 295 void QILabelPrivate::mouseReleaseEvent (QMouseEvent *aEvent) 296 { 297 mStartDraging = false; 298 QLabel::mouseReleaseEvent (aEvent); 299 } 300 301 void QILabelPrivate::mouseMoveEvent (QMouseEvent *aEvent) 302 { 303 if (mStartDraging) 304 { 305 mStartDraging = false; 291 306 /* Create a drag object out of the given data. */ 292 307 QDrag *drag = new QDrag (this); … … 298 313 } 299 314 else 300 QLabel::mouse PressEvent (aEvent);315 QLabel::mouseMoveEvent (aEvent); 301 316 } 302 317 … … 323 338 void QILabelPrivate::init() 324 339 { 340 mStartDraging = false; 325 341 setFullSizeSelection (false); 326 342 /* Open links with the QDesktopService */
Note:
See TracChangeset
for help on using the changeset viewer.