VR-Engage  2.3
Loading...
Searching...
No Matches
DtStationListView Class Reference

Detailed Description

Overrides startDrag() so that when the user drags a station card the cursor shows a compact rounded label with just the station name, making it easy to read which station is being dragged over the entity/role tree.

#include <stationListView.h>

Inheritance diagram for DtStationListView:
[legend]

Public Member Functions

 DtStationListView (QWidget *parent=nullptr)
 

Protected Member Functions

void mousePressEvent (QMouseEvent *event) override
 
void mouseMoveEvent (QMouseEvent *event) override
 
void startDrag (Qt::DropActions supportedActions) override
 

Private Attributes

QPoint myDragStartPos
 
QPersistentModelIndex myPressedIndex
 

Constructor & Destructor Documentation

◆ DtStationListView()

DtStationListView::DtStationListView ( QWidget * parent = nullptr)
inlineexplicit

References myDragStartPos, and myPressedIndex.

Member Function Documentation

◆ mousePressEvent()

void DtStationListView::mousePressEvent ( QMouseEvent * event)
inlineoverrideprotected

References myDragStartPos, and myPressedIndex.

◆ mouseMoveEvent()

void DtStationListView::mouseMoveEvent ( QMouseEvent * event)
inlineoverrideprotected

◆ startDrag()

void DtStationListView::startDrag ( Qt::DropActions supportedActions)
inlineoverrideprotected

References myPressedIndex, and makVre::StationNameRole.

Referenced by mouseMoveEvent().

Member Data Documentation

◆ myDragStartPos

QPoint DtStationListView::myDragStartPos
private

◆ myPressedIndex

QPersistentModelIndex DtStationListView::myPressedIndex
private

The documentation for this class was generated from the following file: