mirror of
https://github.com/fergalmoran/flameshot.git
synced 2026-02-16 07:23:59 +00:00
Code refactoring - change code style to the new clang-format rules
This commit is contained in:
@@ -17,29 +17,30 @@
|
||||
|
||||
#include "pathinfo.h"
|
||||
#include <QApplication>
|
||||
#include <QFileInfo>
|
||||
#include <QDir>
|
||||
#include <QFileInfo>
|
||||
|
||||
const QString PathInfo::whiteIconPath() {
|
||||
const QString PathInfo::whiteIconPath()
|
||||
{
|
||||
return QStringLiteral(":/img/material/white/");
|
||||
}
|
||||
|
||||
const QString PathInfo::blackIconPath() {
|
||||
const QString PathInfo::blackIconPath()
|
||||
{
|
||||
return QStringLiteral(":/img/material/black/");
|
||||
}
|
||||
|
||||
QStringList PathInfo::translationsPaths() {
|
||||
QString binaryPath = QFileInfo(qApp->applicationDirPath())
|
||||
.absoluteFilePath();
|
||||
QString trPath = QDir::toNativeSeparators(binaryPath + "/translations") ;
|
||||
QStringList PathInfo::translationsPaths()
|
||||
{
|
||||
QString binaryPath =
|
||||
QFileInfo(qApp->applicationDirPath()).absoluteFilePath();
|
||||
QString trPath = QDir::toNativeSeparators(binaryPath + "/translations");
|
||||
#if defined(Q_OS_LINUX) || defined(Q_OS_UNIX)
|
||||
return QStringList()
|
||||
<< QStringLiteral(APP_PREFIX) + "/share/flameshot/translations"
|
||||
<< trPath
|
||||
<< QStringLiteral("/usr/share/flameshot/translations")
|
||||
<< QStringLiteral("/usr/local/share/flameshot/translations");
|
||||
<< QStringLiteral(APP_PREFIX) + "/share/flameshot/translations"
|
||||
<< trPath << QStringLiteral("/usr/share/flameshot/translations")
|
||||
<< QStringLiteral("/usr/local/share/flameshot/translations");
|
||||
#elif defined(Q_OS_WIN)
|
||||
return QStringList()
|
||||
<< trPath;
|
||||
return QStringList() << trPath;
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user