forked from qt-creator/qt-creator
QmlDesigner: Consider responsive size for the CollectionView
Task-number: QDS-11037 Change-Id: Ida49ccf67e6aeb943087b2f51a168f98053c838e Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io> Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
This commit is contained in:
@@ -129,6 +129,11 @@ void CollectionWidget::reloadQmlSource()
|
||||
m_quickWidget->setSource(QUrl::fromLocalFile(collectionViewQmlPath));
|
||||
}
|
||||
|
||||
QSize CollectionWidget::minimumSizeHint() const
|
||||
{
|
||||
return {300, 400};
|
||||
}
|
||||
|
||||
bool CollectionWidget::loadJsonFile(const QString &jsonFileAddress)
|
||||
{
|
||||
if (!isJsonFile(jsonFileAddress))
|
||||
|
||||
@@ -30,6 +30,8 @@ public:
|
||||
|
||||
void reloadQmlSource();
|
||||
|
||||
virtual QSize minimumSizeHint() const;
|
||||
|
||||
Q_INVOKABLE bool loadJsonFile(const QString &jsonFileAddress);
|
||||
Q_INVOKABLE bool loadCsvFile(const QString &collectionName, const QString &csvFileAddress);
|
||||
Q_INVOKABLE bool isJsonFile(const QString &jsonFileAddress) const;
|
||||
|
||||
Reference in New Issue
Block a user