qt: Avoid potential -Wdeprecated-enum-enum-conversion warning

This commit is contained in:
Hennadii Stepanov 2022-03-21 11:14:20 +01:00
parent d8641f04e4
commit acd98adaf1
No known key found for this signature in database
GPG key ID: 410108112E7EA81F

View file

@ -550,7 +550,7 @@ void TransactionView::openThirdPartyTxUrl(QString url)
QWidget *TransactionView::createDateRangeWidget()
{
dateRangeWidget = new QFrame();
dateRangeWidget->setFrameStyle(QFrame::Panel | QFrame::Raised);
dateRangeWidget->setFrameStyle(static_cast<int>(QFrame::Panel) | static_cast<int>(QFrame::Raised));
dateRangeWidget->setContentsMargins(1,1,1,1);
QHBoxLayout *layout = new QHBoxLayout(dateRangeWidget);
layout->setContentsMargins(0,0,0,0);