OTHER: select active window on click istead of on mouseover

This commit is contained in:
Thomas Frauendorfer 2010-03-06 11:40:24 +01:00
parent 5f4e2d89d7
commit 353b7314e6
13 changed files with 110 additions and 33 deletions

View file

@ -36,6 +36,7 @@
MainWindow::MainWindow (QWidget *parent) : BaseWindow (parent)
{
setObjectName ("MainWindow");
QSettings s;
setWindowTitle (App->applicationName ());
@ -126,6 +127,23 @@ MainWindow::switchDisplay ()
}
void
MainWindow::activeWindowInEvent (QEvent *event)
{
m_display->setActive (true);
m_shaded->setActive (true);
BaseWindow::activeWindowInEvent (event);
}
void
MainWindow::activeWindowOutEvent (QEvent *event)
{
m_display->setActive (false);
m_shaded->setActive (false);
BaseWindow::activeWindowOutEvent (event);
}
void
MainWindow::raisePL (void)
{