mirror of
https://github.com/dashpay/dash.git
synced 2024-12-28 13:32:47 +01:00
Merge #7939: qt: Make it possible to show details for multiple transactions
f135e3c
qt: Add transaction hash to details window title (Wladimir J. van der Laan)17a6a21
qt: Make it possible to show details for multiple transactions (Wladimir J. van der Laan)
This commit is contained in:
commit
574ddc63d6
@ -11,7 +11,7 @@
|
|||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
<string>Transaction details</string>
|
<string notr="true">Transaction details</string>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout">
|
<layout class="QVBoxLayout" name="verticalLayout">
|
||||||
<item>
|
<item>
|
||||||
|
@ -14,6 +14,7 @@ TransactionDescDialog::TransactionDescDialog(const QModelIndex &idx, QWidget *pa
|
|||||||
ui(new Ui::TransactionDescDialog)
|
ui(new Ui::TransactionDescDialog)
|
||||||
{
|
{
|
||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
|
setWindowTitle(tr("Details for %1").arg(idx.data(TransactionTableModel::TxIDRole).toString()));
|
||||||
QString desc = idx.data(TransactionTableModel::LongDescriptionRole).toString();
|
QString desc = idx.data(TransactionTableModel::LongDescriptionRole).toString();
|
||||||
ui->detailText->setHtml(desc);
|
ui->detailText->setHtml(desc);
|
||||||
}
|
}
|
||||||
|
@ -478,8 +478,9 @@ void TransactionView::showDetails()
|
|||||||
QModelIndexList selection = transactionView->selectionModel()->selectedRows();
|
QModelIndexList selection = transactionView->selectionModel()->selectedRows();
|
||||||
if(!selection.isEmpty())
|
if(!selection.isEmpty())
|
||||||
{
|
{
|
||||||
TransactionDescDialog dlg(selection.at(0));
|
TransactionDescDialog *dlg = new TransactionDescDialog(selection.at(0));
|
||||||
dlg.exec();
|
dlg->setAttribute(Qt::WA_DeleteOnClose);
|
||||||
|
dlg->show();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user