Files
iDescriptor/src/sponsorwidget.cpp
T
uncor3 3ae707b754 integrate ZUpdater & refactor device management and UI components
- Integrated ZUpdater to handle auto updating
- Updated DeviceManagerWidget to improve device selection logic and ensure current device is set correctly when devices are added or removed.
- Enhanced FileExplorerWidget to reset the view when sidebar items are clicked.
- Changed ZIconWidget to inherit from QAbstractButton for better button behavior and removed unnecessary mouse event handling.
- Updated iDescriptor to include device version parsing and improved device version retrieval logic.
- Refactored iFuseDiskUnmountButton and iFuseDiskUnmountButton to use ZIconWidget for a consistent UI.
- Improved iFuseWidget to handle device selection more robustly and update UI accordingly.
- Added SponsorAppCard and SponsorWidget to promote sponsorship within the app.
- Updated ToolboxWidget to streamline device selection and toolbox functionality.
- General code cleanup and comments for better maintainability.
2025-11-01 23:31:59 +00:00

26 lines
954 B
C++

#include "sponsorwidget.h"
#include "sponsorappcard.h"
#include <QLabel>
#include <QVBoxLayout>
SponsorWidget::SponsorWidget(QWidget *parent) : QWidget(parent)
{
setLayout(new QVBoxLayout(this));
QLabel *sponsorTitle = new QLabel("Would you like to sponsor us?");
sponsorTitle->setAlignment(Qt::AlignCenter);
QLabel *sponsorDesc =
new QLabel("This app is open-source and free to use. "
"And in order to keep it that way, we rely on donations. "
"Consider becoming a sponsor to support "
"and promote your app/brand here");
sponsorDesc->setWordWrap(true);
layout()->addWidget(sponsorTitle);
layout()->addWidget(sponsorDesc);
QLabel *sponsorIconLabel = new QLabel("Example:");
layout()->addWidget(sponsorIconLabel);
SponsorAppCard *card = new SponsorAppCard(this);
layout()->addWidget(card);
layout()->setAlignment(card, Qt::AlignCenter);
}