remove hardcoded window icon path in favour of fromTheme call
This commit is contained in:
parent
8a1e75695d
commit
d773959a5d
6 changed files with 6 additions and 12 deletions
|
@ -19,8 +19,7 @@
|
|||
int main(int argc, char* argv[])
|
||||
{
|
||||
QApplication app(argc, argv);
|
||||
app.setWindowIcon(QIcon::fromTheme(QStringLiteral("kdeconnect"),
|
||||
QIcon(QStandardPaths::locate(QStandardPaths::AppLocalDataLocation, QStringLiteral("icons/hicolor/scalable/apps/kdeconnect.svg")))));
|
||||
app.setWindowIcon(QIcon::fromTheme(QStringLiteral("kdeconnect")));
|
||||
KAboutData aboutData(QStringLiteral("kdeconnect.app"), i18n("KDE Connect"), QStringLiteral("1.0"), i18n("KDE Connect"), KAboutLicense::GPL, i18n("(c) 2015, Aleix Pol Gonzalez"));
|
||||
aboutData.addAuthor(i18n("Aleix Pol Gonzalez"), i18n("Maintainer"), QStringLiteral("aleixpol@kde.org"));
|
||||
KAboutData::setApplicationData(aboutData);
|
||||
|
|
|
@ -38,8 +38,7 @@ public:
|
|||
: Daemon(parent)
|
||||
, m_nam(nullptr)
|
||||
{
|
||||
qApp->setWindowIcon(QIcon::fromTheme(QStringLiteral("kdeconnect"),
|
||||
QIcon(QStandardPaths::locate(QStandardPaths::AppLocalDataLocation, QStringLiteral("icons/hicolor/scalable/apps/kdeconnect.svg")))));
|
||||
qApp->setWindowIcon(QIcon::fromTheme(QStringLiteral("kdeconnect")));
|
||||
}
|
||||
|
||||
void askPairingConfirmation(Device* device) override
|
||||
|
|
|
@ -29,8 +29,7 @@ SendReplyDialog::SendReplyDialog(const QString& originalMessage, const QString&
|
|||
|
||||
connect(this, &QDialog::accepted, this, &SendReplyDialog::sendButtonClicked);
|
||||
setWindowTitle(topicName);
|
||||
setWindowIcon(QIcon::fromTheme(QStringLiteral("kdeconnect"),
|
||||
QIcon(QStandardPaths::locate(QStandardPaths::AppLocalDataLocation, QStringLiteral("icons/hicolor/scalable/apps/kdeconnect.svg")))));
|
||||
setWindowIcon(QIcon::fromTheme(QStringLiteral("kdeconnect")));
|
||||
setAttribute(Qt::WA_DeleteOnClose);
|
||||
m_ui->replyEdit->setFocus();
|
||||
}
|
||||
|
|
|
@ -18,8 +18,7 @@
|
|||
int main(int argc, char** argv)
|
||||
{
|
||||
QApplication app(argc, argv);
|
||||
app.setWindowIcon(QIcon::fromTheme(QStringLiteral("kdeconnect"),
|
||||
QIcon(QStandardPaths::locate(QStandardPaths::AppLocalDataLocation, QStringLiteral("icons/hicolor/scalable/apps/kdeconnect.svg")))));
|
||||
app.setWindowIcon(QIcon::fromTheme(QStringLiteral("kdeconnect")));
|
||||
KAboutData about(QStringLiteral("kdeconnect-settings"),
|
||||
i18n("KDE Connect Settings"),
|
||||
QStringLiteral(KDECONNECT_VERSION_STRING),
|
||||
|
|
|
@ -27,8 +27,7 @@ int main(int argc, char *argv[])
|
|||
{
|
||||
QApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
|
||||
QApplication app(argc, argv);
|
||||
app.setWindowIcon(QIcon::fromTheme(QStringLiteral("kdeconnect"),
|
||||
QIcon(QStandardPaths::locate(QStandardPaths::AppLocalDataLocation, QStringLiteral("icons/hicolor/scalable/apps/kdeconnect.svg")))));
|
||||
app.setWindowIcon(QIcon::fromTheme(QStringLiteral("kdeconnect")));
|
||||
KAboutData aboutData(QStringLiteral("kdeconnect.sms"),
|
||||
i18n("KDE Connect SMS"),
|
||||
QStringLiteral(KDECONNECT_VERSION_STRING),
|
||||
|
|
|
@ -31,8 +31,7 @@
|
|||
int main(int argc, char** argv)
|
||||
{
|
||||
QApplication app(argc, argv);
|
||||
app.setWindowIcon(QIcon::fromTheme(QStringLiteral("kdeconnect"),
|
||||
QIcon(QStandardPaths::locate(QStandardPaths::AppLocalDataLocation, QStringLiteral("icons/hicolor/scalable/apps/kdeconnect.svg")))));
|
||||
app.setWindowIcon(QIcon::fromTheme(QStringLiteral("kdeconnect")));
|
||||
const QString description = i18n("KDE Connect URL handler");
|
||||
KAboutData about(QStringLiteral("kdeconnect-urlhandler"),
|
||||
description,
|
||||
|
|
Loading…
Reference in a new issue