[PC-BSD Commits] r18457 - pcbsd-projects/PCDM

svn at pcbsd.org svn at pcbsd.org
Thu Aug 16 06:21:26 PDT 2012


Author: kenmoore
Date: 2012-08-16 13:21:25 +0000 (Thu, 16 Aug 2012)
New Revision: 18457

Modified:
   pcbsd-projects/PCDM/pcdm-gui.cpp
Log:
Setup PCDM so that hitting ESC will bring up the shutdown dialog. This allows all the main functions to now be controlled with the keyboard alone.



Modified: pcbsd-projects/PCDM/pcdm-gui.cpp
===================================================================
--- pcbsd-projects/PCDM/pcdm-gui.cpp	2012-08-16 09:17:31 UTC (rev 18456)
+++ pcbsd-projects/PCDM/pcdm-gui.cpp	2012-08-16 13:21:25 UTC (rev 18457)
@@ -119,8 +119,9 @@
                       Theme::objectLocationColumn("user"), \
                       Theme::objectLocationRowSpan("user"), \
                       Theme::objectLocationColumnSpan("user"), Qt::AlignCenter);
-    //Connect the login button to the appripriate slot
+    //Connect the signals/slots
     connect(loginW,SIGNAL(loginRequested(QString,QString)),this,SLOT(slotStartLogin(QString,QString)));
+    connect(loginW,SIGNAL(escapePressed()),this,SLOT(slotShutdownComputer()));
     
     /*
     //----Username Input collection



More information about the Commits mailing list