Bitcoin Core
28.99.0
P2P Digital Currency
src
qt
transactionoverviewwidget.cpp
Go to the documentation of this file.
1
// Copyright (c) 2021-2022 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
5
#include <
qt/transactionoverviewwidget.h
>
6
7
#include <
qt/transactiontablemodel.h
>
8
9
#include <QListView>
10
#include <QSize>
11
#include <QSizePolicy>
12
13
TransactionOverviewWidget::TransactionOverviewWidget
(QWidget* parent)
14
: QListView(parent) {}
15
16
QSize
TransactionOverviewWidget::sizeHint
()
const
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
}
TransactionOverviewWidget::showEvent
void showEvent(QShowEvent *event) override
Definition:
transactionoverviewwidget.cpp:21
TransactionOverviewWidget::TransactionOverviewWidget
TransactionOverviewWidget(QWidget *parent=nullptr)
Definition:
transactionoverviewwidget.cpp:13
TransactionOverviewWidget::sizeHint
QSize sizeHint() const override
Definition:
transactionoverviewwidget.cpp:16
TransactionTableModel::ToAddress
@ ToAddress
Definition:
transactiontablemodel.h:39
transactionoverviewwidget.h
transactiontablemodel.h
Generated on Wed Dec 18 2024 20:00:11 for Bitcoin Core by
1.9.4