mirror of
https://github.com/deskflow/deskflow.git
synced 2026-07-07 21:07:23 +08:00
SYNERGY-936 Attribute should be set before the application is run.
This commit is contained in:
parent
1a026f6397
commit
790c4f8e1d
@ -30,7 +30,6 @@ QSynergyApplication::QSynergyApplication(int& argc, char** argv) :
|
||||
{
|
||||
s_Instance = this;
|
||||
|
||||
setAttribute(Qt::AA_EnableHighDpiScaling);
|
||||
QFontDatabase::addApplicationFont(":/res/fonts/Arial.ttf");
|
||||
QFont Arial("Arial");
|
||||
Arial.setPixelSize(13);
|
||||
|
||||
@ -55,6 +55,7 @@ int main(int argc, char* argv[])
|
||||
/* Workaround for QTBUG-40332 - "High ping when QNetworkAccessManager is instantiated" */
|
||||
::setenv ("QT_BEARER_POLL_TIMEOUT", "-1", 1);
|
||||
#endif
|
||||
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
|
||||
QCoreApplication::setOrganizationName("Synergy");
|
||||
QCoreApplication::setOrganizationDomain("http://symless.com/");
|
||||
QCoreApplication::setApplicationName("Synergy");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user