mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-29 20:47:31 -03:00
28 lines
779 B
C++
28 lines
779 B
C++
|
// Copyright (c) 2021 The Bitcoin Core developers
|
||
|
// Distributed under the MIT software license, see the accompanying
|
||
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||
|
|
||
|
#include <qt/transactionoverviewwidget.h>
|
||
|
|
||
|
#include <qt/transactiontablemodel.h>
|
||
|
|
||
|
#include <QListView>
|
||
|
#include <QSize>
|
||
|
#include <QSizePolicy>
|
||
|
|
||
|
TransactionOverviewWidget::TransactionOverviewWidget(QWidget* parent)
|
||
|
: QListView(parent) {}
|
||
|
|
||
|
QSize TransactionOverviewWidget::sizeHint() const
|
||
|
{
|
||
|
return {sizeHintForColumn(TransactionTableModel::ToAddress), QListView::sizeHint().height()};
|
||
|
}
|
||
|
|
||
|
void TransactionOverviewWidget::showEvent(QShowEvent* event)
|
||
|
{
|
||
|
Q_UNUSED(event);
|
||
|
QSizePolicy sp = sizePolicy();
|
||
|
sp.setHorizontalPolicy(QSizePolicy::Minimum);
|
||
|
setSizePolicy(sp);
|
||
|
}
|