Bitcoin Core  24.99.0
P2P Digital Currency
transactionoverviewwidget.cpp
Go to the documentation of this file.
1 // Copyright (c) 2021 The Bitcoin Core developers
2 // Distributed under the MIT software license, see the accompanying
3 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
4 
6 
8 
9 #include <QListView>
10 #include <QSize>
11 #include <QSizePolicy>
12 
14  : QListView(parent) {}
15 
17 {
18  return {sizeHintForColumn(TransactionTableModel::ToAddress), QListView::sizeHint().height()};
19 }
20 
21 void TransactionOverviewWidget::showEvent(QShowEvent* event)
22 {
23  Q_UNUSED(event);
24  QSizePolicy sp = sizePolicy();
25  sp.setHorizontalPolicy(QSizePolicy::Minimum);
26  setSizePolicy(sp);
27 }
void showEvent(QShowEvent *event) override
TransactionOverviewWidget(QWidget *parent=nullptr)