Enable access to shutdown functions when configured with --disable-gui option

This commit is contained in:
Chocobo1 2016-04-16 13:50:41 +08:00
parent a1e0fa5509
commit fbc002f212
4 changed files with 8 additions and 9 deletions

View file

@ -67,8 +67,9 @@ namespace Utils
QString parseHtmlLinks(const QString &raw_text);
bool isUrl(const QString &s);
#ifndef DISABLE_GUI
void shutdownComputer(const ShutdownDialogAction &action);
#ifndef DISABLE_GUI
// Get screen center
QPoint screenCenter(QWidget *win);
QSize smallIconSize();