Fix runtime support under Qt4

This commit is contained in:
Neel Patel
2017-06-16 11:26:31 +01:00
committed by Dave Page
parent 1ee555e468
commit a21dad4c45
3 changed files with 15 additions and 7 deletions
+2
View File
@@ -183,8 +183,10 @@ int main(int argc, char * argv[])
QCoreApplication::setOrganizationDomain("pgadmin.org");
QCoreApplication::setApplicationName(PGA_APP_NAME.toLower().replace(" ", ""));
#if QT_VERSION >= 0x050000
// Set high DPI pixmap to display icons clear on Qt widget.
QApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
#endif
/* In windows and linux, it is required to set application level proxy
* becuase socket bind logic to find free port gives socket creation error