40 auto home_path = QDir::homePath();
42 auto expected = test_dir.startsWith(home_path)
43 ? QString(
"~") + test_dir.mid(home_path.size())
50 std::string(
"/opt/sw/build"));
82 using vec_t = std::vector<std::string>;
89 using vec_t = std::vector<std::string>;
96 QStringList expected = QStringList() <<
"aaa"
MVVM_MODEL_EXPORT std::string ProjectWindowTitle(const ProjectInterface &project)
Returns a MainWindow title for given project.
MVVM_VIEW_EXPORT QStringList deserialize(const QByteArray &byteArray)
Converts byte array to vector of strings.
MVVM_VIEW_EXPORT QString WithTildeHomePath(const QString &path)
Returns a string where Linux path to the file is striped using '~/'.
MVVM_VIEW_EXPORT bool IsWindowsHost()
Returns true if it is Windows.
MVVM_VIEW_EXPORT QByteArray serialize(const QStringList &data)
Converts vector of strings to byte array.
MVVM_VIEW_EXPORT QStringList toStringList(const std::vector< std::string > &vec)
Converts vector of strings to QStringList.
MVVM_VIEW_EXPORT QString ClickableText(const QString &text, const QString &tag={})
Returns text wrapped into 'href' tag to provide clickable links in QLabel.
MVVM_VIEW_EXPORT std::vector< std::string > fromStringList(const QStringList &string_list)
Converts vector of strings to QStringList.
MVVM_VIEW_EXPORT QString ProjectWindowTitle(const QString &project_dir, bool is_modified)
Returns a title composed from last part of project path, and is_modified flag.
materialitems.h Collection of materials to populate MaterialModel.
std::string TestOutputDir()
Returns full path to the main test folder, as defined by CMake at compile time.