mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 15:03:09 +00:00
Move notifyrc file into respective quicksettings
This commit is contained in:
parent
be577e1097
commit
10cb65fc9c
7 changed files with 115 additions and 4 deletions
|
|
@ -96,8 +96,6 @@ ecm_find_qmlmodule(org.kde.pipewire 0.1)
|
||||||
plasma_install_package(look-and-feel org.kde.breeze.mobile look-and-feel lookandfeel)
|
plasma_install_package(look-and-feel org.kde.breeze.mobile look-and-feel lookandfeel)
|
||||||
plasma_install_package(shell org.kde.plasma.phoneshell shells)
|
plasma_install_package(shell org.kde.plasma.phoneshell shells)
|
||||||
|
|
||||||
install(FILES plasma_phone_components.notifyrc DESTINATION ${KDE_INSTALL_KNOTIFYRCDIR})
|
|
||||||
|
|
||||||
add_subdirectory(bin)
|
add_subdirectory(bin)
|
||||||
add_subdirectory(containments)
|
add_subdirectory(containments)
|
||||||
add_subdirectory(components)
|
add_subdirectory(components)
|
||||||
|
|
|
||||||
|
|
@ -26,5 +26,6 @@ file(COPY qmldir DESTINATION ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/org/kde/plasma/qu
|
||||||
|
|
||||||
install(TARGETS recordplugin DESTINATION ${KDE_INSTALL_QMLDIR}/org/kde/plasma/quicksetting/record)
|
install(TARGETS recordplugin DESTINATION ${KDE_INSTALL_QMLDIR}/org/kde/plasma/quicksetting/record)
|
||||||
install(FILES qmldir ${qml_SRC} DESTINATION ${KDE_INSTALL_QMLDIR}/org/kde/plasma/quicksetting/record)
|
install(FILES qmldir ${qml_SRC} DESTINATION ${KDE_INSTALL_QMLDIR}/org/kde/plasma/quicksetting/record)
|
||||||
|
install(FILES plasma_mobile_quicksetting_record.notifyrc DESTINATION ${KDE_INSTALL_KNOTIFYRCDIR})
|
||||||
|
|
||||||
plasma_install_package(package org.kde.plasma.quicksetting.record quicksettings)
|
plasma_install_package(package org.kde.plasma.quicksetting.record quicksettings)
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@ QString RecordUtil::videoLocation(const QString &name)
|
||||||
void RecordUtil::showNotification(const QString &title, const QString &text, const QString &filePath)
|
void RecordUtil::showNotification(const QString &title, const QString &text, const QString &filePath)
|
||||||
{
|
{
|
||||||
KNotification *notif = new KNotification("captured");
|
KNotification *notif = new KNotification("captured");
|
||||||
notif->setComponentName(QStringLiteral("plasma_phone_components"));
|
notif->setComponentName(QStringLiteral("plasma_mobile_quicksetting_record"));
|
||||||
notif->setTitle(title);
|
notif->setTitle(title);
|
||||||
notif->setUrls({QUrl::fromLocalFile(filePath)});
|
notif->setUrls({QUrl::fromLocalFile(filePath)});
|
||||||
notif->setText(text);
|
notif->setText(text);
|
||||||
|
|
|
||||||
|
|
@ -29,6 +29,7 @@ file(COPY qmldir DESTINATION ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/org/kde/plasma/qu
|
||||||
|
|
||||||
install(TARGETS screenshotplugin DESTINATION ${KDE_INSTALL_QMLDIR}/org/kde/plasma/quicksetting/screenshot)
|
install(TARGETS screenshotplugin DESTINATION ${KDE_INSTALL_QMLDIR}/org/kde/plasma/quicksetting/screenshot)
|
||||||
install(FILES qmldir ${qml_SRC} DESTINATION ${KDE_INSTALL_QMLDIR}/org/kde/plasma/quicksetting/screenshot)
|
install(FILES qmldir ${qml_SRC} DESTINATION ${KDE_INSTALL_QMLDIR}/org/kde/plasma/quicksetting/screenshot)
|
||||||
|
install(FILES plasma_mobile_quicksetting_screenshot.notifyrc DESTINATION ${KDE_INSTALL_KNOTIFYRCDIR})
|
||||||
|
|
||||||
plasma_install_package(package org.kde.plasma.quicksetting.screenshot quicksettings)
|
plasma_install_package(package org.kde.plasma.quicksetting.screenshot quicksettings)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,111 @@
|
||||||
|
# SPDX-FileCopyrightText: 2020 Han Young <hanyoung@protonmail.com>
|
||||||
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
|
|
||||||
|
[Global]
|
||||||
|
IconName=preferences-system-windows-effect-screenshot
|
||||||
|
Name=Plasma
|
||||||
|
Name[az]=Plasma
|
||||||
|
Name[ca]=Plasma
|
||||||
|
Name[ca@valencia]=Plasma
|
||||||
|
Name[cs]=Plasma
|
||||||
|
Name[da]=Plasma
|
||||||
|
Name[de]=Plasma
|
||||||
|
Name[en_GB]=Plasma
|
||||||
|
Name[es]=Plasma
|
||||||
|
Name[eu]=Plasma
|
||||||
|
Name[fi]=Plasma
|
||||||
|
Name[fr]=Plasma
|
||||||
|
Name[hi]=प्लाज़्मा
|
||||||
|
Name[hu]=Plasma
|
||||||
|
Name[ia]=Plasma
|
||||||
|
Name[is]=Plasma
|
||||||
|
Name[it]=Plasma
|
||||||
|
Name[ka]=Plasma
|
||||||
|
Name[ko]=Plasma
|
||||||
|
Name[nl]=Plasma
|
||||||
|
Name[nn]=Plasma
|
||||||
|
Name[pa]=ਪਲਾਜ਼ਮਾ
|
||||||
|
Name[pl]=Plazma
|
||||||
|
Name[pt]=Plasma
|
||||||
|
Name[pt_BR]=Plasma
|
||||||
|
Name[ro]=Plasma
|
||||||
|
Name[ru]=Plasma
|
||||||
|
Name[sk]=Plasma
|
||||||
|
Name[sl]=Plasma
|
||||||
|
Name[sv]=Plasma
|
||||||
|
Name[tr]=Plasma
|
||||||
|
Name[uk]=Плазма
|
||||||
|
Name[x-test]=xxPlasmaxx
|
||||||
|
Name[zh_CN]=Plasma
|
||||||
|
Name[zh_TW]=Plasma
|
||||||
|
|
||||||
|
[Event/captured]
|
||||||
|
Name=Captured
|
||||||
|
Name[az]=Şəkli çəkildi
|
||||||
|
Name[ca]=Capturat
|
||||||
|
Name[ca@valencia]=Capturat
|
||||||
|
Name[cs]=Zachyceno
|
||||||
|
Name[da]=Indfanget
|
||||||
|
Name[de]=Aufgenommen
|
||||||
|
Name[en_GB]=Captured
|
||||||
|
Name[es]=Capturado
|
||||||
|
Name[eu]=Atzemanda
|
||||||
|
Name[fi]=Kaapattu
|
||||||
|
Name[fr]=Capturé
|
||||||
|
Name[hi]=कैप्चर्ड
|
||||||
|
Name[hu]=Rögzítve
|
||||||
|
Name[ia]=Capturate
|
||||||
|
Name[is]=Gripið
|
||||||
|
Name[it]=Catturato
|
||||||
|
Name[ka]=დაჭერილია
|
||||||
|
Name[ko]=캡처됨
|
||||||
|
Name[nl]=Opgenomen
|
||||||
|
Name[nn]=Opptak
|
||||||
|
Name[pa]=ਕੈਪਚਰ ਕੀਤਾ
|
||||||
|
Name[pl]=Przechwycono
|
||||||
|
Name[pt]=Capturada
|
||||||
|
Name[pt_BR]=Capturado
|
||||||
|
Name[ro]=Capturat
|
||||||
|
Name[ru]=Снимки
|
||||||
|
Name[sk]=Zachytené
|
||||||
|
Name[sl]=Zajeto
|
||||||
|
Name[sv]=Lagrad
|
||||||
|
Name[tr]=Yakalanan
|
||||||
|
Name[uk]=Захоплено
|
||||||
|
Name[x-test]=xxCapturedxx
|
||||||
|
Name[zh_CN]=已捕获
|
||||||
|
Comment=Captured
|
||||||
|
Comment[az]=Şəkli çəkildi
|
||||||
|
Comment[ca]=Capturat
|
||||||
|
Comment[ca@valencia]=Capturat
|
||||||
|
Comment[cs]=Zachyceno
|
||||||
|
Comment[da]=Indfanget
|
||||||
|
Comment[de]=Aufgenommen
|
||||||
|
Comment[en_GB]=Captured
|
||||||
|
Comment[es]=Capturado
|
||||||
|
Comment[eu]=Atzemanda
|
||||||
|
Comment[fi]=Kaapattu
|
||||||
|
Comment[fr]=Capturé
|
||||||
|
Comment[hi]=कैप्चर्ड
|
||||||
|
Comment[hu]=Rögzítve
|
||||||
|
Comment[ia]=Capturate
|
||||||
|
Comment[is]=Gripið
|
||||||
|
Comment[it]=Catturato
|
||||||
|
Comment[ka]=დაჭერილია
|
||||||
|
Comment[ko]=캡처됨
|
||||||
|
Comment[nl]=Opgenomen
|
||||||
|
Comment[nn]=Opptak
|
||||||
|
Comment[pa]=ਕੈਪਚਰ ਕੀਤਾ
|
||||||
|
Comment[pl]=Przechwycono
|
||||||
|
Comment[pt]=Capturada
|
||||||
|
Comment[pt_BR]=Capturado
|
||||||
|
Comment[ro]=Capturat
|
||||||
|
Comment[ru]=Снимки
|
||||||
|
Comment[sk]=Zachytené
|
||||||
|
Comment[sl]=Zajeto
|
||||||
|
Comment[sv]=Lagrad
|
||||||
|
Comment[tr]=Yakalanan
|
||||||
|
Comment[uk]=Захоплено
|
||||||
|
Comment[x-test]=xxCapturedxx
|
||||||
|
Comment[zh_CN]=已捕获
|
||||||
|
Action=Popup
|
||||||
|
|
@ -135,7 +135,7 @@ void ScreenShotUtil::handleMetaDataReceived(const QVariantMap &metadata, int fd)
|
||||||
qWarning() << "Screenshot failed";
|
qWarning() << "Screenshot failed";
|
||||||
} else {
|
} else {
|
||||||
KNotification *notif = new KNotification("captured");
|
KNotification *notif = new KNotification("captured");
|
||||||
notif->setComponentName(QStringLiteral("plasma_phone_components"));
|
notif->setComponentName(QStringLiteral("plasma_mobile_quicksetting_screenshot"));
|
||||||
notif->setTitle(i18n("New Screenshot"));
|
notif->setTitle(i18n("New Screenshot"));
|
||||||
notif->setUrls({QUrl::fromLocalFile(filePath)});
|
notif->setUrls({QUrl::fromLocalFile(filePath)});
|
||||||
notif->setText(i18n("New screenshot saved to %1", filePath));
|
notif->setText(i18n("New screenshot saved to %1", filePath));
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue