MCPcopy Create free account
hub / github.com/LMMS/lmms / mousePressEvent

Method mousePressEvent

src/gui/widgets/TrackLabelButton.cpp:154–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152
153
154void TrackLabelButton::mousePressEvent( QMouseEvent * _me )
155{
156 if( _me->button() == Qt::RightButton )
157 {
158 rename();
159 }
160 else
161 {
162 m_buttonRect = QRect( this->mapToGlobal( pos() ), size() );
163 _me->ignore();
164 }
165}
166
167
168

Callers

nothing calls this directly

Calls 3

QRectClass · 0.85
posFunction · 0.85
sizeFunction · 0.85

Tested by

no test coverage detected