コード例 #1
0
ファイル: pcdm-gui.cpp プロジェクト: KhuramAli/pcbsd
PCDMgui::PCDMgui() : QMainWindow()
{
    //Load the Theme
    loadTheme();
    //Create the GUI based upon the current Theme
    createGUIfromTheme();
    //Put the background image on all the other screens
    fillExtraScreens();
    //Now make sure that the login widget has keyboard focus
    loginW->resetFocus();
    this->setObjectName("PCDM-background");
}
コード例 #2
0
ファイル: pcdm-gui.cpp プロジェクト: cthunter01/pcbsd
PCDMgui::PCDMgui() : QMainWindow()
{
    this->setObjectName("PCDM-background");
    this->setWindowFlags(Qt::Window | Qt::FramelessWindowHint | Qt::WindowStaysOnBottomHint);
    this->setCentralWidget(new QWidget(this));
    QApplication::setActiveWindow(this);
    //Load the Theme
    loadTheme();
    //Create the base widgets for the window and make sure they cover one screen at a time
    fillScreens();
    //Create the GUI based upon the current Theme
    createGUIfromTheme();
    //Now make sure that the login widget has keyboard focus
    //loginW->resetFocus();
    loginW->activateWindow();
    pcTimer = new QTimer(this);
	pcTimer->setInterval(15000); //every 15 seconds
	connect(pcTimer, SIGNAL(timeout()), this, SLOT(LoadAvailableUsers()) );
    if(!pcAvail.isEmpty()){ pcTimer->start(); } //LoadAvailableUsers was already run once

}