fix issue #5716
Reproduce this bug on Windows:
- Simple compile bitcoin with Qt 4.8.6
Works for me. NIT: would it be possible to use a better commit and push-request title? Keep the "fix issue #5716" as message but use a different title. ACK when fixing the NIT.
Tested with gitian build: https://bitcoin.jonasschnelli.ch/pulls/5720/
After the pull it looks like:

@jonasschnelli Sorry, but how to change commit title?
@fsb4000 is very easy. Check: http://stackoverflow.com/questions/179123/edit-an-incorrect-commit-message-in-git
Then do a --force push afterwards. something like git push <repo> master:patch-3 --force (or similar, didn't try)
@jonasschnelli Ty, It seems I did it
C:\GitHub\bitcoin>git commit -a --amend -m "Change Coin Control first column label"
[patch-3 2d63205] Change Coin Control first column label
1 file changed, 2 insertions(+)
C:\GitHub\bitcoin>git push --force
Counting objects: 1, done.
Writing objects: 100% (1/1), 204 bytes | 0 bytes/s, done.
Total 1 (delta 0), reused 0 (delta 0)
To https://github.com/fsb4000/bitcoin.git
+ 502f592...2d63205 patch-3 -> patch-3 (forced update)
C:\GitHub\bitcoin>
ACK.
ACK
116 | @@ -117,6 +117,8 @@ CoinControlDialog::CoinControlDialog(QWidget *parent) : 117 | // (un)select all 118 | connect(ui->pushButtonSelectAll, SIGNAL(clicked()), this, SLOT(buttonSelectAllClicked())); 119 | 120 | + ui->treeWidget->headerItem()->setText(COLUMN_CHECKBOX, QString());
little nit: wouldn't it be good to add a comment above this line saying that this is a workaround added because of a Qt4 bug? Maybe in far future we once drop Qt4 support and should remove such "hacks"
little nit: wouldn't it be good to add a comment above this line saying that this is a workaround added because of a Qt4 bug? Maybe in far future we once drop Qt4 support and should remove such "hacks"
done
ReACK.
@fsb4000 mind taking deeper look in the reason why there is a "1" as table header string by default? This could be a symptom of a deeper bug.
I found out the reason for the numbers: by default, the table widget is a spreadsheet-like widget which numbers the columns. If you set a title for a column, it overrides the number.
Interestingly, it doesn't seem possible to get this same change through the uic (e.g. by changing coincontroldialog.ui). We set an empty string there but no code is generated for that in ui_coincontroldialog.h!
@laanwj cool. I'm too late :(
Anyway I did simple Qt app with only one Widget: CoinControl
https://yadi.sk/d/DZ1vVPBKeKG7o
It looks like:
So laanwj is right, not only first but all columns are numbered in Qt4