Files
Renderive/Widget/Qt/global.cpp
T
2026-08-01 20:09:45 +08:00

19 lines
532 B
C++

#include "global.h"
#include <string_view>
namespace Flex_Qt {
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";
Psc::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";
}
}