Raise playlistwindow on mouse click.

This commit is contained in:
Tobias Rundstrom 2006-03-05 16:47:37 -03:00
parent 52e75244fc
commit f7c018c48c
3 changed files with 4 additions and 1 deletions

View file

@ -19,6 +19,7 @@ SkinDisplay::setPixmaps (Skin *skin)
void
SkinDisplay::mousePressEvent (QMouseEvent *event)
{
dynamic_cast<MainWindow *>(getMW())->raisePL ();
m_diffX = event->x();
m_diffY = event->y();
}

View file

@ -33,6 +33,7 @@ class MainWindow : public QMainWindow
ShadedDisplay *getSD () { return m_shaded; }
void setPL (PlaylistWindow *p) { m_playlistwin = p; }
void raisePL (void) { m_playlistwin->raise (); }
void moveEvent (QMoveEvent *event);
public slots:

View file

@ -9,8 +9,9 @@ SettingsWindow::SettingsWindow (QWidget *parent) : QMainWindow (parent)
#ifndef _WIN32
setWindowIcon (QIcon (":icon.png"));
#endif
setWindowTitle ("Promoe - Settings window");
resize (400, 400);
resize (400, 500);
QWidget *dummy = new QWidget (this);
setCentralWidget (dummy);