Moved around headers, should make it faster to compile.
This commit is contained in:
parent
1e8286a5b9
commit
2c20ddf6fc
24 changed files with 121 additions and 40 deletions
|
@ -5,6 +5,10 @@
|
|||
#include "ServerBrowser.h"
|
||||
#endif
|
||||
|
||||
#include "Playlist.h"
|
||||
#include "MainDisplay.h"
|
||||
#include "ShadedDisplay.h"
|
||||
|
||||
#include <QSettings>
|
||||
#include <QIcon>
|
||||
#include <QPluginLoader>
|
||||
|
@ -75,27 +79,15 @@ MainWindow::switchDisplay ()
|
|||
|
||||
}
|
||||
|
||||
void
|
||||
MainWindow::raisePL (void)
|
||||
{
|
||||
m_playlistwin->raise ();
|
||||
}
|
||||
|
||||
void
|
||||
MainWindow::moveEvent (QMoveEvent *event)
|
||||
{
|
||||
int x = event->oldPos().x();
|
||||
int y = event->oldPos().y() + size().height();
|
||||
|
||||
if (!m_playlistwin)
|
||||
return;
|
||||
|
||||
int x2 = m_playlistwin->pos().x();
|
||||
int y2 = m_playlistwin->pos().y();
|
||||
|
||||
int diffy = y - y2;
|
||||
int diffx = x - x2;
|
||||
|
||||
if ((diffy > -5 && diffy < 5) && (diffx > -10 && diffx < 10))
|
||||
{
|
||||
m_playlistwin->move (event->pos().x(),
|
||||
event->pos().y() + size().height());
|
||||
}
|
||||
|
||||
QSettings s;
|
||||
s.setValue ("mainwindow/pos", pos ());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue