| 152 | |
| 153 | |
| 154 | void 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 |