mirror of
https://github.com/wownero/wowlet.git
synced 2026-11-18 06:04:14 +01:00
feat(send,receive): the ambient scene, as a layout item this time
Send had a large empty region under the form doing nothing, and Receive had nothing at all. Both get the scene back — but as real layout items, not as the overlay that painted over the forms last time. Send: the form only ever needed the top of the tab, so the QFormLayout is now wrapped in a vbox and the scene takes the rest. The widget's vertical size policy was Maximum, which made it hug the form; it owns the whole tab now. The form itself is untouched, and nothing is drawn on top of the address or amount fields. Receive: a short banner under the address table. Built and smoke-tested from the AppImage lane.
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
#include "utils/config.h"
|
||||
#include "utils/Icons.h"
|
||||
#include "utils/Utils.h"
|
||||
#include "widgets/SceneWidget.h"
|
||||
|
||||
ReceiveWidget::ReceiveWidget(Wallet *wallet, QWidget *parent)
|
||||
: QWidget(parent)
|
||||
@@ -20,6 +21,13 @@ ReceiveWidget::ReceiveWidget(Wallet *wallet, QWidget *parent)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
|
||||
// wowlet: ambient scene as a short banner under the address table. A layout
|
||||
// item, never an overlay over the table.
|
||||
auto *scene = new SceneWidget(this);
|
||||
scene->setMinimumHeight(110);
|
||||
scene->setMaximumHeight(130);
|
||||
ui->verticalLayout->addWidget(scene);
|
||||
|
||||
m_model = m_wallet->subaddressModel();
|
||||
m_proxyModel = new SubaddressProxyModel(this, m_wallet->subaddress());
|
||||
m_proxyModel->setSourceModel(m_model);
|
||||
|
||||
Reference in New Issue
Block a user