Page Menu
Home
GnuPG
Search
Configure Global Search
Log In
Files
F34134177
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
<KIconLoader>
#include
<KLocalizedString>
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
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Mon, Dec 8, 6:22 AM (14 h, 11 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
21/1f/5d1c928e15fd7aad937512880185
Attached To
rKLEOPATRA Kleopatra
Event Timeline
Log In to Comment