Browse Source

Cleanup header include

Code formatting
adaptive-webui-19844
Chocobo1 9 years ago
parent
commit
1099a5006f
  1. 13
      src/gui/shutdownconfirm.cpp
  2. 7
      src/gui/shutdownconfirm.h

13
src/gui/shutdownconfirm.cpp

@ -30,20 +30,17 @@
* Contact : hammered999@gmail.com * Contact : hammered999@gmail.com
*/ */
#include <QVBoxLayout> #include "shutdownconfirm.h"
#include <QHBoxLayout> #include "ui_confirmshutdowndlg.h"
#include <QStyle> #include <QStyle>
#include <QIcon> #include <QIcon>
#include <QLabel>
#include <QDialogButtonBox> #include <QDialogButtonBox>
#include <QCheckBox>
#include <QPushButton> #include <QPushButton>
#include "base/preferences.h" #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) ShutdownConfirmDlg::ShutdownConfirmDlg(const ShutdownAction &action)
: ui(new Ui::confirmShutdownDlg) : ui(new Ui::confirmShutdownDlg)
@ -67,7 +64,7 @@ ShutdownConfirmDlg::ShutdownConfirmDlg(const ShutdownAction &action)
cancelButton->setFocus(); cancelButton->setFocus();
cancelButton->setDefault(true); cancelButton->setDefault(true);
// Always on top // Always on top
setWindowFlags(windowFlags()|Qt::WindowStaysOnTopHint); setWindowFlags(windowFlags() | Qt::WindowStaysOnTopHint);
m_timer.setInterval(1000); // 1sec m_timer.setInterval(1000); // 1sec
connect(&m_timer, SIGNAL(timeout()), this, SLOT(updateSeconds())); connect(&m_timer, SIGNAL(timeout()), this, SLOT(updateSeconds()));
// Move to center // Move to center

7
src/gui/shutdownconfirm.h

@ -33,17 +33,14 @@
#include <QDialog> #include <QDialog>
#include <QTimer> #include <QTimer>
#include "base/utils/misc.h" #include "base/types.h"
class QLabel;
class QCheckBox;
namespace Ui namespace Ui
{ {
class confirmShutdownDlg; class confirmShutdownDlg;
} }
class ShutdownConfirmDlg : public QDialog class ShutdownConfirmDlg: public QDialog
{ {
Q_OBJECT Q_OBJECT

Loading…
Cancel
Save