Skip to content

Commit

Permalink
[Qt] style-police, add missing license headers
Browse files Browse the repository at this point in the history
- add missing license headers in Mac files
- small code formating cleanups
  • Loading branch information
Philip Kaufmann committed Dec 17, 2013
1 parent 3743b80 commit 6c1bf19
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 10 deletions.
6 changes: 4 additions & 2 deletions src/qt/bitcoinamountfield.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down
5 changes: 4 additions & 1 deletion src/qt/editaddressdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
8 changes: 6 additions & 2 deletions src/qt/macdockiconhandler.mm
Original file line number Diff line number Diff line change
@@ -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>
Expand Down
4 changes: 4 additions & 0 deletions src/qt/macnotificationhandler.mm
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 1 addition & 0 deletions src/qt/receivecoinsdialog.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ namespace Ui {
}
class WalletModel;
class OptionsModel;

QT_BEGIN_NAMESPACE
class QModelIndex;
QT_END_NAMESPACE
Expand Down
2 changes: 1 addition & 1 deletion src/qt/walletmodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/qt/walletmodel.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@

class AddressTableModel;
class OptionsModel;
class TransactionTableModel;
class RecentRequestsTableModel;
class TransactionTableModel;
class WalletModelTransaction;

class CCoinControl;
Expand Down
3 changes: 0 additions & 3 deletions src/qt/walletmodeltransaction.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,6 @@ class WalletModelTransaction
CWalletTx *walletTransaction;
CReserveKey *keyChange;
qint64 fee;

public slots:

};

#endif // WALLETMODELTRANSACTION_H

0 comments on commit 6c1bf19

Please sign in to comment.