From 0689f46cc7f0939c0b52560954a3a210cbad053a Mon Sep 17 00:00:00 2001 From: Philip Kaufmann Date: Sat, 16 Nov 2013 17:37:31 +0100 Subject: 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) --- src/qt/coincontroldialog.cpp | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) (limited to 'src/qt/coincontroldialog.cpp') 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 #include -#include #include #include #include @@ -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 -- cgit v1.2.3