aboutsummaryrefslogtreecommitdiff
path: root/lumina-desktop/SystemWindow.cpp
diff options
context:
space:
mode:
authorKen Moore <ken@pcbsd.org>2014-09-19 09:55:19 -0400
committerKen Moore <ken@pcbsd.org>2014-09-19 09:55:19 -0400
commit9a481058ac0f22a6ebbb21f8462c9a7cf438f6d8 (patch)
treee33f75ce2b041767c48c0a8c80e3f31ef956ef9b /lumina-desktop/SystemWindow.cpp
parentMake the jpg/png suffix check case-insensitive for showing thumbnail previews... (diff)
downloadlumina-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.cpp2
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);
bgstack15