Pull request corrections, namespaces, style, etc
This commit is contained in:
+1
-1
@@ -287,7 +287,7 @@ namespace AzToolsFramework
|
||||
product->m_assetType.ToString(product->m_assetTypeString);
|
||||
AZ::Data::AssetCatalogRequestBus::BroadcastResult(product->m_relativePath, &AZ::Data::AssetCatalogRequests::GetAssetPathById, assetId);
|
||||
QString displayPath = QString::fromUtf8(product->m_relativePath.c_str());
|
||||
displayPath.remove(QString("/" + QString::fromUtf8(product->m_name.c_str())));
|
||||
displayPath.remove(QString(AZ_CORRECT_DATABASE_SEPARATOR + QString::fromUtf8(product->m_name.c_str())));
|
||||
product->m_displayPath = displayPath;
|
||||
EntryCache::GetInstance()->m_productAssetIdMap[assetId] = product;
|
||||
|
||||
|
||||
@@ -110,6 +110,7 @@ namespace AzToolsFramework
|
||||
~StringFilter() override = default;
|
||||
|
||||
void SetFilterString(const QString& filterString);
|
||||
|
||||
protected:
|
||||
QString GetNameInternal() const override;
|
||||
bool MatchInternal(const AssetBrowserEntry* entry) const override;
|
||||
|
||||
+4
-4
@@ -95,13 +95,13 @@ namespace AzToolsFramework
|
||||
remainingRect.adjust(thumbX, 0, 0, 0); // bump it to the right by the size of the thumbnail
|
||||
remainingRect.adjust(ENTRY_SPACING_LEFT_PIXELS, 0, 0, 0); // bump it to the right by the spacing.
|
||||
}
|
||||
QString displayString = qvariant_cast<QString>(index.data(index.column()));
|
||||
QString displayString = index.column() == aznumeric_cast<int>(AssetBrowserEntry::Column::Name)
|
||||
? qvariant_cast<QString>(entry->data(aznumeric_cast<int>(AssetBrowserEntry::Column::Name)))
|
||||
: qvariant_cast<QString>(entry->data(aznumeric_cast<int>(AssetBrowserEntry::Column::Path)));
|
||||
|
||||
style->drawItemText(
|
||||
painter, remainingRect, option.displayAlignment, actualPalette, isEnabled,
|
||||
index.column() == aznumeric_cast<int>(AssetBrowserEntry::Column::Name)
|
||||
? qvariant_cast<QString>(entry->data(aznumeric_cast<int>(AssetBrowserEntry::Column::Name)))
|
||||
: qvariant_cast<QString>(entry->data(aznumeric_cast<int>(AssetBrowserEntry::Column::Path))),
|
||||
displayString,
|
||||
isSelected ? QPalette::HighlightedText : QPalette::Text);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user