forked from qt-creator/qt-creator
QmlDesigner: Remove ContentLibraryWidget::findTextureBundlePath()
Unused method. Change-Id: I021c9e3c0180245a826f375f14dd94350a209cfd Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
This commit is contained in:
@@ -788,28 +788,6 @@ void ContentLibraryWidget::setIsDragging(bool val)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
QString ContentLibraryWidget::findTextureBundlePath()
|
|
||||||
{
|
|
||||||
QDir texBundleDir;
|
|
||||||
|
|
||||||
if (!qEnvironmentVariable("TEXTURE_BUNDLE_PATH").isEmpty())
|
|
||||||
texBundleDir.setPath(qEnvironmentVariable("TEXTURE_BUNDLE_PATH"));
|
|
||||||
else if (Utils::HostOsInfo::isMacHost())
|
|
||||||
texBundleDir.setPath(QCoreApplication::applicationDirPath() + "/../Resources/texture_bundle");
|
|
||||||
|
|
||||||
// search for matBundleDir from exec dir and up
|
|
||||||
if (texBundleDir.dirName() == ".") {
|
|
||||||
texBundleDir.setPath(QCoreApplication::applicationDirPath());
|
|
||||||
while (!texBundleDir.cd("texture_bundle") && texBundleDir.cdUp())
|
|
||||||
; // do nothing
|
|
||||||
|
|
||||||
if (texBundleDir.dirName() != "texture_bundle") // bundlePathDir not found
|
|
||||||
return {};
|
|
||||||
}
|
|
||||||
|
|
||||||
return texBundleDir.path();
|
|
||||||
}
|
|
||||||
|
|
||||||
void ContentLibraryWidget::startDragItem(QmlDesigner::ContentLibraryItem *item, const QPointF &mousePos)
|
void ContentLibraryWidget::startDragItem(QmlDesigner::ContentLibraryItem *item, const QPointF &mousePos)
|
||||||
{
|
{
|
||||||
m_itemToDrag = item;
|
m_itemToDrag = item;
|
||||||
|
@@ -113,7 +113,6 @@ private:
|
|||||||
void reloadQmlSource();
|
void reloadQmlSource();
|
||||||
void updateSearch();
|
void updateSearch();
|
||||||
void setIsDragging(bool val);
|
void setIsDragging(bool val);
|
||||||
QString findTextureBundlePath();
|
|
||||||
void loadTextureBundles();
|
void loadTextureBundles();
|
||||||
QVariantMap readTextureBundleJson();
|
QVariantMap readTextureBundleJson();
|
||||||
bool fetchTextureBundleJson(const QDir &bundleDir);
|
bool fetchTextureBundleJson(const QDir &bundleDir);
|
||||||
|
Reference in New Issue
Block a user