diff options
Diffstat (limited to 'src/ui/playlist.cpp')
| -rw-r--r-- | src/ui/playlist.cpp | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/ui/playlist.cpp b/src/ui/playlist.cpp index a3c9e576e..dd454df38 100644 --- a/src/ui/playlist.cpp +++ b/src/ui/playlist.cpp @@ -368,8 +368,21 @@ void PlayList::mouseMoveEvent (QMouseEvent *e) { if (m_resize) { +#ifdef Q_OS_WIN32 + int sx = (width()-275) /25; + int sy = (height()-116) /29; + if(width() < e->x() - 14) + sx++; + else if(width() > e->x() + 14) + sx--; + if(height() < e->y() - 14) + sy++; + else if(height() > e->y() + 14) + sy--; + resize (275+25*sx,116+29*sy); +#else resize (e->x() +25, e->y() +25); - //usleep(32000); +#endif } } void PlayList::mouseReleaseEvent (QMouseEvent *) |
