src: replaced some usages of string by wstring in filepath
This commit is contained in:
@@ -120,9 +120,9 @@ void QtLocationPicker::handleButtonPress()
|
||||
{
|
||||
if (!m_relativeRootDirectory.empty())
|
||||
{
|
||||
const FilePath path(fileName.toStdString());
|
||||
const FilePath path(fileName.toStdWString());
|
||||
const FilePath relPath = path.getRelativeTo(m_relativeRootDirectory);
|
||||
if (relPath.str().size() < path.str().size())
|
||||
if (relPath.wstr().size() < path.wstr().size())
|
||||
{
|
||||
fileName = QString::fromStdWString(relPath.wstr());
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ QtStatusBar::QtStatusBar()
|
||||
{
|
||||
addWidget(new QWidget()); // add some space
|
||||
|
||||
m_movie = std::make_shared<QMovie>((ResourcePaths::getGuiPath().str() + "statusbar_view/loader.gif").c_str());
|
||||
m_movie = std::make_shared<QMovie>(QString::fromStdWString(ResourcePaths::getGuiPath().concatenate(L"statusbar_view/loader.gif").wstr()));
|
||||
// if movie doesn't loop forever, force it to.
|
||||
if (m_movie->loopCount() != -1)
|
||||
{
|
||||
|
||||
@@ -697,7 +697,7 @@ void QtProjectWizzardContentPathsHeaderSearch::showDetectedIncludesResult(const
|
||||
if (!relativeRoot.empty())
|
||||
{
|
||||
const FilePath relPath = path.getRelativeTo(relativeRoot);
|
||||
if (relPath.str().size() < path.str().size())
|
||||
if (relPath.wstr().size() < path.wstr().size())
|
||||
{
|
||||
detailedText += relPath.wstr() + L"\n";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user