Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Network
KDE Connect
Commits
d773959a
Commit
d773959a
authored
May 23, 2021
by
Piyush Aggarwal
🎮
Browse files
remove hardcoded window icon path in favour of fromTheme call
parent
8a1e7569
Pipeline
#62840
passed with stage
in 3 minutes and 39 seconds
Changes
6
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
app/main.cpp
View file @
d773959a
...
...
@@ -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
);
...
...
daemon/kdeconnectd.cpp
View file @
d773959a
...
...
@@ -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
...
...
plugins/notifications/sendreplydialog.cpp
View file @
d773959a
...
...
@@ -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
();
}
...
...
settings/main.cpp
View file @
d773959a
...
...
@@ -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
),
...
...
smsapp/main.cpp
View file @
d773959a
...
...
@@ -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
),
...
...
urlhandler/kdeconnect-handler.cpp
View file @
d773959a
...
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment