Files
Renderive/Widget/Qt/global.cpp
T
2026-07-29 12:30:40 +08:00

22 lines
611 B
C++

#include "global.h"
#include <string_view>
#include "Core/Base/global_include.h"
#include "Core/system/export.h"
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";
}
} // namespace Psc