mirror of
https://github.com/iDescriptor/iDescriptor.git
synced 2026-06-22 03:45:51 +08:00
Merge branch 'main' of https://github.com/iDescriptor/iDescriptor
This commit is contained in:
@@ -65,5 +65,6 @@
|
||||
<file>DeveloperDiskImages.json</file>
|
||||
<file>resources/keychain.mp4</file>
|
||||
<file>resources/wireless-gallery-import.mp4</file>
|
||||
<file>resources/trust.png</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
Executable
BIN
Binary file not shown.
|
After Width: | Height: | Size: 801 KiB |
@@ -18,22 +18,32 @@
|
||||
*/
|
||||
|
||||
#include "devicependingwidget.h"
|
||||
#include "responsiveqlabel.h"
|
||||
#include <QLabel>
|
||||
#include <QVBoxLayout>
|
||||
|
||||
DevicePendingWidget::DevicePendingWidget(bool locked, QWidget *parent)
|
||||
: QWidget{parent}, m_label{nullptr}, m_locked{locked}
|
||||
: QWidget{parent}, m_label{nullptr}, m_imageLabel{nullptr}, m_locked{locked}
|
||||
{
|
||||
QVBoxLayout *layout = new QVBoxLayout(this);
|
||||
layout->setContentsMargins(0, 0, 0, 0);
|
||||
layout->setSpacing(5);
|
||||
|
||||
layout->addStretch();
|
||||
m_label = new QLabel(
|
||||
m_locked ? "Please unlock the screen and click on trust on the popup"
|
||||
: "Please click on trust on the popup",
|
||||
this);
|
||||
m_label->setWordWrap(true);
|
||||
layout->addWidget(m_label, 0, Qt::AlignCenter);
|
||||
m_label->setAlignment(Qt::AlignCenter);
|
||||
layout->addWidget(m_label);
|
||||
|
||||
m_imageLabel = new ResponsiveQLabel(this);
|
||||
m_imageLabel->setPixmap(QPixmap(":/resources/trust.png"));
|
||||
m_imageLabel->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
|
||||
m_imageLabel->setMinimumSize(400, 200);
|
||||
m_imageLabel->setScaledContents(true);
|
||||
layout->addWidget(m_imageLabel, 1, Qt::AlignHCenter);
|
||||
layout->addStretch();
|
||||
setLayout(layout);
|
||||
}
|
||||
|
||||
|
||||
@@ -23,6 +23,8 @@
|
||||
#include <QLabel>
|
||||
#include <QWidget>
|
||||
|
||||
class ResponsiveQLabel;
|
||||
|
||||
class DevicePendingWidget : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
@@ -32,6 +34,7 @@ public:
|
||||
signals:
|
||||
private:
|
||||
QLabel *m_label;
|
||||
ResponsiveQLabel *m_imageLabel;
|
||||
bool m_locked;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user