mirror of
https://github.com/iDescriptor/iDescriptor.git
synced 2026-06-21 19:35:49 +08:00
refactor: update UI layout and connect img
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 47 KiB After Width: | Height: | Size: 15 KiB |
+4
-12
@@ -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
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user