diff options
| author | Wladimir J. van der Laan <[email protected]> | 2011-06-07 18:59:01 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2011-06-07 18:59:01 +0200 |
| commit | 8e86dca256624d76022be3b461b736dfc1f87625 (patch) | |
| tree | 96bc89eaca145fff87bbda6a9c4fd4984cb61c51 /gui/src/addresstablemodel.cpp | |
| parent | align "amount" input in send coins dialog to the right (diff) | |
| download | discoin-8e86dca256624d76022be3b461b736dfc1f87625.tar.xz discoin-8e86dca256624d76022be3b461b736dfc1f87625.zip | |
consistent bracing style
Diffstat (limited to 'gui/src/addresstablemodel.cpp')
| -rw-r--r-- | gui/src/addresstablemodel.cpp | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/gui/src/addresstablemodel.cpp b/gui/src/addresstablemodel.cpp index 1cbc1b5d1..91b87fb7f 100644 --- a/gui/src/addresstablemodel.cpp +++ b/gui/src/addresstablemodel.cpp @@ -58,7 +58,9 @@ struct AddressTablePriv if(idx >= 0 && idx < cachedAddressTable.size()) { return &cachedAddressTable[idx]; - } else { + } + else + { return 0; } } @@ -105,13 +107,15 @@ QVariant AddressTableModel::data(const QModelIndex &index, int role) const case Address: return rec->address; } - } else if (role == Qt::FontRole) + } + else if (role == Qt::FontRole) { if(index.column() == Address) { return GUIUtil::bitcoinAddressFont(); } - } else if (role == TypeRole) + } + else if (role == TypeRole) { switch(rec->type) { @@ -178,7 +182,9 @@ QModelIndex AddressTableModel::index(int row, int column, const QModelIndex & pa if(data) { return createIndex(row, column, priv->index(row)); - } else { + } + else + { return QModelIndex(); } } @@ -206,11 +212,13 @@ QString AddressTableModel::addRow(const QString &type, const QString &label, con return QString(); } } - } else if(type == Receive) + } + else if(type == Receive) { /* Generate a new address to associate with given label */ strAddress = PubKeyToAddress(GetKeyFromKeyPool()); - } else + } + else { return QString(); } |