main.cc.diff
| main.cc 2019-12-10 09:58:04.583768295 -0600 | ||
|---|---|---|
| 81 | 81 | |
| 82 | 82 |
void draw (QPainter & cr); |
| 83 | 83 |
bool button_press (QMouseEvent * event); |
| 84 |
void enterEvent (QEvent * event); |
|
| 85 |
Playlist m_playlist; |
|
| 86 |
int m_popup_pos = -1; |
|
| 84 | 87 |
bool scroll (QWheelEvent * event); |
| 85 | 88 |
}; |
| 86 | 89 | |
| ... | ... | |
| 507 | 510 |
return Window::button_press (event); |
| 508 | 511 |
} |
| 509 | 512 | |
| 513 |
void MainWindow::enterEvent (QEvent * event) |
|
| 514 |
{
|
|
| 515 |
if (is_shaded ()) |
|
| 516 |
{
|
|
| 517 |
QMouseEvent *mouseEvent = static_cast<QMouseEvent *>(event); |
|
| 518 |
int mousey = mouseEvent->y (); |
|
| 519 |
if (mousey > 78 && mousey < 165) |
|
| 520 |
{
|
|
| 521 |
if (aud_get_bool (nullptr, "show_filepopup_for_tuple")) |
|
| 522 |
{
|
|
| 523 |
m_playlist = Playlist::active_playlist (); |
|
| 524 |
m_popup_pos = m_playlist.get_position (); |
|
| 525 |
if (m_popup_pos >= 0) |
|
| 526 |
audqt::infopopup_show (m_playlist, m_popup_pos); |
|
| 527 |
} |
|
| 528 |
} |
|
| 529 |
} |
|
| 530 |
} |
|
| 531 | ||
| 510 | 532 |
static void mainwin_playback_rpress (Button * button, QMouseEvent * event) |
| 511 | 533 |
{
|
| 512 | 534 |
menu_popup (UI_MENU_PLAYBACK, event->globalX (), event->globalY (), false, false); |
