From 1099a5006f5d0719dcf0145eab6669f7f74e4669 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Mon, 11 Apr 2016 16:00:09 +0800 Subject: [PATCH] Cleanup header include Code formatting --- src/gui/shutdownconfirm.cpp | 13 +++++-------- src/gui/shutdownconfirm.h | 7 ++----- 2 files changed, 7 insertions(+), 13 deletions(-) diff --git a/src/gui/shutdownconfirm.cpp b/src/gui/shutdownconfirm.cpp index d5025e1f4..99a90af59 100644 --- a/src/gui/shutdownconfirm.cpp +++ b/src/gui/shutdownconfirm.cpp @@ -30,20 +30,17 @@ * Contact : hammered999@gmail.com */ -#include -#include +#include "shutdownconfirm.h" +#include "ui_confirmshutdowndlg.h" + #include #include -#include #include -#include #include #include "base/preferences.h" -#include "base/types.h" +#include "base/utils/misc.h" -#include "shutdownconfirm.h" -#include "ui_confirmshutdowndlg.h" ShutdownConfirmDlg::ShutdownConfirmDlg(const ShutdownAction &action) : ui(new Ui::confirmShutdownDlg) @@ -67,7 +64,7 @@ ShutdownConfirmDlg::ShutdownConfirmDlg(const ShutdownAction &action) cancelButton->setFocus(); cancelButton->setDefault(true); // Always on top - setWindowFlags(windowFlags()|Qt::WindowStaysOnTopHint); + setWindowFlags(windowFlags() | Qt::WindowStaysOnTopHint); m_timer.setInterval(1000); // 1sec connect(&m_timer, SIGNAL(timeout()), this, SLOT(updateSeconds())); // Move to center diff --git a/src/gui/shutdownconfirm.h b/src/gui/shutdownconfirm.h index 6b2f0ae04..31ff3096b 100644 --- a/src/gui/shutdownconfirm.h +++ b/src/gui/shutdownconfirm.h @@ -33,17 +33,14 @@ #include #include -#include "base/utils/misc.h" - -class QLabel; -class QCheckBox; +#include "base/types.h" namespace Ui { class confirmShutdownDlg; } -class ShutdownConfirmDlg : public QDialog +class ShutdownConfirmDlg: public QDialog { Q_OBJECT