forked from qt-creator/qt-creator
Android: parse image file names from manifest
Also scales splash images without stretching and reflects them to other orientations. Task-number: QTCREATORBUG-24149 Task-number: QTCREATORBUG-24150 Change-Id: Ie23a8ba5f75132971673d3232807e941dfd50f97 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -50,14 +50,21 @@ public:
|
||||
const QString &title,
|
||||
const QString &tooltip,
|
||||
TextEditor::TextEditorWidget *textEditorWidget = nullptr,
|
||||
const QString &targetIconPath = {});
|
||||
const QString &targetIconPath = {},
|
||||
const QString &targetIconFileName = {});
|
||||
void setIcon(const QIcon &icon);
|
||||
void clearIcon();
|
||||
void loadIcon();
|
||||
void setIconFromPath(const QString &iconPath);
|
||||
bool hasIcon();
|
||||
void setScaled(bool scaled);
|
||||
bool hasIcon() const;
|
||||
void setScaledToOriginalAspectRatio(bool scaled);
|
||||
void setScaledWithoutStretching(bool scaled);
|
||||
void setTargetIconFileName(const QString &targetIconFileName);
|
||||
void setTargetIconPath(const QString &targetIconPath);
|
||||
QString targetIconFileName() const;
|
||||
QString targetIconPath() const;
|
||||
signals:
|
||||
void iconSelected(const QString &path);
|
||||
void iconSelected(const QString &path, AndroidManifestEditorIconWidget* iconWidget);
|
||||
void iconRemoved();
|
||||
|
||||
private:
|
||||
@@ -73,8 +80,10 @@ private:
|
||||
TextEditor::TextEditorWidget *m_textEditorWidget = nullptr;
|
||||
QString m_iconPath;
|
||||
QString m_targetIconPath;
|
||||
QString m_targetIconFileName;
|
||||
QString m_iconSelectionText;
|
||||
bool m_scaled = true;
|
||||
bool m_scaledToOriginalAspectRatio = false;
|
||||
bool m_scaledWithoutStretching = false;
|
||||
};
|
||||
|
||||
} // namespace Internal
|
||||
|
||||
Reference in New Issue
Block a user