mirror of
https://github.com/YACReader/yacreader
synced 2025-07-17 20:44:32 -04:00
Set application icons for X11 based systems
This commit is contained in:
@ -85,8 +85,11 @@ int main(int argc, char * argv[])
|
||||
|
||||
app.setApplicationName("YACReader");
|
||||
app.setOrganizationName("YACReader");
|
||||
app.setAttribute(Qt::AA_UseHighDpiPixmaps);
|
||||
//simple command line parser
|
||||
app.setAttribute(Qt::AA_UseHighDpiPixmaps);
|
||||
if (QIcon::hasThemeIcon("YACReader")) {
|
||||
app.setWindowIcon(QIcon::fromTheme("YACReader"));
|
||||
}
|
||||
//simple command line parser
|
||||
//will be replaced by QCommandLineParser in the future
|
||||
QStringList optlist;
|
||||
QStringList arglist;
|
||||
|
@ -158,6 +158,9 @@ int main( int argc, char ** argv )
|
||||
app.setApplicationVersion(VERSION);
|
||||
|
||||
app.setAttribute(Qt::AA_UseHighDpiPixmaps);
|
||||
if (QIcon::hasThemeIcon("YACReaderLibrary")) {
|
||||
app.setWindowIcon(QIcon::fromTheme("YACReaderLibrary"));
|
||||
}
|
||||
|
||||
QString destLog = YACReader::getSettingsPath()+"/yacreaderlibrary.log";
|
||||
QDir().mkpath(YACReader::getSettingsPath());
|
||||
|
Reference in New Issue
Block a user