Page Menu
Home
GnuPG
Search
Configure Global Search
Log In
Files
F37961131
tray.cpp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Size
1 KB
Subscribers
None
tray.cpp
View Options
/*
main.cpp
This file is part of Kleopatra, the KDE keymanager
SPDX-FileCopyrightText: 2001, 2002, 2004 Klarälvdalens Datakonsult AB
SPDX-License-Identifier: GPL-2.0-or-later
*/
#include
<config-kleopatra.h>
#include
"tray.h"
#include
"kwatchgnupgmainwin.h"
#include
"kwatchgnupg_debug.h"
#include
<KLocalizedString>
#include
<KIconLoader>
KWatchGnuPGTray
::
KWatchGnuPGTray
(
KWatchGnuPGMainWindow
*
mainwin
)
:
KStatusNotifierItem
(
mainwin
)
{
qCDebug
(
KWATCHGNUPG_LOG
)
<<
"KWatchGnuPGTray::KWatchGnuPGTray"
;
setObjectName
(
QStringLiteral
(
"KWatchGnuPG Tray Window"
));
KIconLoader
::
global
()
->
addAppDir
(
QStringLiteral
(
"kwatchgnupg"
));
mNormalPix
.
addPixmap
(
KIconLoader
::
global
()
->
loadIcon
(
QStringLiteral
(
"kwatchgnupg"
),
KIconLoader
::
Panel
));
mAttentionPix
.
addPixmap
(
KIconLoader
::
global
()
->
loadIcon
(
QStringLiteral
(
"kwatchgnupg2"
),
KIconLoader
::
Panel
));
setToolTipTitle
(
i18n
(
"KWatchGnuPG Log Viewer"
));
}
KWatchGnuPGTray
::~
KWatchGnuPGTray
()
{
}
void
KWatchGnuPGTray
::
setAttention
(
bool
att
)
{
if
(
att
)
{
setIconByPixmap
(
mAttentionPix
);
}
else
{
setIconByPixmap
(
mNormalPix
);
}
}
#include
"moc_tray.cpp"
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Thu, Mar 19, 9:03 PM (21 h, 51 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
a2/cf/525474f5dcb766761e7121076fc3
Attached To
rKLEOPATRA Kleopatra
Event Timeline
Log In to Comment