forked from qt-creator/qt-creator
Squish: Allow retrieval of suite name from SuiteConf
Change-Id: I8c468dc7f69f72745685251293bba228bcde2b38 Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -173,6 +173,13 @@ bool SuiteConf::write()
|
|||||||
return writeSuiteConfContent(m_filePath, suiteConf);
|
return writeSuiteConfContent(m_filePath, suiteConf);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QString SuiteConf::suiteName() const
|
||||||
|
{
|
||||||
|
if (!m_filePath.exists())
|
||||||
|
return {};
|
||||||
|
return m_filePath.parentDir().fileName();
|
||||||
|
}
|
||||||
|
|
||||||
QString SuiteConf::langParameter() const
|
QString SuiteConf::langParameter() const
|
||||||
{
|
{
|
||||||
switch (m_language) {
|
switch (m_language) {
|
||||||
|
@@ -23,6 +23,7 @@ public:
|
|||||||
bool read();
|
bool read();
|
||||||
bool write();
|
bool write();
|
||||||
|
|
||||||
|
QString suiteName() const;
|
||||||
QString aut() const { return m_aut; }
|
QString aut() const { return m_aut; }
|
||||||
void setAut(const QString &aut) { m_aut = aut; }
|
void setAut(const QString &aut) { m_aut = aut; }
|
||||||
QString arguments() const { return m_arguments; }
|
QString arguments() const { return m_arguments; }
|
||||||
|
Reference in New Issue
Block a user