Browse Source

Merge pull request #4852

5e83bc4 [Qt] include and file header cleanup (Philip Kaufmann)
0.10
Wladimir J. van der Laan 10 years ago
parent
commit
565da68ed0
No known key found for this signature in database
GPG Key ID: 74810B012346C9A6
  1. 5
      src/qt/bitcoin.cpp
  2. 4
      src/qt/bitcoinamountfield.h
  3. 5
      src/qt/bitcoingui.cpp
  4. 8
      src/qt/coincontroldialog.h
  5. 2
      src/qt/optionsdialog.cpp
  6. 1
      src/qt/optionsmodel.cpp
  7. 1
      src/qt/paymentrequestplus.cpp
  8. 7
      src/qt/receivecoinsdialog.h
  9. 4
      src/qt/rpcconsole.cpp
  10. 8
      src/qt/rpcconsole.h
  11. 8
      src/qt/sendcoinsdialog.h
  12. 3
      src/qt/splashscreen.cpp
  13. 4
      src/qt/transactiondesc.cpp

5
src/qt/bitcoin.cpp

@ -16,6 +16,7 @@
#include "splashscreen.h" #include "splashscreen.h"
#include "utilitydialog.h" #include "utilitydialog.h"
#include "winshutdownmonitor.h" #include "winshutdownmonitor.h"
#ifdef ENABLE_WALLET #ifdef ENABLE_WALLET
#include "paymentserver.h" #include "paymentserver.h"
#include "walletmodel.h" #include "walletmodel.h"
@ -26,6 +27,7 @@
#include "rpcserver.h" #include "rpcserver.h"
#include "ui_interface.h" #include "ui_interface.h"
#include "util.h" #include "util.h"
#ifdef ENABLE_WALLET #ifdef ENABLE_WALLET
#include "wallet.h" #include "wallet.h"
#endif #endif
@ -34,15 +36,16 @@
#include <boost/filesystem/operations.hpp> #include <boost/filesystem/operations.hpp>
#include <boost/thread.hpp> #include <boost/thread.hpp>
#include <QApplication> #include <QApplication>
#include <QDebug> #include <QDebug>
#include <QLibraryInfo> #include <QLibraryInfo>
#include <QLocale> #include <QLocale>
#include <QMessageBox> #include <QMessageBox>
#include <QSettings> #include <QSettings>
#include <QThread>
#include <QTimer> #include <QTimer>
#include <QTranslator> #include <QTranslator>
#include <QThread>
#if defined(QT_STATICPLUGIN) #if defined(QT_STATICPLUGIN)
#include <QtPlugin> #include <QtPlugin>

4
src/qt/bitcoinamountfield.h

@ -7,12 +7,12 @@
#include <QWidget> #include <QWidget>
class AmountSpinBox;
QT_BEGIN_NAMESPACE QT_BEGIN_NAMESPACE
class QValueComboBox; class QValueComboBox;
QT_END_NAMESPACE QT_END_NAMESPACE
class AmountSpinBox;
/** Widget for entering bitcoin amounts. /** Widget for entering bitcoin amounts.
*/ */
class BitcoinAmountField: public QWidget class BitcoinAmountField: public QWidget

5
src/qt/bitcoingui.cpp

@ -14,6 +14,7 @@
#include "optionsmodel.h" #include "optionsmodel.h"
#include "rpcconsole.h" #include "rpcconsole.h"
#include "utilitydialog.h" #include "utilitydialog.h"
#ifdef ENABLE_WALLET #ifdef ENABLE_WALLET
#include "walletframe.h" #include "walletframe.h"
#include "walletmodel.h" #include "walletmodel.h"
@ -24,8 +25,8 @@
#endif #endif
#include "init.h" #include "init.h"
#include "util.h"
#include "ui_interface.h" #include "ui_interface.h"
#include "util.h"
#include <iostream> #include <iostream>
@ -50,8 +51,8 @@
#include <QVBoxLayout> #include <QVBoxLayout>
#if QT_VERSION < 0x050000 #if QT_VERSION < 0x050000
#include <QUrl>
#include <QTextDocument> #include <QTextDocument>
#include <QUrl>
#else #else
#include <QUrlQuery> #include <QUrlQuery>
#endif #endif

8
src/qt/coincontroldialog.h

@ -14,13 +14,15 @@
#include <QString> #include <QString>
#include <QTreeWidgetItem> #include <QTreeWidgetItem>
namespace Ui {
class CoinControlDialog;
}
class WalletModel; class WalletModel;
class CCoinControl; class CCoinControl;
class CTxMemPool; class CTxMemPool;
namespace Ui {
class CoinControlDialog;
}
class CoinControlDialog : public QDialog class CoinControlDialog : public QDialog
{ {
Q_OBJECT Q_OBJECT

2
src/qt/optionsdialog.cpp

@ -17,11 +17,13 @@
#include "main.h" // for MAX_SCRIPTCHECK_THREADS #include "main.h" // for MAX_SCRIPTCHECK_THREADS
#include "netbase.h" #include "netbase.h"
#include "txdb.h" // for -dbcache defaults #include "txdb.h" // for -dbcache defaults
#ifdef ENABLE_WALLET #ifdef ENABLE_WALLET
#include "wallet.h" // for CWallet::minTxFee #include "wallet.h" // for CWallet::minTxFee
#endif #endif
#include <boost/thread.hpp> #include <boost/thread.hpp>
#include <QDir> #include <QDir>
#include <QIntValidator> #include <QIntValidator>
#include <QLocale> #include <QLocale>

1
src/qt/optionsmodel.cpp

@ -15,6 +15,7 @@
#include "main.h" #include "main.h"
#include "net.h" #include "net.h"
#include "txdb.h" // for -dbcache defaults #include "txdb.h" // for -dbcache defaults
#ifdef ENABLE_WALLET #ifdef ENABLE_WALLET
#include "wallet.h" #include "wallet.h"
#include "walletdb.h" #include "walletdb.h"

1
src/qt/paymentrequestplus.cpp

@ -13,6 +13,7 @@
#include <openssl/x509.h> #include <openssl/x509.h>
#include <openssl/x509_vfy.h> #include <openssl/x509_vfy.h>
#include <QDateTime> #include <QDateTime>
#include <QDebug> #include <QDebug>
#include <QSslCertificate> #include <QSslCertificate>

7
src/qt/receivecoinsdialog.h

@ -5,6 +5,8 @@
#ifndef RECEIVECOINSDIALOG_H #ifndef RECEIVECOINSDIALOG_H
#define RECEIVECOINSDIALOG_H #define RECEIVECOINSDIALOG_H
#include "guiutil.h"
#include <QDialog> #include <QDialog>
#include <QHeaderView> #include <QHeaderView>
#include <QItemSelection> #include <QItemSelection>
@ -13,13 +15,12 @@
#include <QPoint> #include <QPoint>
#include <QVariant> #include <QVariant>
#include "guiutil.h" class OptionsModel;
class WalletModel;
namespace Ui { namespace Ui {
class ReceiveCoinsDialog; class ReceiveCoinsDialog;
} }
class OptionsModel;
class WalletModel;
QT_BEGIN_NAMESPACE QT_BEGIN_NAMESPACE
class QModelIndex; class QModelIndex;

4
src/qt/rpcconsole.cpp

@ -16,10 +16,12 @@
#include "util.h" #include "util.h"
#include "json/json_spirit_value.h" #include "json/json_spirit_value.h"
#include <openssl/crypto.h>
#ifdef ENABLE_WALLET #ifdef ENABLE_WALLET
#include <db_cxx.h> #include <db_cxx.h>
#endif #endif
#include <openssl/crypto.h>
#include <QKeyEvent> #include <QKeyEvent>
#include <QScrollBar> #include <QScrollBar>

8
src/qt/rpcconsole.h

@ -14,14 +14,14 @@
class ClientModel; class ClientModel;
QT_BEGIN_NAMESPACE
class QItemSelection;
QT_END_NAMESPACE
namespace Ui { namespace Ui {
class RPCConsole; class RPCConsole;
} }
QT_BEGIN_NAMESPACE
class QItemSelection;
QT_END_NAMESPACE
/** Local Bitcoin RPC console. */ /** Local Bitcoin RPC console. */
class RPCConsole: public QDialog class RPCConsole: public QDialog
{ {

8
src/qt/sendcoinsdialog.h

@ -14,14 +14,14 @@ class OptionsModel;
class SendCoinsEntry; class SendCoinsEntry;
class SendCoinsRecipient; class SendCoinsRecipient;
QT_BEGIN_NAMESPACE
class QUrl;
QT_END_NAMESPACE
namespace Ui { namespace Ui {
class SendCoinsDialog; class SendCoinsDialog;
} }
QT_BEGIN_NAMESPACE
class QUrl;
QT_END_NAMESPACE
/** Dialog for sending bitcoins */ /** Dialog for sending bitcoins */
class SendCoinsDialog : public QDialog class SendCoinsDialog : public QDialog
{ {

3
src/qt/splashscreen.cpp

@ -4,11 +4,12 @@
#include "splashscreen.h" #include "splashscreen.h"
#include "version.h"
#include "clientversion.h" #include "clientversion.h"
#include "init.h" #include "init.h"
#include "ui_interface.h" #include "ui_interface.h"
#include "util.h" #include "util.h"
#include "version.h"
#ifdef ENABLE_WALLET #ifdef ENABLE_WALLET
#include "wallet.h" #include "wallet.h"
#endif #endif

4
src/qt/transactiondesc.cpp

@ -6,13 +6,13 @@
#include "bitcoinunits.h" #include "bitcoinunits.h"
#include "guiutil.h" #include "guiutil.h"
#include "paymentserver.h"
#include "transactionrecord.h"
#include "base58.h" #include "base58.h"
#include "db.h" #include "db.h"
#include "main.h" #include "main.h"
#include "paymentserver.h"
#include "script/script.h" #include "script/script.h"
#include "transactionrecord.h"
#include "timedata.h" #include "timedata.h"
#include "ui_interface.h" #include "ui_interface.h"
#include "util.h" #include "util.h"

Loading…
Cancel
Save