fix bug caused by changing the file path
This commit is contained in:
parent
f6e3b3286b
commit
5e885ea339
|
@ -17,7 +17,7 @@ HistoryInfoLoad::HistoryInfoLoad(const QString &date, QObject *parent)
|
|||
|
||||
QString HistoryInfoLoad::getCover()
|
||||
{
|
||||
QString filePath = m_historyInfo.filepath + "/config/preview";
|
||||
QString filePath = m_historyInfo.filepath + "/src/config/preview";
|
||||
QString previewFilePath;
|
||||
|
||||
QFileInfo pngFileInfo(filePath + ".png");
|
||||
|
@ -37,7 +37,7 @@ QString HistoryInfoLoad::getCover()
|
|||
|
||||
QString HistoryInfoLoad::getThemeName()
|
||||
{
|
||||
QString filePath = m_historyInfo.filepath + "/debian/control";
|
||||
QString filePath = m_historyInfo.filepath + "/src/debian/control";
|
||||
|
||||
QFile file(filePath);
|
||||
if (file.exists() && file.open(QIODevice::ReadOnly)) {
|
||||
|
@ -64,7 +64,7 @@ QString HistoryInfoLoad::getThemeName()
|
|||
|
||||
QString HistoryInfoLoad::getThemeType()
|
||||
{
|
||||
QString filePath = m_historyInfo.filepath;
|
||||
QString filePath = m_historyInfo.filepath + "/src";
|
||||
QDir themeDir(filePath);
|
||||
|
||||
if (themeDir.exists("globalTheme")) {
|
||||
|
@ -81,7 +81,7 @@ QString HistoryInfoLoad::getThemeType()
|
|||
|
||||
void HistoryInfoLoad::getRadius()
|
||||
{
|
||||
QString filePath = m_historyInfo.filepath + "/config/default.json";
|
||||
QString filePath = m_historyInfo.filepath + "/src/config/default.json";
|
||||
|
||||
QFile file(filePath);
|
||||
if (!file.open(QIODevice::ReadOnly | QIODevice::Text)) {
|
||||
|
@ -110,7 +110,7 @@ void HistoryInfoLoad::getRadius()
|
|||
|
||||
void HistoryInfoLoad::getWallpaper()
|
||||
{
|
||||
QString filePath = m_historyInfo.filepath + "/config/theme.conf";
|
||||
QString filePath = m_historyInfo.filepath + "/src/config/theme.conf";
|
||||
// 读取文件内容
|
||||
QFile file(filePath);
|
||||
if (!file.open(QIODevice::ReadWrite | QIODevice::Text)) {
|
||||
|
@ -142,7 +142,7 @@ void HistoryInfoLoad::getWallpaper()
|
|||
|
||||
void HistoryInfoLoad::getAccentColor()
|
||||
{
|
||||
QString filePath = m_historyInfo.filepath + "/config/theme.conf";
|
||||
QString filePath = m_historyInfo.filepath + "/src/config/theme.conf";
|
||||
// 读取文件内容
|
||||
QFile file(filePath);
|
||||
if (!file.open(QIODevice::ReadWrite | QIODevice::Text)) {
|
||||
|
|
|
@ -301,7 +301,7 @@ QMap<QString, QString>* IconThemeWidget::getAppIconsMap()
|
|||
|
||||
void IconThemeWidget::setHistoryAppIcon()
|
||||
{
|
||||
QString directoryPath = m_info.filepath + "/iconTheme/appicon/";
|
||||
QString directoryPath = m_info.filepath + "/src/iconTheme/appicon/";
|
||||
// QStringList widgetNames = getWidgetNamesFromFilesInDirectory(directoryPath);
|
||||
QDir directory(directoryPath);
|
||||
QStringList filters;
|
||||
|
|
Loading…
Reference in New Issue