Skip to content

Commit

Permalink
Merge pull request #4852
Browse files Browse the repository at this point in the history
5e83bc4 [Qt] include and file header cleanup (Philip Kaufmann)
  • Loading branch information
laanwj committed Sep 22, 2014
2 parents 321fd7d + 5e83bc4 commit 565da68
Show file tree
Hide file tree
Showing 15 changed files with 39 additions and 25 deletions.
5 changes: 4 additions & 1 deletion src/qt/bitcoin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#include "splashscreen.h"
#include "utilitydialog.h"
#include "winshutdownmonitor.h"

#ifdef ENABLE_WALLET
#include "paymentserver.h"
#include "walletmodel.h"
Expand All @@ -26,6 +27,7 @@
#include "rpcserver.h"
#include "ui_interface.h"
#include "util.h"

#ifdef ENABLE_WALLET
#include "wallet.h"
#endif
Expand All @@ -34,15 +36,16 @@

#include <boost/filesystem/operations.hpp>
#include <boost/thread.hpp>

#include <QApplication>
#include <QDebug>
#include <QLibraryInfo>
#include <QLocale>
#include <QMessageBox>
#include <QSettings>
#include <QThread>
#include <QTimer>
#include <QTranslator>
#include <QThread>

#if defined(QT_STATICPLUGIN)
#include <QtPlugin>
Expand Down
4 changes: 2 additions & 2 deletions src/qt/bitcoinamountfield.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@

#include <QWidget>

class AmountSpinBox;

QT_BEGIN_NAMESPACE
class QValueComboBox;
QT_END_NAMESPACE

class AmountSpinBox;

/** Widget for entering bitcoin amounts.
*/
class BitcoinAmountField: public QWidget
Expand Down
5 changes: 3 additions & 2 deletions src/qt/bitcoingui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include "optionsmodel.h"
#include "rpcconsole.h"
#include "utilitydialog.h"

#ifdef ENABLE_WALLET
#include "walletframe.h"
#include "walletmodel.h"
Expand All @@ -24,8 +25,8 @@
#endif

#include "init.h"
#include "util.h"
#include "ui_interface.h"
#include "util.h"

#include <iostream>

Expand All @@ -50,8 +51,8 @@
#include <QVBoxLayout>

#if QT_VERSION < 0x050000
#include <QUrl>
#include <QTextDocument>
#include <QUrl>
#else
#include <QUrlQuery>
#endif
Expand Down
8 changes: 5 additions & 3 deletions src/qt/coincontroldialog.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,15 @@
#include <QString>
#include <QTreeWidgetItem>

namespace Ui {
class CoinControlDialog;
}
class WalletModel;

class CCoinControl;
class CTxMemPool;

namespace Ui {
class CoinControlDialog;
}

class CoinControlDialog : public QDialog
{
Q_OBJECT
Expand Down
2 changes: 1 addition & 1 deletion src/qt/intro.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
class FreespaceChecker;

namespace Ui {
class Intro;
class Intro;
}

/** Introduction screen (pre-GUI startup).
Expand Down
2 changes: 1 addition & 1 deletion src/qt/openuridialog.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include <QDialog>

namespace Ui {
class OpenURIDialog;
class OpenURIDialog;
}

class OpenURIDialog : public QDialog
Expand Down
2 changes: 2 additions & 0 deletions src/qt/optionsdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,13 @@
#include "main.h" // for MAX_SCRIPTCHECK_THREADS
#include "netbase.h"
#include "txdb.h" // for -dbcache defaults

#ifdef ENABLE_WALLET
#include "wallet.h" // for CWallet::minTxFee
#endif

#include <boost/thread.hpp>

#include <QDir>
#include <QIntValidator>
#include <QLocale>
Expand Down
1 change: 1 addition & 0 deletions src/qt/optionsmodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include "main.h"
#include "net.h"
#include "txdb.h" // for -dbcache defaults

#ifdef ENABLE_WALLET
#include "wallet.h"
#include "walletdb.h"
Expand Down
1 change: 1 addition & 0 deletions src/qt/paymentrequestplus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

#include <openssl/x509.h>
#include <openssl/x509_vfy.h>

#include <QDateTime>
#include <QDebug>
#include <QSslCertificate>
Expand Down
7 changes: 4 additions & 3 deletions src/qt/receivecoinsdialog.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
#ifndef RECEIVECOINSDIALOG_H
#define RECEIVECOINSDIALOG_H

#include "guiutil.h"

#include <QDialog>
#include <QHeaderView>
#include <QItemSelection>
Expand All @@ -13,13 +15,12 @@
#include <QPoint>
#include <QVariant>

#include "guiutil.h"
class OptionsModel;
class WalletModel;

namespace Ui {
class ReceiveCoinsDialog;
}
class OptionsModel;
class WalletModel;

QT_BEGIN_NAMESPACE
class QModelIndex;
Expand Down
4 changes: 3 additions & 1 deletion src/qt/rpcconsole.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,12 @@
#include "util.h"

#include "json/json_spirit_value.h"

#include <openssl/crypto.h>

#ifdef ENABLE_WALLET
#include <db_cxx.h>
#endif
#include <openssl/crypto.h>

#include <QKeyEvent>
#include <QScrollBar>
Expand Down
8 changes: 4 additions & 4 deletions src/qt/rpcconsole.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@

class ClientModel;

QT_BEGIN_NAMESPACE
class QItemSelection;
QT_END_NAMESPACE

namespace Ui {
class RPCConsole;
}

QT_BEGIN_NAMESPACE
class QItemSelection;
QT_END_NAMESPACE

/** Local Bitcoin RPC console. */
class RPCConsole: public QDialog
{
Expand Down
8 changes: 4 additions & 4 deletions src/qt/sendcoinsdialog.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ class OptionsModel;
class SendCoinsEntry;
class SendCoinsRecipient;

QT_BEGIN_NAMESPACE
class QUrl;
QT_END_NAMESPACE

namespace Ui {
class SendCoinsDialog;
}

QT_BEGIN_NAMESPACE
class QUrl;
QT_END_NAMESPACE

/** Dialog for sending bitcoins */
class SendCoinsDialog : public QDialog
{
Expand Down
3 changes: 2 additions & 1 deletion src/qt/splashscreen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@

#include "splashscreen.h"

#include "version.h"
#include "clientversion.h"
#include "init.h"
#include "ui_interface.h"
#include "util.h"
#include "version.h"

#ifdef ENABLE_WALLET
#include "wallet.h"
#endif
Expand Down
4 changes: 2 additions & 2 deletions src/qt/transactiondesc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@

#include "bitcoinunits.h"
#include "guiutil.h"
#include "paymentserver.h"
#include "transactionrecord.h"

#include "base58.h"
#include "db.h"
#include "main.h"
#include "paymentserver.h"
#include "script/script.h"
#include "transactionrecord.h"
#include "timedata.h"
#include "ui_interface.h"
#include "util.h"
Expand Down

0 comments on commit 565da68

Please sign in to comment.