/*
Bacula® - The Network Backup Solution
- Copyright (C) 2007-2009 Free Software Foundation Europe e.V.
+ Copyright (C) 2007-2010 Free Software Foundation Europe e.V.
The main author of Bacula is Kern Sibbald, with contributions from
many others, a complete list can be found in the file AUTHORS.
*
* Kern Sibbald, February MMVII
*
- * $Id$
*/
#include "bat.h"
void runPage::init()
{
QDateTime dt;
+ QDesktopWidget *desk = QApplication::desktop();
+ QRect scrn;
m_name = tr("Run");
pgInitialize();
setupUi(this);
+ /* Get screen rectangle */
+ scrn = desk->screenGeometry(desk->primaryScreen());
+ /* Position this window in the middle of the screen */
+ this->move((scrn.width()-this->width())/2, (scrn.height()-this->height())/2);
QTreeWidgetItem* thisitem = mainWin->getFromHash(this);
thisitem->setIcon(0,QIcon(QString::fromUtf8(":images/run.png")));
m_conn = m_console->notifyOff();
connect(cancelButton, SIGNAL(pressed()), this, SLOT(cancelButtonPushed()));
// find a way to place the new window at the cursor position
- // or in the midle of the page
+ // or in the middle of the page
// dockPage();
setCurrent();
}