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)
46 qputenv(
"QT_SCALE_FACTOR", QByteArray::number(dpi < 1.0 ? 1.0 : dpi));
51 int main(
int argc,
char *argv[])
63 for(
int i = 0; i < argc; ++i)
65 const QString &&arg = QString::fromLocal8Bit(argv[i]);
97 QTranslator *translator =
new QTranslator(&app);
98 if(!translator->load(ts))
104 app.installTranslator(translator);
123 mallopt(M_MMAP_THRESHOLD, 1024 * 1024);
124 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 initialize module.
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.
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.