|
|
|
@ -37,8 +37,8 @@
|
|
|
|
|
#include <QUrl>
|
|
|
|
|
#include <QVBoxLayout>
|
|
|
|
|
|
|
|
|
|
TransactionView::TransactionView(const PlatformStyle *platformStyle, QWidget *parent) :
|
|
|
|
|
QWidget(parent)
|
|
|
|
|
TransactionView::TransactionView(const PlatformStyle *platformStyle, QWidget *parent)
|
|
|
|
|
: QWidget(parent), m_platform_style{platformStyle}
|
|
|
|
|
{
|
|
|
|
|
// Build filter row
|
|
|
|
|
setContentsMargins(0,0,0,0);
|
|
|
|
@ -243,6 +243,20 @@ void TransactionView::setModel(WalletModel *_model)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void TransactionView::changeEvent(QEvent* e)
|
|
|
|
|
{
|
|
|
|
|
#ifdef Q_OS_MACOS
|
|
|
|
|
if (e->type() == QEvent::PaletteChange) {
|
|
|
|
|
watchOnlyWidget->setItemIcon(
|
|
|
|
|
TransactionFilterProxy::WatchOnlyFilter_Yes,
|
|
|
|
|
m_platform_style->SingleColorIcon(QStringLiteral(":/icons/eye_plus")));
|
|
|
|
|
watchOnlyWidget->setItemIcon(
|
|
|
|
|
TransactionFilterProxy::WatchOnlyFilter_No,
|
|
|
|
|
m_platform_style->SingleColorIcon(QStringLiteral(":/icons/eye_minus")));
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void TransactionView::chooseDate(int idx)
|
|
|
|
|
{
|
|
|
|
|
if (!transactionProxyModel) return;
|
|
|
|
|