forked from qt-creator/qt-creator
Utils: Move some more FilePath-only functions to FilePathAspect
Change-Id: Id814e69339d510e88efbf95108c7573bcc53a87b Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
@@ -998,21 +998,21 @@ void StringAspect::setHistoryCompleter(const QString &historyCompleterKey)
|
||||
|
||||
\sa Utils::PathChooser::setExpectedKind()
|
||||
*/
|
||||
void StringAspect::setExpectedKind(const PathChooser::Kind expectedKind)
|
||||
void FilePathAspect::setExpectedKind(const PathChooser::Kind expectedKind)
|
||||
{
|
||||
d->m_expectedKind = expectedKind;
|
||||
if (d->m_pathChooserDisplay)
|
||||
d->m_pathChooserDisplay->setExpectedKind(expectedKind);
|
||||
}
|
||||
|
||||
void StringAspect::setEnvironment(const Environment &env)
|
||||
void FilePathAspect::setEnvironment(const Environment &env)
|
||||
{
|
||||
d->m_environment = env;
|
||||
if (d->m_pathChooserDisplay)
|
||||
d->m_pathChooserDisplay->setEnvironment(env);
|
||||
}
|
||||
|
||||
void StringAspect::setBaseFileName(const FilePath &baseFileName)
|
||||
void FilePathAspect::setBaseFileName(const FilePath &baseFileName)
|
||||
{
|
||||
d->m_baseFileName = baseFileName;
|
||||
if (d->m_pathChooserDisplay)
|
||||
|
@@ -494,9 +494,6 @@ public:
|
||||
void setDisplayFilter(const std::function<QString (const QString &)> &displayFilter);
|
||||
void setPlaceHolderText(const QString &placeHolderText);
|
||||
void setHistoryCompleter(const QString &historyCompleterKey);
|
||||
void setExpectedKind(const PathChooser::Kind expectedKind);
|
||||
void setEnvironment(const Environment &env);
|
||||
void setBaseFileName(const FilePath &baseFileName);
|
||||
void setUndoRedoEnabled(bool readOnly);
|
||||
void setAcceptRichText(bool acceptRichText);
|
||||
void setMacroExpanderProvider(const MacroExpanderProvider &expanderProvider);
|
||||
@@ -561,6 +558,9 @@ public:
|
||||
void setAllowPathFromDevice(bool allowPathFromDevice);
|
||||
void setValidatePlaceHolder(bool validatePlaceHolder);
|
||||
void setOpenTerminalHandler(const std::function<void()> &openTerminal);
|
||||
void setExpectedKind(const PathChooser::Kind expectedKind);
|
||||
void setEnvironment(const Environment &env);
|
||||
void setBaseFileName(const FilePath &baseFileName);
|
||||
|
||||
PathChooser *pathChooser() const; // Avoid to use.
|
||||
};
|
||||
|
Reference in New Issue
Block a user