mirror of
https://github.com/iDescriptor/iDescriptor.git
synced 2026-06-22 03:45:51 +08:00
c783123b8d
- Introduced WelcomeWidget to display a welcome message when no devices are connected, replacing the previous "No devices detected" page in MainWindow. - Replaced ClickableLabel with ZLabel in ifusewidget.h for improved UI consistency. - Removed PCFileExplorerWidget and its associated header file, streamlining the codebase. - Updated PhotoImportDialog to improve server start process and UI elements, including renaming buttons and adjusting labels. - Modified RealtimeScreenWidget to increase delay before initializing screenshot service for better reliability. - Enhanced SimpleHttpServer to include a method for retrieving the JSON file name. - Updated ToolboxWidget to integrate WirelessPhotoImportWidget, allowing for wireless photo imports. - Added WirelessPhotoImportWidget to facilitate the selection and import of photos, including a tutorial video feature. - Created a new WelcomeWidget to guide users on connecting their iOS devices.
34 lines
736 B
C++
34 lines
736 B
C++
#ifndef WELCOMEWIDGET_H
|
|
#define WELCOMEWIDGET_H
|
|
|
|
#include "responsiveqlabel.h"
|
|
#include <QHBoxLayout>
|
|
#include <QLabel>
|
|
#include <QPixmap>
|
|
#include <QVBoxLayout>
|
|
#include <QWidget>
|
|
|
|
class WelcomeWidget : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit WelcomeWidget(QWidget *parent = nullptr);
|
|
|
|
protected:
|
|
bool eventFilter(QObject *watched, QEvent *event) override;
|
|
|
|
private:
|
|
void setupUI();
|
|
QLabel *createStyledLabel(const QString &text, int fontSize = 0,
|
|
bool isBold = false);
|
|
|
|
QVBoxLayout *m_mainLayout;
|
|
QLabel *m_titleLabel;
|
|
QLabel *m_subtitleLabel;
|
|
ResponsiveQLabel *m_imageLabel;
|
|
QLabel *m_instructionLabel;
|
|
QLabel *m_githubLabel;
|
|
};
|
|
|
|
#endif // WELCOMEWIDGET_H
|