15 #include <QTranslator>
35 #if TTK_QT_VERSION_CHECK(6,0,0)
37 #elif TTK_QT_VERSION_CHECK(5,4,0)
38 # if TTK_QT_VERSION_CHECK(5,12,0)
39 QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
40 QApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
41 # if TTK_QT_VERSION_CHECK(5,14,0)
42 QApplication::setHighDpiScaleFactorRoundingPolicy(Qt::HighDpiScaleFactorRoundingPolicy::PassThrough);
44 # elif TTK_QT_VERSION_CHECK(5,6,0)
47 qputenv(
"QT_SCALE_FACTOR", QByteArray::number(dpi < 1.0 ? 1.0 : dpi));
52 int main(
int argc,
char *argv[])
64 for(
int i = 0; i < argc; ++i)
66 const QString &&arg = QString::fromLocal8Bit(argv[i]);
98 QTranslator *translator =
new QTranslator(&app);
99 if(!translator->load(ts))
105 app.installTranslator(translator);
124 mallopt(M_MMAP_THRESHOLD, 1024 * 1024);
125 mallopt(M_TRIM_THRESHOLD, 2 * 1024 * 1024);
The class of the process client.
The class of the process server.
The class of the ttk dumper.
void run(const QStringList &args) const
The class of the app main widget.
void run(const QStringList &args) const
int main(int argc, char *argv[])
TTK_MODULE_EXPORT void setApplicationFont()
The class of the ttk application.
#define TTK_RECORD_DATA_FILE
#define TTK_APP_COME_NAME
#define TTK_INFO_STREAM(msg)
#define MAKE_TRANSFORM_NAME
The class of the app run time needed.
The class of the music initialize object.
bool configVersionCheck() const
static void cleanupCache()
TTK_MODULE_EXPORT void killProcessByName(const QString &process)
static void loadApplicationScaleFactor()
#define TTK_SERVICE_RUN_NAME
QStringList translator() const
#define TTK_ERROR_STREAM(msg)
The class of the app mpris main widget.