diff --git a/ktorrent/ktorrent.notifyrc b/ktorrent/ktorrent.notifyrc --- a/ktorrent/ktorrent.notifyrc +++ b/ktorrent/ktorrent.notifyrc @@ -718,3 +718,7 @@ Name[zh_CN]=已开始磁力链下载 Name[zh_TW]=Magnet 連結下載已開始 Action=Sound|Popup + +[Event/MagnetLinkCopied] +Name="Magnet link copied to clipboard" +Action=Popup diff --git a/ktorrent/trayicon.cpp b/ktorrent/trayicon.cpp --- a/ktorrent/trayicon.cpp +++ b/ktorrent/trayicon.cpp @@ -31,7 +31,6 @@ #include #include #include -#include #include #include diff --git a/plugins/magnetgenerator/magnetgeneratorplugin.cpp b/plugins/magnetgenerator/magnetgeneratorplugin.cpp --- a/plugins/magnetgenerator/magnetgeneratorplugin.cpp +++ b/plugins/magnetgenerator/magnetgeneratorplugin.cpp @@ -23,7 +23,7 @@ #include #include #include -#include +#include #include #include @@ -137,8 +137,7 @@ void MagnetGeneratorPlugin::showPopup() { - KPassivePopup::message(i18n("Magnet"), i18n("Magnet link copied to clipboard"), - QIcon::fromTheme(QStringLiteral("kt-magnet")).pixmap(20, 20), getGUI()->getMainWindow(), 3000); + KNotification::event(QStringLiteral("MagnetLinkCopied"), i18n("Magnet link copied to clipboard"), QString(), QStringLiteral("kt-magnet")); } }