qt: Make it possible to show details for multiple transactions#7939
qt: Make it possible to show details for multiple transactions#7939laanwj merged 2 commits intobitcoin:masterfrom
Conversation
A small GUI annoyance for me has always been that it's impossible to have multiple transaction detail windows open, for example to compare transactions. This patch makes the window non-modal so that it is possible to open transaction details at will.
1f3b3fd to
17a6a21
Compare
|
Nice! Also though about this. Thanks. utACK 1f3b3fd48bb6c5787893529862430bd77b2c7fb3 |
|
Another thing to consider here now may be to add some information to the window title. After all if there are multiple open it may be useful to distinguish them in taskbars etc. I'm not sure on what to add though; transaction id seems to be of limited usefulness. Maybe date/recipient/amount. |
|
Numbering the windows? |
|
Numbering doesn't seem more useful to me than just keeping them with the same window title. It needs to actually identify the transaction. |
|
What about the shortened transaction id (middle truncated). Something like |
|
Full tx ID. window manager/... will shorten it if needed (ie. Transaction details: tx_id). |
|
diff --git a/src/qt/transactionview.cpp b/src/qt/transactionview.cpp
index eb6111e..bfdd7a4 100644
--- a/src/qt/transactionview.cpp
+++ b/src/qt/transactionview.cpp
@@ -480,6 +480,7 @@ void TransactionView::showDetails()
{
TransactionDescDialog *dlg = new TransactionDescDialog(selection.at(0));
dlg->setAttribute(Qt::WA_DeleteOnClose);
+ dlg->setModal(false);
dlg->show();
}
} |
|
@jonasschnelli: Interesting, do you know why is this necessary specifically here, how about the other places where we use
(excluding the splash window and the shutdown window as they are special cases anyway) |
|
From the QDialog documentation: It's only Edit: screenshot looks good, I do think we should prefix the title |
|
Works OK here, even without |
|
Right. |
|
Using "Details for" instead of "Transaction Details" would not truncate the window title (at least on OSX). Tested ACK 17a6a21. |
|
Yes, Abbreviating to "Details for %s" makes sense, will do that, it was just that having the whole title hex was a bit too cypherpunk even for me :) |
b0aad40 to
f135e3c
Compare
|
Added a new commit that puts the tx id in the window title (as well as removes the old "Transaction details" translation string). |


A small GUI annoyance for me has always been that it's impossible to have multiple transaction detail windows open, for example to compare transactions.
This patch makes the window non-modal so that it is possible to open transaction details at will.