Download Documents:
Transcript
This slot makes starts an e x t e r n a l process to halt the system .
\ verbatim
s h u t d o w n -h now
\ endverbatim
*/
void optionsDialog :: o n _ s h u t d o w n B u t t o n _ c l i c k e d ()
{
QProcess :: execute ( " shutdown -h now " ) ;
}
/* *
@brief open a b o u t D i a l o g .
This slot opens the an " About " dialog .
*/
void optionsDialog :: o n _ a b o u t B u t t o n _ c l i c k e d ()
{
about = new aboutDialog () ;
about - > exec () ;
delete about ;
}
/* *
@brief exit o p t i o n s D i a l o g .
This slot closes d e s t r o y s current " options " dialog .
*/
void optionsDialog :: o n _ c l o s e B u t t o n _ c l i c k e d ()
{
this - > close () ;
}
/* ** end of file * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
52