forked from qt-creator/qt-creator
Git: Proliferate FilePath use in GerritModel a bit
Plus some code cosmetics. Change-Id: Idc07e881c09cbc7347396ef1bb60cce00539250c Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -25,6 +25,7 @@
|
||||
|
||||
#include "pathchooser.h"
|
||||
|
||||
#include "commandline.h"
|
||||
#include "environment.h"
|
||||
#include "hostosinfo.h"
|
||||
#include "macroexpander.h"
|
||||
@@ -718,9 +719,9 @@ FancyLineEdit *PathChooser::lineEdit() const
|
||||
return d->m_lineEdit;
|
||||
}
|
||||
|
||||
QString PathChooser::toolVersion(const QString &binary, const QStringList &arguments)
|
||||
QString PathChooser::toolVersion(const CommandLine &cmd)
|
||||
{
|
||||
return BinaryVersionToolTipEventFilter::toolVersion({FilePath::fromString(binary), arguments});
|
||||
return BinaryVersionToolTipEventFilter::toolVersion(cmd);
|
||||
}
|
||||
|
||||
void PathChooser::installLineEditVersionToolTip(QLineEdit *le, const QStringList &arguments)
|
||||
|
||||
@@ -38,6 +38,7 @@ QT_END_NAMESPACE
|
||||
|
||||
namespace Utils {
|
||||
|
||||
class CommandLine;
|
||||
class FancyLineEdit;
|
||||
class MacroExpander;
|
||||
class Environment;
|
||||
@@ -124,7 +125,7 @@ public:
|
||||
void setCommandVersionArguments(const QStringList &arguments);
|
||||
|
||||
// Utility to run a tool and return its stdout.
|
||||
static QString toolVersion(const QString &binary, const QStringList &arguments);
|
||||
static QString toolVersion(const Utils::CommandLine &cmd);
|
||||
// Install a tooltip on lineedits used for binaries showing the version.
|
||||
static void installLineEditVersionToolTip(QLineEdit *le, const QStringList &arguments);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user