Browse Source

[Qt] style-police, add missing license headers

- add missing license headers in Mac files
- small code formating cleanups
0.10
Philip Kaufmann 11 years ago
parent
commit
6c1bf199ca
  1. 6
      src/qt/bitcoinamountfield.cpp
  2. 5
      src/qt/editaddressdialog.cpp
  3. 8
      src/qt/macdockiconhandler.mm
  4. 4
      src/qt/macnotificationhandler.mm
  5. 1
      src/qt/receivecoinsdialog.h
  6. 2
      src/qt/walletmodel.cpp
  7. 2
      src/qt/walletmodel.h
  8. 3
      src/qt/walletmodeltransaction.h

6
src/qt/bitcoinamountfield.cpp

@ -14,8 +14,10 @@ @@ -14,8 +14,10 @@
#include <QKeyEvent>
#include <qmath.h> // for qPow()
BitcoinAmountField::BitcoinAmountField(QWidget *parent):
QWidget(parent), amount(0), currentUnit(-1)
BitcoinAmountField::BitcoinAmountField(QWidget *parent) :
QWidget(parent),
amount(0),
currentUnit(-1)
{
amount = new QDoubleSpinBox(this);
amount->setLocale(QLocale::c());

5
src/qt/editaddressdialog.cpp

@ -13,7 +13,10 @@ @@ -13,7 +13,10 @@
EditAddressDialog::EditAddressDialog(Mode mode, QWidget *parent) :
QDialog(parent),
ui(new Ui::EditAddressDialog), mapper(0), mode(mode), model(0)
ui(new Ui::EditAddressDialog),
mapper(0),
mode(mode),
model(0)
{
ui->setupUi(this);

8
src/qt/macdockiconhandler.mm

@ -1,9 +1,13 @@ @@ -1,9 +1,13 @@
// Copyright (c) 2011-2013 The Bitcoin Core developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "macdockiconhandler.h"
#include <QImageWriter>
#include <QMenu>
#include <QWidget>
#include <QTemporaryFile>
#include <QImageWriter>
#include <QWidget>
#undef slots
#include <Cocoa/Cocoa.h>

4
src/qt/macnotificationhandler.mm

@ -1,3 +1,7 @@ @@ -1,3 +1,7 @@
// Copyright (c) 2011-2013 The Bitcoin Core developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "macnotificationhandler.h"
#undef slots

1
src/qt/receivecoinsdialog.h

@ -13,6 +13,7 @@ namespace Ui { @@ -13,6 +13,7 @@ namespace Ui {
}
class WalletModel;
class OptionsModel;
QT_BEGIN_NAMESPACE
class QModelIndex;
QT_END_NAMESPACE

2
src/qt/walletmodel.cpp

@ -6,8 +6,8 @@ @@ -6,8 +6,8 @@
#include "addresstablemodel.h"
#include "guiconstants.h"
#include "transactiontablemodel.h"
#include "recentrequeststablemodel.h"
#include "transactiontablemodel.h"
#include "base58.h"
#include "db.h"

2
src/qt/walletmodel.h

@ -17,8 +17,8 @@ @@ -17,8 +17,8 @@
class AddressTableModel;
class OptionsModel;
class TransactionTableModel;
class RecentRequestsTableModel;
class TransactionTableModel;
class WalletModelTransaction;
class CCoinControl;

3
src/qt/walletmodeltransaction.h

@ -39,9 +39,6 @@ private: @@ -39,9 +39,6 @@ private:
CWalletTx *walletTransaction;
CReserveKey *keyChange;
qint64 fee;
public slots:
};
#endif // WALLETMODELTRANSACTION_H

Loading…
Cancel
Save