1 /* stratoshark_application.cpp
3 * Stratoshark - System call and event log analyzer
4 * By Gerald Combs <gerald@wireshark.org>
5 * Copyright 1998 Gerald Combs
7 * SPDX-License-Identifier: GPL-2.0-or-later
10 #include "stratoshark_application.h"
12 StratosharkApplication
*ssApp
;
14 StratosharkApplication::StratosharkApplication(int &argc
, char **argv
) :
15 MainApplication(argc
, argv
)
18 Q_INIT_RESOURCE(ssicon
);
19 setApplicationName("Stratoshark");
20 setDesktopFileName(QStringLiteral("org.wireshark.Stratoshark"));
23 StratosharkApplication::~StratosharkApplication()
28 void StratosharkApplication::initializeIcons()
30 // Do this as late as possible in order to allow time for
31 // MimeDatabaseInitThread to do its work.
32 QList
<int> icon_sizes
= QList
<int>() << 16 << 24 << 32 << 48 << 64 << 128 << 256 << 512 << 1024;
33 foreach (int icon_size
, icon_sizes
) {
34 QString icon_path
= QStringLiteral(":/ssicon/ssicon%1.png").arg(icon_size
);
35 normal_icon_
.addFile(icon_path
);
36 icon_path
= QStringLiteral(":/ssicon/ssiconcap%1.png").arg(icon_size
);
37 capture_icon_
.addFile(icon_path
);