refactor: update UI layout and connect img

This commit is contained in:
uncor3
2026-02-08 00:47:29 +00:00
parent ef911d8257
commit 774f3442a1
3 changed files with 5 additions and 14 deletions
Binary file not shown.

Before

Width:  |  Height:  |  Size: 47 KiB

After

Width:  |  Height:  |  Size: 15 KiB

+4 -12
View File
@@ -56,31 +56,23 @@ void WelcomeWidget::setupUI()
QHBoxLayout *imageAndWirelessDevicesLayout = new QHBoxLayout();
m_imageLabel = new ResponsiveQLabel();
m_imageLabel = new QLabel();
m_imageLabel->setPixmap(QPixmap(":/resources/connect.png"));
m_imageLabel->setScaledContents(true);
m_imageLabel->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
m_imageLabel->setMinimumSize(QSize(400, 0));
m_imageLabel->setStyleSheet("background: transparent; border: none;");
m_imageLabel->setAlignment(Qt::AlignCenter);
imageAndWirelessDevicesLayout->addStretch(1);
// m_imageLabel->setMaximumWidth(300);
imageAndWirelessDevicesLayout->addWidget(m_imageLabel, 0, Qt::AlignHCenter);
imageAndWirelessDevicesLayout->addStretch(1);
NetworkDevicesToConnectWidget *networkDevicesWidget =
new NetworkDevicesToConnectWidget();
// FIMXE: resize original image
networkDevicesWidget->setMinimumWidth(350);
imageAndWirelessDevicesLayout->addWidget(networkDevicesWidget);
imageAndWirelessDevicesLayout->addStretch(1);
m_mainLayout->addLayout(imageAndWirelessDevicesLayout);
m_mainLayout->addSpacing(10);
m_instructionLabel = createStyledLabel(
"Please connect an iDevice to get started", 14, false);
m_instructionLabel =
createStyledLabel("Connect an iDevice to get started", 14, false);
m_instructionLabel->setAlignment(Qt::AlignCenter);
m_mainLayout->addWidget(m_instructionLabel);
m_mainLayout->addSpacing(10);
+1 -2
View File
@@ -21,7 +21,6 @@
#define WELCOMEWIDGET_H
#include "iDescriptor-ui.h"
#include "responsiveqlabel.h"
#include <QHBoxLayout>
#include <QLabel>
#include <QPixmap>
@@ -43,7 +42,7 @@ private:
QVBoxLayout *m_mainLayout;
ZLabel *m_titleLabel;
ZLabel *m_subtitleLabel;
ResponsiveQLabel *m_imageLabel;
QLabel *m_imageLabel;
ZLabel *m_instructionLabel;
ZLabel *m_githubLabel;
};