diff options
author | Philip Kaufmann <phil.kaufmann@t-online.de> | 2013-11-16 17:37:31 +0100 |
---|---|---|
committer | Philip Kaufmann <phil.kaufmann@t-online.de> | 2013-11-18 08:16:12 +0100 |
commit | 0689f46cc7f0939c0b52560954a3a210cbad053a (patch) | |
tree | 30573c57db7f03d72c8a475f6cff4c6fd0e163cf /src/qt/coincontroldialog.cpp | |
parent | af6e093f062548d850b6eb510240aeb1ff24e2a3 (diff) |
Coincontrol cleanup (e.g. add missing license)
- add missing license headers
- make compatible with Qt5
- enforce header cleanup style
- small code style cleanups
- rename Coin Control dialog into Coin Control Address Selection
- use default font for the windows labels (no monospace)
Diffstat (limited to 'src/qt/coincontroldialog.cpp')
-rw-r--r-- | src/qt/coincontroldialog.cpp | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/src/qt/coincontroldialog.cpp b/src/qt/coincontroldialog.cpp index 58f5113453..4ecc040bfb 100644 --- a/src/qt/coincontroldialog.cpp +++ b/src/qt/coincontroldialog.cpp @@ -1,19 +1,23 @@ +// Copyright (c) 2011-2013 The Bitcoin developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. + #include "coincontroldialog.h" #include "ui_coincontroldialog.h" -#include "init.h" -#include "bitcoinunits.h" -#include "walletmodel.h" #include "addresstablemodel.h" -#include "optionsmodel.h" +#include "bitcoinunits.h" #include "guiutil.h" +#include "init.h" +#include "optionsmodel.h" +#include "walletmodel.h" + #include "coincontrol.h" #include "main.h" #include "wallet.h" #include <QApplication> #include <QCheckBox> -#include <QClipboard> #include <QColor> #include <QCursor> #include <QDateTime> @@ -98,7 +102,11 @@ CoinControlDialog::CoinControlDialog(QWidget *parent) : connect(ui->treeWidget, SIGNAL(itemChanged( QTreeWidgetItem*, int)), this, SLOT(viewItemChanged( QTreeWidgetItem*, int))); // click on header +#if QT_VERSION < 0x050000 ui->treeWidget->header()->setClickable(true); +#else + ui->treeWidget->header()->setSectionsClickable(true); +#endif connect(ui->treeWidget->header(), SIGNAL(sectionClicked(int)), this, SLOT(headerSectionClicked(int))); // ok button |