Files
Renderive/YSGraphic_Core/Qt/global.cpp
T
2026-06-29 09:40:54 +08:00

33 lines
676 B
C++

#include "global.h"
#include "Core/Base/global_include.h"
#include "Core/system/export.h"
#include <string_view>
namespace Psc
{
void set_help_text(QWidget* widget, const QString& text)
{
widget->setToolTip(text);
widget->setStatusTip(text);
widget->setWhatsThis(text);
}
std::string get_config_dir()
{
std::string ret = Psc::get_exe_dir() + "/psc_config";
create_dir_if_not_exists(ret);
return ret;
}
Base_Cache::Base_Cache(std::string_view id) : id(id)
{
}
std::string Base_Cache::get_config_path() const
{
return get_config_dir() + "/" + id + "_config.json";
}
}