mirror of
https://github.com/YACReader/yacreader
synced 2025-07-18 13:04:28 -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.setApplicationName("YACReader");
|
||||||
app.setOrganizationName("YACReader");
|
app.setOrganizationName("YACReader");
|
||||||
app.setAttribute(Qt::AA_UseHighDpiPixmaps);
|
app.setAttribute(Qt::AA_UseHighDpiPixmaps);
|
||||||
//simple command line parser
|
if (QIcon::hasThemeIcon("YACReader")) {
|
||||||
|
app.setWindowIcon(QIcon::fromTheme("YACReader"));
|
||||||
|
}
|
||||||
|
//simple command line parser
|
||||||
//will be replaced by QCommandLineParser in the future
|
//will be replaced by QCommandLineParser in the future
|
||||||
QStringList optlist;
|
QStringList optlist;
|
||||||
QStringList arglist;
|
QStringList arglist;
|
||||||
|
@ -158,6 +158,9 @@ int main( int argc, char ** argv )
|
|||||||
app.setApplicationVersion(VERSION);
|
app.setApplicationVersion(VERSION);
|
||||||
|
|
||||||
app.setAttribute(Qt::AA_UseHighDpiPixmaps);
|
app.setAttribute(Qt::AA_UseHighDpiPixmaps);
|
||||||
|
if (QIcon::hasThemeIcon("YACReaderLibrary")) {
|
||||||
|
app.setWindowIcon(QIcon::fromTheme("YACReaderLibrary"));
|
||||||
|
}
|
||||||
|
|
||||||
QString destLog = YACReader::getSettingsPath()+"/yacreaderlibrary.log";
|
QString destLog = YACReader::getSettingsPath()+"/yacreaderlibrary.log";
|
||||||
QDir().mkpath(YACReader::getSettingsPath());
|
QDir().mkpath(YACReader::getSettingsPath());
|
||||||
|
Reference in New Issue
Block a user