forked from qt-creator/qt-creator
Android: add a splash screen editor to manifest editor
Task-number: QTCREATORBUG-24013 Task-number: QTCREATORBUG-24011 Change-Id: Iea7e8ff8f9bf616612827b70de67e01801ab1229 Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
This commit is contained in:
@@ -45,6 +45,7 @@ class AndroidManifestEditorIconWidget : public QWidget
|
||||
public:
|
||||
explicit AndroidManifestEditorIconWidget(QWidget *parent);
|
||||
AndroidManifestEditorIconWidget(QWidget *parent,
|
||||
const QSize &iconSize,
|
||||
const QSize &buttonSize,
|
||||
const QString &title,
|
||||
const QString &tooltip,
|
||||
@@ -54,9 +55,10 @@ public:
|
||||
void loadIcon();
|
||||
void setIconFromPath(const QString &iconPath);
|
||||
bool hasIcon();
|
||||
|
||||
void setScaled(bool scaled);
|
||||
signals:
|
||||
void iconSelected(const QString &path);
|
||||
void iconRemoved();
|
||||
|
||||
private:
|
||||
void selectIcon();
|
||||
@@ -65,12 +67,14 @@ private:
|
||||
void setScaleWarningLabelVisible(bool visible);
|
||||
private:
|
||||
QToolButton *m_button = nullptr;
|
||||
QSize m_iconSize;
|
||||
QSize m_buttonSize;
|
||||
QLabel *m_scaleWarningLabel = nullptr;
|
||||
TextEditor::TextEditorWidget *m_textEditorWidget = nullptr;
|
||||
QString m_iconPath;
|
||||
QString m_targetIconPath;
|
||||
QString m_iconSelectionText;
|
||||
bool m_scaled = true;
|
||||
};
|
||||
|
||||
} // namespace Internal
|
||||
|
||||
Reference in New Issue
Block a user