diff options
author | Ken Moore <ken@pcbsd.org> | 2014-09-19 09:55:19 -0400 |
---|---|---|
committer | Ken Moore <ken@pcbsd.org> | 2014-09-19 09:55:19 -0400 |
commit | 9a481058ac0f22a6ebbb21f8462c9a7cf438f6d8 (patch) | |
tree | e33f75ce2b041767c48c0a8c80e3f31ef956ef9b /lumina-desktop/SystemWindow.cpp | |
parent | Make the jpg/png suffix check case-insensitive for showing thumbnail previews... (diff) | |
download | lumina-9a481058ac0f22a6ebbb21f8462c9a7cf438f6d8.tar.gz lumina-9a481058ac0f22a6ebbb21f8462c9a7cf438f6d8.tar.bz2 lumina-9a481058ac0f22a6ebbb21f8462c9a7cf438f6d8.zip |
Add the ability to lock the screen from the log out menu in lumina-desktop.
Diffstat (limited to 'lumina-desktop/SystemWindow.cpp')
-rw-r--r-- | lumina-desktop/SystemWindow.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lumina-desktop/SystemWindow.cpp b/lumina-desktop/SystemWindow.cpp index 24bd2594..dc9dc488 100644 --- a/lumina-desktop/SystemWindow.cpp +++ b/lumina-desktop/SystemWindow.cpp @@ -13,11 +13,13 @@ SystemWindow::SystemWindow() : QDialog(), ui(new Ui::SystemWindow){ ui->tool_restart->setIcon( LXDG::findIcon("system-reboot","") ); ui->tool_shutdown->setIcon( LXDG::findIcon("system-shutdown","") ); ui->push_cancel->setIcon( LXDG::findIcon("dialog-cancel","") ); + ui->push_lock->setIcon( LXDG::findIcon("system-lock-screen","") ); //Connect the signals/slots connect(ui->tool_logout, SIGNAL(clicked()), this, SLOT(sysLogout()) ); connect(ui->tool_restart, SIGNAL(clicked()), this, SLOT(sysRestart()) ); connect(ui->tool_shutdown, SIGNAL(clicked()), this, SLOT(sysShutdown()) ); connect(ui->push_cancel, SIGNAL(clicked()), this, SLOT(sysCancel()) ); + connect(ui->push_lock, SIGNAL(clicked()), this, SLOT(sysLock()) ); //Center this window on the screen QDesktopWidget desktop; this->move(desktop.screenGeometry().width()/2 - this->width()/2, desktop.screenGeometry().height()/2 - this->height()/2); |