Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
KDE:Unstable:Frameworks
plasma6-integration
_service:obs_scm:plasma-integration-VERSIONgit....
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:plasma-integration-VERSIONgit.20241104T103119~78b2d0c.obscpio of Package plasma6-integration
07070100000000000081A40000000000000000000000016728A27700000052000000000000000000000000000000000000004D00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/.git-blame-ignore-revs7643aaf2132f5b6354d3ee8abaa51c348bffd9df f0700184de4a5a9d7aa8dc9197f376af28c361de 07070100000001000081A40000000000000000000000016728A27700000131000000000000000000000000000000000000004100000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/.gitignore# Ignore the following files *~ *.[oa] *.diff *.kate-swp *.kdev4 .kdev_include_paths *.kdevelop.pcs *.moc *.moc.cpp *.orig *.user .*.swp .swp.* Doxyfile Makefile avail random_seed /build*/ CMakeLists.txt.user* *.unc-backup* .clang-format /build*/ /compile_commands.json .clangd .idea /cmake-build* .cache 07070100000002000081A40000000000000000000000016728A27700000115000000000000000000000000000000000000004500000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/.gitlab-ci.yml# SPDX-FileCopyrightText: None # SPDX-License-Identifier: CC0-1.0 include: - project: sysadmin/ci-utilities file: - /gitlab-templates/linux.yml - /gitlab-templates/linux-qt6.yml - /gitlab-templates/freebsd.yml - /gitlab-templates/freebsd-qt6.yml 07070100000003000081A40000000000000000000000016728A277000005EC000000000000000000000000000000000000004200000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/.kde-ci.yml# SPDX-FileCopyrightText: None # SPDX-License-Identifier: CC0-1.0 Dependencies: - 'on': ['Linux/Qt5', 'FreeBSD/Qt5'] 'require': 'frameworks/extra-cmake-modules': '@latest' 'frameworks/kconfig': '@latest' 'frameworks/kconfigwidgets': '@latest' 'frameworks/kcoreaddons': '@latest' 'frameworks/ki18n': '@latest' 'frameworks/kiconthemes': '@latest' 'frameworks/kio': '@latest' 'frameworks/kjobwidgets': '@latest' 'frameworks/knotifications': '@latest' 'frameworks/kservice': '@latest' 'frameworks/kwidgetsaddons': '@latest' 'frameworks/kwindowsystem': '@latest' 'frameworks/kxmlgui': '@latest' 'plasma/kwayland': 'kf5' 'plasma/breeze': '@same' 'third-party/wayland': '@latest' - 'on': ['Linux/Qt6', 'FreeBSD/Qt6'] 'require': 'frameworks/extra-cmake-modules': '@latest-kf6' 'frameworks/kconfig': '@latest-kf6' 'frameworks/kcoreaddons': '@latest-kf6' 'frameworks/kguiaddons': '@latest-kf6' 'frameworks/ki18n': '@latest-kf6' 'frameworks/kcolorscheme': '@latest-kf6' 'frameworks/kiconthemes': '@latest-kf6' 'frameworks/kio': '@latest-kf6' 'frameworks/kjobwidgets': '@latest-kf6' 'frameworks/knotifications': '@latest-kf6' 'frameworks/kservice': '@latest-kf6' 'frameworks/kstatusnotifieritem': '@latest-kf6' 'frameworks/kwidgetsaddons': '@latest-kf6' 'frameworks/kwindowsystem': '@latest-kf6' 'frameworks/kxmlgui': '@latest-kf6' 'plasma/breeze': '@same' 'third-party/wayland': '@latest' 07070100000004000081A40000000000000000000000016728A27700000DA8000000000000000000000000000000000000004500000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/CMakeLists.txtcmake_minimum_required(VERSION 3.16) project(PlasmaIntegration) set(PROJECT_VERSION "6.2.80") set(PROJECT_VERSION_MAJOR 6) set(QT5_MIN_VERSION "5.15.2") set(QT_MIN_VERSION "6.7.0") set(KF5_MIN_VERSION "5.102.0") set(KF6_MIN_VERSION "6.5.0") set(KDE_COMPILERSETTINGS_LEVEL "5.82") set(CMAKE_CXX_STANDARD 20) set(CMAKE_CXX_STANDARD_REQUIRED ON) set(QT_NO_CREATE_VERSIONLESS_TARGETS ON) set(QT_NO_CREATE_VERSIONLESS_FUNCTIONS ON) find_package(ECM ${KF5_MIN_VERSION} REQUIRED NO_MODULE) set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules ${ECM_MODULE_PATH} ) # We need this because we can't include KDECMakeSettings here, because that # would need KDEInstallDirs, which we can only include in the qt{5,6} subdirs # to get the correct installation dirs for each Qt version. option(BUILD_TESTING "Build the testing tree." ON) if(BUILD_TESTING) enable_testing() endif() include(KDECompilerSettings NO_POLICY_SCOPE) include(FeatureSummary) include(GenerateExportHeader) include(KDEClangFormat) include(KDEGitCommitHooks) include(ECMDeprecationSettings) find_package(Wayland 1.9 REQUIRED Client) find_package(PlasmaWaylandProtocols 1.6.0 CONFIG REQUIRED) option(BUILD_QT5 "Build for Qt5" ON) option(BUILD_QT6 "Build for Qt6" ON) #CI is stupid and doesn't allow us to set CMAKE options per build variant if ($ENV{CI_JOB_NAME_SLUG} MATCHES "qt5") set(BUILD_QT5 ON) set(BUILD_QT6 OFF) elseif($ENV{CI_JOB_NAME_SLUG} MATCHES "qt6") set(BUILD_QT5 OFF) set(BUILD_QT6 ON) endif() find_package(XCB COMPONENTS XCB) set_package_properties(XCB PROPERTIES DESCRIPTION "X protocol C-language Binding" URL "https://xcb.freedesktop.org" TYPE REQUIRED PURPOSE "Required to pass style properties to native Windows on X11 Platform" ) find_package(FontNotoSans) set_package_properties(FontNotoSans PROPERTIES PURPOSE "Default sans-serif font -- this is not detected automatically, pass -DCMAKE_DISABLE_FIND_PACKAGE_FontNotoSans=true to mark it ignored." URL "https://www.google.com/get/noto/" TYPE RUNTIME ) find_package(FontNotoColorEmoji) set_package_properties(FontNotoColorEmoji PROPERTIES PURPOSE "Default emoji font -- this is not detected automatically, pass -DCMAKE_DISABLE_FIND_PACKAGE_FontNotoColorEmoji=true to mark it ignored." URL "https://www.google.com/get/noto/" TYPE RUNTIME ) find_package(FontHack) set_package_properties(FontHack PROPERTIES PURPOSE "Default monospace font -- this is not detected automatically, pass -DCMAKE_DISABLE_FIND_PACKAGE_FontHack=true to mark it ignored." URL "https://sourcefoundry.org/hack/" TYPE RUNTIME ) find_package(XDGDesktopPortalKDE) set_package_properties(XDGDesktopPortalKDE PROPERTIES PURPOSE "Required for open-with dialog to work correctly -- this is not detected automatically, pass -DCMAKE_DISABLE_FIND_PACKAGE_XDGDesktopPortalKDE=true to mark it ignored." URL "https://invent.kde.org/plasma/xdg-desktop-portal-kde" TYPE RUNTIME ) # add clang-format target for all our real source files file(GLOB_RECURSE ALL_CLANG_FORMAT_SOURCE_FILES *.cpp *.h) kde_clang_format(${ALL_CLANG_FORMAT_SOURCE_FILES}) kde_configure_git_pre_commit_hook(CHECKS CLANG_FORMAT) if (${BUILD_QT5}) unset(QUERY_EXECUTABLE CACHE) add_subdirectory(qt5) endif() if (${BUILD_QT6}) unset(QUERY_EXECUTABLE CACHE) add_definitions(-DTRANSLATION_DOMAIN=\"plasmaintegration5\") add_subdirectory(qt6) endif() feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES) 07070100000005000041ED0000000000000000000000026728A27700000000000000000000000000000000000000000000003F00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/LICENSES07070100000006000081A40000000000000000000000016728A277000005C8000000000000000000000000000000000000005000000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/LICENSES/BSD-3-Clause.txtCopyright (c) <year> <owner>. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 07070100000007000081A40000000000000000000000016728A27700001B88000000000000000000000000000000000000004B00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/LICENSES/CC0-1.0.txtCreative Commons Legal Code CC0 1.0 Universal CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED HEREUNDER. Statement of Purpose The laws of most jurisdictions throughout the world automatically confer exclusive Copyright and Related Rights (defined below) upon the creator and subsequent owner(s) (each and all, an "owner") of an original work of authorship and/or a database (each, a "Work"). Certain owners wish to permanently relinquish those rights to a Work for the purpose of contributing to a commons of creative, cultural and scientific works ("Commons") that the public can reliably and without fear of later claims of infringement build upon, modify, incorporate in other works, reuse and redistribute as freely as possible in any form whatsoever and for any purposes, including without limitation commercial purposes. These owners may contribute to the Commons to promote the ideal of a free culture and the further production of creative, cultural and scientific works, or to gain reputation or greater distribution for their Work in part through the use and efforts of others. For these and/or other purposes and motivations, and without any expectation of additional consideration or compensation, the person associating CC0 with a Work (the "Affirmer"), to the extent that he or she is an owner of Copyright and Related Rights in the Work, voluntarily elects to apply CC0 to the Work and publicly distribute the Work under its terms, with knowledge of his or her Copyright and Related Rights in the Work and the meaning and intended legal effect of CC0 on those rights. 1. Copyright and Related Rights. A Work made available under CC0 may be protected by copyright and related or neighboring rights ("Copyright and Related Rights"). Copyright and Related Rights include, but are not limited to, the following: i. the right to reproduce, adapt, distribute, perform, display, communicate, and translate a Work; ii. moral rights retained by the original author(s) and/or performer(s); iii. publicity and privacy rights pertaining to a person's image or likeness depicted in a Work; iv. rights protecting against unfair competition in regards to a Work, subject to the limitations in paragraph 4(a), below; v. rights protecting the extraction, dissemination, use and reuse of data in a Work; vi. database rights (such as those arising under Directive 96/9/EC of the European Parliament and of the Council of 11 March 1996 on the legal protection of databases, and under any national implementation thereof, including any amended or successor version of such directive); and vii. other similar, equivalent or corresponding rights throughout the world based on applicable law or treaty, and any national implementations thereof. 2. Waiver. To the greatest extent permitted by, but not in contravention of, applicable law, Affirmer hereby overtly, fully, permanently, irrevocably and unconditionally waives, abandons, and surrenders all of Affirmer's Copyright and Related Rights and associated claims and causes of action, whether now known or unknown (including existing as well as future claims and causes of action), in the Work (i) in all territories worldwide, (ii) for the maximum duration provided by applicable law or treaty (including future time extensions), (iii) in any current or future medium and for any number of copies, and (iv) for any purpose whatsoever, including without limitation commercial, advertising or promotional purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each member of the public at large and to the detriment of Affirmer's heirs and successors, fully intending that such Waiver shall not be subject to revocation, rescission, cancellation, termination, or any other legal or equitable action to disrupt the quiet enjoyment of the Work by the public as contemplated by Affirmer's express Statement of Purpose. 3. Public License Fallback. Should any part of the Waiver for any reason be judged legally invalid or ineffective under applicable law, then the Waiver shall be preserved to the maximum extent permitted taking into account Affirmer's express Statement of Purpose. In addition, to the extent the Waiver is so judged Affirmer hereby grants to each affected person a royalty-free, non transferable, non sublicensable, non exclusive, irrevocable and unconditional license to exercise Affirmer's Copyright and Related Rights in the Work (i) in all territories worldwide, (ii) for the maximum duration provided by applicable law or treaty (including future time extensions), (iii) in any current or future medium and for any number of copies, and (iv) for any purpose whatsoever, including without limitation commercial, advertising or promotional purposes (the "License"). The License shall be deemed effective as of the date CC0 was applied by Affirmer to the Work. Should any part of the License for any reason be judged legally invalid or ineffective under applicable law, such partial invalidity or ineffectiveness shall not invalidate the remainder of the License, and in such case Affirmer hereby affirms that he or she will not (i) exercise any of his or her remaining Copyright and Related Rights in the Work or (ii) assert any associated claims and causes of action with respect to the Work, in either case contrary to Affirmer's express Statement of Purpose. 4. Limitations and Disclaimers. a. No trademark or patent rights held by Affirmer are waived, abandoned, surrendered, licensed or otherwise affected by this document. b. Affirmer offers the Work as-is and makes no representations or warranties of any kind concerning the Work, express, implied, statutory or otherwise, including without limitation warranties of title, merchantability, fitness for a particular purpose, non infringement, or the absence of latent or other defects, accuracy, or the present or absence of errors, whether or not discoverable, all to the greatest extent permissible under applicable law. c. Affirmer disclaims responsibility for clearing rights of other persons that may apply to the Work or any use thereof, including without limitation any person's Copyright and Related Rights in the Work. Further, Affirmer disclaims responsibility for obtaining any necessary consents, permissions or other rights required for any use of the Work. d. Affirmer understands and acknowledges that Creative Commons is not a party to this document and has no duty or obligation with respect to this CC0 or use of the Work. 07070100000008000081A40000000000000000000000016728A2770000437D000000000000000000000000000000000000005000000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/LICENSES/GPL-2.0-only.txtGNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Lesser General Public License instead.) You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. one line to give the program's name and an idea of what it does. Copyright (C) yyyy name of author This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) year name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker. signature of Ty Coon, 1 April 1989 Ty Coon, President of Vice 07070100000009000081A40000000000000000000000016728A2770000870F000000000000000000000000000000000000005000000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/LICENSES/GPL-3.0-only.txtGNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright © 2007 Free Software Foundation, Inc. <http://fsf.org/> Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The GNU General Public License is a free, copyleft license for software and other kinds of works. The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things. To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others. For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it. For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions. Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users. Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free. The precise terms and conditions for copying, distribution and modification follow. TERMS AND CONDITIONS 0. Definitions. “This License” refers to version 3 of the GNU General Public License. “Copyright” also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. “The Program” refers to any copyrightable work licensed under this License. Each licensee is addressed as “you”. “Licensees” and “recipients” may be individuals or organizations. To “modify” a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a “modified version” of the earlier work or a work “based on” the earlier work. A “covered work” means either the unmodified Program or a work based on the Program. To “propagate” a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. To “convey” a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. An interactive user interface displays “Appropriate Legal Notices” to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. 1. Source Code. The “source code” for a work means the preferred form of the work for making modifications to it. “Object code” means any non-source form of a work. A “Standard Interface” means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. The “System Libraries” of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A “Major Component”, in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. The “Corresponding Source” for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. The Corresponding Source for a work in source code form is that same work. 2. Basic Permissions. All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. 3. Protecting Users' Legal Rights From Anti-Circumvention Law. No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. 4. Conveying Verbatim Copies. You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee. 5. Conveying Modified Source Versions. You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: a) The work must carry prominent notices stating that you modified it, and giving a relevant date. b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to “keep intact all notices”. c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an “aggregate” if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. 6. Conveying Non-Source Forms. You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. A “User Product” is either (1) a “consumer product”, which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, “normally used” refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. “Installation Information” for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. 7. Additional Terms. “Additional permissions” are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or d) Limiting the use for publicity purposes of names of licensors or authors of the material; or e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. All other non-permissive additional terms are considered “further restrictions” within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. 8. Termination. You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. 9. Acceptance Not Required for Having Copies. You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. 10. Automatic Licensing of Downstream Recipients. Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. An “entity transaction” is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. 11. Patents. A “contributor” is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's “contributor version”. A contributor's “essential patent claims” are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, “control” includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. In the following three paragraphs, a “patent license” is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To “grant” such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. “Knowingly relying” means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. A patent license is “discriminatory” if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. 12. No Surrender of Others' Freedom. If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. 13. Use with the GNU Affero General Public License. Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such. 14. Revised Versions of this License. The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License “or any later version” applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation. If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. 15. Disclaimer of Warranty. THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. Limitation of Liability. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 17. Interpretation of Sections 15 and 16. If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the “copyright” line and a pointer to where the full notice is found. <one line to give the program's name and a brief idea of what it does.> Copyright (C) <year> <name of author> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. Also add information on how to contact you by electronic and paper mail. If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode: <program> Copyright (C) <year> <name of author> This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an “about box”. You should also get your employer (if you work as a programmer) or school, if any, to sign a “copyright disclaimer” for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see <http://www.gnu.org/licenses/>. The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read <http://www.gnu.org/philosophy/why-not-lgpl.html>. 0707010000000A000081A40000000000000000000000016728A277000060CE000000000000000000000000000000000000005100000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/LICENSES/LGPL-2.0-only.txtGNU LIBRARY GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1991 Free Software Foundation, Inc. 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. [This is the first released version of the library GPL. It is numbered 2 because it goes with version 2 of the ordinary GPL.] Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public Licenses are intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This license, the Library General Public License, applies to some specially designated Free Software Foundation software, and to any other libraries whose authors decide to use it. You can use it for your libraries, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the library, or if you modify it. For example, if you distribute copies of the library, whether gratis or for a fee, you must give the recipients all the rights that we gave you. You must make sure that they, too, receive or can get the source code. If you link a program with the library, you must provide complete object files to the recipients so that they can relink them with the library, after making changes to the library and recompiling it. And you must show them these terms so they know their rights. Our method of protecting your rights has two steps: (1) copyright the library, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the library. Also, for each distributor's protection, we want to make certain that everyone understands that there is no warranty for this free library. If the library is modified by someone else and passed on, we want its recipients to know that what they have is not the original version, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that companies distributing free software will individually obtain patent licenses, thus in effect transforming the program into proprietary software. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. Most GNU software, including some libraries, is covered by the ordinary GNU General Public License, which was designed for utility programs. This license, the GNU Library General Public License, applies to certain designated libraries. This license is quite different from the ordinary one; be sure to read it in full, and don't assume that anything in it is the same as in the ordinary license. The reason we have a separate public license for some libraries is that they blur the distinction we usually make between modifying or adding to a program and simply using it. Linking a program with a library, without changing the library, is in some sense simply using the library, and is analogous to running a utility program or application program. However, in a textual and legal sense, the linked executable is a combined work, a derivative of the original library, and the ordinary General Public License treats it as such. Because of this blurred distinction, using the ordinary General Public License for libraries did not effectively promote software sharing, because most developers did not use the libraries. We concluded that weaker conditions might promote sharing better. However, unrestricted linking of non-free programs would deprive the users of those programs of all benefit from the free status of the libraries themselves. This Library General Public License is intended to permit developers of non-free programs to use free libraries, while preserving your freedom as a user of such programs to change the free libraries that are incorporated in them. (We have not seen how to achieve this as regards changes in header files, but we have achieved it as regards changes in the actual functions of the Library.) The hope is that this will lead to faster development of free libraries. The precise terms and conditions for copying, distribution and modification follow. Pay close attention to the difference between a "work based on the library" and a "work that uses the library". The former contains code derived from the library, while the latter only works together with the library. Note that it is possible for a library to be covered by the ordinary General Public License rather than by this special one. TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License Agreement applies to any software library which contains a notice placed by the copyright holder or other authorized party saying it may be distributed under the terms of this Library General Public License (also called "this License"). Each licensee is addressed as "you". A "library" means a collection of software functions and/or data prepared so as to be conveniently linked with application programs (which use some of those functions and data) to form executables. The "Library", below, refers to any such software library or work which has been distributed under these terms. A "work based on the Library" means either the Library or any derivative work under copyright law: that is to say, a work containing the Library or a portion of it, either verbatim or with modifications and/or translated straightforwardly into another language. (Hereinafter, translation is included without limitation in the term "modification".) "Source code" for a work means the preferred form of the work for making modifications to it. For a library, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the library. Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running a program using the Library is not restricted, and output from such a program is covered only if its contents constitute a work based on the Library (independent of the use of the Library in a tool for writing it). Whether that is true depends on what the Library does and what the program that uses the Library does. 1. You may copy and distribute verbatim copies of the Library's complete source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and distribute a copy of this License along with the Library. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Library or any portion of it, thus forming a work based on the Library, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) The modified work must itself be a software library. b) You must cause the files modified to carry prominent notices stating that you changed the files and the date of any change. c) You must cause the whole of the work to be licensed at no charge to all third parties under the terms of this License. d) If a facility in the modified Library refers to a function or a table of data to be supplied by an application program that uses the facility, other than as an argument passed when the facility is invoked, then you must make a good faith effort to ensure that, in the event an application does not supply such function or table, the facility still operates, and performs whatever part of its purpose remains meaningful. (For example, a function in a library to compute square roots has a purpose that is entirely well-defined independent of the application. Therefore, Subsection 2d requires that any application-supplied function or table used by this function must be optional: if the application does not supply it, the square root function must still compute square roots.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Library, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Library, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Library. In addition, mere aggregation of another work not based on the Library with the Library (or with a work based on the Library) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may opt to apply the terms of the ordinary GNU General Public License instead of this License to a given copy of the Library. To do this, you must alter all the notices that refer to this License, so that they refer to the ordinary GNU General Public License, version 2, instead of to this License. (If a newer version than version 2 of the ordinary GNU General Public License has appeared, then you can specify that version instead if you wish.) Do not make any other change in these notices. Once this change is made in a given copy, it is irreversible for that copy, so the ordinary GNU General Public License applies to all subsequent copies and derivative works made from that copy. This option is useful when you wish to copy part of the code of the Library into a program that is not a library. 4. You may copy and distribute the Library (or a portion or derivative of it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange. If distribution of object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place satisfies the requirement to distribute the source code, even though third parties are not compelled to copy the source along with the object code. 5. A program that contains no derivative of any portion of the Library, but is designed to work with the Library by being compiled or linked with it, is called a "work that uses the Library". Such a work, in isolation, is not a derivative work of the Library, and therefore falls outside the scope of this License. However, linking a "work that uses the Library" with the Library creates an executable that is a derivative of the Library (because it contains portions of the Library), rather than a "work that uses the library". The executable is therefore covered by this License. Section 6 states terms for distribution of such executables. When a "work that uses the Library" uses material from a header file that is part of the Library, the object code for the work may be a derivative work of the Library even though the source code is not. Whether this is true is especially significant if the work can be linked without the Library, or if the work is itself a library. The threshold for this to be true is not precisely defined by law. If such an object file uses only numerical parameters, data structure layouts and accessors, and small macros and small inline functions (ten lines or less in length), then the use of the object file is unrestricted, regardless of whether it is legally a derivative work. (Executables containing this object code plus portions of the Library will still fall under Section 6.) Otherwise, if the work is a derivative of the Library, you may distribute the object code for the work under the terms of Section 6. Any executables containing that work also fall under Section 6, whether or not they are linked directly with the Library itself. 6. As an exception to the Sections above, you may also compile or link a "work that uses the Library" with the Library to produce a work containing portions of the Library, and distribute that work under terms of your choice, provided that the terms permit modification of the work for the customer's own use and reverse engineering for debugging such modifications. You must give prominent notice with each copy of the work that the Library is used in it and that the Library and its use are covered by this License. You must supply a copy of this License. If the work during execution displays copyright notices, you must include the copyright notice for the Library among them, as well as a reference directing the user to the copy of this License. Also, you must do one of these things: a) Accompany the work with the complete corresponding machine-readable source code for the Library including whatever changes were used in the work (which must be distributed under Sections 1 and 2 above); and, if the work is an executable linked with the Library, with the complete machine-readable "work that uses the Library", as object code and/or source code, so that the user can modify the Library and then relink to produce a modified executable containing the modified Library. (It is understood that the user who changes the contents of definitions files in the Library will not necessarily be able to recompile the application to use the modified definitions.) b) Accompany the work with a written offer, valid for at least three years, to give the same user the materials specified in Subsection 6a, above, for a charge no more than the cost of performing this distribution. c) If distribution of the work is made by offering access to copy from a designated place, offer equivalent access to copy the above specified materials from the same place. d) Verify that the user has already received a copy of these materials or that you have already sent this user a copy. For an executable, the required form of the "work that uses the Library" must include any data and utility programs needed for reproducing the executable from it. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. It may happen that this requirement contradicts the license restrictions of other proprietary libraries that do not normally accompany the operating system. Such a contradiction means you cannot use both them and the Library together in an executable that you distribute. 7. You may place library facilities that are a work based on the Library side-by-side in a single library together with other library facilities not covered by this License, and distribute such a combined library, provided that the separate distribution of the work based on the Library and of the other library facilities is otherwise permitted, and provided that you do these two things: a) Accompany the combined library with a copy of the same work based on the Library, uncombined with any other library facilities. This must be distributed under the terms of the Sections above. b) Give prominent notice with the combined library of the fact that part of it is a work based on the Library, and explaining where to find the accompanying uncombined form of the same work. 8. You may not copy, modify, sublicense, link with, or distribute the Library except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense, link with, or distribute the Library is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 9. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Library or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Library (or any work based on the Library), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Library or works based on it. 10. Each time you redistribute the Library (or any work based on the Library), the recipient automatically receives a license from the original licensor to copy, distribute, link with or modify the Library subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 11. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Library at all. For example, if a patent license would not permit royalty-free redistribution of the Library by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Library. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply, and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 12. If the distribution and/or use of the Library is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Library under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 13. The Free Software Foundation may publish revised and/or new versions of the Library General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Library specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Library does not specify a license version number, you may choose any version ever published by the Free Software Foundation. 14. If you wish to incorporate parts of the Library into other free programs whose distribution conditions are incompatible with these, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Libraries If you develop a new library, and you want it to be of the greatest possible use to the public, we recommend making it free software that everyone can redistribute and change. You can do so by permitting redistribution under these terms (or, alternatively, under the terms of the ordinary General Public License). To apply these terms, attach the following notices to the library. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. one line to give the library's name and an idea of what it does. Copyright (C) year name of author This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. Also add information on how to contact you by electronic and paper mail. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the library, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the library `Frob' (a library for tweaking knobs) written by James Random Hacker. signature of Ty Coon, 1 April 1990 Ty Coon, President of Vice That's all there is to it! 0707010000000B000081A40000000000000000000000016728A277000060CE000000000000000000000000000000000000005500000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/LICENSES/LGPL-2.0-or-later.txtGNU LIBRARY GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1991 Free Software Foundation, Inc. 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. [This is the first released version of the library GPL. It is numbered 2 because it goes with version 2 of the ordinary GPL.] Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public Licenses are intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This license, the Library General Public License, applies to some specially designated Free Software Foundation software, and to any other libraries whose authors decide to use it. You can use it for your libraries, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the library, or if you modify it. For example, if you distribute copies of the library, whether gratis or for a fee, you must give the recipients all the rights that we gave you. You must make sure that they, too, receive or can get the source code. If you link a program with the library, you must provide complete object files to the recipients so that they can relink them with the library, after making changes to the library and recompiling it. And you must show them these terms so they know their rights. Our method of protecting your rights has two steps: (1) copyright the library, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the library. Also, for each distributor's protection, we want to make certain that everyone understands that there is no warranty for this free library. If the library is modified by someone else and passed on, we want its recipients to know that what they have is not the original version, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that companies distributing free software will individually obtain patent licenses, thus in effect transforming the program into proprietary software. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. Most GNU software, including some libraries, is covered by the ordinary GNU General Public License, which was designed for utility programs. This license, the GNU Library General Public License, applies to certain designated libraries. This license is quite different from the ordinary one; be sure to read it in full, and don't assume that anything in it is the same as in the ordinary license. The reason we have a separate public license for some libraries is that they blur the distinction we usually make between modifying or adding to a program and simply using it. Linking a program with a library, without changing the library, is in some sense simply using the library, and is analogous to running a utility program or application program. However, in a textual and legal sense, the linked executable is a combined work, a derivative of the original library, and the ordinary General Public License treats it as such. Because of this blurred distinction, using the ordinary General Public License for libraries did not effectively promote software sharing, because most developers did not use the libraries. We concluded that weaker conditions might promote sharing better. However, unrestricted linking of non-free programs would deprive the users of those programs of all benefit from the free status of the libraries themselves. This Library General Public License is intended to permit developers of non-free programs to use free libraries, while preserving your freedom as a user of such programs to change the free libraries that are incorporated in them. (We have not seen how to achieve this as regards changes in header files, but we have achieved it as regards changes in the actual functions of the Library.) The hope is that this will lead to faster development of free libraries. The precise terms and conditions for copying, distribution and modification follow. Pay close attention to the difference between a "work based on the library" and a "work that uses the library". The former contains code derived from the library, while the latter only works together with the library. Note that it is possible for a library to be covered by the ordinary General Public License rather than by this special one. TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License Agreement applies to any software library which contains a notice placed by the copyright holder or other authorized party saying it may be distributed under the terms of this Library General Public License (also called "this License"). Each licensee is addressed as "you". A "library" means a collection of software functions and/or data prepared so as to be conveniently linked with application programs (which use some of those functions and data) to form executables. The "Library", below, refers to any such software library or work which has been distributed under these terms. A "work based on the Library" means either the Library or any derivative work under copyright law: that is to say, a work containing the Library or a portion of it, either verbatim or with modifications and/or translated straightforwardly into another language. (Hereinafter, translation is included without limitation in the term "modification".) "Source code" for a work means the preferred form of the work for making modifications to it. For a library, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the library. Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running a program using the Library is not restricted, and output from such a program is covered only if its contents constitute a work based on the Library (independent of the use of the Library in a tool for writing it). Whether that is true depends on what the Library does and what the program that uses the Library does. 1. You may copy and distribute verbatim copies of the Library's complete source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and distribute a copy of this License along with the Library. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Library or any portion of it, thus forming a work based on the Library, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) The modified work must itself be a software library. b) You must cause the files modified to carry prominent notices stating that you changed the files and the date of any change. c) You must cause the whole of the work to be licensed at no charge to all third parties under the terms of this License. d) If a facility in the modified Library refers to a function or a table of data to be supplied by an application program that uses the facility, other than as an argument passed when the facility is invoked, then you must make a good faith effort to ensure that, in the event an application does not supply such function or table, the facility still operates, and performs whatever part of its purpose remains meaningful. (For example, a function in a library to compute square roots has a purpose that is entirely well-defined independent of the application. Therefore, Subsection 2d requires that any application-supplied function or table used by this function must be optional: if the application does not supply it, the square root function must still compute square roots.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Library, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Library, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Library. In addition, mere aggregation of another work not based on the Library with the Library (or with a work based on the Library) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may opt to apply the terms of the ordinary GNU General Public License instead of this License to a given copy of the Library. To do this, you must alter all the notices that refer to this License, so that they refer to the ordinary GNU General Public License, version 2, instead of to this License. (If a newer version than version 2 of the ordinary GNU General Public License has appeared, then you can specify that version instead if you wish.) Do not make any other change in these notices. Once this change is made in a given copy, it is irreversible for that copy, so the ordinary GNU General Public License applies to all subsequent copies and derivative works made from that copy. This option is useful when you wish to copy part of the code of the Library into a program that is not a library. 4. You may copy and distribute the Library (or a portion or derivative of it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange. If distribution of object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place satisfies the requirement to distribute the source code, even though third parties are not compelled to copy the source along with the object code. 5. A program that contains no derivative of any portion of the Library, but is designed to work with the Library by being compiled or linked with it, is called a "work that uses the Library". Such a work, in isolation, is not a derivative work of the Library, and therefore falls outside the scope of this License. However, linking a "work that uses the Library" with the Library creates an executable that is a derivative of the Library (because it contains portions of the Library), rather than a "work that uses the library". The executable is therefore covered by this License. Section 6 states terms for distribution of such executables. When a "work that uses the Library" uses material from a header file that is part of the Library, the object code for the work may be a derivative work of the Library even though the source code is not. Whether this is true is especially significant if the work can be linked without the Library, or if the work is itself a library. The threshold for this to be true is not precisely defined by law. If such an object file uses only numerical parameters, data structure layouts and accessors, and small macros and small inline functions (ten lines or less in length), then the use of the object file is unrestricted, regardless of whether it is legally a derivative work. (Executables containing this object code plus portions of the Library will still fall under Section 6.) Otherwise, if the work is a derivative of the Library, you may distribute the object code for the work under the terms of Section 6. Any executables containing that work also fall under Section 6, whether or not they are linked directly with the Library itself. 6. As an exception to the Sections above, you may also compile or link a "work that uses the Library" with the Library to produce a work containing portions of the Library, and distribute that work under terms of your choice, provided that the terms permit modification of the work for the customer's own use and reverse engineering for debugging such modifications. You must give prominent notice with each copy of the work that the Library is used in it and that the Library and its use are covered by this License. You must supply a copy of this License. If the work during execution displays copyright notices, you must include the copyright notice for the Library among them, as well as a reference directing the user to the copy of this License. Also, you must do one of these things: a) Accompany the work with the complete corresponding machine-readable source code for the Library including whatever changes were used in the work (which must be distributed under Sections 1 and 2 above); and, if the work is an executable linked with the Library, with the complete machine-readable "work that uses the Library", as object code and/or source code, so that the user can modify the Library and then relink to produce a modified executable containing the modified Library. (It is understood that the user who changes the contents of definitions files in the Library will not necessarily be able to recompile the application to use the modified definitions.) b) Accompany the work with a written offer, valid for at least three years, to give the same user the materials specified in Subsection 6a, above, for a charge no more than the cost of performing this distribution. c) If distribution of the work is made by offering access to copy from a designated place, offer equivalent access to copy the above specified materials from the same place. d) Verify that the user has already received a copy of these materials or that you have already sent this user a copy. For an executable, the required form of the "work that uses the Library" must include any data and utility programs needed for reproducing the executable from it. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. It may happen that this requirement contradicts the license restrictions of other proprietary libraries that do not normally accompany the operating system. Such a contradiction means you cannot use both them and the Library together in an executable that you distribute. 7. You may place library facilities that are a work based on the Library side-by-side in a single library together with other library facilities not covered by this License, and distribute such a combined library, provided that the separate distribution of the work based on the Library and of the other library facilities is otherwise permitted, and provided that you do these two things: a) Accompany the combined library with a copy of the same work based on the Library, uncombined with any other library facilities. This must be distributed under the terms of the Sections above. b) Give prominent notice with the combined library of the fact that part of it is a work based on the Library, and explaining where to find the accompanying uncombined form of the same work. 8. You may not copy, modify, sublicense, link with, or distribute the Library except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense, link with, or distribute the Library is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 9. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Library or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Library (or any work based on the Library), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Library or works based on it. 10. Each time you redistribute the Library (or any work based on the Library), the recipient automatically receives a license from the original licensor to copy, distribute, link with or modify the Library subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 11. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Library at all. For example, if a patent license would not permit royalty-free redistribution of the Library by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Library. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply, and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 12. If the distribution and/or use of the Library is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Library under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 13. The Free Software Foundation may publish revised and/or new versions of the Library General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Library specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Library does not specify a license version number, you may choose any version ever published by the Free Software Foundation. 14. If you wish to incorporate parts of the Library into other free programs whose distribution conditions are incompatible with these, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Libraries If you develop a new library, and you want it to be of the greatest possible use to the public, we recommend making it free software that everyone can redistribute and change. You can do so by permitting redistribution under these terms (or, alternatively, under the terms of the ordinary General Public License). To apply these terms, attach the following notices to the library. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. one line to give the library's name and an idea of what it does. Copyright (C) year name of author This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. Also add information on how to contact you by electronic and paper mail. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the library, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the library `Frob' (a library for tweaking knobs) written by James Random Hacker. signature of Ty Coon, 1 April 1990 Ty Coon, President of Vice That's all there is to it! 0707010000000C000081A40000000000000000000000016728A2770000652E000000000000000000000000000000000000005500000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/LICENSES/LGPL-2.1-or-later.txtGNU LESSER GENERAL PUBLIC LICENSE Version 2.1, February 1999 Copyright (C) 1991, 1999 Free Software Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. [This is the first released version of the Lesser GPL. It also counts as the successor of the GNU Library Public License, version 2, hence the version number 2.1.] Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public Licenses are intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This license, the Lesser General Public License, applies to some specially designated software packages--typically libraries--of the Free Software Foundation and other authors who decide to use it. You can use it too, but we suggest you first think carefully about whether this license or the ordinary General Public License is the better strategy to use in any particular case, based on the explanations below. When we speak of free software, we are referring to freedom of use, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish); that you receive source code or can get it if you want it; that you can change the software and use pieces of it in new free programs; and that you are informed that you can do these things. To protect your rights, we need to make restrictions that forbid distributors to deny you these rights or to ask you to surrender these rights. These restrictions translate to certain responsibilities for you if you distribute copies of the library or if you modify it. For example, if you distribute copies of the library, whether gratis or for a fee, you must give the recipients all the rights that we gave you. You must make sure that they, too, receive or can get the source code. If you link other code with the library, you must provide complete object files to the recipients, so that they can relink them with the library after making changes to the library and recompiling it. And you must show them these terms so they know their rights. We protect your rights with a two-step method: (1) we copyright the library, and (2) we offer you this license, which gives you legal permission to copy, distribute and/or modify the library. To protect each distributor, we want to make it very clear that there is no warranty for the free library. Also, if the library is modified by someone else and passed on, the recipients should know that what they have is not the original version, so that the original author's reputation will not be affected by problems that might be introduced by others. Finally, software patents pose a constant threat to the existence of any free program. We wish to make sure that a company cannot effectively restrict the users of a free program by obtaining a restrictive license from a patent holder. Therefore, we insist that any patent license obtained for a version of the library must be consistent with the full freedom of use specified in this license. Most GNU software, including some libraries, is covered by the ordinary GNU General Public License. This license, the GNU Lesser General Public License, applies to certain designated libraries, and is quite different from the ordinary General Public License. We use this license for certain libraries in order to permit linking those libraries into non-free programs. When a program is linked with a library, whether statically or using a shared library, the combination of the two is legally speaking a combined work, a derivative of the original library. The ordinary General Public License therefore permits such linking only if the entire combination fits its criteria of freedom. The Lesser General Public License permits more lax criteria for linking other code with the library. We call this license the "Lesser" General Public License because it does Less to protect the user's freedom than the ordinary General Public License. It also provides other free software developers Less of an advantage over competing non-free programs. These disadvantages are the reason we use the ordinary General Public License for many libraries. However, the Lesser license provides advantages in certain special circumstances. For example, on rare occasions, there may be a special need to encourage the widest possible use of a certain library, so that it becomes a de-facto standard. To achieve this, non-free programs must be allowed to use the library. A more frequent case is that a free library does the same job as widely used non-free libraries. In this case, there is little to gain by limiting the free library to free software only, so we use the Lesser General Public License. In other cases, permission to use a particular library in non-free programs enables a greater number of people to use a large body of free software. For example, permission to use the GNU C Library in non-free programs enables many more people to use the whole GNU operating system, as well as its variant, the GNU/Linux operating system. Although the Lesser General Public License is Less protective of the users' freedom, it does ensure that the user of a program that is linked with the Library has the freedom and the wherewithal to run that program using a modified version of the Library. The precise terms and conditions for copying, distribution and modification follow. Pay close attention to the difference between a "work based on the library" and a "work that uses the library". The former contains code derived from the library, whereas the latter must be combined with the library in order to run. TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License Agreement applies to any software library or other program which contains a notice placed by the copyright holder or other authorized party saying it may be distributed under the terms of this Lesser General Public License (also called "this License"). Each licensee is addressed as "you". A "library" means a collection of software functions and/or data prepared so as to be conveniently linked with application programs (which use some of those functions and data) to form executables. The "Library", below, refers to any such software library or work which has been distributed under these terms. A "work based on the Library" means either the Library or any derivative work under copyright law: that is to say, a work containing the Library or a portion of it, either verbatim or with modifications and/or translated straightforwardly into another language. (Hereinafter, translation is included without limitation in the term "modification".) "Source code" for a work means the preferred form of the work for making modifications to it. For a library, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the library. Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running a program using the Library is not restricted, and output from such a program is covered only if its contents constitute a work based on the Library (independent of the use of the Library in a tool for writing it). Whether that is true depends on what the Library does and what the program that uses the Library does. 1. You may copy and distribute verbatim copies of the Library's complete source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and distribute a copy of this License along with the Library. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Library or any portion of it, thus forming a work based on the Library, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) The modified work must itself be a software library. b) You must cause the files modified to carry prominent notices stating that you changed the files and the date of any change. c) You must cause the whole of the work to be licensed at no charge to all third parties under the terms of this License. d) If a facility in the modified Library refers to a function or a table of data to be supplied by an application program that uses the facility, other than as an argument passed when the facility is invoked, then you must make a good faith effort to ensure that, in the event an application does not supply such function or table, the facility still operates, and performs whatever part of its purpose remains meaningful. (For example, a function in a library to compute square roots has a purpose that is entirely well-defined independent of the application. Therefore, Subsection 2d requires that any application-supplied function or table used by this function must be optional: if the application does not supply it, the square root function must still compute square roots.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Library, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Library, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Library. In addition, mere aggregation of another work not based on the Library with the Library (or with a work based on the Library) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may opt to apply the terms of the ordinary GNU General Public License instead of this License to a given copy of the Library. To do this, you must alter all the notices that refer to this License, so that they refer to the ordinary GNU General Public License, version 2, instead of to this License. (If a newer version than version 2 of the ordinary GNU General Public License has appeared, then you can specify that version instead if you wish.) Do not make any other change in these notices. Once this change is made in a given copy, it is irreversible for that copy, so the ordinary GNU General Public License applies to all subsequent copies and derivative works made from that copy. This option is useful when you wish to copy part of the code of the Library into a program that is not a library. 4. You may copy and distribute the Library (or a portion or derivative of it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange. If distribution of object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place satisfies the requirement to distribute the source code, even though third parties are not compelled to copy the source along with the object code. 5. A program that contains no derivative of any portion of the Library, but is designed to work with the Library by being compiled or linked with it, is called a "work that uses the Library". Such a work, in isolation, is not a derivative work of the Library, and therefore falls outside the scope of this License. However, linking a "work that uses the Library" with the Library creates an executable that is a derivative of the Library (because it contains portions of the Library), rather than a "work that uses the library". The executable is therefore covered by this License. Section 6 states terms for distribution of such executables. When a "work that uses the Library" uses material from a header file that is part of the Library, the object code for the work may be a derivative work of the Library even though the source code is not. Whether this is true is especially significant if the work can be linked without the Library, or if the work is itself a library. The threshold for this to be true is not precisely defined by law. If such an object file uses only numerical parameters, data structure layouts and accessors, and small macros and small inline functions (ten lines or less in length), then the use of the object file is unrestricted, regardless of whether it is legally a derivative work. (Executables containing this object code plus portions of the Library will still fall under Section 6.) Otherwise, if the work is a derivative of the Library, you may distribute the object code for the work under the terms of Section 6. Any executables containing that work also fall under Section 6, whether or not they are linked directly with the Library itself. 6. As an exception to the Sections above, you may also combine or link a "work that uses the Library" with the Library to produce a work containing portions of the Library, and distribute that work under terms of your choice, provided that the terms permit modification of the work for the customer's own use and reverse engineering for debugging such modifications. You must give prominent notice with each copy of the work that the Library is used in it and that the Library and its use are covered by this License. You must supply a copy of this License. If the work during execution displays copyright notices, you must include the copyright notice for the Library among them, as well as a reference directing the user to the copy of this License. Also, you must do one of these things: a) Accompany the work with the complete corresponding machine-readable source code for the Library including whatever changes were used in the work (which must be distributed under Sections 1 and 2 above); and, if the work is an executable linked with the Library, with the complete machine-readable "work that uses the Library", as object code and/or source code, so that the user can modify the Library and then relink to produce a modified executable containing the modified Library. (It is understood that the user who changes the contents of definitions files in the Library will not necessarily be able to recompile the application to use the modified definitions.) b) Use a suitable shared library mechanism for linking with the Library. A suitable mechanism is one that (1) uses at run time a copy of the library already present on the user's computer system, rather than copying library functions into the executable, and (2) will operate properly with a modified version of the library, if the user installs one, as long as the modified version is interface-compatible with the version that the work was made with. c) Accompany the work with a written offer, valid for at least three years, to give the same user the materials specified in Subsection 6a, above, for a charge no more than the cost of performing this distribution. d) If distribution of the work is made by offering access to copy from a designated place, offer equivalent access to copy the above specified materials from the same place. e) Verify that the user has already received a copy of these materials or that you have already sent this user a copy. For an executable, the required form of the "work that uses the Library" must include any data and utility programs needed for reproducing the executable from it. However, as a special exception, the materials to be distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. It may happen that this requirement contradicts the license restrictions of other proprietary libraries that do not normally accompany the operating system. Such a contradiction means you cannot use both them and the Library together in an executable that you distribute. 7. You may place library facilities that are a work based on the Library side-by-side in a single library together with other library facilities not covered by this License, and distribute such a combined library, provided that the separate distribution of the work based on the Library and of the other library facilities is otherwise permitted, and provided that you do these two things: a) Accompany the combined library with a copy of the same work based on the Library, uncombined with any other library facilities. This must be distributed under the terms of the Sections above. b) Give prominent notice with the combined library of the fact that part of it is a work based on the Library, and explaining where to find the accompanying uncombined form of the same work. 8. You may not copy, modify, sublicense, link with, or distribute the Library except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense, link with, or distribute the Library is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 9. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Library or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Library (or any work based on the Library), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Library or works based on it. 10. Each time you redistribute the Library (or any work based on the Library), the recipient automatically receives a license from the original licensor to copy, distribute, link with or modify the Library subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties with this License. 11. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Library at all. For example, if a patent license would not permit royalty-free redistribution of the Library by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Library. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply, and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 12. If the distribution and/or use of the Library is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Library under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 13. The Free Software Foundation may publish revised and/or new versions of the Lesser General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Library specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Library does not specify a license version number, you may choose any version ever published by the Free Software Foundation. 14. If you wish to incorporate parts of the Library into other free programs whose distribution conditions are incompatible with these, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Libraries If you develop a new library, and you want it to be of the greatest possible use to the public, we recommend making it free software that everyone can redistribute and change. You can do so by permitting redistribution under these terms (or, alternatively, under the terms of the ordinary General Public License). To apply these terms, attach the following notices to the library. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. one line to give the library's name and an idea of what it does. Copyright (C) year name of author This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Also add information on how to contact you by electronic and paper mail. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the library, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the library `Frob' (a library for tweaking knobs) written by James Random Hacker. signature of Ty Coon, 1 April 1990 Ty Coon, President of Vice That's all there is to it! 0707010000000D000081A40000000000000000000000016728A27700001CBC000000000000000000000000000000000000005100000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/LICENSES/LGPL-3.0-only.txtGNU LESSER GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/> Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. This version of the GNU Lesser General Public License incorporates the terms and conditions of version 3 of the GNU General Public License, supplemented by the additional permissions listed below. 0. Additional Definitions. As used herein, "this License" refers to version 3 of the GNU Lesser General Public License, and the "GNU GPL" refers to version 3 of the GNU General Public License. "The Library" refers to a covered work governed by this License, other than an Application or a Combined Work as defined below. An "Application" is any work that makes use of an interface provided by the Library, but which is not otherwise based on the Library. Defining a subclass of a class defined by the Library is deemed a mode of using an interface provided by the Library. A "Combined Work" is a work produced by combining or linking an Application with the Library. The particular version of the Library with which the Combined Work was made is also called the "Linked Version". The "Minimal Corresponding Source" for a Combined Work means the Corresponding Source for the Combined Work, excluding any source code for portions of the Combined Work that, considered in isolation, are based on the Application, and not on the Linked Version. The "Corresponding Application Code" for a Combined Work means the object code and/or source code for the Application, including any data and utility programs needed for reproducing the Combined Work from the Application, but excluding the System Libraries of the Combined Work. 1. Exception to Section 3 of the GNU GPL. You may convey a covered work under sections 3 and 4 of this License without being bound by section 3 of the GNU GPL. 2. Conveying Modified Versions. If you modify a copy of the Library, and, in your modifications, a facility refers to a function or data to be supplied by an Application that uses the facility (other than as an argument passed when the facility is invoked), then you may convey a copy of the modified version: a) under this License, provided that you make a good faith effort to ensure that, in the event an Application does not supply the function or data, the facility still operates, and performs whatever part of its purpose remains meaningful, or b) under the GNU GPL, with none of the additional permissions of this License applicable to that copy. 3. Object Code Incorporating Material from Library Header Files. The object code form of an Application may incorporate material from a header file that is part of the Library. You may convey such object code under terms of your choice, provided that, if the incorporated material is not limited to numerical parameters, data structure layouts and accessors, or small macros, inline functions and templates (ten or fewer lines in length), you do both of the following: a) Give prominent notice with each copy of the object code that the Library is used in it and that the Library and its use are covered by this License. b) Accompany the object code with a copy of the GNU GPL and this license document. 4. Combined Works. You may convey a Combined Work under terms of your choice that, taken together, effectively do not restrict modification of the portions of the Library contained in the Combined Work and reverse engineering for debugging such modifications, if you also do each of the following: a) Give prominent notice with each copy of the Combined Work that the Library is used in it and that the Library and its use are covered by this License. b) Accompany the Combined Work with a copy of the GNU GPL and this license document. c) For a Combined Work that displays copyright notices during execution, include the copyright notice for the Library among these notices, as well as a reference directing the user to the copies of the GNU GPL and this license document. d) Do one of the following: 0) Convey the Minimal Corresponding Source under the terms of this License, and the Corresponding Application Code in a form suitable for, and under terms that permit, the user to recombine or relink the Application with a modified version of the Linked Version to produce a modified Combined Work, in the manner specified by section 6 of the GNU GPL for conveying Corresponding Source. 1) Use a suitable shared library mechanism for linking with the Library. A suitable mechanism is one that (a) uses at run time a copy of the Library already present on the user's computer system, and (b) will operate properly with a modified version of the Library that is interface-compatible with the Linked Version. e) Provide Installation Information, but only if you would otherwise be required to provide such information under section 6 of the GNU GPL, and only to the extent that such information is necessary to install and execute a modified version of the Combined Work produced by recombining or relinking the Application with a modified version of the Linked Version. (If you use option 4d0, the Installation Information must accompany the Minimal Corresponding Source and Corresponding Application Code. If you use option 4d1, you must provide the Installation Information in the manner specified by section 6 of the GNU GPL for conveying Corresponding Source.) 5. Combined Libraries. You may place library facilities that are a work based on the Library side by side in a single library together with other library facilities that are not Applications and are not covered by this License, and convey such a combined library under terms of your choice, if you do both of the following: a) Accompany the combined library with a copy of the same work based on the Library, uncombined with any other library facilities, conveyed under the terms of this License. b) Give prominent notice with the combined library that part of it is a work based on the Library, and explaining where to find the accompanying uncombined form of the same work. 6. Revised Versions of the GNU Lesser General Public License. The Free Software Foundation may publish revised and/or new versions of the GNU Lesser General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Library as you received it specifies that a certain numbered version of the GNU Lesser General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that published version or of any later version published by the Free Software Foundation. If the Library as you received it does not specify a version number of the GNU Lesser General Public License, you may choose any version of the GNU Lesser General Public License ever published by the Free Software Foundation. If the Library as you received it specifies that a proxy can decide whether future versions of the GNU Lesser General Public License shall apply, that proxy's public statement of acceptance of any version is permanent authorization for you to choose that version for the Library. 0707010000000E000081A40000000000000000000000016728A27700000299000000000000000000000000000000000000006000000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/LICENSES/LicenseRef-KDE-Accepted-LGPL.txtThis library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 3 of the license or (at your option) any later version that is accepted by the membership of KDE e.V. (or its successor approved by the membership of KDE e.V.), which shall act as a proxy as defined in Section 6 of version 3 of the license. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. 0707010000000F000081A40000000000000000000000016728A2770000023F000000000000000000000000000000000000006000000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/LICENSES/LicenseRef-KFQF-Accepted-GPL.txtAlternatively, this file may be used under the terms of the GNU General Public License version 2.0 or (at your option) the GNU General Public license version 3 or any later version approved by the KDE Free Qt Foundation. The licenses are as published by the Free Software Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 included in the packaging of this file. Please review the following information to ensure the GNU General Public License requirements will be met: https://www.gnu.org/licenses/gpl-2.0.html and https://www.gnu.org/licenses/gpl-3.0.html. 07070100000010000081A40000000000000000000000016728A277000001B3000000000000000000000000000000000000005C00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/LICENSES/LicenseRef-Qt-Commercial.txtCommercial License Usage Licensees holding valid commercial Qt licenses may use this file in accordance with the commercial license agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and The Qt Company. For licensing terms and conditions see https://www.qt.io/terms-conditions. For further information use the contact form at https://www.qt.io/contact-us. 07070100000011000081A40000000000000000000000016728A2770000035D000000000000000000000000000000000000004000000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/README.md# Plasma Integration Integrates Qt applications with the KDE workspace by providing a QPlatformTheme. Applications do not need to link to this directly. This plugin provides [the KdePlatformTheme](/qt6/src/platformtheme/kdeplatformtheme.h). It handles integrating Qt applications, such as displaying native KDE file dialogs. The theme also controls other miscellaneous integrations like setting the default Qt Quick Controls style and fonts. ## Building The easiest way to make changes and test Plasma Integration during development is to [build it with kdesrc-build](https://community.kde.org/Get_Involved/development/Build_software_with_kdesrc-build). When building Plasma Integration manually, keep in mind that the Qt5 and Qt6 versions will be built by default. To control which versions are built, use the `BUILD_QT5` and `BUILD_QT6` CMake variables. 07070100000012000041ED0000000000000000000000036728A27700000000000000000000000000000000000000000000003C00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/cmake07070100000013000041ED0000000000000000000000026728A27700000000000000000000000000000000000000000000004400000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/cmake/modules07070100000014000081A40000000000000000000000016728A27700000E6F000000000000000000000000000000000000006100000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/cmake/modules/FindQt5PlatformSupport.cmake#.rst: # FindQt5PlatformSupport # ------- # # Try to find Qt5PlatformSupport on a Unix system. # # This will define the following variables: # # ``Qt5PlatformSupport_FOUND`` # True if (the requested version of) Qt5PlatformSupport is available # ``Qt5PlatformSupport_VERSION`` # The version of Qt5PlatformSupport # ``Qt5PlatformSupport_LIBRARIES`` # This can be passed to target_link_libraries() instead of the ``Qt5PlatformSupport::Qt5PlatformSupport`` # target # ``Qt5PlatformSupport_INCLUDE_DIRS`` # This should be passed to target_include_directories() if the target is not # used for linking # ``Qt5PlatformSupport_DEFINITIONS`` # This should be passed to target_compile_options() if the target is not # used for linking # # If ``Qt5PlatformSupport_FOUND`` is TRUE, it will also define the following imported target: # # ``Qt5PlatformSupport::Qt5PlatformSupport`` # The Qt5PlatformSupport library # # In general we recommend using the imported target, as it is easier to use. # Bear in mind, however, that if the target is in the link interface of an # exported library, it must be made available by the package config file. #============================================================================= # SPDX-FileCopyrightText: 2014 Alex Merry <alex.merry@kde.org> # SPDX-FileCopyrightText: 2014 Martin Gräßlin <mgraesslin@kde.org> # # SPDX-License-Identifier: BSD-3-Clause #============================================================================= if(CMAKE_VERSION VERSION_LESS 2.8.12) message(FATAL_ERROR "CMake 2.8.12 is required by FindQt5PlatformSupport.cmake") endif() if(CMAKE_MINIMUM_REQUIRED_VERSION VERSION_LESS 2.8.12) message(AUTHOR_WARNING "Your project should require at least CMake 2.8.12 to use FindQt5PlatformSupport.cmake") endif() # Use pkg-config to get the directories and then use these values # in the FIND_PATH() and FIND_LIBRARY() calls find_package(PkgConfig) pkg_check_modules(PKG_Qt5PlatformSupport QUIET Qt5Gui) set(Qt5PlatformSupport_DEFINITIONS ${PKG_Qt5PlatformSupport_CFLAGS_OTHER}) set(Qt5PlatformSupport_VERSION ${PKG_Qt5PlatformSupport_VERSION}) find_path(Qt5PlatformSupport_INCLUDE_DIR NAMES QtPlatformSupport/private/qfontconfigdatabase_p.h HINTS ${PKG_Qt5PlatformSupport_INCLUDEDIR}/QtPlatformSupport/${PKG_Qt5PlatformSupport_VERSION}/ ) find_library(Qt5PlatformSupport_LIBRARY NAMES Qt5PlatformSupport HINTS ${PKG_Qt5PlatformSupport_LIBRARY_DIRS} ) include(FindPackageHandleStandardArgs) find_package_handle_standard_args(Qt5PlatformSupport FOUND_VAR Qt5PlatformSupport_FOUND REQUIRED_VARS Qt5PlatformSupport_LIBRARY Qt5PlatformSupport_INCLUDE_DIR VERSION_VAR Qt5PlatformSupport_VERSION ) if(Qt5PlatformSupport_FOUND AND NOT TARGET Qt5PlatformSupport::Qt5PlatformSupport) add_library(Qt5PlatformSupport::Qt5PlatformSupport UNKNOWN IMPORTED) set_target_properties(Qt5PlatformSupport::Qt5PlatformSupport PROPERTIES IMPORTED_LOCATION "${Qt5PlatformSupport_LIBRARY}" INTERFACE_COMPILE_OPTIONS "${Qt5PlatformSupport_DEFINITIONS}" INTERFACE_INCLUDE_DIRECTORIES "${Qt5PlatformSupport_INCLUDE_DIR}" ) endif() mark_as_advanced(Qt5PlatformSupport_LIBRARY Qt5PlatformSupport_INCLUDE_DIR) # compatibility variables set(Qt5PlatformSupport_LIBRARIES ${Qt5PlatformSupport_LIBRARY}) set(Qt5PlatformSupport_INCLUDE_DIRS ${Qt5PlatformSupport_INCLUDE_DIR}) set(Qt5PlatformSupport_VERSION_STRING ${Qt5PlatformSupport_VERSION}) include(FeatureSummary) set_package_properties(Qt5PlatformSupport PROPERTIES URL "https://www.qt.io" DESCRIPTION "Qt PlatformSupport module." ) 07070100000015000081A40000000000000000000000016728A27700000E10000000000000000000000000000000000000005E00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/cmake/modules/FindQt5ThemeSupport.cmake#.rst: # FindQt5ThemeSupport # ------- # # Try to find Qt5ThemeSupport on a Unix system. # # This will define the following variables: # # ``Qt5ThemeSupport_FOUND`` # True if (the requested version of) Qt5ThemeSupport is available # ``Qt5ThemeSupport_VERSION`` # The version of Qt5ThemeSupport # ``Qt5ThemeSupport_LIBRARIES`` # This can be passed to target_link_libraries() instead of the ``Qt5ThemeSupport::Qt5ThemeSupport`` # target # ``Qt5ThemeSupport_INCLUDE_DIRS`` # This should be passed to target_include_directories() if the target is not # used for linking # ``Qt5ThemeSupport_DEFINITIONS`` # This should be passed to target_compile_options() if the target is not # used for linking # # If ``Qt5ThemeSupport_FOUND`` is TRUE, it will also define the following imported target: # # ``Qt5ThemeSupport::Qt5ThemeSupport`` # The Qt5ThemeSupport library # # In general we recommend using the imported target, as it is easier to use. # Bear in mind, however, that if the target is in the link interface of an # exported library, it must be made available by the package config file. #============================================================================= # SPDX-FileCopyrightText: 2014 Alex Merry <alex.merry@kde.org> # SPDX-FileCopyrightText: 2014 Martin Gräßlin <mgraesslin@kde.org> # SPDX-FileCopyrightText: 2016 Takahiro Hashimoto <kenya888@gmail.com> # # SPDX-License-Identifier: BSD-3-Clause #============================================================================= if(CMAKE_VERSION VERSION_LESS 2.8.12) message(FATAL_ERROR "CMake 2.8.12 is required by FindQt5ThemeSupport.cmake") endif() if(CMAKE_MINIMUM_REQUIRED_VERSION VERSION_LESS 2.8.12) message(AUTHOR_WARNING "Your project should require at least CMake 2.8.12 to use FindQt5ThemeSupport.cmake") endif() # Use pkg-config to get the directories and then use these values # in the FIND_PATH() and FIND_LIBRARY() calls find_package(PkgConfig) pkg_check_modules(PKG_Qt5ThemeSupport QUIET Qt5Gui) set(Qt5ThemeSupport_DEFINITIONS ${PKG_Qt5ThemeSupport_CFLAGS_OTHER}) set(Qt5ThemeSupport_VERSION ${PKG_Qt5ThemeSupport_VERSION}) find_path(Qt5ThemeSupport_INCLUDE_DIR NAMES QtThemeSupport/private/qgenericunixthemes_p.h HINTS ${PKG_Qt5ThemeSupport_INCLUDEDIR}/QtThemeSupport/${PKG_Qt5ThemeSupport_VERSION}/ ) find_library(Qt5ThemeSupport_LIBRARY NAMES Qt5ThemeSupport HINTS ${PKG_Qt5ThemeSupport_LIBRARY_DIRS} ) include(FindPackageHandleStandardArgs) find_package_handle_standard_args(Qt5ThemeSupport FOUND_VAR Qt5ThemeSupport_FOUND REQUIRED_VARS Qt5ThemeSupport_LIBRARY Qt5ThemeSupport_INCLUDE_DIR VERSION_VAR Qt5ThemeSupport_VERSION ) if(Qt5ThemeSupport_FOUND AND NOT TARGET Qt5ThemeSupport::Qt5ThemeSupport) add_library(Qt5ThemeSupport::Qt5ThemeSupport UNKNOWN IMPORTED) set_target_properties(Qt5ThemeSupport::Qt5ThemeSupport PROPERTIES IMPORTED_LOCATION "${Qt5ThemeSupport_LIBRARY}" INTERFACE_COMPILE_OPTIONS "${Qt5ThemeSupport_DEFINITIONS}" INTERFACE_INCLUDE_DIRECTORIES "${Qt5ThemeSupport_INCLUDE_DIR}" ) endif() mark_as_advanced(Qt5ThemeSupport_LIBRARY Qt5ThemeSupport_INCLUDE_DIR) # compatibility variables set(Qt5ThemeSupport_LIBRARIES ${Qt5ThemeSupport_LIBRARY}) set(Qt5ThemeSupport_INCLUDE_DIRS ${Qt5ThemeSupport_INCLUDE_DIR}) set(Qt5ThemeSupport_VERSION_STRING ${Qt5ThemeSupport_VERSION}) include(FeatureSummary) set_package_properties(Qt5ThemeSupport PROPERTIES URL "https://www.qt.io" DESCRIPTION "Qt ThemeSupport module." ) 07070100000016000041ED0000000000000000000000386728A27700000000000000000000000000000000000000000000003900000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po07070100000017000041ED0000000000000000000000026728A27700000000000000000000000000000000000000000000003C00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/ar07070100000018000081A40000000000000000000000016728A277000010EA000000000000000000000000000000000000005200000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/ar/plasmaintegration5.po# Copyright (C) YEAR This_file_is_part_of_KDE # This file is distributed under the same license as the PACKAGE package. # Safa Alfulaij <safa1996alfulaij@gmail.com>, 2016. # SPDX-FileCopyrightText: 2021, 2022, 2024 Zayed Al-Saidi <zayed.alsaidi@gmail.com> # msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: https://bugs.kde.org\n" "POT-Creation-Date: 2024-09-17 00:40+0000\n" "PO-Revision-Date: 2024-06-26 22:34+0400\n" "Last-Translator: Zayed Al-Saidi <zayed.alsaidi@gmail.com>\n" "Language-Team: ar\n" "Language: ar\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 " "&& n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n" "X-Generator: Lokalize 23.08.5\n" #: platformtheme/kdeplatformfiledialoghelper.cpp:260 #, kde-format msgctxt "@title:window" msgid "Open File" msgstr "افتح ملفًّا" #: platformtheme/kdeplatformfiledialoghelper.cpp:261 #, kde-format msgctxt "@title:window" msgid "Save File" msgstr "احفظ الكلّ" #: platformtheme/kdeplatformtheme.cpp:299 #, kde-format msgctxt "@action:button" msgid "Save All" msgstr "احفظ الكلّ" #: platformtheme/kdeplatformtheme.cpp:303 #, kde-format msgctxt "@action:button" msgid "&Yes" msgstr "&نعم" #: platformtheme/kdeplatformtheme.cpp:305 #, kde-format msgctxt "@action:button" msgid "Yes to All" msgstr "نعم للكلّ" #: platformtheme/kdeplatformtheme.cpp:307 #, kde-format msgctxt "@action:button" msgid "&No" msgstr "&لا" #: platformtheme/kdeplatformtheme.cpp:309 #, kde-format msgctxt "@action:button" msgid "No to All" msgstr "لا للكلّ" #: platformtheme/kdeplatformtheme.cpp:312 #, kde-format msgctxt "@action:button" msgid "Abort" msgstr "أجهض" #: platformtheme/kdeplatformtheme.cpp:314 #, kde-format msgctxt "@action:button" msgid "Retry" msgstr "حاول مجدّدًا" #: platformtheme/kdeplatformtheme.cpp:316 #, kde-format msgctxt "@action:button" msgid "Ignore" msgstr "تجاهل" #: platformtheme/kdirselectdialog.cpp:122 #, kde-format msgctxt "folder name" msgid "New Folder" msgstr "مجلّد جديد" #: platformtheme/kdirselectdialog.cpp:128 #, kde-format msgctxt "@title:window" msgid "New Folder" msgstr "مجلّد جديد" #: platformtheme/kdirselectdialog.cpp:129 #, kde-format msgctxt "@label:textbox" msgid "" "Create new folder in:\n" "%1" msgstr "" "أنشئ مجلّدًا جديدًا في:\n" "%1" #: platformtheme/kdirselectdialog.cpp:160 #, kde-format msgid "A file or folder named %1 already exists." msgstr "ثمّة ملفّ أو مجلّد بالاسم %1 موجود." #: platformtheme/kdirselectdialog.cpp:169 #, kde-format msgid "You do not have permission to create that folder." msgstr "لا صلاحيّة لك لإنشاء هذا المجلّد." #: platformtheme/kdirselectdialog.cpp:271 #, kde-format msgctxt "@title:window" msgid "Select Folder" msgstr "اختر مجلّدًا" #: platformtheme/kdirselectdialog.cpp:279 #, kde-format msgctxt "@action:button" msgid "New Folder..." msgstr "مجلّد جديد..." #: platformtheme/kdirselectdialog.cpp:336 #, kde-format msgctxt "@action:inmenu" msgid "New Folder..." msgstr "مجلّد جديد..." #: platformtheme/kdirselectdialog.cpp:345 #, kde-format msgctxt "@action:inmenu" msgid "Move to Trash" msgstr "انقل إلى المهملات" #: platformtheme/kdirselectdialog.cpp:354 #, kde-format msgctxt "@action:inmenu" msgid "Delete" msgstr "احذف" #: platformtheme/kdirselectdialog.cpp:365 #, kde-format msgctxt "@option:check" msgid "Show Hidden Folders" msgstr "أظهر المجلّدات المخفيّة" #: platformtheme/kdirselectdialog.cpp:372 #, kde-format msgctxt "@action:inmenu" msgid "Properties" msgstr "خصائص" #: platformtheme/kfiletreeview.cpp:185 #, kde-format msgid "Show Hidden Folders" msgstr "أظهر المجلّدات المخفيّة" #: platformtheme/kioopenwith.cpp:147 #, kde-format msgid "" "Failed to launch for unknown reasons. Please try with a pre-existing " "application." msgstr "" "فشل الإطلاق لأسباب غير معروفة. يرجى المحاولة باستخدام تطبيق موجود مسبقًا." #~ msgid "Opening..." #~ msgstr "يفتح..." #~ msgid "Saving..." #~ msgstr "يحفظ..." 07070100000019000041ED0000000000000000000000026728A27700000000000000000000000000000000000000000000003D00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/ast0707010000001A000081A40000000000000000000000016728A27700000E7C000000000000000000000000000000000000005300000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/ast/plasmaintegration5.po# Copyright (C) 2023 This file is copyright: # This file is distributed under the same license as the plasma-integration package. # # SPDX-FileCopyrightText: 2023, 2024 Enol P. <enolp@softastur.org> msgid "" msgstr "" "Project-Id-Version: plasma-integration\n" "Report-Msgid-Bugs-To: https://bugs.kde.org\n" "POT-Creation-Date: 2024-09-17 00:40+0000\n" "PO-Revision-Date: 2024-03-15 01:19+0100\n" "Last-Translator: Enol P. <enolp@softastur.org>\n" "Language-Team: Asturian <alministradores@softastur.org>\n" "Language: ast\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" "X-Generator: Lokalize 24.02.0\n" #: platformtheme/kdeplatformfiledialoghelper.cpp:260 #, kde-format msgctxt "@title:window" msgid "Open File" msgstr "" #: platformtheme/kdeplatformfiledialoghelper.cpp:261 #, kde-format msgctxt "@title:window" msgid "Save File" msgstr "" #: platformtheme/kdeplatformtheme.cpp:299 #, kde-format msgctxt "@action:button" msgid "Save All" msgstr "Guardar too" #: platformtheme/kdeplatformtheme.cpp:303 #, kde-format msgctxt "@action:button" msgid "&Yes" msgstr "&Sí" #: platformtheme/kdeplatformtheme.cpp:305 #, kde-format msgctxt "@action:button" msgid "Yes to All" msgstr "Sí a too" #: platformtheme/kdeplatformtheme.cpp:307 #, kde-format msgctxt "@action:button" msgid "&No" msgstr "&Non" #: platformtheme/kdeplatformtheme.cpp:309 #, kde-format msgctxt "@action:button" msgid "No to All" msgstr "Non a too" #: platformtheme/kdeplatformtheme.cpp:312 #, kde-format msgctxt "@action:button" msgid "Abort" msgstr "" #: platformtheme/kdeplatformtheme.cpp:314 #, kde-format msgctxt "@action:button" msgid "Retry" msgstr "Retentar" #: platformtheme/kdeplatformtheme.cpp:316 #, kde-format msgctxt "@action:button" msgid "Ignore" msgstr "Inorar" #: platformtheme/kdirselectdialog.cpp:122 #, kde-format msgctxt "folder name" msgid "New Folder" msgstr "Carpeta nueva" #: platformtheme/kdirselectdialog.cpp:128 #, kde-format msgctxt "@title:window" msgid "New Folder" msgstr "Carpeta nueva" #: platformtheme/kdirselectdialog.cpp:129 #, kde-format msgctxt "@label:textbox" msgid "" "Create new folder in:\n" "%1" msgstr "" #: platformtheme/kdirselectdialog.cpp:160 #, kde-format msgid "A file or folder named %1 already exists." msgstr "Yá esiste un ficheru o una carpeta col nome «%1»." #: platformtheme/kdirselectdialog.cpp:169 #, kde-format msgid "You do not have permission to create that folder." msgstr "Nun tienes permisu pa crear esa carpeta." #: platformtheme/kdirselectdialog.cpp:271 #, kde-format msgctxt "@title:window" msgid "Select Folder" msgstr "" #: platformtheme/kdirselectdialog.cpp:279 #, kde-format msgctxt "@action:button" msgid "New Folder..." msgstr "Carpeta nueva…" #: platformtheme/kdirselectdialog.cpp:336 #, kde-format msgctxt "@action:inmenu" msgid "New Folder..." msgstr "Carpeta nueva…" #: platformtheme/kdirselectdialog.cpp:345 #, kde-format msgctxt "@action:inmenu" msgid "Move to Trash" msgstr "Tirar a la papelera" #: platformtheme/kdirselectdialog.cpp:354 #, kde-format msgctxt "@action:inmenu" msgid "Delete" msgstr "Desaniciar" #: platformtheme/kdirselectdialog.cpp:365 #, kde-format msgctxt "@option:check" msgid "Show Hidden Folders" msgstr "Amosar les carpetes anubríes" #: platformtheme/kdirselectdialog.cpp:372 #, kde-format msgctxt "@action:inmenu" msgid "Properties" msgstr "Propiedaes" #: platformtheme/kfiletreeview.cpp:185 #, kde-format msgid "Show Hidden Folders" msgstr "" #: platformtheme/kioopenwith.cpp:147 #, kde-format msgid "" "Failed to launch for unknown reasons. Please try with a pre-existing " "application." msgstr "" 0707010000001B000041ED0000000000000000000000026728A27700000000000000000000000000000000000000000000003C00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/az0707010000001C000081A40000000000000000000000016728A27700000EEF000000000000000000000000000000000000005200000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/az/plasmaintegration5.po# Copyright (C) YEAR This file is copyright: # This file is distributed under the same license as the plasma-integration package. # # Xəyyam Qocayev <xxmn77@gmail.com>, 2020. msgid "" msgstr "" "Project-Id-Version: plasma-integration\n" "Report-Msgid-Bugs-To: https://bugs.kde.org\n" "POT-Creation-Date: 2024-09-17 00:40+0000\n" "PO-Revision-Date: 2020-07-27 17:46+0400\n" "Last-Translator: Xəyyam Qocayev <xxmn77@gmail.com>\n" "Language-Team: Azerbaijani <kde-i18n-doc@kde.org>\n" "Language: az\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Lokalize 20.04.3\n" #: platformtheme/kdeplatformfiledialoghelper.cpp:260 #, kde-format msgctxt "@title:window" msgid "Open File" msgstr "Faylı açmaq" #: platformtheme/kdeplatformfiledialoghelper.cpp:261 #, kde-format msgctxt "@title:window" msgid "Save File" msgstr "Faylı saxlamaq" #: platformtheme/kdeplatformtheme.cpp:299 #, kde-format msgctxt "@action:button" msgid "Save All" msgstr "Hamısını saxlamaq" #: platformtheme/kdeplatformtheme.cpp:303 #, kde-format msgctxt "@action:button" msgid "&Yes" msgstr "" #: platformtheme/kdeplatformtheme.cpp:305 #, kde-format msgctxt "@action:button" msgid "Yes to All" msgstr "Bəli, hamısı üçün" #: platformtheme/kdeplatformtheme.cpp:307 #, kde-format msgctxt "@action:button" msgid "&No" msgstr "" #: platformtheme/kdeplatformtheme.cpp:309 #, kde-format msgctxt "@action:button" msgid "No to All" msgstr "Xeyir, heç biri" #: platformtheme/kdeplatformtheme.cpp:312 #, kde-format msgctxt "@action:button" msgid "Abort" msgstr "Dayandırmaq" #: platformtheme/kdeplatformtheme.cpp:314 #, kde-format msgctxt "@action:button" msgid "Retry" msgstr "Təkrarlamaq" #: platformtheme/kdeplatformtheme.cpp:316 #, kde-format msgctxt "@action:button" msgid "Ignore" msgstr "İmtina" #: platformtheme/kdirselectdialog.cpp:122 #, kde-format msgctxt "folder name" msgid "New Folder" msgstr "Yeni Qovluq" #: platformtheme/kdirselectdialog.cpp:128 #, kde-format msgctxt "@title:window" msgid "New Folder" msgstr "Yeni Qovluq" #: platformtheme/kdirselectdialog.cpp:129 #, kde-format msgctxt "@label:textbox" msgid "" "Create new folder in:\n" "%1" msgstr "" "Burada yeni qovluq yaratmaq:\n" "%1" #: platformtheme/kdirselectdialog.cpp:160 #, kde-format msgid "A file or folder named %1 already exists." msgstr "%1 adlı fayl və ya qovluq adı artıq mövcuddur." #: platformtheme/kdirselectdialog.cpp:169 #, kde-format msgid "You do not have permission to create that folder." msgstr "Sizin bu qovluğu yaratmağa icazəniz yoxdur." #: platformtheme/kdirselectdialog.cpp:271 #, kde-format msgctxt "@title:window" msgid "Select Folder" msgstr "Qovluq Seç" #: platformtheme/kdirselectdialog.cpp:279 #, kde-format msgctxt "@action:button" msgid "New Folder..." msgstr "Yeni Qovluq..." #: platformtheme/kdirselectdialog.cpp:336 #, kde-format msgctxt "@action:inmenu" msgid "New Folder..." msgstr "Yeni Qovluq..." #: platformtheme/kdirselectdialog.cpp:345 #, kde-format msgctxt "@action:inmenu" msgid "Move to Trash" msgstr "Səbət At" #: platformtheme/kdirselectdialog.cpp:354 #, kde-format msgctxt "@action:inmenu" msgid "Delete" msgstr "Silmək" #: platformtheme/kdirselectdialog.cpp:365 #, kde-format msgctxt "@option:check" msgid "Show Hidden Folders" msgstr "Gizli Qovluqları göstərmək" #: platformtheme/kdirselectdialog.cpp:372 #, kde-format msgctxt "@action:inmenu" msgid "Properties" msgstr "Xüsusiyyətlər" #: platformtheme/kfiletreeview.cpp:185 #, kde-format msgid "Show Hidden Folders" msgstr "Gizli Qovluqları göstərmək" #: platformtheme/kioopenwith.cpp:147 #, kde-format msgid "" "Failed to launch for unknown reasons. Please try with a pre-existing " "application." msgstr "" 0707010000001D000041ED0000000000000000000000026728A27700000000000000000000000000000000000000000000003C00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/bg0707010000001E000081A40000000000000000000000016728A277000010EA000000000000000000000000000000000000005200000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/bg/plasmaintegration5.po# Copyright (C) 2024 This file is copyright: # This file is distributed under the same license as the plasma-integration package. # # SPDX-FileCopyrightText: 2022, 2024 Mincho Kondarev <mkondarev@yahoo.de> msgid "" msgstr "" "Project-Id-Version: plasma-integration\n" "Report-Msgid-Bugs-To: https://bugs.kde.org\n" "POT-Creation-Date: 2024-09-17 00:40+0000\n" "PO-Revision-Date: 2024-06-26 20:25+0200\n" "Last-Translator: Mincho Kondarev <mkondarev@yahoo.de>\n" "Language-Team: Bulgarian <kde-i18n-doc@kde.org>\n" "Language: bg\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Lokalize 24.05.1\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" #: platformtheme/kdeplatformfiledialoghelper.cpp:260 #, kde-format msgctxt "@title:window" msgid "Open File" msgstr "Отваряне на файл" #: platformtheme/kdeplatformfiledialoghelper.cpp:261 #, kde-format msgctxt "@title:window" msgid "Save File" msgstr "Запазване на файл" #: platformtheme/kdeplatformtheme.cpp:299 #, kde-format msgctxt "@action:button" msgid "Save All" msgstr "Запазване на всичко" #: platformtheme/kdeplatformtheme.cpp:303 #, kde-format msgctxt "@action:button" msgid "&Yes" msgstr "&Да" #: platformtheme/kdeplatformtheme.cpp:305 #, kde-format msgctxt "@action:button" msgid "Yes to All" msgstr "Да за всички" #: platformtheme/kdeplatformtheme.cpp:307 #, kde-format msgctxt "@action:button" msgid "&No" msgstr "&Не" #: platformtheme/kdeplatformtheme.cpp:309 #, kde-format msgctxt "@action:button" msgid "No to All" msgstr "Не за всички" #: platformtheme/kdeplatformtheme.cpp:312 #, kde-format msgctxt "@action:button" msgid "Abort" msgstr "Прекъсване" #: platformtheme/kdeplatformtheme.cpp:314 #, kde-format msgctxt "@action:button" msgid "Retry" msgstr "Повторен опит" #: platformtheme/kdeplatformtheme.cpp:316 #, kde-format msgctxt "@action:button" msgid "Ignore" msgstr "Игнориране" #: platformtheme/kdirselectdialog.cpp:122 #, kde-format msgctxt "folder name" msgid "New Folder" msgstr "Нова папка" #: platformtheme/kdirselectdialog.cpp:128 #, kde-format msgctxt "@title:window" msgid "New Folder" msgstr "Нова папка" #: platformtheme/kdirselectdialog.cpp:129 #, kde-format msgctxt "@label:textbox" msgid "" "Create new folder in:\n" "%1" msgstr "" "Създаване на нова папка в: \n" "%1" #: platformtheme/kdirselectdialog.cpp:160 #, kde-format msgid "A file or folder named %1 already exists." msgstr "Вече съществува файл или папка с име %1." #: platformtheme/kdirselectdialog.cpp:169 #, kde-format msgid "You do not have permission to create that folder." msgstr "Нямате разрешение да създадете тази папка." #: platformtheme/kdirselectdialog.cpp:271 #, kde-format msgctxt "@title:window" msgid "Select Folder" msgstr "Избиране на папка" #: platformtheme/kdirselectdialog.cpp:279 #, kde-format msgctxt "@action:button" msgid "New Folder..." msgstr "Нова папка..." #: platformtheme/kdirselectdialog.cpp:336 #, kde-format msgctxt "@action:inmenu" msgid "New Folder..." msgstr "Нова папка..." #: platformtheme/kdirselectdialog.cpp:345 #, kde-format msgctxt "@action:inmenu" msgid "Move to Trash" msgstr "Преместване в кошчето" #: platformtheme/kdirselectdialog.cpp:354 #, kde-format msgctxt "@action:inmenu" msgid "Delete" msgstr "Изтриване" #: platformtheme/kdirselectdialog.cpp:365 #, kde-format msgctxt "@option:check" msgid "Show Hidden Folders" msgstr "Показване на скритите папки" #: platformtheme/kdirselectdialog.cpp:372 #, kde-format msgctxt "@action:inmenu" msgid "Properties" msgstr "Свойства" #: platformtheme/kfiletreeview.cpp:185 #, kde-format msgid "Show Hidden Folders" msgstr "Показване на скритите папки" #: platformtheme/kioopenwith.cpp:147 #, kde-format msgid "" "Failed to launch for unknown reasons. Please try with a pre-existing " "application." msgstr "" "Неуспешно стартиране по неизвестни причини. Моля, опитайте с вече " "съществуващо приложение." 0707010000001F000041ED0000000000000000000000026728A27700000000000000000000000000000000000000000000003C00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/ca07070100000020000081A40000000000000000000000016728A27700000FF9000000000000000000000000000000000000005200000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/ca/plasmaintegration5.po# Translation of plasmaintegration5.po to Catalan # Copyright (C) 2016-2024 This_file_is_part_of_KDE # This file is distributed under the license LGPL version 2.1 or # version 3 or later versions approved by the membership of KDE e.V. # # Josep M. Ferrer <txemaq@gmail.com>, 2016, 2017, 2022, 2024. # Antoni Bella Pérez <antonibella5@yahoo.com>, 2020. msgid "" msgstr "" "Project-Id-Version: plasma-integration\n" "Report-Msgid-Bugs-To: https://bugs.kde.org\n" "POT-Creation-Date: 2024-09-17 00:40+0000\n" "PO-Revision-Date: 2024-06-26 10:20+0200\n" "Last-Translator: Josep M. Ferrer <txemaq@gmail.com>\n" "Language-Team: Catalan <kde-i18n-ca@kde.org>\n" "Language: ca\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" "X-Accelerator-Marker: &\n" "X-Generator: Lokalize 22.12.3\n" #: platformtheme/kdeplatformfiledialoghelper.cpp:260 #, kde-format msgctxt "@title:window" msgid "Open File" msgstr "Obre un fitxer" #: platformtheme/kdeplatformfiledialoghelper.cpp:261 #, kde-format msgctxt "@title:window" msgid "Save File" msgstr "Desa el fitxer" #: platformtheme/kdeplatformtheme.cpp:299 #, kde-format msgctxt "@action:button" msgid "Save All" msgstr "Desa-ho tot" #: platformtheme/kdeplatformtheme.cpp:303 #, kde-format msgctxt "@action:button" msgid "&Yes" msgstr "&Sí" #: platformtheme/kdeplatformtheme.cpp:305 #, kde-format msgctxt "@action:button" msgid "Yes to All" msgstr "Sí a tot" #: platformtheme/kdeplatformtheme.cpp:307 #, kde-format msgctxt "@action:button" msgid "&No" msgstr "&No" #: platformtheme/kdeplatformtheme.cpp:309 #, kde-format msgctxt "@action:button" msgid "No to All" msgstr "No a tot" #: platformtheme/kdeplatformtheme.cpp:312 #, kde-format msgctxt "@action:button" msgid "Abort" msgstr "Interromp" #: platformtheme/kdeplatformtheme.cpp:314 #, kde-format msgctxt "@action:button" msgid "Retry" msgstr "Reintenta" #: platformtheme/kdeplatformtheme.cpp:316 #, kde-format msgctxt "@action:button" msgid "Ignore" msgstr "Ignora" #: platformtheme/kdirselectdialog.cpp:122 #, kde-format msgctxt "folder name" msgid "New Folder" msgstr "Carpeta nova" #: platformtheme/kdirselectdialog.cpp:128 #, kde-format msgctxt "@title:window" msgid "New Folder" msgstr "Carpeta nova" #: platformtheme/kdirselectdialog.cpp:129 #, kde-format msgctxt "@label:textbox" msgid "" "Create new folder in:\n" "%1" msgstr "" "Crea una carpeta nova a:\n" "%1" #: platformtheme/kdirselectdialog.cpp:160 #, kde-format msgid "A file or folder named %1 already exists." msgstr "Ja existeix un fitxer o una carpeta anomenats %1." #: platformtheme/kdirselectdialog.cpp:169 #, kde-format msgid "You do not have permission to create that folder." msgstr "No teniu permís per a crear aquesta carpeta." #: platformtheme/kdirselectdialog.cpp:271 #, kde-format msgctxt "@title:window" msgid "Select Folder" msgstr "Selecció d'una carpeta" #: platformtheme/kdirselectdialog.cpp:279 #, kde-format msgctxt "@action:button" msgid "New Folder..." msgstr "Carpeta nova..." #: platformtheme/kdirselectdialog.cpp:336 #, kde-format msgctxt "@action:inmenu" msgid "New Folder..." msgstr "Carpeta nova..." #: platformtheme/kdirselectdialog.cpp:345 #, kde-format msgctxt "@action:inmenu" msgid "Move to Trash" msgstr "Mou a la paperera" #: platformtheme/kdirselectdialog.cpp:354 #, kde-format msgctxt "@action:inmenu" msgid "Delete" msgstr "Suprimeix" #: platformtheme/kdirselectdialog.cpp:365 #, kde-format msgctxt "@option:check" msgid "Show Hidden Folders" msgstr "Mostra les carpetes ocultes" #: platformtheme/kdirselectdialog.cpp:372 #, kde-format msgctxt "@action:inmenu" msgid "Properties" msgstr "Propietats" #: platformtheme/kfiletreeview.cpp:185 #, kde-format msgid "Show Hidden Folders" msgstr "Mostra les carpetes ocultes" #: platformtheme/kioopenwith.cpp:147 #, kde-format msgid "" "Failed to launch for unknown reasons. Please try with a pre-existing " "application." msgstr "" "No s'ha pogut iniciar per raons desconegudes. Proveu-ho amb una aplicació " "preexistent." 07070100000021000041ED0000000000000000000000026728A27700000000000000000000000000000000000000000000004500000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/ca@valencia07070100000022000081A40000000000000000000000016728A27700001019000000000000000000000000000000000000005B00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/ca@valencia/plasmaintegration5.po# Translation of plasmaintegration5.po to Catalan (Valencian) # Copyright (C) 2016-2024 This_file_is_part_of_KDE # This file is distributed under the license LGPL version 2.1 or # version 3 or later versions approved by the membership of KDE e.V. # # Josep M. Ferrer <txemaq@gmail.com>, 2016, 2017, 2022, 2024. # Antoni Bella Pérez <antonibella5@yahoo.com>, 2020. msgid "" msgstr "" "Project-Id-Version: plasma-integration\n" "Report-Msgid-Bugs-To: https://bugs.kde.org\n" "POT-Creation-Date: 2024-09-17 00:40+0000\n" "PO-Revision-Date: 2024-06-26 10:20+0200\n" "Last-Translator: Josep M. Ferrer <txemaq@gmail.com>\n" "Language-Team: Catalan <kde-i18n-ca@kde.org>\n" "Language: ca@valencia\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" "X-Accelerator-Marker: &\n" "X-Generator: Lokalize 22.12.3\n" #: platformtheme/kdeplatformfiledialoghelper.cpp:260 #, kde-format msgctxt "@title:window" msgid "Open File" msgstr "Obri un fitxer" #: platformtheme/kdeplatformfiledialoghelper.cpp:261 #, kde-format msgctxt "@title:window" msgid "Save File" msgstr "Guarda el fitxer" #: platformtheme/kdeplatformtheme.cpp:299 #, kde-format msgctxt "@action:button" msgid "Save All" msgstr "Guarda-ho tot" #: platformtheme/kdeplatformtheme.cpp:303 #, kde-format msgctxt "@action:button" msgid "&Yes" msgstr "&Sí" #: platformtheme/kdeplatformtheme.cpp:305 #, kde-format msgctxt "@action:button" msgid "Yes to All" msgstr "Sí a tot" #: platformtheme/kdeplatformtheme.cpp:307 #, kde-format msgctxt "@action:button" msgid "&No" msgstr "&No" #: platformtheme/kdeplatformtheme.cpp:309 #, kde-format msgctxt "@action:button" msgid "No to All" msgstr "No a tot" #: platformtheme/kdeplatformtheme.cpp:312 #, kde-format msgctxt "@action:button" msgid "Abort" msgstr "Interromp" #: platformtheme/kdeplatformtheme.cpp:314 #, kde-format msgctxt "@action:button" msgid "Retry" msgstr "Reintenta" #: platformtheme/kdeplatformtheme.cpp:316 #, kde-format msgctxt "@action:button" msgid "Ignore" msgstr "Ignora" #: platformtheme/kdirselectdialog.cpp:122 #, kde-format msgctxt "folder name" msgid "New Folder" msgstr "Carpeta nova" #: platformtheme/kdirselectdialog.cpp:128 #, kde-format msgctxt "@title:window" msgid "New Folder" msgstr "Carpeta nova" #: platformtheme/kdirselectdialog.cpp:129 #, kde-format msgctxt "@label:textbox" msgid "" "Create new folder in:\n" "%1" msgstr "" "Crea una carpeta nova a:\n" "%1" #: platformtheme/kdirselectdialog.cpp:160 #, kde-format msgid "A file or folder named %1 already exists." msgstr "Ja existix un fitxer o una carpeta anomenats %1." #: platformtheme/kdirselectdialog.cpp:169 #, kde-format msgid "You do not have permission to create that folder." msgstr "No teniu permís per a crear esta carpeta." #: platformtheme/kdirselectdialog.cpp:271 #, kde-format msgctxt "@title:window" msgid "Select Folder" msgstr "Seleccioneu una carpeta" #: platformtheme/kdirselectdialog.cpp:279 #, kde-format msgctxt "@action:button" msgid "New Folder..." msgstr "Carpeta nova…" #: platformtheme/kdirselectdialog.cpp:336 #, kde-format msgctxt "@action:inmenu" msgid "New Folder..." msgstr "Carpeta nova…" #: platformtheme/kdirselectdialog.cpp:345 #, kde-format msgctxt "@action:inmenu" msgid "Move to Trash" msgstr "Mou cap a dins de la paperera" #: platformtheme/kdirselectdialog.cpp:354 #, kde-format msgctxt "@action:inmenu" msgid "Delete" msgstr "Suprimix" #: platformtheme/kdirselectdialog.cpp:365 #, kde-format msgctxt "@option:check" msgid "Show Hidden Folders" msgstr "Mostra les carpetes ocultes" #: platformtheme/kdirselectdialog.cpp:372 #, kde-format msgctxt "@action:inmenu" msgid "Properties" msgstr "Propietats" #: platformtheme/kfiletreeview.cpp:185 #, kde-format msgid "Show Hidden Folders" msgstr "Mostra les carpetes ocultes" #: platformtheme/kioopenwith.cpp:147 #, kde-format msgid "" "Failed to launch for unknown reasons. Please try with a pre-existing " "application." msgstr "" "No s'ha pogut iniciar per raons desconegudes. Proveu-ho amb una aplicació " "preexistent." 07070100000023000041ED0000000000000000000000026728A27700000000000000000000000000000000000000000000003C00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/cs07070100000024000081A40000000000000000000000016728A27700000EEC000000000000000000000000000000000000005200000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/cs/plasmaintegration5.po# Copyright (C) YEAR This_file_is_part_of_KDE # This file is distributed under the same license as the PACKAGE package. # Vít Pelčák <vit@pelcak.org>, 2014. # Vit Pelcak <vit@pelcak.org>, 2022. # msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: https://bugs.kde.org\n" "POT-Creation-Date: 2024-09-17 00:40+0000\n" "PO-Revision-Date: 2022-11-08 16:44+0100\n" "Last-Translator: Vit Pelcak <vit@pelcak.org>\n" "Language-Team: Czech <kde-i18n-doc@kde.org>\n" "Language: cs\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n" "X-Generator: Lokalize 22.08.3\n" #: platformtheme/kdeplatformfiledialoghelper.cpp:260 #, kde-format msgctxt "@title:window" msgid "Open File" msgstr "Otevřít soubor" #: platformtheme/kdeplatformfiledialoghelper.cpp:261 #, kde-format msgctxt "@title:window" msgid "Save File" msgstr "Uložit soubor" #: platformtheme/kdeplatformtheme.cpp:299 #, kde-format msgctxt "@action:button" msgid "Save All" msgstr "Uložit vše" #: platformtheme/kdeplatformtheme.cpp:303 #, kde-format msgctxt "@action:button" msgid "&Yes" msgstr "&Ano" #: platformtheme/kdeplatformtheme.cpp:305 #, kde-format msgctxt "@action:button" msgid "Yes to All" msgstr "Ano všem" #: platformtheme/kdeplatformtheme.cpp:307 #, kde-format msgctxt "@action:button" msgid "&No" msgstr "&Ne" #: platformtheme/kdeplatformtheme.cpp:309 #, kde-format msgctxt "@action:button" msgid "No to All" msgstr "Ne všem" #: platformtheme/kdeplatformtheme.cpp:312 #, kde-format msgctxt "@action:button" msgid "Abort" msgstr "Přerušit" #: platformtheme/kdeplatformtheme.cpp:314 #, kde-format msgctxt "@action:button" msgid "Retry" msgstr "Zkusit znovu" #: platformtheme/kdeplatformtheme.cpp:316 #, kde-format msgctxt "@action:button" msgid "Ignore" msgstr "Ignorovat" #: platformtheme/kdirselectdialog.cpp:122 #, kde-format msgctxt "folder name" msgid "New Folder" msgstr "Nová složka" #: platformtheme/kdirselectdialog.cpp:128 #, kde-format msgctxt "@title:window" msgid "New Folder" msgstr "Nová složka" #: platformtheme/kdirselectdialog.cpp:129 #, kde-format msgctxt "@label:textbox" msgid "" "Create new folder in:\n" "%1" msgstr "" "Vytvořit novou složku v:\n" "%1" #: platformtheme/kdirselectdialog.cpp:160 #, kde-format msgid "A file or folder named %1 already exists." msgstr "Složka nebo soubor pojmenovaný %1 již existuje." #: platformtheme/kdirselectdialog.cpp:169 #, kde-format msgid "You do not have permission to create that folder." msgstr "Nemáte práva k vytvoření této složky." #: platformtheme/kdirselectdialog.cpp:271 #, kde-format msgctxt "@title:window" msgid "Select Folder" msgstr "Vybrat složku" #: platformtheme/kdirselectdialog.cpp:279 #, kde-format msgctxt "@action:button" msgid "New Folder..." msgstr "Nová složka..." #: platformtheme/kdirselectdialog.cpp:336 #, kde-format msgctxt "@action:inmenu" msgid "New Folder..." msgstr "Nová složka..." #: platformtheme/kdirselectdialog.cpp:345 #, kde-format msgctxt "@action:inmenu" msgid "Move to Trash" msgstr "Přesunout do koše" #: platformtheme/kdirselectdialog.cpp:354 #, kde-format msgctxt "@action:inmenu" msgid "Delete" msgstr "Smazat" #: platformtheme/kdirselectdialog.cpp:365 #, kde-format msgctxt "@option:check" msgid "Show Hidden Folders" msgstr "Zobrazovat skryté složky" #: platformtheme/kdirselectdialog.cpp:372 #, kde-format msgctxt "@action:inmenu" msgid "Properties" msgstr "Vlastnosti" #: platformtheme/kfiletreeview.cpp:185 #, kde-format msgid "Show Hidden Folders" msgstr "Zobrazovat skryté složky" #: platformtheme/kioopenwith.cpp:147 #, kde-format msgid "" "Failed to launch for unknown reasons. Please try with a pre-existing " "application." msgstr "" 07070100000025000041ED0000000000000000000000026728A27700000000000000000000000000000000000000000000003C00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/da07070100000026000081A40000000000000000000000016728A27700000F9A000000000000000000000000000000000000005200000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/da/plasmaintegration5.po# Copyright (C) YEAR This_file_is_part_of_KDE # This file is distributed under the same license as the PACKAGE package. # # Martin Schlander <mschlander@opensuse.org>, 2016. # SPDX-FileCopyrightText: 2024 rasmus rosendahl-kaa <rasmus@rosendahl-kaa.name> msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: https://bugs.kde.org\n" "POT-Creation-Date: 2024-09-17 00:40+0000\n" "PO-Revision-Date: 2024-10-30 10:54+0100\n" "Last-Translator: rasmus rosendahl-kaa <rasmus@rosendahl-kaa.name>\n" "Language-Team: Danish <kde-i18n-doc@kde.org>\n" "Language: da\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" "X-Generator: Lokalize 24.08.2\n" #: platformtheme/kdeplatformfiledialoghelper.cpp:260 #, kde-format msgctxt "@title:window" msgid "Open File" msgstr "Åbn fil" #: platformtheme/kdeplatformfiledialoghelper.cpp:261 #, kde-format msgctxt "@title:window" msgid "Save File" msgstr "Gem fil" #: platformtheme/kdeplatformtheme.cpp:299 #, kde-format msgctxt "@action:button" msgid "Save All" msgstr "Gem alt" #: platformtheme/kdeplatformtheme.cpp:303 #, kde-format msgctxt "@action:button" msgid "&Yes" msgstr "&Ja" #: platformtheme/kdeplatformtheme.cpp:305 #, kde-format msgctxt "@action:button" msgid "Yes to All" msgstr "Ja til alle" #: platformtheme/kdeplatformtheme.cpp:307 #, kde-format msgctxt "@action:button" msgid "&No" msgstr "&Nej" #: platformtheme/kdeplatformtheme.cpp:309 #, kde-format msgctxt "@action:button" msgid "No to All" msgstr "Nej til alle" #: platformtheme/kdeplatformtheme.cpp:312 #, kde-format msgctxt "@action:button" msgid "Abort" msgstr "Afbryd" #: platformtheme/kdeplatformtheme.cpp:314 #, kde-format msgctxt "@action:button" msgid "Retry" msgstr "Prøv igen" #: platformtheme/kdeplatformtheme.cpp:316 #, kde-format msgctxt "@action:button" msgid "Ignore" msgstr "Ignorér" #: platformtheme/kdirselectdialog.cpp:122 #, kde-format msgctxt "folder name" msgid "New Folder" msgstr "Ny mappe" #: platformtheme/kdirselectdialog.cpp:128 #, kde-format msgctxt "@title:window" msgid "New Folder" msgstr "Ny mappe" #: platformtheme/kdirselectdialog.cpp:129 #, kde-format msgctxt "@label:textbox" msgid "" "Create new folder in:\n" "%1" msgstr "" "Opret ny mappe i:\n" "%1" #: platformtheme/kdirselectdialog.cpp:160 #, kde-format msgid "A file or folder named %1 already exists." msgstr "En fil eller mappe ved navn %1 eksisterer allerede." #: platformtheme/kdirselectdialog.cpp:169 #, kde-format msgid "You do not have permission to create that folder." msgstr "Du har ikke rettigheder til at oprette den mappe." #: platformtheme/kdirselectdialog.cpp:271 #, kde-format msgctxt "@title:window" msgid "Select Folder" msgstr "Vælg mappe" #: platformtheme/kdirselectdialog.cpp:279 #, kde-format msgctxt "@action:button" msgid "New Folder..." msgstr "Ny mappe..." #: platformtheme/kdirselectdialog.cpp:336 #, kde-format msgctxt "@action:inmenu" msgid "New Folder..." msgstr "Ny mappe..." #: platformtheme/kdirselectdialog.cpp:345 #, kde-format msgctxt "@action:inmenu" msgid "Move to Trash" msgstr "Flyt til papirkurv" #: platformtheme/kdirselectdialog.cpp:354 #, kde-format msgctxt "@action:inmenu" msgid "Delete" msgstr "Slet" #: platformtheme/kdirselectdialog.cpp:365 #, kde-format msgctxt "@option:check" msgid "Show Hidden Folders" msgstr "Vis skjulte mapper" #: platformtheme/kdirselectdialog.cpp:372 #, kde-format msgctxt "@action:inmenu" msgid "Properties" msgstr "Egenskaber" #: platformtheme/kfiletreeview.cpp:185 #, kde-format msgid "Show Hidden Folders" msgstr "Vis skjulte mapper" #: platformtheme/kioopenwith.cpp:147 #, kde-format msgid "" "Failed to launch for unknown reasons. Please try with a pre-existing " "application." msgstr "" "Kunne ikke starte af ukendte årsager. Prøv venligst igen med et allerede " "eksisterende program." #~ msgid "Opening..." #~ msgstr "Åbner..." #~ msgid "Saving..." #~ msgstr "Gemmer..." 07070100000027000041ED0000000000000000000000026728A27700000000000000000000000000000000000000000000003C00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/de07070100000028000081A40000000000000000000000016728A27700000FAD000000000000000000000000000000000000005200000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/de/plasmaintegration5.po# Copyright (C) YEAR This_file_is_part_of_KDE # This file is distributed under the same license as the PACKAGE package. # Frederik Schwarzer <schwarzer@kde.org>, 2016, 2023. # Burkhard Lück <lueck@hube-lueck.de>, 2016, 2021. # msgid "" msgstr "" "Project-Id-Version: plasmaintegration5\n" "Report-Msgid-Bugs-To: https://bugs.kde.org\n" "POT-Creation-Date: 2024-09-17 00:40+0000\n" "PO-Revision-Date: 2023-04-03 16:54+0200\n" "Last-Translator: Frederik Schwarzer <schwarzer@kde.org>\n" "Language-Team: German <kde-i18n-de@kde.org>\n" "Language: de\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Lokalize 22.12.3\n" #: platformtheme/kdeplatformfiledialoghelper.cpp:260 #, kde-format msgctxt "@title:window" msgid "Open File" msgstr "Datei öffnen" #: platformtheme/kdeplatformfiledialoghelper.cpp:261 #, kde-format msgctxt "@title:window" msgid "Save File" msgstr "Datei speichern" #: platformtheme/kdeplatformtheme.cpp:299 #, kde-format msgctxt "@action:button" msgid "Save All" msgstr "Alle speichern" #: platformtheme/kdeplatformtheme.cpp:303 #, kde-format msgctxt "@action:button" msgid "&Yes" msgstr "&Ja" #: platformtheme/kdeplatformtheme.cpp:305 #, kde-format msgctxt "@action:button" msgid "Yes to All" msgstr "Ja für alle" #: platformtheme/kdeplatformtheme.cpp:307 #, kde-format msgctxt "@action:button" msgid "&No" msgstr "&Nein" #: platformtheme/kdeplatformtheme.cpp:309 #, kde-format msgctxt "@action:button" msgid "No to All" msgstr "Nein für alle" #: platformtheme/kdeplatformtheme.cpp:312 #, kde-format msgctxt "@action:button" msgid "Abort" msgstr "Abbrechen" #: platformtheme/kdeplatformtheme.cpp:314 #, kde-format msgctxt "@action:button" msgid "Retry" msgstr "Erneut versuchen" #: platformtheme/kdeplatformtheme.cpp:316 #, kde-format msgctxt "@action:button" msgid "Ignore" msgstr "Ignorieren" #: platformtheme/kdirselectdialog.cpp:122 #, kde-format msgctxt "folder name" msgid "New Folder" msgstr "Neuer Ordner" #: platformtheme/kdirselectdialog.cpp:128 #, kde-format msgctxt "@title:window" msgid "New Folder" msgstr "Neuer Ordner" #: platformtheme/kdirselectdialog.cpp:129 #, kde-format msgctxt "@label:textbox" msgid "" "Create new folder in:\n" "%1" msgstr "" "Neuen Ordner anlegen in:\n" "%1" #: platformtheme/kdirselectdialog.cpp:160 #, kde-format msgid "A file or folder named %1 already exists." msgstr "Eine Datei oder ein Ordner mit dem Namen %1 existiert bereits." #: platformtheme/kdirselectdialog.cpp:169 #, kde-format msgid "You do not have permission to create that folder." msgstr "Sie haben keine Berechtigung zum Anlegen dieses Ordners." #: platformtheme/kdirselectdialog.cpp:271 #, kde-format msgctxt "@title:window" msgid "Select Folder" msgstr "Ordner auswählen" #: platformtheme/kdirselectdialog.cpp:279 #, kde-format msgctxt "@action:button" msgid "New Folder..." msgstr "Neuer Ordner ..." #: platformtheme/kdirselectdialog.cpp:336 #, kde-format msgctxt "@action:inmenu" msgid "New Folder..." msgstr "Neuer Ordner ..." #: platformtheme/kdirselectdialog.cpp:345 #, kde-format msgctxt "@action:inmenu" msgid "Move to Trash" msgstr "In den Papierkorb verschieben" #: platformtheme/kdirselectdialog.cpp:354 #, kde-format msgctxt "@action:inmenu" msgid "Delete" msgstr "Löschen" #: platformtheme/kdirselectdialog.cpp:365 #, kde-format msgctxt "@option:check" msgid "Show Hidden Folders" msgstr "Versteckte Ordner anzeigen" #: platformtheme/kdirselectdialog.cpp:372 #, kde-format msgctxt "@action:inmenu" msgid "Properties" msgstr "Eigenschaften" #: platformtheme/kfiletreeview.cpp:185 #, kde-format msgid "Show Hidden Folders" msgstr "Versteckte Ordner anzeigen" #: platformtheme/kioopenwith.cpp:147 #, kde-format msgid "" "Failed to launch for unknown reasons. Please try with a pre-existing " "application." msgstr "" #~ msgid "Opening..." #~ msgstr "Wird geöffnet ..." #~ msgid "Saving..." #~ msgstr "Wird gespeichert ..." 07070100000029000041ED0000000000000000000000026728A27700000000000000000000000000000000000000000000003C00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/el0707010000002A000081A40000000000000000000000016728A27700001071000000000000000000000000000000000000005200000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/el/plasmaintegration5.po# Copyright (C) YEAR This_file_is_part_of_KDE # This file is distributed under the same license as the PACKAGE package. # # Dimitris Kardarakos <dimkard@gmail.com>, 2016. msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: https://bugs.kde.org\n" "POT-Creation-Date: 2024-09-17 00:40+0000\n" "PO-Revision-Date: 2016-07-29 20:02+0200\n" "Last-Translator: Dimitris Kardarakos <dimkard@gmail.com>\n" "Language-Team: Greek <kde-i18n-el@kde.org>\n" "Language: el\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" "X-Generator: Lokalize 2.0\n" #: platformtheme/kdeplatformfiledialoghelper.cpp:260 #, kde-format msgctxt "@title:window" msgid "Open File" msgstr "Άνοιγμα αρχείου" #: platformtheme/kdeplatformfiledialoghelper.cpp:261 #, kde-format msgctxt "@title:window" msgid "Save File" msgstr "Αποθήκευση αρχείου" #: platformtheme/kdeplatformtheme.cpp:299 #, kde-format msgctxt "@action:button" msgid "Save All" msgstr "Αποθήκευση όλων" #: platformtheme/kdeplatformtheme.cpp:303 #, kde-format msgctxt "@action:button" msgid "&Yes" msgstr "" #: platformtheme/kdeplatformtheme.cpp:305 #, kde-format msgctxt "@action:button" msgid "Yes to All" msgstr "Ναι σε όλα" #: platformtheme/kdeplatformtheme.cpp:307 #, kde-format msgctxt "@action:button" msgid "&No" msgstr "" #: platformtheme/kdeplatformtheme.cpp:309 #, kde-format msgctxt "@action:button" msgid "No to All" msgstr "Όχι σε όλα" #: platformtheme/kdeplatformtheme.cpp:312 #, kde-format msgctxt "@action:button" msgid "Abort" msgstr "Εγκατάλειψη" #: platformtheme/kdeplatformtheme.cpp:314 #, kde-format msgctxt "@action:button" msgid "Retry" msgstr "Επανάληψη" #: platformtheme/kdeplatformtheme.cpp:316 #, kde-format msgctxt "@action:button" msgid "Ignore" msgstr "Αγνόηση" #: platformtheme/kdirselectdialog.cpp:122 #, kde-format msgctxt "folder name" msgid "New Folder" msgstr "Νέος φάκελος" #: platformtheme/kdirselectdialog.cpp:128 #, kde-format msgctxt "@title:window" msgid "New Folder" msgstr "Νέος φάκελος" #: platformtheme/kdirselectdialog.cpp:129 #, kde-format msgctxt "@label:textbox" msgid "" "Create new folder in:\n" "%1" msgstr "" "Δημιουργία νέου φακέλου στο:\n" "%1" #: platformtheme/kdirselectdialog.cpp:160 #, kde-format msgid "A file or folder named %1 already exists." msgstr "Ένα αρχείο ή φάκελος με όνομα %1 υπάρχει ήδη." #: platformtheme/kdirselectdialog.cpp:169 #, kde-format msgid "You do not have permission to create that folder." msgstr "Δεν έχετε άδεια να δημιουργήσετε αυτόν το φάκελο." #: platformtheme/kdirselectdialog.cpp:271 #, kde-format msgctxt "@title:window" msgid "Select Folder" msgstr "Επιλογή φακέλου" #: platformtheme/kdirselectdialog.cpp:279 #, kde-format msgctxt "@action:button" msgid "New Folder..." msgstr "Νέος φάκελος..." #: platformtheme/kdirselectdialog.cpp:336 #, kde-format msgctxt "@action:inmenu" msgid "New Folder..." msgstr "Νέος φάκελος..." #: platformtheme/kdirselectdialog.cpp:345 #, kde-format msgctxt "@action:inmenu" msgid "Move to Trash" msgstr "Μετακίνηση στα απορρίμματα" #: platformtheme/kdirselectdialog.cpp:354 #, kde-format msgctxt "@action:inmenu" msgid "Delete" msgstr "Διαγραφή" #: platformtheme/kdirselectdialog.cpp:365 #, kde-format msgctxt "@option:check" msgid "Show Hidden Folders" msgstr "Εμφάνιση κρυφών φακέλων" #: platformtheme/kdirselectdialog.cpp:372 #, kde-format msgctxt "@action:inmenu" msgid "Properties" msgstr "Ιδιότητες" #: platformtheme/kfiletreeview.cpp:185 #, kde-format msgid "Show Hidden Folders" msgstr "Εμφάνιση κρυφών φακέλων" #: platformtheme/kioopenwith.cpp:147 #, kde-format msgid "" "Failed to launch for unknown reasons. Please try with a pre-existing " "application." msgstr "" #~ msgid "Opening..." #~ msgstr "Άνοιγμα..." #~ msgid "Saving..." #~ msgstr "Αποθήκευση..." 0707010000002B000041ED0000000000000000000000026728A27700000000000000000000000000000000000000000000003F00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/en_GB0707010000002C000081A40000000000000000000000016728A27700000F49000000000000000000000000000000000000005500000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/en_GB/plasmaintegration5.po# Copyright (C) YEAR This_file_is_part_of_KDE # This file is distributed under the same license as the PACKAGE package. # # SPDX-FileCopyrightText: 2016, 2022, 2024 Steve Allewell <steve.allewell@gmail.com> msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: https://bugs.kde.org\n" "POT-Creation-Date: 2024-09-17 00:40+0000\n" "PO-Revision-Date: 2024-06-29 11:29+0100\n" "Last-Translator: Steve Allewell <steve.allewell@gmail.com>\n" "Language-Team: British English\n" "Language: en_GB\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" "X-Generator: Lokalize 24.05.0\n" #: platformtheme/kdeplatformfiledialoghelper.cpp:260 #, kde-format msgctxt "@title:window" msgid "Open File" msgstr "Open File" #: platformtheme/kdeplatformfiledialoghelper.cpp:261 #, kde-format msgctxt "@title:window" msgid "Save File" msgstr "Save File" #: platformtheme/kdeplatformtheme.cpp:299 #, kde-format msgctxt "@action:button" msgid "Save All" msgstr "Save All" #: platformtheme/kdeplatformtheme.cpp:303 #, kde-format msgctxt "@action:button" msgid "&Yes" msgstr "&Yes" #: platformtheme/kdeplatformtheme.cpp:305 #, kde-format msgctxt "@action:button" msgid "Yes to All" msgstr "Yes to All" #: platformtheme/kdeplatformtheme.cpp:307 #, kde-format msgctxt "@action:button" msgid "&No" msgstr "&No" #: platformtheme/kdeplatformtheme.cpp:309 #, kde-format msgctxt "@action:button" msgid "No to All" msgstr "No to All" #: platformtheme/kdeplatformtheme.cpp:312 #, kde-format msgctxt "@action:button" msgid "Abort" msgstr "Abort" #: platformtheme/kdeplatformtheme.cpp:314 #, kde-format msgctxt "@action:button" msgid "Retry" msgstr "Retry" #: platformtheme/kdeplatformtheme.cpp:316 #, kde-format msgctxt "@action:button" msgid "Ignore" msgstr "Ignore" #: platformtheme/kdirselectdialog.cpp:122 #, kde-format msgctxt "folder name" msgid "New Folder" msgstr "New Folder" #: platformtheme/kdirselectdialog.cpp:128 #, kde-format msgctxt "@title:window" msgid "New Folder" msgstr "New Folder" #: platformtheme/kdirselectdialog.cpp:129 #, kde-format msgctxt "@label:textbox" msgid "" "Create new folder in:\n" "%1" msgstr "" "Create new folder in:\n" "%1" #: platformtheme/kdirselectdialog.cpp:160 #, kde-format msgid "A file or folder named %1 already exists." msgstr "A file or folder named %1 already exists." #: platformtheme/kdirselectdialog.cpp:169 #, kde-format msgid "You do not have permission to create that folder." msgstr "You do not have permission to create that folder." #: platformtheme/kdirselectdialog.cpp:271 #, kde-format msgctxt "@title:window" msgid "Select Folder" msgstr "Select Folder" #: platformtheme/kdirselectdialog.cpp:279 #, kde-format msgctxt "@action:button" msgid "New Folder..." msgstr "New Folder..." #: platformtheme/kdirselectdialog.cpp:336 #, kde-format msgctxt "@action:inmenu" msgid "New Folder..." msgstr "New Folder..." #: platformtheme/kdirselectdialog.cpp:345 #, kde-format msgctxt "@action:inmenu" msgid "Move to Trash" msgstr "Move to Wastebin" #: platformtheme/kdirselectdialog.cpp:354 #, kde-format msgctxt "@action:inmenu" msgid "Delete" msgstr "Delete" #: platformtheme/kdirselectdialog.cpp:365 #, kde-format msgctxt "@option:check" msgid "Show Hidden Folders" msgstr "Show Hidden Folders" #: platformtheme/kdirselectdialog.cpp:372 #, kde-format msgctxt "@action:inmenu" msgid "Properties" msgstr "Properties" #: platformtheme/kfiletreeview.cpp:185 #, kde-format msgid "Show Hidden Folders" msgstr "Show Hidden Folders" #: platformtheme/kioopenwith.cpp:147 #, kde-format msgid "" "Failed to launch for unknown reasons. Please try with a pre-existing " "application." msgstr "" "Failed to launch for unknown reasons. Please try with a pre-existing " "application." #~ msgid "Opening..." #~ msgstr "Opening..." #~ msgid "Saving..." #~ msgstr "Saving..." 0707010000002D000041ED0000000000000000000000026728A27700000000000000000000000000000000000000000000003C00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/eo0707010000002E000081A40000000000000000000000016728A27700000FD8000000000000000000000000000000000000005200000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/eo/plasmaintegration5.po# translation of plasmaintegration to Esperanto # Copyright (C) 2014-2023 Free Software Foundation, Inc. # This file is distributed under the same license as the plasma-integration package. # Oliver Kellogg <olivermkellogg@gmail.com>, 2023. # # Minuskloj: ĉ ĝ ĵ ĥ ŝ ŭ Majuskloj: Ĉ Ĝ Ĵ Ĥ Ŝ Ŭ # msgid "" msgstr "" "Project-Id-Version: desktop files\n" "Report-Msgid-Bugs-To: https://bugs.kde.org\n" "POT-Creation-Date: 2024-09-17 00:40+0000\n" "PO-Revision-Date: 2024-06-28 16:51+0200\n" "Last-Translator: Oliver Kellogg <olivermkellogg@gmail.com>\n" "Language-Team: Esperanto <kde-i18n-eo@kde.org>\n" "Language: eo\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: translate-po (https://github.com/zcribe/translate-po)\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" #: platformtheme/kdeplatformfiledialoghelper.cpp:260 #, kde-format msgctxt "@title:window" msgid "Open File" msgstr "Malfermi Dosieron" #: platformtheme/kdeplatformfiledialoghelper.cpp:261 #, kde-format msgctxt "@title:window" msgid "Save File" msgstr "Konservi Dosieron" #: platformtheme/kdeplatformtheme.cpp:299 #, kde-format msgctxt "@action:button" msgid "Save All" msgstr "Konservi Ĉion" #: platformtheme/kdeplatformtheme.cpp:303 #, kde-format msgctxt "@action:button" msgid "&Yes" msgstr "&Jes" #: platformtheme/kdeplatformtheme.cpp:305 #, kde-format msgctxt "@action:button" msgid "Yes to All" msgstr "Jes al Ĉiuj" #: platformtheme/kdeplatformtheme.cpp:307 #, kde-format msgctxt "@action:button" msgid "&No" msgstr "&Ne" #: platformtheme/kdeplatformtheme.cpp:309 #, kde-format msgctxt "@action:button" msgid "No to All" msgstr "Ne al Ĉiuj" #: platformtheme/kdeplatformtheme.cpp:312 #, kde-format msgctxt "@action:button" msgid "Abort" msgstr "Ĉesi" #: platformtheme/kdeplatformtheme.cpp:314 #, kde-format msgctxt "@action:button" msgid "Retry" msgstr "Reprovi" #: platformtheme/kdeplatformtheme.cpp:316 #, kde-format msgctxt "@action:button" msgid "Ignore" msgstr "Ignori" #: platformtheme/kdirselectdialog.cpp:122 #, kde-format msgctxt "folder name" msgid "New Folder" msgstr "Nova Dosierujo" #: platformtheme/kdirselectdialog.cpp:128 #, kde-format msgctxt "@title:window" msgid "New Folder" msgstr "Nova Dosierujo" #: platformtheme/kdirselectdialog.cpp:129 #, kde-format msgctxt "@label:textbox" msgid "" "Create new folder in:\n" "%1" msgstr "" "Krei novan dosierujon en:\n" "%1" #: platformtheme/kdirselectdialog.cpp:160 #, kde-format msgid "A file or folder named %1 already exists." msgstr "Dosiero aŭ dosierujo nomita %1 jam ekzistas." #: platformtheme/kdirselectdialog.cpp:169 #, kde-format msgid "You do not have permission to create that folder." msgstr "Vi ne havas permeson krei tiun dosierujon." #: platformtheme/kdirselectdialog.cpp:271 #, kde-format msgctxt "@title:window" msgid "Select Folder" msgstr "Elekti Dosierujon" #: platformtheme/kdirselectdialog.cpp:279 #, kde-format msgctxt "@action:button" msgid "New Folder..." msgstr "Nova dosierujo..." #: platformtheme/kdirselectdialog.cpp:336 #, kde-format msgctxt "@action:inmenu" msgid "New Folder..." msgstr "Nova dosierujo..." #: platformtheme/kdirselectdialog.cpp:345 #, kde-format msgctxt "@action:inmenu" msgid "Move to Trash" msgstr "Movi al Rubujo" #: platformtheme/kdirselectdialog.cpp:354 #, kde-format msgctxt "@action:inmenu" msgid "Delete" msgstr "Forigi" #: platformtheme/kdirselectdialog.cpp:365 #, kde-format msgctxt "@option:check" msgid "Show Hidden Folders" msgstr "Montri Kaŝitajn Dosierujojn" #: platformtheme/kdirselectdialog.cpp:372 #, kde-format msgctxt "@action:inmenu" msgid "Properties" msgstr "Proprecoj" #: platformtheme/kfiletreeview.cpp:185 #, kde-format msgid "Show Hidden Folders" msgstr "Montri Kaŝitajn Dosierujojn" #: platformtheme/kioopenwith.cpp:147 #, kde-format msgid "" "Failed to launch for unknown reasons. Please try with a pre-existing " "application." msgstr "" "Malsukcesis lanĉi pro nekonataj kialoj. Bonvolu provi kun antaŭ-ekzistanta " "aplikaĵo." 0707010000002F000041ED0000000000000000000000026728A27700000000000000000000000000000000000000000000003C00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/es07070100000030000081A40000000000000000000000016728A2770000100B000000000000000000000000000000000000005200000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/es/plasmaintegration5.po# Spanish translations for frameworkintegration5.po package. # Copyright (C) 2016 This_file_is_part_of_KDE # This file is distributed under the same license as the PACKAGE package. # # Automatically generated, 2016. # SPDX-FileCopyrightText: 2016, 2022, 2024 Eloy Cuadra <ecuadra@eloihr.net> msgid "" msgstr "" "Project-Id-Version: frameworkintegration5\n" "Report-Msgid-Bugs-To: https://bugs.kde.org\n" "POT-Creation-Date: 2024-09-17 00:40+0000\n" "PO-Revision-Date: 2024-06-27 02:41+0200\n" "Last-Translator: Eloy Cuadra <ecuadra@eloihr.net>\n" "Language-Team: Spanish <kde-l10n-es@kde.org>\n" "Language: es\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" "X-Generator: Lokalize 24.05.1\n" #: platformtheme/kdeplatformfiledialoghelper.cpp:260 #, kde-format msgctxt "@title:window" msgid "Open File" msgstr "Abrir archivo" #: platformtheme/kdeplatformfiledialoghelper.cpp:261 #, kde-format msgctxt "@title:window" msgid "Save File" msgstr "Guardar archivo" #: platformtheme/kdeplatformtheme.cpp:299 #, kde-format msgctxt "@action:button" msgid "Save All" msgstr "Guardar todo" #: platformtheme/kdeplatformtheme.cpp:303 #, kde-format msgctxt "@action:button" msgid "&Yes" msgstr "&Sí" #: platformtheme/kdeplatformtheme.cpp:305 #, kde-format msgctxt "@action:button" msgid "Yes to All" msgstr "Sí a todo" #: platformtheme/kdeplatformtheme.cpp:307 #, kde-format msgctxt "@action:button" msgid "&No" msgstr "&No" #: platformtheme/kdeplatformtheme.cpp:309 #, kde-format msgctxt "@action:button" msgid "No to All" msgstr "No a todo" #: platformtheme/kdeplatformtheme.cpp:312 #, kde-format msgctxt "@action:button" msgid "Abort" msgstr "Interrumpir" #: platformtheme/kdeplatformtheme.cpp:314 #, kde-format msgctxt "@action:button" msgid "Retry" msgstr "Reintentar" #: platformtheme/kdeplatformtheme.cpp:316 #, kde-format msgctxt "@action:button" msgid "Ignore" msgstr "Ignorar" #: platformtheme/kdirselectdialog.cpp:122 #, kde-format msgctxt "folder name" msgid "New Folder" msgstr "Nueva carpeta" #: platformtheme/kdirselectdialog.cpp:128 #, kde-format msgctxt "@title:window" msgid "New Folder" msgstr "Nueva carpeta" #: platformtheme/kdirselectdialog.cpp:129 #, kde-format msgctxt "@label:textbox" msgid "" "Create new folder in:\n" "%1" msgstr "" "Crear nueva carpeta en:\n" "%1" #: platformtheme/kdirselectdialog.cpp:160 #, kde-format msgid "A file or folder named %1 already exists." msgstr "Ya existe un archivo o una carpeta con el nombre %1." #: platformtheme/kdirselectdialog.cpp:169 #, kde-format msgid "You do not have permission to create that folder." msgstr "No tiene permiso para crear esta carpeta." #: platformtheme/kdirselectdialog.cpp:271 #, kde-format msgctxt "@title:window" msgid "Select Folder" msgstr "Seleccionar carpeta" #: platformtheme/kdirselectdialog.cpp:279 #, kde-format msgctxt "@action:button" msgid "New Folder..." msgstr "Nueva carpeta..." #: platformtheme/kdirselectdialog.cpp:336 #, kde-format msgctxt "@action:inmenu" msgid "New Folder..." msgstr "Nueva carpeta..." #: platformtheme/kdirselectdialog.cpp:345 #, kde-format msgctxt "@action:inmenu" msgid "Move to Trash" msgstr "Mover a la Papelera" #: platformtheme/kdirselectdialog.cpp:354 #, kde-format msgctxt "@action:inmenu" msgid "Delete" msgstr "Borrar" #: platformtheme/kdirselectdialog.cpp:365 #, kde-format msgctxt "@option:check" msgid "Show Hidden Folders" msgstr "Mostrar carpetas ocultas" #: platformtheme/kdirselectdialog.cpp:372 #, kde-format msgctxt "@action:inmenu" msgid "Properties" msgstr "Propiedades" #: platformtheme/kfiletreeview.cpp:185 #, kde-format msgid "Show Hidden Folders" msgstr "Mostrar carpetas ocultas" #: platformtheme/kioopenwith.cpp:147 #, kde-format msgid "" "Failed to launch for unknown reasons. Please try with a pre-existing " "application." msgstr "" "No se ha podido ejecutar por motivos desconocidos. Vuelva a probar con una " "aplicación preexistente." #~ msgid "Opening..." #~ msgstr "Abriendo..." #~ msgid "Saving..." #~ msgstr "Guardando..." 07070100000031000041ED0000000000000000000000026728A27700000000000000000000000000000000000000000000003C00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/et07070100000032000081A40000000000000000000000016728A27700000EAB000000000000000000000000000000000000005200000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/et/plasmaintegration5.po# Copyright (C) YEAR This_file_is_part_of_KDE # This file is distributed under the same license as the PACKAGE package. # # Marek Laane <qiilaq69@gmail.com>, 2016. msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: https://bugs.kde.org\n" "POT-Creation-Date: 2024-09-17 00:40+0000\n" "PO-Revision-Date: 2016-08-18 19:28+0300\n" "Last-Translator: Marek Laane <qiilaq69@gmail.com>\n" "Language-Team: Estonian <kde-i18n-doc@kde.org>\n" "Language: et\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" "X-Generator: Lokalize 1.5\n" #: platformtheme/kdeplatformfiledialoghelper.cpp:260 #, kde-format msgctxt "@title:window" msgid "Open File" msgstr "Faili avamine" #: platformtheme/kdeplatformfiledialoghelper.cpp:261 #, kde-format msgctxt "@title:window" msgid "Save File" msgstr "Faili salvestamine" #: platformtheme/kdeplatformtheme.cpp:299 #, kde-format msgctxt "@action:button" msgid "Save All" msgstr "Salvesta kõik" #: platformtheme/kdeplatformtheme.cpp:303 #, kde-format msgctxt "@action:button" msgid "&Yes" msgstr "" #: platformtheme/kdeplatformtheme.cpp:305 #, kde-format msgctxt "@action:button" msgid "Yes to All" msgstr "Jah kõigile" #: platformtheme/kdeplatformtheme.cpp:307 #, kde-format msgctxt "@action:button" msgid "&No" msgstr "" #: platformtheme/kdeplatformtheme.cpp:309 #, kde-format msgctxt "@action:button" msgid "No to All" msgstr "Ei kõigile" #: platformtheme/kdeplatformtheme.cpp:312 #, kde-format msgctxt "@action:button" msgid "Abort" msgstr "Katkesta" #: platformtheme/kdeplatformtheme.cpp:314 #, kde-format msgctxt "@action:button" msgid "Retry" msgstr "Proovi uuesti" #: platformtheme/kdeplatformtheme.cpp:316 #, kde-format msgctxt "@action:button" msgid "Ignore" msgstr "Eira" #: platformtheme/kdirselectdialog.cpp:122 #, kde-format msgctxt "folder name" msgid "New Folder" msgstr "Uus kataloog" #: platformtheme/kdirselectdialog.cpp:128 #, kde-format msgctxt "@title:window" msgid "New Folder" msgstr "Uus kataloog" #: platformtheme/kdirselectdialog.cpp:129 #, kde-format msgctxt "@label:textbox" msgid "" "Create new folder in:\n" "%1" msgstr "" "Uus kataloog asukohas:\n" "%1" #: platformtheme/kdirselectdialog.cpp:160 #, kde-format msgid "A file or folder named %1 already exists." msgstr "Fail või kataloog nimega %1 on juba olemas." #: platformtheme/kdirselectdialog.cpp:169 #, kde-format msgid "You do not have permission to create that folder." msgstr "Sul ei ole õigusi selle kataloogi loomiseks." #: platformtheme/kdirselectdialog.cpp:271 #, kde-format msgctxt "@title:window" msgid "Select Folder" msgstr "Kataloogi valimine" #: platformtheme/kdirselectdialog.cpp:279 #, kde-format msgctxt "@action:button" msgid "New Folder..." msgstr "Uus kataloog..." #: platformtheme/kdirselectdialog.cpp:336 #, kde-format msgctxt "@action:inmenu" msgid "New Folder..." msgstr "Uus kataloog..." #: platformtheme/kdirselectdialog.cpp:345 #, kde-format msgctxt "@action:inmenu" msgid "Move to Trash" msgstr "Viska prügikasti" #: platformtheme/kdirselectdialog.cpp:354 #, kde-format msgctxt "@action:inmenu" msgid "Delete" msgstr "Kustuta" #: platformtheme/kdirselectdialog.cpp:365 #, kde-format msgctxt "@option:check" msgid "Show Hidden Folders" msgstr "Peidetud kataloogide näitamine" #: platformtheme/kdirselectdialog.cpp:372 #, kde-format msgctxt "@action:inmenu" msgid "Properties" msgstr "Omadused" #: platformtheme/kfiletreeview.cpp:185 #, kde-format msgid "Show Hidden Folders" msgstr "Peidetud kataloogide näitamine" #: platformtheme/kioopenwith.cpp:147 #, kde-format msgid "" "Failed to launch for unknown reasons. Please try with a pre-existing " "application." msgstr "" 07070100000033000041ED0000000000000000000000026728A27700000000000000000000000000000000000000000000003C00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/eu07070100000034000081A40000000000000000000000016728A27700001003000000000000000000000000000000000000005200000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/eu/plasmaintegration5.po# Translation of plasmaintegration5.po to Euskara/Basque (eu) # Copyright (C) 2018-2024 This file is copyright: # This file is distributed under the same license as the plasma-integration package. # SPDX-FileCopyrightText: 2024 KDE euskaratzeko proiektuaren arduraduna <xalba@ni.eus> # # Translators: # Iñigo Salvador Azurmendi <xalba@ni.eus>, 2018, 2022, 2024. msgid "" msgstr "" "Project-Id-Version: plasma-integrtion\n" "Report-Msgid-Bugs-To: https://bugs.kde.org\n" "POT-Creation-Date: 2024-09-17 00:40+0000\n" "PO-Revision-Date: 2024-07-04 13:00+0200\n" "Last-Translator: Iñigo Salvador Azurmendi <xalba@ni.eus>\n" "Language-Team: Basque <kde-i18n-eu@kde.org>\n" "Language: eu\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Lokalize 24.05.1\n" #: platformtheme/kdeplatformfiledialoghelper.cpp:260 #, kde-format msgctxt "@title:window" msgid "Open File" msgstr "Ireki fitxategia" #: platformtheme/kdeplatformfiledialoghelper.cpp:261 #, kde-format msgctxt "@title:window" msgid "Save File" msgstr "Gorde fitxategia" #: platformtheme/kdeplatformtheme.cpp:299 #, kde-format msgctxt "@action:button" msgid "Save All" msgstr "Gorde guztiak" #: platformtheme/kdeplatformtheme.cpp:303 #, kde-format msgctxt "@action:button" msgid "&Yes" msgstr "&Bai" #: platformtheme/kdeplatformtheme.cpp:305 #, kde-format msgctxt "@action:button" msgid "Yes to All" msgstr "Bai guztiari" #: platformtheme/kdeplatformtheme.cpp:307 #, kde-format msgctxt "@action:button" msgid "&No" msgstr "E&z" #: platformtheme/kdeplatformtheme.cpp:309 #, kde-format msgctxt "@action:button" msgid "No to All" msgstr "Ez guztiari" #: platformtheme/kdeplatformtheme.cpp:312 #, kde-format msgctxt "@action:button" msgid "Abort" msgstr "Galarazi" #: platformtheme/kdeplatformtheme.cpp:314 #, kde-format msgctxt "@action:button" msgid "Retry" msgstr "Berriz saiatu" #: platformtheme/kdeplatformtheme.cpp:316 #, kde-format msgctxt "@action:button" msgid "Ignore" msgstr "Ez ikusi egin" #: platformtheme/kdirselectdialog.cpp:122 #, kde-format msgctxt "folder name" msgid "New Folder" msgstr "Karpeta berria" #: platformtheme/kdirselectdialog.cpp:128 #, kde-format msgctxt "@title:window" msgid "New Folder" msgstr "Karpeta berria" #: platformtheme/kdirselectdialog.cpp:129 #, kde-format msgctxt "@label:textbox" msgid "" "Create new folder in:\n" "%1" msgstr "" "Sortu karpetan berria hemen:\n" "%1" #: platformtheme/kdirselectdialog.cpp:160 #, kde-format msgid "A file or folder named %1 already exists." msgstr "Dagoeneko badago %1 izeneko fitxategi edo karpeta bat." #: platformtheme/kdirselectdialog.cpp:169 #, kde-format msgid "You do not have permission to create that folder." msgstr "Ez duzu karpeta hori sortzeko baimena." #: platformtheme/kdirselectdialog.cpp:271 #, kde-format msgctxt "@title:window" msgid "Select Folder" msgstr "Hautatu karpeta" #: platformtheme/kdirselectdialog.cpp:279 #, kde-format msgctxt "@action:button" msgid "New Folder..." msgstr "Karpeta berria..." #: platformtheme/kdirselectdialog.cpp:336 #, kde-format msgctxt "@action:inmenu" msgid "New Folder..." msgstr "Karpeta berria..." #: platformtheme/kdirselectdialog.cpp:345 #, kde-format msgctxt "@action:inmenu" msgid "Move to Trash" msgstr "Bota zakarrontzira" #: platformtheme/kdirselectdialog.cpp:354 #, kde-format msgctxt "@action:inmenu" msgid "Delete" msgstr "Ezabatu" #: platformtheme/kdirselectdialog.cpp:365 #, kde-format msgctxt "@option:check" msgid "Show Hidden Folders" msgstr "Erakutsi ezkutuko karpetak" #: platformtheme/kdirselectdialog.cpp:372 #, kde-format msgctxt "@action:inmenu" msgid "Properties" msgstr "Propietateak" #: platformtheme/kfiletreeview.cpp:185 #, kde-format msgid "Show Hidden Folders" msgstr "Erakutsi ezkutuko karpetak" #: platformtheme/kioopenwith.cpp:147 #, kde-format msgid "" "Failed to launch for unknown reasons. Please try with a pre-existing " "application." msgstr "" "Arrazoi ezezagunengatik huts egin du. Mesedez, saiatu aurrez dagoen " "aplikazio batekin." 07070100000035000041ED0000000000000000000000026728A27700000000000000000000000000000000000000000000003C00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/fi07070100000036000081A40000000000000000000000016728A27700000F41000000000000000000000000000000000000005200000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/fi/plasmaintegration5.po# Copyright (C) YEAR This_file_is_part_of_KDE # This file is distributed under the same license as the PACKAGE package. # Lasse Liehu <lasse.liehu@gmail.com>, 2014, 2016. # Tommi Nieminen <translator@legisign.org>, 2023. # msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: https://bugs.kde.org\n" "POT-Creation-Date: 2024-09-17 00:40+0000\n" "PO-Revision-Date: 2023-03-04 20:10+0200\n" "Last-Translator: Tommi Nieminen <translator@legisign.org>\n" "Language-Team: Finnish <kde-i18n-doc@kde.org>\n" "Language: fi\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Lokalize 22.12.3\n" #: platformtheme/kdeplatformfiledialoghelper.cpp:260 #, kde-format msgctxt "@title:window" msgid "Open File" msgstr "Avaa tiedosto" #: platformtheme/kdeplatformfiledialoghelper.cpp:261 #, kde-format msgctxt "@title:window" msgid "Save File" msgstr "Tallenna tiedosto" #: platformtheme/kdeplatformtheme.cpp:299 #, kde-format msgctxt "@action:button" msgid "Save All" msgstr "Tallenna kaikki" #: platformtheme/kdeplatformtheme.cpp:303 #, kde-format msgctxt "@action:button" msgid "&Yes" msgstr "K&yllä" #: platformtheme/kdeplatformtheme.cpp:305 #, kde-format msgctxt "@action:button" msgid "Yes to All" msgstr "Kyllä kaikkiin" #: platformtheme/kdeplatformtheme.cpp:307 #, kde-format msgctxt "@action:button" msgid "&No" msgstr "&Ei" #: platformtheme/kdeplatformtheme.cpp:309 #, kde-format msgctxt "@action:button" msgid "No to All" msgstr "Ei kaikkiin" #: platformtheme/kdeplatformtheme.cpp:312 #, kde-format msgctxt "@action:button" msgid "Abort" msgstr "Keskeytä" #: platformtheme/kdeplatformtheme.cpp:314 #, kde-format msgctxt "@action:button" msgid "Retry" msgstr "Yritä uudelleen" #: platformtheme/kdeplatformtheme.cpp:316 #, kde-format msgctxt "@action:button" msgid "Ignore" msgstr "Ohita" #: platformtheme/kdirselectdialog.cpp:122 #, kde-format msgctxt "folder name" msgid "New Folder" msgstr "Uusi kansio" #: platformtheme/kdirselectdialog.cpp:128 #, kde-format msgctxt "@title:window" msgid "New Folder" msgstr "Uusi kansio" #: platformtheme/kdirselectdialog.cpp:129 #, kde-format msgctxt "@label:textbox" msgid "" "Create new folder in:\n" "%1" msgstr "" "Luo uusi kansio kohteeseen:\n" "%1" #: platformtheme/kdirselectdialog.cpp:160 #, kde-format msgid "A file or folder named %1 already exists." msgstr "Kansio tai tiedosto %1 on jo olemassa." #: platformtheme/kdirselectdialog.cpp:169 #, kde-format msgid "You do not have permission to create that folder." msgstr "Kansion luomiseen ei ole oikeuksia." #: platformtheme/kdirselectdialog.cpp:271 #, kde-format msgctxt "@title:window" msgid "Select Folder" msgstr "Valitse kansio" #: platformtheme/kdirselectdialog.cpp:279 #, kde-format msgctxt "@action:button" msgid "New Folder..." msgstr "Uusi kansio…" #: platformtheme/kdirselectdialog.cpp:336 #, kde-format msgctxt "@action:inmenu" msgid "New Folder..." msgstr "Uusi kansio…" #: platformtheme/kdirselectdialog.cpp:345 #, kde-format msgctxt "@action:inmenu" msgid "Move to Trash" msgstr "Siirrä roskakoriin" #: platformtheme/kdirselectdialog.cpp:354 #, kde-format msgctxt "@action:inmenu" msgid "Delete" msgstr "Poista" #: platformtheme/kdirselectdialog.cpp:365 #, kde-format msgctxt "@option:check" msgid "Show Hidden Folders" msgstr "Näytä piilokansiot" #: platformtheme/kdirselectdialog.cpp:372 #, kde-format msgctxt "@action:inmenu" msgid "Properties" msgstr "Ominaisuudet" #: platformtheme/kfiletreeview.cpp:185 #, kde-format msgid "Show Hidden Folders" msgstr "Näytä piilokansiot" #: platformtheme/kioopenwith.cpp:147 #, kde-format msgid "" "Failed to launch for unknown reasons. Please try with a pre-existing " "application." msgstr "" #~ msgid "Opening..." #~ msgstr "Avataan…" #~ msgid "Saving..." #~ msgstr "Tallennetaan…" 07070100000037000041ED0000000000000000000000026728A27700000000000000000000000000000000000000000000003C00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/fr07070100000038000081A40000000000000000000000016728A27700001055000000000000000000000000000000000000005200000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/fr/plasmaintegration5.po# Copyright (C) YEAR This_file_is_part_of_KDE # This file is distributed under the same license as the PACKAGE package. # Johan Claude-Breuninger <johan.claudebreuninger@gmail.com>, 2016. # Vincent Pinon <vpinon@kde.org>, 2016. # SPDX-FileCopyrightText: 2021, 2022, 2024 Xavier Besnard <xavier.besnard@kde.org> # msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: https://bugs.kde.org\n" "POT-Creation-Date: 2024-09-17 00:40+0000\n" "PO-Revision-Date: 2024-08-09 14:16+0200\n" "Last-Translator: Xavier Besnard <xavier.besnard@kde.org>\n" "Language-Team: French <French <kde-francophone@kde.org>>\n" "Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" "X-Accelerator-Marker: &\n" "X-Environment: kde\n" "X-Generator: Lokalize 23.08.5\n" "X-Text-Markup: kde4\n" #: platformtheme/kdeplatformfiledialoghelper.cpp:260 #, kde-format msgctxt "@title:window" msgid "Open File" msgstr "Ouvrir un fichier" #: platformtheme/kdeplatformfiledialoghelper.cpp:261 #, kde-format msgctxt "@title:window" msgid "Save File" msgstr "Enregistrer le fichier" #: platformtheme/kdeplatformtheme.cpp:299 #, kde-format msgctxt "@action:button" msgid "Save All" msgstr "Tout enregistrer" #: platformtheme/kdeplatformtheme.cpp:303 #, kde-format msgctxt "@action:button" msgid "&Yes" msgstr "&Oui" #: platformtheme/kdeplatformtheme.cpp:305 #, kde-format msgctxt "@action:button" msgid "Yes to All" msgstr "Oui pour tout" #: platformtheme/kdeplatformtheme.cpp:307 #, kde-format msgctxt "@action:button" msgid "&No" msgstr "&Non" #: platformtheme/kdeplatformtheme.cpp:309 #, kde-format msgctxt "@action:button" msgid "No to All" msgstr "Non pour tout" #: platformtheme/kdeplatformtheme.cpp:312 #, kde-format msgctxt "@action:button" msgid "Abort" msgstr "Annuler" #: platformtheme/kdeplatformtheme.cpp:314 #, kde-format msgctxt "@action:button" msgid "Retry" msgstr "Réessayer" #: platformtheme/kdeplatformtheme.cpp:316 #, kde-format msgctxt "@action:button" msgid "Ignore" msgstr "Ignorer" #: platformtheme/kdirselectdialog.cpp:122 #, kde-format msgctxt "folder name" msgid "New Folder" msgstr "Nouveau dossier" #: platformtheme/kdirselectdialog.cpp:128 #, kde-format msgctxt "@title:window" msgid "New Folder" msgstr "Nouveau dossier" #: platformtheme/kdirselectdialog.cpp:129 #, kde-format msgctxt "@label:textbox" msgid "" "Create new folder in:\n" "%1" msgstr "" "Créer le nouveau dossier dans :\n" "%1" #: platformtheme/kdirselectdialog.cpp:160 #, kde-format msgid "A file or folder named %1 already exists." msgstr "Un fichier ou dossier nommé %1 est déjà existant." #: platformtheme/kdirselectdialog.cpp:169 #, kde-format msgid "You do not have permission to create that folder." msgstr "Vous n'avez pas la permission de créer ce dossier." #: platformtheme/kdirselectdialog.cpp:271 #, kde-format msgctxt "@title:window" msgid "Select Folder" msgstr "Sélectionner dossier" #: platformtheme/kdirselectdialog.cpp:279 #, kde-format msgctxt "@action:button" msgid "New Folder..." msgstr "Nouveau dossier..." #: platformtheme/kdirselectdialog.cpp:336 #, kde-format msgctxt "@action:inmenu" msgid "New Folder..." msgstr "Nouveau dossier..." #: platformtheme/kdirselectdialog.cpp:345 #, kde-format msgctxt "@action:inmenu" msgid "Move to Trash" msgstr "Déplacer vers la corbeille" #: platformtheme/kdirselectdialog.cpp:354 #, kde-format msgctxt "@action:inmenu" msgid "Delete" msgstr "Supprimer" #: platformtheme/kdirselectdialog.cpp:365 #, kde-format msgctxt "@option:check" msgid "Show Hidden Folders" msgstr "Afficher les dossiers cachés" #: platformtheme/kdirselectdialog.cpp:372 #, kde-format msgctxt "@action:inmenu" msgid "Properties" msgstr "Propriétés" #: platformtheme/kfiletreeview.cpp:185 #, kde-format msgid "Show Hidden Folders" msgstr "Afficher les dossiers cachés" #: platformtheme/kioopenwith.cpp:147 #, kde-format msgid "" "Failed to launch for unknown reasons. Please try with a pre-existing " "application." msgstr "" "Échec du lancement pour des raisons inconnues. Veuillez essayer avec une " "application déjà existante." 07070100000039000041ED0000000000000000000000026728A27700000000000000000000000000000000000000000000003C00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/gl0707010000003A000081A40000000000000000000000016728A27700000FDA000000000000000000000000000000000000005200000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/gl/plasmaintegration5.po# Copyright (C) YEAR This_file_is_part_of_KDE # This file is distributed under the same license as the PACKAGE package. # Adrián Chaves Fernández (Gallaecio) <adriyetichaves@gmail.com>, 2016. # SPDX-FileCopyrightText: 2024 Adrián Chaves (Gallaecio) # msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: https://bugs.kde.org\n" "POT-Creation-Date: 2024-09-17 00:40+0000\n" "PO-Revision-Date: 2024-06-27 21:00+0200\n" "Last-Translator: Adrián Chaves (Gallaecio) <adrian@chaves.io>\n" "Language-Team: Proxecto Trasno (proxecto@trasno.gal)\n" "Language: gl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" "X-Generator: Lokalize 24.05.1\n" #: platformtheme/kdeplatformfiledialoghelper.cpp:260 #, kde-format msgctxt "@title:window" msgid "Open File" msgstr "Abrir un ficheiro" #: platformtheme/kdeplatformfiledialoghelper.cpp:261 #, kde-format msgctxt "@title:window" msgid "Save File" msgstr "Gardar o ficheiro" #: platformtheme/kdeplatformtheme.cpp:299 #, kde-format msgctxt "@action:button" msgid "Save All" msgstr "Gardar todo" #: platformtheme/kdeplatformtheme.cpp:303 #, kde-format msgctxt "@action:button" msgid "&Yes" msgstr "&Si" #: platformtheme/kdeplatformtheme.cpp:305 #, kde-format msgctxt "@action:button" msgid "Yes to All" msgstr "Si a todo" #: platformtheme/kdeplatformtheme.cpp:307 #, kde-format msgctxt "@action:button" msgid "&No" msgstr "&Non" #: platformtheme/kdeplatformtheme.cpp:309 #, kde-format msgctxt "@action:button" msgid "No to All" msgstr "Non a todo" #: platformtheme/kdeplatformtheme.cpp:312 #, kde-format msgctxt "@action:button" msgid "Abort" msgstr "Interromper" #: platformtheme/kdeplatformtheme.cpp:314 #, kde-format msgctxt "@action:button" msgid "Retry" msgstr "Intentar de novo" #: platformtheme/kdeplatformtheme.cpp:316 #, kde-format msgctxt "@action:button" msgid "Ignore" msgstr "Ignorar" #: platformtheme/kdirselectdialog.cpp:122 #, kde-format msgctxt "folder name" msgid "New Folder" msgstr "Novo cartafol" #: platformtheme/kdirselectdialog.cpp:128 #, kde-format msgctxt "@title:window" msgid "New Folder" msgstr "Novo cartafol" #: platformtheme/kdirselectdialog.cpp:129 #, kde-format msgctxt "@label:textbox" msgid "" "Create new folder in:\n" "%1" msgstr "" "Crear o novo cartafol en:\n" "%1" #: platformtheme/kdirselectdialog.cpp:160 #, kde-format msgid "A file or folder named %1 already exists." msgstr "Xa existe un ficheiro ou cartafol chamado %1." #: platformtheme/kdirselectdialog.cpp:169 #, kde-format msgid "You do not have permission to create that folder." msgstr "Non ten permisos para crear ese cartafol." #: platformtheme/kdirselectdialog.cpp:271 #, kde-format msgctxt "@title:window" msgid "Select Folder" msgstr "Escoller un cartafol" #: platformtheme/kdirselectdialog.cpp:279 #, kde-format msgctxt "@action:button" msgid "New Folder..." msgstr "Cartafol novo…" #: platformtheme/kdirselectdialog.cpp:336 #, kde-format msgctxt "@action:inmenu" msgid "New Folder..." msgstr "Cartafol novo…" #: platformtheme/kdirselectdialog.cpp:345 #, kde-format msgctxt "@action:inmenu" msgid "Move to Trash" msgstr "Botar no lixo" #: platformtheme/kdirselectdialog.cpp:354 #, kde-format msgctxt "@action:inmenu" msgid "Delete" msgstr "Eliminar" #: platformtheme/kdirselectdialog.cpp:365 #, kde-format msgctxt "@option:check" msgid "Show Hidden Folders" msgstr "Amosar os cartafoles agochados" #: platformtheme/kdirselectdialog.cpp:372 #, kde-format msgctxt "@action:inmenu" msgid "Properties" msgstr "Propiedades" #: platformtheme/kfiletreeview.cpp:185 #, kde-format msgid "Show Hidden Folders" msgstr "Amosar os cartafoles agochados" #: platformtheme/kioopenwith.cpp:147 #, kde-format msgid "" "Failed to launch for unknown reasons. Please try with a pre-existing " "application." msgstr "" "O inicio fallou por motivos descoñecido. Intente usar unha aplicación previa." #~ msgid "Opening..." #~ msgstr "Abrindo…" #~ msgid "Saving..." #~ msgstr "Gardando…" 0707010000003B000041ED0000000000000000000000026728A27700000000000000000000000000000000000000000000003C00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/he0707010000003C000081A40000000000000000000000016728A27700000FE7000000000000000000000000000000000000005200000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/he/plasmaintegration5.po# Elkana Bardugo <ttv200@gmail.com>, 2017. #zanata # SPDX-FileCopyrightText: 2023, 2024 Yaron Shahrabani <sh.yaron@gmail.com> msgid "" msgstr "" "Project-Id-Version: plasmaintegration5\n" "Report-Msgid-Bugs-To: https://bugs.kde.org\n" "POT-Creation-Date: 2024-09-17 00:40+0000\n" "PO-Revision-Date: 2024-06-26 15:16+0300\n" "Last-Translator: Yaron Shahrabani <sh.yaron@gmail.com>\n" "Language-Team: צוות התרגום של KDE ישראל\n" "Language: he\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Lokalize 24.05.0\n" "Plural-Forms: nplurals=4; plural=(n == 1) ? 0 : ((n == 2) ? 1 : ((n > 10 && " "n % 10 == 0) ? 2 : 3));\n" #: platformtheme/kdeplatformfiledialoghelper.cpp:260 #, kde-format msgctxt "@title:window" msgid "Open File" msgstr "פתיחת קובץ" #: platformtheme/kdeplatformfiledialoghelper.cpp:261 #, kde-format msgctxt "@title:window" msgid "Save File" msgstr "שמירת קובץ" #: platformtheme/kdeplatformtheme.cpp:299 #, kde-format msgctxt "@action:button" msgid "Save All" msgstr "שמירה של הכול" #: platformtheme/kdeplatformtheme.cpp:303 #, kde-format msgctxt "@action:button" msgid "&Yes" msgstr "&כן" #: platformtheme/kdeplatformtheme.cpp:305 #, kde-format msgctxt "@action:button" msgid "Yes to All" msgstr "כן להכול" #: platformtheme/kdeplatformtheme.cpp:307 #, kde-format msgctxt "@action:button" msgid "&No" msgstr "&לא" #: platformtheme/kdeplatformtheme.cpp:309 #, kde-format msgctxt "@action:button" msgid "No to All" msgstr "לא להכול" #: platformtheme/kdeplatformtheme.cpp:312 #, kde-format msgctxt "@action:button" msgid "Abort" msgstr "ביטול" #: platformtheme/kdeplatformtheme.cpp:314 #, kde-format msgctxt "@action:button" msgid "Retry" msgstr "לנסות שוב" #: platformtheme/kdeplatformtheme.cpp:316 #, kde-format msgctxt "@action:button" msgid "Ignore" msgstr "התעלמות" #: platformtheme/kdirselectdialog.cpp:122 #, kde-format msgctxt "folder name" msgid "New Folder" msgstr "תיקייה חדשה" #: platformtheme/kdirselectdialog.cpp:128 #, kde-format msgctxt "@title:window" msgid "New Folder" msgstr "תיקייה חדשה" #: platformtheme/kdirselectdialog.cpp:129 #, kde-format msgctxt "@label:textbox" msgid "" "Create new folder in:\n" "%1" msgstr "" "יצירת תיקייה חדשה תחת:\n" "%1" #: platformtheme/kdirselectdialog.cpp:160 #, kde-format msgid "A file or folder named %1 already exists." msgstr "קובץ או תיקייה בשם %1 כבר קיימים." #: platformtheme/kdirselectdialog.cpp:169 #, kde-format msgid "You do not have permission to create that folder." msgstr "אין לך הרשאות ליצירת תיקייה זו." #: platformtheme/kdirselectdialog.cpp:271 #, kde-format msgctxt "@title:window" msgid "Select Folder" msgstr "בחירת תיקייה" #: platformtheme/kdirselectdialog.cpp:279 #, kde-format msgctxt "@action:button" msgid "New Folder..." msgstr "תיקייה חדשה…" #: platformtheme/kdirselectdialog.cpp:336 #, kde-format msgctxt "@action:inmenu" msgid "New Folder..." msgstr "תיקייה חדשה…" #: platformtheme/kdirselectdialog.cpp:345 #, kde-format msgctxt "@action:inmenu" msgid "Move to Trash" msgstr "העברה לאשפה" #: platformtheme/kdirselectdialog.cpp:354 #, kde-format msgctxt "@action:inmenu" msgid "Delete" msgstr "מחיקה" #: platformtheme/kdirselectdialog.cpp:365 #, kde-format msgctxt "@option:check" msgid "Show Hidden Folders" msgstr "הצגת תיקיות מוסתרות" #: platformtheme/kdirselectdialog.cpp:372 #, kde-format msgctxt "@action:inmenu" msgid "Properties" msgstr "מאפיינים" #: platformtheme/kfiletreeview.cpp:185 #, kde-format msgid "Show Hidden Folders" msgstr "הצגת תיקיות מוסתרות" #: platformtheme/kioopenwith.cpp:147 #, kde-format msgid "" "Failed to launch for unknown reasons. Please try with a pre-existing " "application." msgstr "ההפעלה נכשלה מסיבות לא ידועות. נא לנסות עם יישום קיים." 0707010000003D000041ED0000000000000000000000026728A27700000000000000000000000000000000000000000000003C00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/hi0707010000003E000081A40000000000000000000000016728A2770000112A000000000000000000000000000000000000005200000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/hi/plasmaintegration5.po# Copyright (C) YEAR This file is copyright: # This file is distributed under the same license as the plasma-integration package. # # Sameer Singh <lumarzeli30@gmail.com>, 2021. # Raghavendra Kamath <raghu@raghukamath.com>, 2021. msgid "" msgstr "" "Project-Id-Version: plasma-integration\n" "Report-Msgid-Bugs-To: https://bugs.kde.org\n" "POT-Creation-Date: 2024-09-17 00:40+0000\n" "PO-Revision-Date: 2021-06-29 16:55+0530\n" "Last-Translator: Raghavendra Kamath <raghu@raghukamath.com>\n" "Language-Team: kde-hindi\n" "Language: hi\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n!=1);\n" "X-Generator: Lokalize 21.04.2\n" #: platformtheme/kdeplatformfiledialoghelper.cpp:260 #, kde-format msgctxt "@title:window" msgid "Open File" msgstr "फ़ाइल खोलें" #: platformtheme/kdeplatformfiledialoghelper.cpp:261 #, kde-format msgctxt "@title:window" msgid "Save File" msgstr "फ़ाइल सहेजें" #: platformtheme/kdeplatformtheme.cpp:299 #, kde-format msgctxt "@action:button" msgid "Save All" msgstr "सभी सहेजें" #: platformtheme/kdeplatformtheme.cpp:303 #, kde-format msgctxt "@action:button" msgid "&Yes" msgstr "" #: platformtheme/kdeplatformtheme.cpp:305 #, kde-format msgctxt "@action:button" msgid "Yes to All" msgstr "सभीं को हाँ" #: platformtheme/kdeplatformtheme.cpp:307 #, kde-format msgctxt "@action:button" msgid "&No" msgstr "" #: platformtheme/kdeplatformtheme.cpp:309 #, kde-format msgctxt "@action:button" msgid "No to All" msgstr "सभीं को ना" #: platformtheme/kdeplatformtheme.cpp:312 #, kde-format msgctxt "@action:button" msgid "Abort" msgstr "छोड़ें" #: platformtheme/kdeplatformtheme.cpp:314 #, kde-format msgctxt "@action:button" msgid "Retry" msgstr "फिर कोशिश करें" #: platformtheme/kdeplatformtheme.cpp:316 #, kde-format msgctxt "@action:button" msgid "Ignore" msgstr "ध्यान न दें" #: platformtheme/kdirselectdialog.cpp:122 #, kde-format msgctxt "folder name" msgid "New Folder" msgstr "नया फ़ोल्डर" #: platformtheme/kdirselectdialog.cpp:128 #, kde-format msgctxt "@title:window" msgid "New Folder" msgstr "नया फ़ोल्डर" #: platformtheme/kdirselectdialog.cpp:129 #, kde-format msgctxt "@label:textbox" msgid "" "Create new folder in:\n" "%1" msgstr "" "यहाँ पर फ़ोल्डर बनाएँ:\n" "%1" #: platformtheme/kdirselectdialog.cpp:160 #, kde-format msgid "A file or folder named %1 already exists." msgstr "%1 नामक एक फ़ाइल या फ़ोल्डर पहले से ही अस्तित्व में है।" #: platformtheme/kdirselectdialog.cpp:169 #, kde-format msgid "You do not have permission to create that folder." msgstr "उस फ़ोल्डर को बनाने के लिए आपके पास अनुमति नहीं है।" #: platformtheme/kdirselectdialog.cpp:271 #, kde-format msgctxt "@title:window" msgid "Select Folder" msgstr "फ़ोल्डर चुनें" #: platformtheme/kdirselectdialog.cpp:279 #, kde-format msgctxt "@action:button" msgid "New Folder..." msgstr "नया फ़ोल्डर..." #: platformtheme/kdirselectdialog.cpp:336 #, kde-format msgctxt "@action:inmenu" msgid "New Folder..." msgstr "नया फ़ोल्डर..." #: platformtheme/kdirselectdialog.cpp:345 #, kde-format msgctxt "@action:inmenu" msgid "Move to Trash" msgstr "कचरे में डालें" #: platformtheme/kdirselectdialog.cpp:354 #, kde-format msgctxt "@action:inmenu" msgid "Delete" msgstr "मिटाएँ" #: platformtheme/kdirselectdialog.cpp:365 #, kde-format msgctxt "@option:check" msgid "Show Hidden Folders" msgstr "छुपें फ़ोल्डरों को दिखाएँ" #: platformtheme/kdirselectdialog.cpp:372 #, kde-format msgctxt "@action:inmenu" msgid "Properties" msgstr "गुण" #: platformtheme/kfiletreeview.cpp:185 #, kde-format msgid "Show Hidden Folders" msgstr "छुपें फ़ोल्डरों को दिखाएँ" #: platformtheme/kioopenwith.cpp:147 #, kde-format msgid "" "Failed to launch for unknown reasons. Please try with a pre-existing " "application." msgstr "" 0707010000003F000041ED0000000000000000000000026728A27700000000000000000000000000000000000000000000003C00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/hu07070100000040000081A40000000000000000000000016728A27700000F9B000000000000000000000000000000000000005200000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/hu/plasmaintegration5.po# Copyright (C) YEAR This_file_is_part_of_KDE # This file is distributed under the same license as the PACKAGE package. # # SPDX-FileCopyrightText: 2017, 2023 Kiszel Kristóf <kiszel.kristof@gmail.com> # SPDX-FileCopyrightText: 2024 Kristof Kiszel <ulysses@fsf.hu> msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: https://bugs.kde.org\n" "POT-Creation-Date: 2024-09-17 00:40+0000\n" "PO-Revision-Date: 2024-09-23 22:00+0200\n" "Last-Translator: Kristof Kiszel <ulysses@fsf.hu>\n" "Language-Team: Hungarian <kde-l10n-hu@kde.org>\n" "Language: hu\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Lokalize 24.08.0\n" #: platformtheme/kdeplatformfiledialoghelper.cpp:260 #, kde-format msgctxt "@title:window" msgid "Open File" msgstr "Fájl megnyitása" #: platformtheme/kdeplatformfiledialoghelper.cpp:261 #, kde-format msgctxt "@title:window" msgid "Save File" msgstr "Fájl mentése" #: platformtheme/kdeplatformtheme.cpp:299 #, kde-format msgctxt "@action:button" msgid "Save All" msgstr "Összes mentése" #: platformtheme/kdeplatformtheme.cpp:303 #, kde-format msgctxt "@action:button" msgid "&Yes" msgstr "&Igen" #: platformtheme/kdeplatformtheme.cpp:305 #, kde-format msgctxt "@action:button" msgid "Yes to All" msgstr "Igen, mindet" #: platformtheme/kdeplatformtheme.cpp:307 #, kde-format msgctxt "@action:button" msgid "&No" msgstr "&Nem" #: platformtheme/kdeplatformtheme.cpp:309 #, kde-format msgctxt "@action:button" msgid "No to All" msgstr "Nem, egyet sem" #: platformtheme/kdeplatformtheme.cpp:312 #, kde-format msgctxt "@action:button" msgid "Abort" msgstr "Megszakítás" #: platformtheme/kdeplatformtheme.cpp:314 #, kde-format msgctxt "@action:button" msgid "Retry" msgstr "Újra" #: platformtheme/kdeplatformtheme.cpp:316 #, kde-format msgctxt "@action:button" msgid "Ignore" msgstr "Mellőzés" #: platformtheme/kdirselectdialog.cpp:122 #, kde-format msgctxt "folder name" msgid "New Folder" msgstr "Új mappa" #: platformtheme/kdirselectdialog.cpp:128 #, kde-format msgctxt "@title:window" msgid "New Folder" msgstr "Új mappa" #: platformtheme/kdirselectdialog.cpp:129 #, kde-format msgctxt "@label:textbox" msgid "" "Create new folder in:\n" "%1" msgstr "" "Új mappa létrehozása itt:\n" "%1" #: platformtheme/kdirselectdialog.cpp:160 #, kde-format msgid "A file or folder named %1 already exists." msgstr "Már létezik %1 nevű fájl vagy mappa." #: platformtheme/kdirselectdialog.cpp:169 #, kde-format msgid "You do not have permission to create that folder." msgstr "Nincs jogosultsága a mappa létrehozásához." #: platformtheme/kdirselectdialog.cpp:271 #, kde-format msgctxt "@title:window" msgid "Select Folder" msgstr "Mappa kiválasztása" #: platformtheme/kdirselectdialog.cpp:279 #, kde-format msgctxt "@action:button" msgid "New Folder..." msgstr "Új mappa…" #: platformtheme/kdirselectdialog.cpp:336 #, kde-format msgctxt "@action:inmenu" msgid "New Folder..." msgstr "Új mappa…" #: platformtheme/kdirselectdialog.cpp:345 #, kde-format msgctxt "@action:inmenu" msgid "Move to Trash" msgstr "Áthelyezés a Kukába" #: platformtheme/kdirselectdialog.cpp:354 #, kde-format msgctxt "@action:inmenu" msgid "Delete" msgstr "Törlés" #: platformtheme/kdirselectdialog.cpp:365 #, kde-format msgctxt "@option:check" msgid "Show Hidden Folders" msgstr "Rejtett mappák megjelenítése" #: platformtheme/kdirselectdialog.cpp:372 #, kde-format msgctxt "@action:inmenu" msgid "Properties" msgstr "Tulajdonságok" #: platformtheme/kfiletreeview.cpp:185 #, kde-format msgid "Show Hidden Folders" msgstr "Rejtett mappák megjelenítése" #: platformtheme/kioopenwith.cpp:147 #, kde-format msgid "" "Failed to launch for unknown reasons. Please try with a pre-existing " "application." msgstr "" "Ismeretlen okokból nem sikerült elindítani. Kérjük, próbálja meg egy már " "meglévő alkalmazással." 07070100000041000041ED0000000000000000000000026728A27700000000000000000000000000000000000000000000003C00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/ia07070100000042000081A40000000000000000000000016728A27700000F20000000000000000000000000000000000000005200000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/ia/plasmaintegration5.po# Copyright (C) YEAR This_file_is_part_of_KDE # This file is distributed under the same license as the PACKAGE package. # # SPDX-FileCopyrightText: 2017, 2023, 2024 giovanni <g.sora@tiscali.it> msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: https://bugs.kde.org\n" "POT-Creation-Date: 2024-09-17 00:40+0000\n" "PO-Revision-Date: 2024-06-26 11:01+0200\n" "Last-Translator: giovanni <g.sora@tiscali.it>\n" "Language-Team: Interlingua <kde-i18n-doc@kde.org>\n" "Language: ia\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" "X-Generator: Lokalize 23.08.5\n" #: platformtheme/kdeplatformfiledialoghelper.cpp:260 #, kde-format msgctxt "@title:window" msgid "Open File" msgstr "Aperi file" #: platformtheme/kdeplatformfiledialoghelper.cpp:261 #, kde-format msgctxt "@title:window" msgid "Save File" msgstr "Salveguarda file" #: platformtheme/kdeplatformtheme.cpp:299 #, kde-format msgctxt "@action:button" msgid "Save All" msgstr "Salveguarda toto" #: platformtheme/kdeplatformtheme.cpp:303 #, kde-format msgctxt "@action:button" msgid "&Yes" msgstr "&Si" #: platformtheme/kdeplatformtheme.cpp:305 #, kde-format msgctxt "@action:button" msgid "Yes to All" msgstr "Si a toto" #: platformtheme/kdeplatformtheme.cpp:307 #, kde-format msgctxt "@action:button" msgid "&No" msgstr "&No" #: platformtheme/kdeplatformtheme.cpp:309 #, kde-format msgctxt "@action:button" msgid "No to All" msgstr "N a toto" #: platformtheme/kdeplatformtheme.cpp:312 #, kde-format msgctxt "@action:button" msgid "Abort" msgstr "Aborta" #: platformtheme/kdeplatformtheme.cpp:314 #, kde-format msgctxt "@action:button" msgid "Retry" msgstr "Prova de nove" #: platformtheme/kdeplatformtheme.cpp:316 #, kde-format msgctxt "@action:button" msgid "Ignore" msgstr "Ignora" #: platformtheme/kdirselectdialog.cpp:122 #, kde-format msgctxt "folder name" msgid "New Folder" msgstr "Nove dossier" #: platformtheme/kdirselectdialog.cpp:128 #, kde-format msgctxt "@title:window" msgid "New Folder" msgstr "Nove dossier" #: platformtheme/kdirselectdialog.cpp:129 #, kde-format msgctxt "@label:textbox" msgid "" "Create new folder in:\n" "%1" msgstr "" "Crea nove dossier in:\n" "%1" #: platformtheme/kdirselectdialog.cpp:160 #, kde-format msgid "A file or folder named %1 already exists." msgstr "Un file o un dossier appellate %1 ja existe." #: platformtheme/kdirselectdialog.cpp:169 #, kde-format msgid "You do not have permission to create that folder." msgstr "Tu non ha permissiones de crea ille dossier." #: platformtheme/kdirselectdialog.cpp:271 #, kde-format msgctxt "@title:window" msgid "Select Folder" msgstr "Selige dossier" #: platformtheme/kdirselectdialog.cpp:279 #, kde-format msgctxt "@action:button" msgid "New Folder..." msgstr "Nove dossier..." #: platformtheme/kdirselectdialog.cpp:336 #, kde-format msgctxt "@action:inmenu" msgid "New Folder..." msgstr "Nove dossier..." #: platformtheme/kdirselectdialog.cpp:345 #, kde-format msgctxt "@action:inmenu" msgid "Move to Trash" msgstr "Move a corbe" #: platformtheme/kdirselectdialog.cpp:354 #, kde-format msgctxt "@action:inmenu" msgid "Delete" msgstr "Dele" #: platformtheme/kdirselectdialog.cpp:365 #, kde-format msgctxt "@option:check" msgid "Show Hidden Folders" msgstr "Monstra dossieres celate" #: platformtheme/kdirselectdialog.cpp:372 #, kde-format msgctxt "@action:inmenu" msgid "Properties" msgstr "Proprietates" #: platformtheme/kfiletreeview.cpp:185 #, kde-format msgid "Show Hidden Folders" msgstr "Monstra dossieres celate" #: platformtheme/kioopenwith.cpp:147 #, kde-format msgid "" "Failed to launch for unknown reasons. Please try with a pre-existing " "application." msgstr "" "Il falleva a lancear per motivationes incognoscite. Pro favor tu essaya con " "un application pre-existente." 07070100000043000041ED0000000000000000000000026728A27700000000000000000000000000000000000000000000003C00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/id07070100000044000081A40000000000000000000000016728A27700000ECB000000000000000000000000000000000000005200000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/id/plasmaintegration5.po# Copyright (C) YEAR This file is copyright: # This file is distributed under the same license as the plasma-integration package. # Wantoyo <wantoyek@gmail.com>, 2018, 2022. # msgid "" msgstr "" "Project-Id-Version: plasma-integration\n" "Report-Msgid-Bugs-To: https://bugs.kde.org\n" "POT-Creation-Date: 2024-09-17 00:40+0000\n" "PO-Revision-Date: 2022-03-24 06:21+0700\n" "Last-Translator: Wantoyèk <wantoyek@gmail.com>\n" "Language-Team: Indonesian <kde-i18n-doc@kde.org>\n" "Language: id\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Lokalize 21.12.3\n" #: platformtheme/kdeplatformfiledialoghelper.cpp:260 #, kde-format msgctxt "@title:window" msgid "Open File" msgstr "Buka File" #: platformtheme/kdeplatformfiledialoghelper.cpp:261 #, kde-format msgctxt "@title:window" msgid "Save File" msgstr "Simpan File" #: platformtheme/kdeplatformtheme.cpp:299 #, kde-format msgctxt "@action:button" msgid "Save All" msgstr "Simpan Semua" #: platformtheme/kdeplatformtheme.cpp:303 #, kde-format msgctxt "@action:button" msgid "&Yes" msgstr "" #: platformtheme/kdeplatformtheme.cpp:305 #, kde-format msgctxt "@action:button" msgid "Yes to All" msgstr "Ya Semuanya" #: platformtheme/kdeplatformtheme.cpp:307 #, kde-format msgctxt "@action:button" msgid "&No" msgstr "" #: platformtheme/kdeplatformtheme.cpp:309 #, kde-format msgctxt "@action:button" msgid "No to All" msgstr "Tidak Semuanya" #: platformtheme/kdeplatformtheme.cpp:312 #, kde-format msgctxt "@action:button" msgid "Abort" msgstr "Gugurkan" #: platformtheme/kdeplatformtheme.cpp:314 #, kde-format msgctxt "@action:button" msgid "Retry" msgstr "Coba lagi" #: platformtheme/kdeplatformtheme.cpp:316 #, kde-format msgctxt "@action:button" msgid "Ignore" msgstr "Abaikan" #: platformtheme/kdirselectdialog.cpp:122 #, kde-format msgctxt "folder name" msgid "New Folder" msgstr "Folder Baru" #: platformtheme/kdirselectdialog.cpp:128 #, kde-format msgctxt "@title:window" msgid "New Folder" msgstr "Folder Baru" #: platformtheme/kdirselectdialog.cpp:129 #, kde-format msgctxt "@label:textbox" msgid "" "Create new folder in:\n" "%1" msgstr "" "Ciptakan folder baru di:\n" "%1" #: platformtheme/kdirselectdialog.cpp:160 #, kde-format msgid "A file or folder named %1 already exists." msgstr "Sebuah file atau folder bernama %1 sudah ada." #: platformtheme/kdirselectdialog.cpp:169 #, kde-format msgid "You do not have permission to create that folder." msgstr "Kamu tidak memiliki perizinan untuk menciptakan folder tersebut." #: platformtheme/kdirselectdialog.cpp:271 #, kde-format msgctxt "@title:window" msgid "Select Folder" msgstr "Pilih Folder" #: platformtheme/kdirselectdialog.cpp:279 #, kde-format msgctxt "@action:button" msgid "New Folder..." msgstr "Folder Baru..." #: platformtheme/kdirselectdialog.cpp:336 #, kde-format msgctxt "@action:inmenu" msgid "New Folder..." msgstr "Folder Baru..." #: platformtheme/kdirselectdialog.cpp:345 #, kde-format msgctxt "@action:inmenu" msgid "Move to Trash" msgstr "Pindah ke Tong Sampah" #: platformtheme/kdirselectdialog.cpp:354 #, kde-format msgctxt "@action:inmenu" msgid "Delete" msgstr "Hapus" #: platformtheme/kdirselectdialog.cpp:365 #, kde-format msgctxt "@option:check" msgid "Show Hidden Folders" msgstr "Tampilkan Folder Tersembunyi" #: platformtheme/kdirselectdialog.cpp:372 #, kde-format msgctxt "@action:inmenu" msgid "Properties" msgstr "Properti" #: platformtheme/kfiletreeview.cpp:185 #, kde-format msgid "Show Hidden Folders" msgstr "Tampilkan Folder Tersembunyi" #: platformtheme/kioopenwith.cpp:147 #, kde-format msgid "" "Failed to launch for unknown reasons. Please try with a pre-existing " "application." msgstr "" 07070100000045000041ED0000000000000000000000026728A27700000000000000000000000000000000000000000000003C00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/is07070100000046000081A40000000000000000000000016728A27700000F48000000000000000000000000000000000000005200000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/is/plasmaintegration5.po# Copyright (C) 2023 This file is copyright: # This file is distributed under the same license as the plasma-integration package. # # SPDX-FileCopyrightText: 2023, 2024 Guðmundur Erlingsson <gudmundure@gmail.com> msgid "" msgstr "" "Project-Id-Version: plasma-integration\n" "Report-Msgid-Bugs-To: https://bugs.kde.org\n" "POT-Creation-Date: 2024-09-17 00:40+0000\n" "PO-Revision-Date: 2024-06-28 16:19+0000\n" "Last-Translator: Gummi <gudmundure@gmail.com>\n" "Language-Team: Icelandic <kde-i18n-doc@kde.org>\n" "Language: is\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: Plural-Forms: nplurals=2; plural=n != 1;\n" "X-Generator: Lokalize 23.08.5\n" #: platformtheme/kdeplatformfiledialoghelper.cpp:260 #, kde-format msgctxt "@title:window" msgid "Open File" msgstr "Opna skrá" #: platformtheme/kdeplatformfiledialoghelper.cpp:261 #, kde-format msgctxt "@title:window" msgid "Save File" msgstr "Vista skrá" #: platformtheme/kdeplatformtheme.cpp:299 #, kde-format msgctxt "@action:button" msgid "Save All" msgstr "Vista allt" #: platformtheme/kdeplatformtheme.cpp:303 #, kde-format msgctxt "@action:button" msgid "&Yes" msgstr "&Já" #: platformtheme/kdeplatformtheme.cpp:305 #, kde-format msgctxt "@action:button" msgid "Yes to All" msgstr "Já við öllu" #: platformtheme/kdeplatformtheme.cpp:307 #, kde-format msgctxt "@action:button" msgid "&No" msgstr "&Nei" #: platformtheme/kdeplatformtheme.cpp:309 #, kde-format msgctxt "@action:button" msgid "No to All" msgstr "Nei við öllu" #: platformtheme/kdeplatformtheme.cpp:312 #, kde-format msgctxt "@action:button" msgid "Abort" msgstr "Hætta við" #: platformtheme/kdeplatformtheme.cpp:314 #, kde-format msgctxt "@action:button" msgid "Retry" msgstr "Reyna aftur" #: platformtheme/kdeplatformtheme.cpp:316 #, kde-format msgctxt "@action:button" msgid "Ignore" msgstr "Hunsa" #: platformtheme/kdirselectdialog.cpp:122 #, kde-format msgctxt "folder name" msgid "New Folder" msgstr "Ný mappa" #: platformtheme/kdirselectdialog.cpp:128 #, kde-format msgctxt "@title:window" msgid "New Folder" msgstr "Ný mappa" #: platformtheme/kdirselectdialog.cpp:129 #, kde-format msgctxt "@label:textbox" msgid "" "Create new folder in:\n" "%1" msgstr "" "Búa til nýja möppu í:\n" "%1" #: platformtheme/kdirselectdialog.cpp:160 #, kde-format msgid "A file or folder named %1 already exists." msgstr "Það er nú þegar til skrá eða mappa sem heitir %1." #: platformtheme/kdirselectdialog.cpp:169 #, kde-format msgid "You do not have permission to create that folder." msgstr "Þú hefur ekki heimild til að búa þessa möppu til." #: platformtheme/kdirselectdialog.cpp:271 #, kde-format msgctxt "@title:window" msgid "Select Folder" msgstr "Velja möppu" #: platformtheme/kdirselectdialog.cpp:279 #, kde-format msgctxt "@action:button" msgid "New Folder..." msgstr "Ný mappa..." #: platformtheme/kdirselectdialog.cpp:336 #, kde-format msgctxt "@action:inmenu" msgid "New Folder..." msgstr "Ný mappa..." #: platformtheme/kdirselectdialog.cpp:345 #, kde-format msgctxt "@action:inmenu" msgid "Move to Trash" msgstr "Setja í ruslið" #: platformtheme/kdirselectdialog.cpp:354 #, kde-format msgctxt "@action:inmenu" msgid "Delete" msgstr "Eyða" #: platformtheme/kdirselectdialog.cpp:365 #, kde-format msgctxt "@option:check" msgid "Show Hidden Folders" msgstr "Sýna faldar möppur" #: platformtheme/kdirselectdialog.cpp:372 #, kde-format msgctxt "@action:inmenu" msgid "Properties" msgstr "Eiginleikar" #: platformtheme/kfiletreeview.cpp:185 #, kde-format msgid "Show Hidden Folders" msgstr "Sýna faldar möppur" #: platformtheme/kioopenwith.cpp:147 #, kde-format msgid "" "Failed to launch for unknown reasons. Please try with a pre-existing " "application." msgstr "" "Mistókst að keyra af óþekktum ástæðum. Prófaðu með forriti sem til er fyrir." 07070100000047000041ED0000000000000000000000026728A27700000000000000000000000000000000000000000000003C00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/it07070100000048000081A40000000000000000000000016728A27700000FAD000000000000000000000000000000000000005200000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/it/plasmaintegration5.po# Copyright (C) YEAR This_file_is_part_of_KDE # This file is distributed under the same license as the PACKAGE package. # SPDX-FileCopyrightText: 2014, 2022, 2024 Vincenzo Reale <smart2128vr@gmail.com> # msgid "" msgstr "" "Project-Id-Version: frameworkintegration5\n" "Report-Msgid-Bugs-To: https://bugs.kde.org\n" "POT-Creation-Date: 2024-09-17 00:40+0000\n" "PO-Revision-Date: 2024-06-28 03:31+0200\n" "Last-Translator: Vincenzo Reale <smart2128vr@gmail.com>\n" "Language-Team: Italian <kde-i18n-it@kde.org>\n" "Language: it\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Lokalize 24.05.1\n" #: platformtheme/kdeplatformfiledialoghelper.cpp:260 #, kde-format msgctxt "@title:window" msgid "Open File" msgstr "Apri file" #: platformtheme/kdeplatformfiledialoghelper.cpp:261 #, kde-format msgctxt "@title:window" msgid "Save File" msgstr "Salva file" #: platformtheme/kdeplatformtheme.cpp:299 #, kde-format msgctxt "@action:button" msgid "Save All" msgstr "Salva tutto" #: platformtheme/kdeplatformtheme.cpp:303 #, kde-format msgctxt "@action:button" msgid "&Yes" msgstr "&Sì" #: platformtheme/kdeplatformtheme.cpp:305 #, kde-format msgctxt "@action:button" msgid "Yes to All" msgstr "Sì a tutto" #: platformtheme/kdeplatformtheme.cpp:307 #, kde-format msgctxt "@action:button" msgid "&No" msgstr "&No" #: platformtheme/kdeplatformtheme.cpp:309 #, kde-format msgctxt "@action:button" msgid "No to All" msgstr "No a tutto" #: platformtheme/kdeplatformtheme.cpp:312 #, kde-format msgctxt "@action:button" msgid "Abort" msgstr "Interrompi" #: platformtheme/kdeplatformtheme.cpp:314 #, kde-format msgctxt "@action:button" msgid "Retry" msgstr "Riprova" #: platformtheme/kdeplatformtheme.cpp:316 #, kde-format msgctxt "@action:button" msgid "Ignore" msgstr "Ignora" #: platformtheme/kdirselectdialog.cpp:122 #, kde-format msgctxt "folder name" msgid "New Folder" msgstr "Nuova cartella" #: platformtheme/kdirselectdialog.cpp:128 #, kde-format msgctxt "@title:window" msgid "New Folder" msgstr "Nuova cartella" #: platformtheme/kdirselectdialog.cpp:129 #, kde-format msgctxt "@label:textbox" msgid "" "Create new folder in:\n" "%1" msgstr "" "Crea un nuova cartella in:\n" "%1" #: platformtheme/kdirselectdialog.cpp:160 #, kde-format msgid "A file or folder named %1 already exists." msgstr "Un file o una cartella con nome %1 esiste già." #: platformtheme/kdirselectdialog.cpp:169 #, kde-format msgid "You do not have permission to create that folder." msgstr "Non disponi dei permessi per creare la cartella." #: platformtheme/kdirselectdialog.cpp:271 #, kde-format msgctxt "@title:window" msgid "Select Folder" msgstr "Seleziona cartella" #: platformtheme/kdirselectdialog.cpp:279 #, kde-format msgctxt "@action:button" msgid "New Folder..." msgstr "Nuova cartella..." #: platformtheme/kdirselectdialog.cpp:336 #, kde-format msgctxt "@action:inmenu" msgid "New Folder..." msgstr "Nuova cartella..." #: platformtheme/kdirselectdialog.cpp:345 #, kde-format msgctxt "@action:inmenu" msgid "Move to Trash" msgstr "Cestina" #: platformtheme/kdirselectdialog.cpp:354 #, kde-format msgctxt "@action:inmenu" msgid "Delete" msgstr "Elimina" #: platformtheme/kdirselectdialog.cpp:365 #, kde-format msgctxt "@option:check" msgid "Show Hidden Folders" msgstr "Mostra cartelle nascoste" #: platformtheme/kdirselectdialog.cpp:372 #, kde-format msgctxt "@action:inmenu" msgid "Properties" msgstr "Proprietà" #: platformtheme/kfiletreeview.cpp:185 #, kde-format msgid "Show Hidden Folders" msgstr "Mostra cartelle nascoste" #: platformtheme/kioopenwith.cpp:147 #, kde-format msgid "" "Failed to launch for unknown reasons. Please try with a pre-existing " "application." msgstr "" "Impossibile avviare per motivi sconosciuti. Prova con un'applicazione " "preesistente." #~ msgid "Opening..." #~ msgstr "Apertura in corso..." #~ msgid "Saving..." #~ msgstr "Salvataggio in corso..." 07070100000049000041ED0000000000000000000000026728A27700000000000000000000000000000000000000000000003C00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/ja0707010000004A000081A40000000000000000000000016728A27700000F1D000000000000000000000000000000000000005200000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/ja/plasmaintegration5.po# Tomohiro Hyakutake <tomhioo@outlook.jp>, 2019. msgid "" msgstr "" "Project-Id-Version: frameworkintegration5\n" "Report-Msgid-Bugs-To: https://bugs.kde.org\n" "POT-Creation-Date: 2024-09-17 00:40+0000\n" "PO-Revision-Date: 2019-11-02 18:30+0900\n" "Last-Translator: Tomohiro Hyakutake <tomhioo@outlook.jp>\n" "Language-Team: Japanese <kde-jp@kde.org>\n" "Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Accelerator-Marker: &\n" "X-Text-Markup: kde4\n" "X-Generator: Lokalize 19.08.2\n" #: platformtheme/kdeplatformfiledialoghelper.cpp:260 #, kde-format msgctxt "@title:window" msgid "Open File" msgstr "ファイルを開く" #: platformtheme/kdeplatformfiledialoghelper.cpp:261 #, kde-format msgctxt "@title:window" msgid "Save File" msgstr "ファイルを保存" #: platformtheme/kdeplatformtheme.cpp:299 #, kde-format msgctxt "@action:button" msgid "Save All" msgstr "すべて保存" #: platformtheme/kdeplatformtheme.cpp:303 #, kde-format msgctxt "@action:button" msgid "&Yes" msgstr "" #: platformtheme/kdeplatformtheme.cpp:305 #, kde-format msgctxt "@action:button" msgid "Yes to All" msgstr "すべてはい" #: platformtheme/kdeplatformtheme.cpp:307 #, kde-format msgctxt "@action:button" msgid "&No" msgstr "" #: platformtheme/kdeplatformtheme.cpp:309 #, kde-format msgctxt "@action:button" msgid "No to All" msgstr "すべていいえ" #: platformtheme/kdeplatformtheme.cpp:312 #, kde-format msgctxt "@action:button" msgid "Abort" msgstr "中断" #: platformtheme/kdeplatformtheme.cpp:314 #, kde-format msgctxt "@action:button" msgid "Retry" msgstr "再試行" #: platformtheme/kdeplatformtheme.cpp:316 #, kde-format msgctxt "@action:button" msgid "Ignore" msgstr "無視" #: platformtheme/kdirselectdialog.cpp:122 #, kde-format msgctxt "folder name" msgid "New Folder" msgstr "新しいフォルダ" #: platformtheme/kdirselectdialog.cpp:128 #, kde-format msgctxt "@title:window" msgid "New Folder" msgstr "新しいフォルダ" #: platformtheme/kdirselectdialog.cpp:129 #, kde-format msgctxt "@label:textbox" msgid "" "Create new folder in:\n" "%1" msgstr "" "以下の場所に新しいフォルダを作成:\n" "‘%1’" #: platformtheme/kdirselectdialog.cpp:160 #, kde-format msgid "A file or folder named %1 already exists." msgstr "%1 という名前のファイルまたはフォルダは既に存在します。" #: platformtheme/kdirselectdialog.cpp:169 #, kde-format msgid "You do not have permission to create that folder." msgstr "あなたにはそのフォルダを作成する権限がありません。" #: platformtheme/kdirselectdialog.cpp:271 #, kde-format msgctxt "@title:window" msgid "Select Folder" msgstr "フォルダを選択" #: platformtheme/kdirselectdialog.cpp:279 #, kde-format msgctxt "@action:button" msgid "New Folder..." msgstr "新しいフォルダ..." #: platformtheme/kdirselectdialog.cpp:336 #, kde-format msgctxt "@action:inmenu" msgid "New Folder..." msgstr "新しいフォルダ..." #: platformtheme/kdirselectdialog.cpp:345 #, kde-format msgctxt "@action:inmenu" msgid "Move to Trash" msgstr "ごみ箱に移動" #: platformtheme/kdirselectdialog.cpp:354 #, kde-format msgctxt "@action:inmenu" msgid "Delete" msgstr "削除" #: platformtheme/kdirselectdialog.cpp:365 #, kde-format msgctxt "@option:check" msgid "Show Hidden Folders" msgstr "隠しフォルダを表示" #: platformtheme/kdirselectdialog.cpp:372 #, kde-format msgctxt "@action:inmenu" msgid "Properties" msgstr "プロパティ" #: platformtheme/kfiletreeview.cpp:185 #, kde-format msgid "Show Hidden Folders" msgstr "隠しフォルダを表示" #: platformtheme/kioopenwith.cpp:147 #, kde-format msgid "" "Failed to launch for unknown reasons. Please try with a pre-existing " "application." msgstr "" 0707010000004B000041ED0000000000000000000000026728A27700000000000000000000000000000000000000000000003C00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/ka0707010000004C000081A40000000000000000000000016728A27700001265000000000000000000000000000000000000005200000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/ka/plasmaintegration5.po# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR This file is copyright: # This file is distributed under the same license as the plasma-integration package. # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. # msgid "" msgstr "" "Project-Id-Version: plasma-integration\n" "Report-Msgid-Bugs-To: https://bugs.kde.org\n" "POT-Creation-Date: 2024-09-17 00:40+0000\n" "PO-Revision-Date: 2024-06-26 05:46+0200\n" "Last-Translator: Temuri Doghonadze <temuri.doghonadze@gmail.com>\n" "Language-Team: Georgian <kde-i18n-doc@kde.org>\n" "Language: ka\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Poedit 3.3.2\n" #: platformtheme/kdeplatformfiledialoghelper.cpp:260 #, kde-format msgctxt "@title:window" msgid "Open File" msgstr "ფაილის გახსნა" #: platformtheme/kdeplatformfiledialoghelper.cpp:261 #, kde-format msgctxt "@title:window" msgid "Save File" msgstr "ფაილის შენახვა" #: platformtheme/kdeplatformtheme.cpp:299 #, kde-format msgctxt "@action:button" msgid "Save All" msgstr "ყველას შენახვა" #: platformtheme/kdeplatformtheme.cpp:303 #, kde-format msgctxt "@action:button" msgid "&Yes" msgstr "&დიახ" #: platformtheme/kdeplatformtheme.cpp:305 #, kde-format msgctxt "@action:button" msgid "Yes to All" msgstr "დიახ ყველაფერზე" #: platformtheme/kdeplatformtheme.cpp:307 #, kde-format msgctxt "@action:button" msgid "&No" msgstr "&არა" #: platformtheme/kdeplatformtheme.cpp:309 #, kde-format msgctxt "@action:button" msgid "No to All" msgstr "არა ყველაფერზე" #: platformtheme/kdeplatformtheme.cpp:312 #, kde-format msgctxt "@action:button" msgid "Abort" msgstr "შეწყვეტა" #: platformtheme/kdeplatformtheme.cpp:314 #, kde-format msgctxt "@action:button" msgid "Retry" msgstr "თავიდან ცდა" #: platformtheme/kdeplatformtheme.cpp:316 #, kde-format msgctxt "@action:button" msgid "Ignore" msgstr "უგულებელყოფა" #: platformtheme/kdirselectdialog.cpp:122 #, kde-format msgctxt "folder name" msgid "New Folder" msgstr "ახალი საქაღალდე" #: platformtheme/kdirselectdialog.cpp:128 #, kde-format msgctxt "@title:window" msgid "New Folder" msgstr "ახალი საქაღალდე" #: platformtheme/kdirselectdialog.cpp:129 #, kde-format msgctxt "@label:textbox" msgid "" "Create new folder in:\n" "%1" msgstr "" "ახალი საქაღალდის შექმნა: \n" "%1-ში" #: platformtheme/kdirselectdialog.cpp:160 #, kde-format msgid "A file or folder named %1 already exists." msgstr "საქაღალდე ფაილი სახელით %1 უკვე არსებობს." #: platformtheme/kdirselectdialog.cpp:169 #, kde-format msgid "You do not have permission to create that folder." msgstr "საქაღალდის შექმნის უფლება არ გაქვთ." #: platformtheme/kdirselectdialog.cpp:271 #, kde-format msgctxt "@title:window" msgid "Select Folder" msgstr "აირჩიეთ საქაღალდე" #: platformtheme/kdirselectdialog.cpp:279 #, kde-format msgctxt "@action:button" msgid "New Folder..." msgstr "ახალი საქაღალდე..." #: platformtheme/kdirselectdialog.cpp:336 #, kde-format msgctxt "@action:inmenu" msgid "New Folder..." msgstr "ახალი საქაღალდე..." #: platformtheme/kdirselectdialog.cpp:345 #, kde-format msgctxt "@action:inmenu" msgid "Move to Trash" msgstr "ნაგავში გადატანა" #: platformtheme/kdirselectdialog.cpp:354 #, kde-format msgctxt "@action:inmenu" msgid "Delete" msgstr "წაშლა" #: platformtheme/kdirselectdialog.cpp:365 #, kde-format msgctxt "@option:check" msgid "Show Hidden Folders" msgstr "დამალული საქაღალდეების ჩვენება" #: platformtheme/kdirselectdialog.cpp:372 #, kde-format msgctxt "@action:inmenu" msgid "Properties" msgstr "თვისებები" #: platformtheme/kfiletreeview.cpp:185 #, kde-format msgid "Show Hidden Folders" msgstr "დამალული საქაღალდეების ჩვენება" #: platformtheme/kioopenwith.cpp:147 #, kde-format msgid "" "Failed to launch for unknown reasons. Please try with a pre-existing " "application." msgstr "გაშვება უცნობი მიზეზებით ჩავარდა. სცადეთ უკვე არსებული აპლიკაციით." 0707010000004D000041ED0000000000000000000000026728A27700000000000000000000000000000000000000000000003C00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/ko0707010000004E000081A40000000000000000000000016728A27700000F32000000000000000000000000000000000000005200000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/ko/plasmaintegration5.po# Copyright (C) YEAR This_file_is_part_of_KDE # This file is distributed under the same license as the PACKAGE package. # SPDX-FileCopyrightText: 2014, 2015, 2016, 2023, 2024 Shinjo Park <kde@peremen.name> # msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: https://bugs.kde.org\n" "POT-Creation-Date: 2024-09-17 00:40+0000\n" "PO-Revision-Date: 2024-08-20 00:40+0200\n" "Last-Translator: Shinjo Park <kde@peremen.name>\n" "Language-Team: Korean <kde-kr@kde.org>\n" "Language: ko\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Lokalize 23.08.5\n" #: platformtheme/kdeplatformfiledialoghelper.cpp:260 #, kde-format msgctxt "@title:window" msgid "Open File" msgstr "파일 열기" #: platformtheme/kdeplatformfiledialoghelper.cpp:261 #, kde-format msgctxt "@title:window" msgid "Save File" msgstr "파일 저장" #: platformtheme/kdeplatformtheme.cpp:299 #, kde-format msgctxt "@action:button" msgid "Save All" msgstr "모두 저장" #: platformtheme/kdeplatformtheme.cpp:303 #, kde-format msgctxt "@action:button" msgid "&Yes" msgstr "예(&Y)" #: platformtheme/kdeplatformtheme.cpp:305 #, kde-format msgctxt "@action:button" msgid "Yes to All" msgstr "모두 예" #: platformtheme/kdeplatformtheme.cpp:307 #, kde-format msgctxt "@action:button" msgid "&No" msgstr "아니요(&N)" #: platformtheme/kdeplatformtheme.cpp:309 #, kde-format msgctxt "@action:button" msgid "No to All" msgstr "모두 아니요" #: platformtheme/kdeplatformtheme.cpp:312 #, kde-format msgctxt "@action:button" msgid "Abort" msgstr "중지" #: platformtheme/kdeplatformtheme.cpp:314 #, kde-format msgctxt "@action:button" msgid "Retry" msgstr "다시 시도" #: platformtheme/kdeplatformtheme.cpp:316 #, kde-format msgctxt "@action:button" msgid "Ignore" msgstr "무시" #: platformtheme/kdirselectdialog.cpp:122 #, kde-format msgctxt "folder name" msgid "New Folder" msgstr "새 폴더" #: platformtheme/kdirselectdialog.cpp:128 #, kde-format msgctxt "@title:window" msgid "New Folder" msgstr "새 폴더" #: platformtheme/kdirselectdialog.cpp:129 #, kde-format msgctxt "@label:textbox" msgid "" "Create new folder in:\n" "%1" msgstr "" "다음에 새 폴더 만들기:\n" "%1" #: platformtheme/kdirselectdialog.cpp:160 #, kde-format msgid "A file or folder named %1 already exists." msgstr "파일이나 폴더 %1이(가) 이미 존재합니다." #: platformtheme/kdirselectdialog.cpp:169 #, kde-format msgid "You do not have permission to create that folder." msgstr "폴더를 만들 권한이 없습니다." #: platformtheme/kdirselectdialog.cpp:271 #, kde-format msgctxt "@title:window" msgid "Select Folder" msgstr "폴더 선택" #: platformtheme/kdirselectdialog.cpp:279 #, kde-format msgctxt "@action:button" msgid "New Folder..." msgstr "새 폴더..." #: platformtheme/kdirselectdialog.cpp:336 #, kde-format msgctxt "@action:inmenu" msgid "New Folder..." msgstr "새 폴더..." #: platformtheme/kdirselectdialog.cpp:345 #, kde-format msgctxt "@action:inmenu" msgid "Move to Trash" msgstr "휴지통으로 이동" #: platformtheme/kdirselectdialog.cpp:354 #, kde-format msgctxt "@action:inmenu" msgid "Delete" msgstr "삭제" #: platformtheme/kdirselectdialog.cpp:365 #, kde-format msgctxt "@option:check" msgid "Show Hidden Folders" msgstr "숨겨진 폴더 보기" #: platformtheme/kdirselectdialog.cpp:372 #, kde-format msgctxt "@action:inmenu" msgid "Properties" msgstr "속성" #: platformtheme/kfiletreeview.cpp:185 #, kde-format msgid "Show Hidden Folders" msgstr "숨겨진 폴더 보기" #: platformtheme/kioopenwith.cpp:147 #, kde-format msgid "" "Failed to launch for unknown reasons. Please try with a pre-existing " "application." msgstr "알 수 없는 이유로 실행에 실패했습니다. 기존 앱으로 다시 시도하십시오." 0707010000004F000041ED0000000000000000000000026728A27700000000000000000000000000000000000000000000003C00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/lt07070100000050000081A40000000000000000000000016728A27700000FA6000000000000000000000000000000000000005200000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/lt/plasmaintegration5.po# Lithuanian translations for plasma-integration package. # Copyright (C) 2019 This file is copyright: # This file is distributed under the same license as the plasma-integration package. # Automatically generated, 2019. # msgid "" msgstr "" "Project-Id-Version: plasma-integration\n" "Report-Msgid-Bugs-To: https://bugs.kde.org\n" "POT-Creation-Date: 2024-09-17 00:40+0000\n" "PO-Revision-Date: 2024-07-06 01:51+0300\n" "Last-Translator: Moo\n" "Language-Team: lt\n" "Language: lt\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=4; plural=(n==1 ? 0 : n%10>=2 && (n%100<10 || n" "%100>=20) ? 1 : n%10==0 || (n%100>10 && n%100<20) ? 2 : 3);\n" "X-Generator: Poedit 3.4.2\n" #: platformtheme/kdeplatformfiledialoghelper.cpp:260 #, kde-format msgctxt "@title:window" msgid "Open File" msgstr "Atverti failą" #: platformtheme/kdeplatformfiledialoghelper.cpp:261 #, kde-format msgctxt "@title:window" msgid "Save File" msgstr "Įrašyti failą" #: platformtheme/kdeplatformtheme.cpp:299 #, kde-format msgctxt "@action:button" msgid "Save All" msgstr "Įrašyti visus" #: platformtheme/kdeplatformtheme.cpp:303 #, kde-format msgctxt "@action:button" msgid "&Yes" msgstr "&Taip" #: platformtheme/kdeplatformtheme.cpp:305 #, kde-format msgctxt "@action:button" msgid "Yes to All" msgstr "Visiems taip" #: platformtheme/kdeplatformtheme.cpp:307 #, kde-format msgctxt "@action:button" msgid "&No" msgstr "&Ne" #: platformtheme/kdeplatformtheme.cpp:309 #, kde-format msgctxt "@action:button" msgid "No to All" msgstr "Visiems ne" #: platformtheme/kdeplatformtheme.cpp:312 #, kde-format msgctxt "@action:button" msgid "Abort" msgstr "Nutraukti" #: platformtheme/kdeplatformtheme.cpp:314 #, kde-format msgctxt "@action:button" msgid "Retry" msgstr "Bandyti dar kartą" #: platformtheme/kdeplatformtheme.cpp:316 #, kde-format msgctxt "@action:button" msgid "Ignore" msgstr "Nepaisyti" #: platformtheme/kdirselectdialog.cpp:122 #, kde-format msgctxt "folder name" msgid "New Folder" msgstr "Naujas aplankas" #: platformtheme/kdirselectdialog.cpp:128 #, kde-format msgctxt "@title:window" msgid "New Folder" msgstr "Naujas aplankas" #: platformtheme/kdirselectdialog.cpp:129 #, kde-format msgctxt "@label:textbox" msgid "" "Create new folder in:\n" "%1" msgstr "" "Sukurti naują aplanką ties:\n" "%1" #: platformtheme/kdirselectdialog.cpp:160 #, kde-format msgid "A file or folder named %1 already exists." msgstr "Failas ar aplankas, pavadinimu %1, jau yra." #: platformtheme/kdirselectdialog.cpp:169 #, kde-format msgid "You do not have permission to create that folder." msgstr "Jūs neturite leidimo sukurti tą aplanką." #: platformtheme/kdirselectdialog.cpp:271 #, kde-format msgctxt "@title:window" msgid "Select Folder" msgstr "Pasirinkti aplanką" #: platformtheme/kdirselectdialog.cpp:279 #, kde-format msgctxt "@action:button" msgid "New Folder..." msgstr "Naujas aplankas..." #: platformtheme/kdirselectdialog.cpp:336 #, kde-format msgctxt "@action:inmenu" msgid "New Folder..." msgstr "Naujas aplankas..." #: platformtheme/kdirselectdialog.cpp:345 #, kde-format msgctxt "@action:inmenu" msgid "Move to Trash" msgstr "Perkelti į šiukšlinę" #: platformtheme/kdirselectdialog.cpp:354 #, kde-format msgctxt "@action:inmenu" msgid "Delete" msgstr "Ištrinti" #: platformtheme/kdirselectdialog.cpp:365 #, kde-format msgctxt "@option:check" msgid "Show Hidden Folders" msgstr "Rodyti paslėptus aplankus" #: platformtheme/kdirselectdialog.cpp:372 #, kde-format msgctxt "@action:inmenu" msgid "Properties" msgstr "Savybės" #: platformtheme/kfiletreeview.cpp:185 #, kde-format msgid "Show Hidden Folders" msgstr "Rodyti paslėptus aplankus" #: platformtheme/kioopenwith.cpp:147 #, kde-format msgid "" "Failed to launch for unknown reasons. Please try with a pre-existing " "application." msgstr "" "Nepavyko paleisti dėl nežinomų priežasčių. Pabandykite naudodami anksčiau " "buvusią programą." 07070100000051000041ED0000000000000000000000026728A27700000000000000000000000000000000000000000000003C00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/lv07070100000052000081A40000000000000000000000016728A27700000F5F000000000000000000000000000000000000005200000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/lv/plasmaintegration5.po# Copyright (C) 2024 This file is copyright: # This file is distributed under the same license as the plasma-integration package. # # SPDX-FileCopyrightText: 2024 Toms Trasūns <toms.trasuns@posteo.net> msgid "" msgstr "" "Project-Id-Version: plasma-integration\n" "Report-Msgid-Bugs-To: https://bugs.kde.org\n" "POT-Creation-Date: 2024-09-17 00:40+0000\n" "PO-Revision-Date: 2024-09-06 14:53+0300\n" "Last-Translator: Toms Trasuns <toms.trasuns@posteo.net>\n" "Language-Team: Latvian <kde-i18n-doc@kde.org>\n" "Language: lv\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n != 0 ? 1 : " "2);\n" "X-Generator: Lokalize 24.08.0\n" #: platformtheme/kdeplatformfiledialoghelper.cpp:260 #, kde-format msgctxt "@title:window" msgid "Open File" msgstr "Atvērt datni" #: platformtheme/kdeplatformfiledialoghelper.cpp:261 #, kde-format msgctxt "@title:window" msgid "Save File" msgstr "Saglabāt datni" #: platformtheme/kdeplatformtheme.cpp:299 #, kde-format msgctxt "@action:button" msgid "Save All" msgstr "Saglabāt visu" #: platformtheme/kdeplatformtheme.cpp:303 #, kde-format msgctxt "@action:button" msgid "&Yes" msgstr "&Jā" #: platformtheme/kdeplatformtheme.cpp:305 #, kde-format msgctxt "@action:button" msgid "Yes to All" msgstr "„Jā“ visam" #: platformtheme/kdeplatformtheme.cpp:307 #, kde-format msgctxt "@action:button" msgid "&No" msgstr "&Nē" #: platformtheme/kdeplatformtheme.cpp:309 #, kde-format msgctxt "@action:button" msgid "No to All" msgstr "„Nē“ visam" #: platformtheme/kdeplatformtheme.cpp:312 #, kde-format msgctxt "@action:button" msgid "Abort" msgstr "Atcelt" #: platformtheme/kdeplatformtheme.cpp:314 #, kde-format msgctxt "@action:button" msgid "Retry" msgstr "Atkārtot" #: platformtheme/kdeplatformtheme.cpp:316 #, kde-format msgctxt "@action:button" msgid "Ignore" msgstr "Ignorēt" #: platformtheme/kdirselectdialog.cpp:122 #, kde-format msgctxt "folder name" msgid "New Folder" msgstr "Jauna mape" #: platformtheme/kdirselectdialog.cpp:128 #, kde-format msgctxt "@title:window" msgid "New Folder" msgstr "Jauna mape" #: platformtheme/kdirselectdialog.cpp:129 #, kde-format msgctxt "@label:textbox" msgid "" "Create new folder in:\n" "%1" msgstr "" "Izveidot jaunu mapi te:\n" "„%1“" #: platformtheme/kdirselectdialog.cpp:160 #, kde-format msgid "A file or folder named %1 already exists." msgstr "Datne vai mape ar nosaukumu „%1“ jau pastāv." #: platformtheme/kdirselectdialog.cpp:169 #, kde-format msgid "You do not have permission to create that folder." msgstr "Jums nav atļaujas izveidot šo mapi." #: platformtheme/kdirselectdialog.cpp:271 #, kde-format msgctxt "@title:window" msgid "Select Folder" msgstr "Atlasīt mapi" #: platformtheme/kdirselectdialog.cpp:279 #, kde-format msgctxt "@action:button" msgid "New Folder..." msgstr "Jauna mape..." #: platformtheme/kdirselectdialog.cpp:336 #, kde-format msgctxt "@action:inmenu" msgid "New Folder..." msgstr "Jauna mape..." #: platformtheme/kdirselectdialog.cpp:345 #, kde-format msgctxt "@action:inmenu" msgid "Move to Trash" msgstr "Pārvietot uz atkritni" #: platformtheme/kdirselectdialog.cpp:354 #, kde-format msgctxt "@action:inmenu" msgid "Delete" msgstr "Dzēst" #: platformtheme/kdirselectdialog.cpp:365 #, kde-format msgctxt "@option:check" msgid "Show Hidden Folders" msgstr "Rādīt slēptās mapes" #: platformtheme/kdirselectdialog.cpp:372 #, kde-format msgctxt "@action:inmenu" msgid "Properties" msgstr "Īpašības" #: platformtheme/kfiletreeview.cpp:185 #, kde-format msgid "Show Hidden Folders" msgstr "Rādīt slēptās mapes" #: platformtheme/kioopenwith.cpp:147 #, kde-format msgid "" "Failed to launch for unknown reasons. Please try with a pre-existing " "application." msgstr "" "Neizdevās palaist nezināmu iemeslu dēļ. Mēģiniet ar jau esošu programmu." 07070100000053000041ED0000000000000000000000026728A27700000000000000000000000000000000000000000000003C00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/ml07070100000054000081A40000000000000000000000016728A27700000DC3000000000000000000000000000000000000005200000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/ml/plasmaintegration5.po# Malayalam translations for plasma-integration package. # Copyright (C) 2019 This file is copyright: # This file is distributed under the same license as the plasma-integration package. # Automatically generated, 2019. # msgid "" msgstr "" "Project-Id-Version: plasma-integration\n" "Report-Msgid-Bugs-To: https://bugs.kde.org\n" "POT-Creation-Date: 2024-09-17 00:40+0000\n" "PO-Revision-Date: 2018-08-21 03:49+0200\n" "Last-Translator: Automatically generated\n" "Language-Team: Swathanthra|സ്വതന്ത്ര Malayalam|മലയാളം Computing|കമ്പ്യൂട്ടിങ്ങ് <smc." "org.in>\n" "Language: ml\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: platformtheme/kdeplatformfiledialoghelper.cpp:260 #, kde-format msgctxt "@title:window" msgid "Open File" msgstr "" #: platformtheme/kdeplatformfiledialoghelper.cpp:261 #, kde-format msgctxt "@title:window" msgid "Save File" msgstr "" #: platformtheme/kdeplatformtheme.cpp:299 #, kde-format msgctxt "@action:button" msgid "Save All" msgstr "" #: platformtheme/kdeplatformtheme.cpp:303 #, kde-format msgctxt "@action:button" msgid "&Yes" msgstr "" #: platformtheme/kdeplatformtheme.cpp:305 #, kde-format msgctxt "@action:button" msgid "Yes to All" msgstr "" #: platformtheme/kdeplatformtheme.cpp:307 #, kde-format msgctxt "@action:button" msgid "&No" msgstr "" #: platformtheme/kdeplatformtheme.cpp:309 #, kde-format msgctxt "@action:button" msgid "No to All" msgstr "" #: platformtheme/kdeplatformtheme.cpp:312 #, kde-format msgctxt "@action:button" msgid "Abort" msgstr "" #: platformtheme/kdeplatformtheme.cpp:314 #, kde-format msgctxt "@action:button" msgid "Retry" msgstr "" #: platformtheme/kdeplatformtheme.cpp:316 #, kde-format msgctxt "@action:button" msgid "Ignore" msgstr "" #: platformtheme/kdirselectdialog.cpp:122 #, kde-format msgctxt "folder name" msgid "New Folder" msgstr "" #: platformtheme/kdirselectdialog.cpp:128 #, kde-format msgctxt "@title:window" msgid "New Folder" msgstr "" #: platformtheme/kdirselectdialog.cpp:129 #, kde-format msgctxt "@label:textbox" msgid "" "Create new folder in:\n" "%1" msgstr "" #: platformtheme/kdirselectdialog.cpp:160 #, kde-format msgid "A file or folder named %1 already exists." msgstr "" #: platformtheme/kdirselectdialog.cpp:169 #, kde-format msgid "You do not have permission to create that folder." msgstr "" #: platformtheme/kdirselectdialog.cpp:271 #, kde-format msgctxt "@title:window" msgid "Select Folder" msgstr "" #: platformtheme/kdirselectdialog.cpp:279 #, kde-format msgctxt "@action:button" msgid "New Folder..." msgstr "" #: platformtheme/kdirselectdialog.cpp:336 #, kde-format msgctxt "@action:inmenu" msgid "New Folder..." msgstr "" #: platformtheme/kdirselectdialog.cpp:345 #, kde-format msgctxt "@action:inmenu" msgid "Move to Trash" msgstr "" #: platformtheme/kdirselectdialog.cpp:354 #, kde-format msgctxt "@action:inmenu" msgid "Delete" msgstr "" #: platformtheme/kdirselectdialog.cpp:365 #, kde-format msgctxt "@option:check" msgid "Show Hidden Folders" msgstr "" #: platformtheme/kdirselectdialog.cpp:372 #, kde-format msgctxt "@action:inmenu" msgid "Properties" msgstr "" #: platformtheme/kfiletreeview.cpp:185 #, kde-format msgid "Show Hidden Folders" msgstr "" #: platformtheme/kioopenwith.cpp:147 #, kde-format msgid "" "Failed to launch for unknown reasons. Please try with a pre-existing " "application." msgstr "" 07070100000055000041ED0000000000000000000000026728A27700000000000000000000000000000000000000000000003C00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/nb07070100000056000081A40000000000000000000000016728A27700000EAC000000000000000000000000000000000000005200000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/nb/plasmaintegration5.po# Translation of plasmaintegration5 to Norwegian Bokmål # # Bjørn Steensrud <bjornst@skogkatt.homelinux.org>, 2014, 2015. msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: https://bugs.kde.org\n" "POT-Creation-Date: 2024-09-17 00:40+0000\n" "PO-Revision-Date: 2015-02-24 20:41+0100\n" "Last-Translator: Bjørn Steensrud <bjornst@skogkatt.homelinux.org>\n" "Language-Team: Norwegian Bokmål <l10n-no@lister.huftis.org>\n" "Language: nb\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" "X-Generator: Lokalize 1.5\n" "X-Environment: kde\n" "X-Accelerator-Marker: &\n" "X-Text-Markup: kde4\n" #: platformtheme/kdeplatformfiledialoghelper.cpp:260 #, kde-format msgctxt "@title:window" msgid "Open File" msgstr "Åpne fil" #: platformtheme/kdeplatformfiledialoghelper.cpp:261 #, kde-format msgctxt "@title:window" msgid "Save File" msgstr "Lagre fil" #: platformtheme/kdeplatformtheme.cpp:299 #, kde-format msgctxt "@action:button" msgid "Save All" msgstr "Lagre alle" #: platformtheme/kdeplatformtheme.cpp:303 #, kde-format msgctxt "@action:button" msgid "&Yes" msgstr "" #: platformtheme/kdeplatformtheme.cpp:305 #, kde-format msgctxt "@action:button" msgid "Yes to All" msgstr "Ja til alt" #: platformtheme/kdeplatformtheme.cpp:307 #, kde-format msgctxt "@action:button" msgid "&No" msgstr "" #: platformtheme/kdeplatformtheme.cpp:309 #, kde-format msgctxt "@action:button" msgid "No to All" msgstr "Nei til alt" #: platformtheme/kdeplatformtheme.cpp:312 #, kde-format msgctxt "@action:button" msgid "Abort" msgstr "Avbryt" #: platformtheme/kdeplatformtheme.cpp:314 #, kde-format msgctxt "@action:button" msgid "Retry" msgstr "Prøv igjen" #: platformtheme/kdeplatformtheme.cpp:316 #, kde-format msgctxt "@action:button" msgid "Ignore" msgstr "Ignorer" #: platformtheme/kdirselectdialog.cpp:122 #, kde-format msgctxt "folder name" msgid "New Folder" msgstr "Ny mappe" #: platformtheme/kdirselectdialog.cpp:128 #, kde-format msgctxt "@title:window" msgid "New Folder" msgstr "Ny mappe" #: platformtheme/kdirselectdialog.cpp:129 #, kde-format msgctxt "@label:textbox" msgid "" "Create new folder in:\n" "%1" msgstr "" "Lag ny mappe i:\n" "%1" #: platformtheme/kdirselectdialog.cpp:160 #, kde-format msgid "A file or folder named %1 already exists." msgstr "En fil eller mappe med navnet %1 finnes fra før." #: platformtheme/kdirselectdialog.cpp:169 #, kde-format msgid "You do not have permission to create that folder." msgstr "Du har ikke rettighet til å lage den mappa." #: platformtheme/kdirselectdialog.cpp:271 #, kde-format msgctxt "@title:window" msgid "Select Folder" msgstr "Velg mappe" #: platformtheme/kdirselectdialog.cpp:279 #, kde-format msgctxt "@action:button" msgid "New Folder..." msgstr "Ny mappe …" #: platformtheme/kdirselectdialog.cpp:336 #, kde-format msgctxt "@action:inmenu" msgid "New Folder..." msgstr "Ny mappe …" #: platformtheme/kdirselectdialog.cpp:345 #, kde-format msgctxt "@action:inmenu" msgid "Move to Trash" msgstr "Flytt til papirkurven" #: platformtheme/kdirselectdialog.cpp:354 #, kde-format msgctxt "@action:inmenu" msgid "Delete" msgstr "Slett" #: platformtheme/kdirselectdialog.cpp:365 #, kde-format msgctxt "@option:check" msgid "Show Hidden Folders" msgstr "Vis skjulte mapper" #: platformtheme/kdirselectdialog.cpp:372 #, kde-format msgctxt "@action:inmenu" msgid "Properties" msgstr "Egenskaper" #: platformtheme/kfiletreeview.cpp:185 #, kde-format msgid "Show Hidden Folders" msgstr "Vis skjulte mapper" #: platformtheme/kioopenwith.cpp:147 #, kde-format msgid "" "Failed to launch for unknown reasons. Please try with a pre-existing " "application." msgstr "" 07070100000057000041ED0000000000000000000000026728A27700000000000000000000000000000000000000000000003C00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/nl07070100000058000081A40000000000000000000000016728A27700000F96000000000000000000000000000000000000005200000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/nl/plasmaintegration5.po# Copyright (C) YEAR This_file_is_part_of_KDE # This file is distributed under the same license as the PACKAGE package. # # SPDX-FileCopyrightText: 2016, 2022, 2024 Freek de Kruijf <freekdekruijf@kde.nl> msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: https://bugs.kde.org\n" "POT-Creation-Date: 2024-09-17 00:40+0000\n" "PO-Revision-Date: 2024-06-26 10:48+0200\n" "Last-Translator: Freek de Kruijf <freekdekruijf@kde.nl>\n" "Language-Team: \n" "Language: nl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" "X-Generator: Lokalize 24.05.1\n" #: platformtheme/kdeplatformfiledialoghelper.cpp:260 #, kde-format msgctxt "@title:window" msgid "Open File" msgstr "Bestand openen" #: platformtheme/kdeplatformfiledialoghelper.cpp:261 #, kde-format msgctxt "@title:window" msgid "Save File" msgstr "Bestand opslaan" #: platformtheme/kdeplatformtheme.cpp:299 #, kde-format msgctxt "@action:button" msgid "Save All" msgstr "Alles opslaan" #: platformtheme/kdeplatformtheme.cpp:303 #, kde-format msgctxt "@action:button" msgid "&Yes" msgstr "&Ja" #: platformtheme/kdeplatformtheme.cpp:305 #, kde-format msgctxt "@action:button" msgid "Yes to All" msgstr "Ja op alles" #: platformtheme/kdeplatformtheme.cpp:307 #, kde-format msgctxt "@action:button" msgid "&No" msgstr "&Nee" #: platformtheme/kdeplatformtheme.cpp:309 #, kde-format msgctxt "@action:button" msgid "No to All" msgstr "Nee op alles" #: platformtheme/kdeplatformtheme.cpp:312 #, kde-format msgctxt "@action:button" msgid "Abort" msgstr "Afbreken" #: platformtheme/kdeplatformtheme.cpp:314 #, kde-format msgctxt "@action:button" msgid "Retry" msgstr "Opnieuw proberen" #: platformtheme/kdeplatformtheme.cpp:316 #, kde-format msgctxt "@action:button" msgid "Ignore" msgstr "Negeren" #: platformtheme/kdirselectdialog.cpp:122 #, kde-format msgctxt "folder name" msgid "New Folder" msgstr "Nieuwe map" #: platformtheme/kdirselectdialog.cpp:128 #, kde-format msgctxt "@title:window" msgid "New Folder" msgstr "Nieuwe map" #: platformtheme/kdirselectdialog.cpp:129 #, kde-format msgctxt "@label:textbox" msgid "" "Create new folder in:\n" "%1" msgstr "" "Nieuwe map aanmaken in:\n" "%1" #: platformtheme/kdirselectdialog.cpp:160 #, kde-format msgid "A file or folder named %1 already exists." msgstr "Een bestand of map met de naam %1 bestaat reeds." #: platformtheme/kdirselectdialog.cpp:169 #, kde-format msgid "You do not have permission to create that folder." msgstr "U hebt niet de benodigde rechten om deze map aan te maken." #: platformtheme/kdirselectdialog.cpp:271 #, kde-format msgctxt "@title:window" msgid "Select Folder" msgstr "Map selecteren" #: platformtheme/kdirselectdialog.cpp:279 #, kde-format msgctxt "@action:button" msgid "New Folder..." msgstr "Nieuwe map..." #: platformtheme/kdirselectdialog.cpp:336 #, kde-format msgctxt "@action:inmenu" msgid "New Folder..." msgstr "Nieuwe map..." #: platformtheme/kdirselectdialog.cpp:345 #, kde-format msgctxt "@action:inmenu" msgid "Move to Trash" msgstr "Naar prullenbak verplaatsen" #: platformtheme/kdirselectdialog.cpp:354 #, kde-format msgctxt "@action:inmenu" msgid "Delete" msgstr "Verwijderen" #: platformtheme/kdirselectdialog.cpp:365 #, kde-format msgctxt "@option:check" msgid "Show Hidden Folders" msgstr "Verborgen mappen tonen" #: platformtheme/kdirselectdialog.cpp:372 #, kde-format msgctxt "@action:inmenu" msgid "Properties" msgstr "Eigenschappen" #: platformtheme/kfiletreeview.cpp:185 #, kde-format msgid "Show Hidden Folders" msgstr "Verborgen mappen tonen" #: platformtheme/kioopenwith.cpp:147 #, kde-format msgid "" "Failed to launch for unknown reasons. Please try with a pre-existing " "application." msgstr "" "Starten is mislukt om onbekende reden. Probeer met een eerder bestaande " "toepassing." #~ msgid "Opening..." #~ msgstr "Bezig met openen..." #~ msgid "Saving..." #~ msgstr "Bezig met opslaan..." 07070100000059000041ED0000000000000000000000026728A27700000000000000000000000000000000000000000000003C00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/nn0707010000005A000081A40000000000000000000000016728A27700000EB4000000000000000000000000000000000000005200000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/nn/plasmaintegration5.po# Translation of plasmaintegration5 to Norwegian Nynorsk # msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: https://bugs.kde.org\n" "POT-Creation-Date: 2024-09-17 00:40+0000\n" "PO-Revision-Date: 2024-07-06 14:36+0200\n" "Last-Translator: Karl Ove Hufthammer <karl@huftis.org>\n" "Language-Team: Norwegian Nynorsk <l10n-no@lister.huftis.org>\n" "Language: nn\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" "X-Generator: Lokalize 24.05.1\n" "X-Environment: kde\n" "X-Accelerator-Marker: &\n" "X-Text-Markup: kde4\n" #: platformtheme/kdeplatformfiledialoghelper.cpp:260 #, kde-format msgctxt "@title:window" msgid "Open File" msgstr "Opna fil" #: platformtheme/kdeplatformfiledialoghelper.cpp:261 #, kde-format msgctxt "@title:window" msgid "Save File" msgstr "Lagra fil" #: platformtheme/kdeplatformtheme.cpp:299 #, kde-format msgctxt "@action:button" msgid "Save All" msgstr "Lagra alt" #: platformtheme/kdeplatformtheme.cpp:303 #, kde-format msgctxt "@action:button" msgid "&Yes" msgstr "&Ja" #: platformtheme/kdeplatformtheme.cpp:305 #, kde-format msgctxt "@action:button" msgid "Yes to All" msgstr "Ja til alt" #: platformtheme/kdeplatformtheme.cpp:307 #, kde-format msgctxt "@action:button" msgid "&No" msgstr "&Nei" #: platformtheme/kdeplatformtheme.cpp:309 #, kde-format msgctxt "@action:button" msgid "No to All" msgstr "Nei til alt" #: platformtheme/kdeplatformtheme.cpp:312 #, kde-format msgctxt "@action:button" msgid "Abort" msgstr "Avbryt" #: platformtheme/kdeplatformtheme.cpp:314 #, kde-format msgctxt "@action:button" msgid "Retry" msgstr "Prøv på nytt" #: platformtheme/kdeplatformtheme.cpp:316 #, kde-format msgctxt "@action:button" msgid "Ignore" msgstr "Ignorer" #: platformtheme/kdirselectdialog.cpp:122 #, kde-format msgctxt "folder name" msgid "New Folder" msgstr "Ny mappe" #: platformtheme/kdirselectdialog.cpp:128 #, kde-format msgctxt "@title:window" msgid "New Folder" msgstr "Ny mappe" #: platformtheme/kdirselectdialog.cpp:129 #, kde-format msgctxt "@label:textbox" msgid "" "Create new folder in:\n" "%1" msgstr "" "Lag ny mappe i:\n" "%1" #: platformtheme/kdirselectdialog.cpp:160 #, kde-format msgid "A file or folder named %1 already exists." msgstr "Ei fil eller mappe med namnet %1 finst frå før." #: platformtheme/kdirselectdialog.cpp:169 #, kde-format msgid "You do not have permission to create that folder." msgstr "Du har ikkje løyve til å oppretta mappa." #: platformtheme/kdirselectdialog.cpp:271 #, kde-format msgctxt "@title:window" msgid "Select Folder" msgstr "Vel mappe" #: platformtheme/kdirselectdialog.cpp:279 #, kde-format msgctxt "@action:button" msgid "New Folder..." msgstr "Ny mappe …" #: platformtheme/kdirselectdialog.cpp:336 #, kde-format msgctxt "@action:inmenu" msgid "New Folder..." msgstr "Ny mappe …" #: platformtheme/kdirselectdialog.cpp:345 #, kde-format msgctxt "@action:inmenu" msgid "Move to Trash" msgstr "Flytt til papirkorga" #: platformtheme/kdirselectdialog.cpp:354 #, kde-format msgctxt "@action:inmenu" msgid "Delete" msgstr "Slett" #: platformtheme/kdirselectdialog.cpp:365 #, kde-format msgctxt "@option:check" msgid "Show Hidden Folders" msgstr "Vis gøymde mapper" #: platformtheme/kdirselectdialog.cpp:372 #, kde-format msgctxt "@action:inmenu" msgid "Properties" msgstr "Eigenskapar" #: platformtheme/kfiletreeview.cpp:185 #, kde-format msgid "Show Hidden Folders" msgstr "Vis gøymde mapper" #: platformtheme/kioopenwith.cpp:147 #, kde-format msgid "" "Failed to launch for unknown reasons. Please try with a pre-existing " "application." msgstr "" "Klarte ikkje starta, av ukjend grunn. Prøv med eit eksisterande program." 0707010000005B000041ED0000000000000000000000026728A27700000000000000000000000000000000000000000000003C00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/pa0707010000005C000081A40000000000000000000000016728A27700001107000000000000000000000000000000000000005200000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/pa/plasmaintegration5.po# Copyright (C) YEAR This_file_is_part_of_KDE # This file is distributed under the same license as the PACKAGE package. # # SPDX-FileCopyrightText: 2016, 2024 A S Alam <aalam@users.sf.net> msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: https://bugs.kde.org\n" "POT-Creation-Date: 2024-09-17 00:40+0000\n" "PO-Revision-Date: 2024-01-01 10:12-0600\n" "Last-Translator: A S Alam <aalam@punlinux.org>\n" "Language-Team: Punjabi <kde-i18n-doc@kde.org>\n" "Language: pa\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" "X-Generator: Lokalize 23.08.4\n" #: platformtheme/kdeplatformfiledialoghelper.cpp:260 #, kde-format msgctxt "@title:window" msgid "Open File" msgstr "ਫਾਇਲ ਨੂੰ ਖੋਲ੍ਹੋ" #: platformtheme/kdeplatformfiledialoghelper.cpp:261 #, kde-format msgctxt "@title:window" msgid "Save File" msgstr "ਫਾਇਲ ਨੂੰ ਸੰਭਾਲੋ" #: platformtheme/kdeplatformtheme.cpp:299 #, kde-format msgctxt "@action:button" msgid "Save All" msgstr "ਸਾਰਿਆਂ ਨੂੰ ਸੰਭਾਲੋ" #: platformtheme/kdeplatformtheme.cpp:303 #, kde-format msgctxt "@action:button" msgid "&Yes" msgstr "ਹਾਂ(&Y)" #: platformtheme/kdeplatformtheme.cpp:305 #, kde-format msgctxt "@action:button" msgid "Yes to All" msgstr "ਸਾਰਿਆਂ ਲਈ ਹਾਂ" #: platformtheme/kdeplatformtheme.cpp:307 #, kde-format msgctxt "@action:button" msgid "&No" msgstr "ਨਹੀਂ(&N)" #: platformtheme/kdeplatformtheme.cpp:309 #, kde-format msgctxt "@action:button" msgid "No to All" msgstr "ਸਾਰਿਆਂ ਲਈ ਨਾਂਹ" #: platformtheme/kdeplatformtheme.cpp:312 #, kde-format msgctxt "@action:button" msgid "Abort" msgstr "ਛੱਡੋ" #: platformtheme/kdeplatformtheme.cpp:314 #, kde-format msgctxt "@action:button" msgid "Retry" msgstr "ਮੁੜ-ਕੋਸ਼ਿਸ਼ ਕਰੋ" #: platformtheme/kdeplatformtheme.cpp:316 #, kde-format msgctxt "@action:button" msgid "Ignore" msgstr "ਅਣਡਿੱਠਾ ਕਰੋ" #: platformtheme/kdirselectdialog.cpp:122 #, kde-format msgctxt "folder name" msgid "New Folder" msgstr "ਨਵਾਂ ਫੋਲਡਰ" #: platformtheme/kdirselectdialog.cpp:128 #, kde-format msgctxt "@title:window" msgid "New Folder" msgstr "ਨਵਾਂ ਫੋਲਡਰ" #: platformtheme/kdirselectdialog.cpp:129 #, kde-format msgctxt "@label:textbox" msgid "" "Create new folder in:\n" "%1" msgstr "" "ਇਸ 'ਚ ਨਵਾਂ ਫੋਲਡਰ ਬਣਾਓ:\n" "%1" #: platformtheme/kdirselectdialog.cpp:160 #, kde-format msgid "A file or folder named %1 already exists." msgstr "%1 ਨਾਂ ਨਾਲ ਫੋਲਡਰ ਜਾਂ ਫਾਇਲ ਪਹਿਲਾਂ ਹੀ ਮੌਜੂਦ ਹੈ।" #: platformtheme/kdirselectdialog.cpp:169 #, kde-format msgid "You do not have permission to create that folder." msgstr "ਇਹ ਫੋਲਡਰ ਬਣਾਉਣ ਲਈ ਤੁਹਾਡੇ ਕੋਲ ਅਧਿਕਾਰ ਨਹੀਂ ਹਨ।" #: platformtheme/kdirselectdialog.cpp:271 #, kde-format msgctxt "@title:window" msgid "Select Folder" msgstr "ਫੋਲਡਰ ਨੂੰ ਚੁਣੋ" #: platformtheme/kdirselectdialog.cpp:279 #, kde-format msgctxt "@action:button" msgid "New Folder..." msgstr "ਨਵਾਂ ਫੋਲਡਰ..." #: platformtheme/kdirselectdialog.cpp:336 #, kde-format msgctxt "@action:inmenu" msgid "New Folder..." msgstr "ਨਵਾਂ ਫੋਲਡਰ..." #: platformtheme/kdirselectdialog.cpp:345 #, kde-format msgctxt "@action:inmenu" msgid "Move to Trash" msgstr "ਰੱਦੀ 'ਚ ਭੇਜੋ" #: platformtheme/kdirselectdialog.cpp:354 #, kde-format msgctxt "@action:inmenu" msgid "Delete" msgstr "ਹਟਾਓ" #: platformtheme/kdirselectdialog.cpp:365 #, kde-format msgctxt "@option:check" msgid "Show Hidden Folders" msgstr "ਲੁਕਵੇਂ ਫੋਲਡਰਾਂ ਨੂੰ ਵੇਖੋ" #: platformtheme/kdirselectdialog.cpp:372 #, kde-format msgctxt "@action:inmenu" msgid "Properties" msgstr "ਵਿਸ਼ੇਸ਼ਤਾ" #: platformtheme/kfiletreeview.cpp:185 #, kde-format msgid "Show Hidden Folders" msgstr "ਲੁਕਵੇਂ ਫੋਲਡਰਾਂ ਨੂੰ ਵੇਖੋ" #: platformtheme/kioopenwith.cpp:147 #, kde-format msgid "" "Failed to launch for unknown reasons. Please try with a pre-existing " "application." msgstr "" 0707010000005D000041ED0000000000000000000000026728A27700000000000000000000000000000000000000000000003C00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/pl0707010000005E000081A40000000000000000000000016728A27700000FFD000000000000000000000000000000000000005200000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/pl/plasmaintegration5.po# Copyright (C) YEAR This_file_is_part_of_KDE # This file is distributed under the same license as the PACKAGE package. # SPDX-FileCopyrightText: 2016, 2022, 2024 Łukasz Wojniłowicz <lukasz.wojnilowicz@gmail.com> # msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: https://bugs.kde.org\n" "POT-Creation-Date: 2024-09-17 00:40+0000\n" "PO-Revision-Date: 2024-06-29 09:07+0200\n" "Last-Translator: Łukasz Wojniłowicz <lukasz.wojnilowicz@gmail.com>\n" "Language-Team: Polish <kde-i18n-doc@kde.org>\n" "Language: pl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 " "|| n%100>=20) ? 1 : 2);\n" "X-Generator: Lokalize 23.08.5\n" #: platformtheme/kdeplatformfiledialoghelper.cpp:260 #, kde-format msgctxt "@title:window" msgid "Open File" msgstr "Otwórz plik" #: platformtheme/kdeplatformfiledialoghelper.cpp:261 #, kde-format msgctxt "@title:window" msgid "Save File" msgstr "Zapisz plik" #: platformtheme/kdeplatformtheme.cpp:299 #, kde-format msgctxt "@action:button" msgid "Save All" msgstr "Zapisz wszystko" #: platformtheme/kdeplatformtheme.cpp:303 #, kde-format msgctxt "@action:button" msgid "&Yes" msgstr "&Tak" #: platformtheme/kdeplatformtheme.cpp:305 #, kde-format msgctxt "@action:button" msgid "Yes to All" msgstr "Tak dla wszystkich" #: platformtheme/kdeplatformtheme.cpp:307 #, kde-format msgctxt "@action:button" msgid "&No" msgstr "&Nie" #: platformtheme/kdeplatformtheme.cpp:309 #, kde-format msgctxt "@action:button" msgid "No to All" msgstr "Nie dla wszystkich" #: platformtheme/kdeplatformtheme.cpp:312 #, kde-format msgctxt "@action:button" msgid "Abort" msgstr "Przerwij" #: platformtheme/kdeplatformtheme.cpp:314 #, kde-format msgctxt "@action:button" msgid "Retry" msgstr "Ponów" #: platformtheme/kdeplatformtheme.cpp:316 #, kde-format msgctxt "@action:button" msgid "Ignore" msgstr "Pomiń" #: platformtheme/kdirselectdialog.cpp:122 #, kde-format msgctxt "folder name" msgid "New Folder" msgstr "Nowy katalog" #: platformtheme/kdirselectdialog.cpp:128 #, kde-format msgctxt "@title:window" msgid "New Folder" msgstr "Nowy katalog" #: platformtheme/kdirselectdialog.cpp:129 #, kde-format msgctxt "@label:textbox" msgid "" "Create new folder in:\n" "%1" msgstr "" "Utwórz nowy katalog w:\n" "%1" #: platformtheme/kdirselectdialog.cpp:160 #, kde-format msgid "A file or folder named %1 already exists." msgstr "Plik lub katalog o nazwie %1 już istnieje." #: platformtheme/kdirselectdialog.cpp:169 #, kde-format msgid "You do not have permission to create that folder." msgstr "Nie masz praw do utworzenia tego katalogu." #: platformtheme/kdirselectdialog.cpp:271 #, kde-format msgctxt "@title:window" msgid "Select Folder" msgstr "Wybierz katalog" #: platformtheme/kdirselectdialog.cpp:279 #, kde-format msgctxt "@action:button" msgid "New Folder..." msgstr "Nowy katalog..." #: platformtheme/kdirselectdialog.cpp:336 #, kde-format msgctxt "@action:inmenu" msgid "New Folder..." msgstr "Nowy katalog..." #: platformtheme/kdirselectdialog.cpp:345 #, kde-format msgctxt "@action:inmenu" msgid "Move to Trash" msgstr "Wyrzuć do kosza" #: platformtheme/kdirselectdialog.cpp:354 #, kde-format msgctxt "@action:inmenu" msgid "Delete" msgstr "Usuń" #: platformtheme/kdirselectdialog.cpp:365 #, kde-format msgctxt "@option:check" msgid "Show Hidden Folders" msgstr "Pokaż ukryte katalogi" #: platformtheme/kdirselectdialog.cpp:372 #, kde-format msgctxt "@action:inmenu" msgid "Properties" msgstr "Właściwości" #: platformtheme/kfiletreeview.cpp:185 #, kde-format msgid "Show Hidden Folders" msgstr "Pokaż ukryte katalogi" #: platformtheme/kioopenwith.cpp:147 #, kde-format msgid "" "Failed to launch for unknown reasons. Please try with a pre-existing " "application." msgstr "" "Nie udało się uruchomić z niewiadomych przyczyn. Spróbuj ponownie z " "istniejącym wystąpieniem aplikacji." #~ msgid "Opening..." #~ msgstr "Otwieranie..." #~ msgid "Saving..." #~ msgstr "Zapisywanie..." 0707010000005F000041ED0000000000000000000000026728A27700000000000000000000000000000000000000000000003C00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/pt07070100000060000081A40000000000000000000000016728A27700000EBE000000000000000000000000000000000000005200000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/pt/plasmaintegration5.po# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR This_file_is_part_of_KDE # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. # msgid "" msgstr "" "Project-Id-Version: plasmaintegration5\n" "Report-Msgid-Bugs-To: https://bugs.kde.org\n" "POT-Creation-Date: 2024-09-17 00:40+0000\n" "PO-Revision-Date: 2022-11-04 10:46+0000\n" "Last-Translator: José Nuno Coelho Pires <zepires@gmail.com>\n" "Language-Team: Portuguese <kde-i18n-pt@kde.org>\n" "Language: pt\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" #: platformtheme/kdeplatformfiledialoghelper.cpp:260 #, kde-format msgctxt "@title:window" msgid "Open File" msgstr "Abrir um Ficheiro" #: platformtheme/kdeplatformfiledialoghelper.cpp:261 #, kde-format msgctxt "@title:window" msgid "Save File" msgstr "Gravar o Ficheiro" #: platformtheme/kdeplatformtheme.cpp:299 #, kde-format msgctxt "@action:button" msgid "Save All" msgstr "Gravar Tudo" #: platformtheme/kdeplatformtheme.cpp:303 #, kde-format msgctxt "@action:button" msgid "&Yes" msgstr "&Sim" #: platformtheme/kdeplatformtheme.cpp:305 #, kde-format msgctxt "@action:button" msgid "Yes to All" msgstr "Sim a Tudo" #: platformtheme/kdeplatformtheme.cpp:307 #, kde-format msgctxt "@action:button" msgid "&No" msgstr "&Não" #: platformtheme/kdeplatformtheme.cpp:309 #, kde-format msgctxt "@action:button" msgid "No to All" msgstr "Não a Tudo" #: platformtheme/kdeplatformtheme.cpp:312 #, kde-format msgctxt "@action:button" msgid "Abort" msgstr "Interromper" #: platformtheme/kdeplatformtheme.cpp:314 #, kde-format msgctxt "@action:button" msgid "Retry" msgstr "Repetir" #: platformtheme/kdeplatformtheme.cpp:316 #, kde-format msgctxt "@action:button" msgid "Ignore" msgstr "Ignorar" #: platformtheme/kdirselectdialog.cpp:122 #, kde-format msgctxt "folder name" msgid "New Folder" msgstr "Nova Pasta" #: platformtheme/kdirselectdialog.cpp:128 #, kde-format msgctxt "@title:window" msgid "New Folder" msgstr "Nova Pasta" #: platformtheme/kdirselectdialog.cpp:129 #, kde-format msgctxt "@label:textbox" msgid "" "Create new folder in:\n" "%1" msgstr "" "Criar uma pasta nova em:\n" "%1" #: platformtheme/kdirselectdialog.cpp:160 #, kde-format msgid "A file or folder named %1 already exists." msgstr "Já existe um ficheiro ou pasta chamado %1." #: platformtheme/kdirselectdialog.cpp:169 #, kde-format msgid "You do not have permission to create that folder." msgstr "Não tem permissões para criar essa pasta." #: platformtheme/kdirselectdialog.cpp:271 #, kde-format msgctxt "@title:window" msgid "Select Folder" msgstr "Seleccionar a Pasta" #: platformtheme/kdirselectdialog.cpp:279 #, kde-format msgctxt "@action:button" msgid "New Folder..." msgstr "Nova Pasta..." #: platformtheme/kdirselectdialog.cpp:336 #, kde-format msgctxt "@action:inmenu" msgid "New Folder..." msgstr "Nova Pasta..." #: platformtheme/kdirselectdialog.cpp:345 #, kde-format msgctxt "@action:inmenu" msgid "Move to Trash" msgstr "Enviar para o Lixo" #: platformtheme/kdirselectdialog.cpp:354 #, kde-format msgctxt "@action:inmenu" msgid "Delete" msgstr "Apagar" #: platformtheme/kdirselectdialog.cpp:365 #, kde-format msgctxt "@option:check" msgid "Show Hidden Folders" msgstr "Mostrar as Pastas Escondidas" #: platformtheme/kdirselectdialog.cpp:372 #, kde-format msgctxt "@action:inmenu" msgid "Properties" msgstr "Propriedades" #: platformtheme/kfiletreeview.cpp:185 #, kde-format msgid "Show Hidden Folders" msgstr "Mostrar as Pastas Escondidas" #: platformtheme/kioopenwith.cpp:147 #, kde-format msgid "" "Failed to launch for unknown reasons. Please try with a pre-existing " "application." msgstr "" 07070100000061000041ED0000000000000000000000026728A27700000000000000000000000000000000000000000000003F00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/pt_BR07070100000062000081A40000000000000000000000016728A27700000F4B000000000000000000000000000000000000005500000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/pt_BR/plasmaintegration5.po# Translation of plasmaintegration5.po to Brazilian Portuguese # Copyright (C) 2016 This_file_is_part_of_KDE # This file is distributed under the same license as the PACKAGE package. # # André Marcelo Alvarenga <alvarenga@kde.org>, 2016. # Luiz Fernando Ranghetti <elchevive@opensuse.org>, 2022. msgid "" msgstr "" "Project-Id-Version: plasmaintegration5\n" "Report-Msgid-Bugs-To: https://bugs.kde.org\n" "POT-Creation-Date: 2024-09-17 00:40+0000\n" "PO-Revision-Date: 2022-12-15 11:15-0300\n" "Last-Translator: Luiz Fernando Ranghetti <elchevive@opensuse.org>\n" "Language-Team: Portuguese <kde-i18n-pt_BR@kde.org>\n" "Language: pt_BR\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" "X-Generator: Lokalize 21.12.3\n" #: platformtheme/kdeplatformfiledialoghelper.cpp:260 #, kde-format msgctxt "@title:window" msgid "Open File" msgstr "Abrir arquivo" #: platformtheme/kdeplatformfiledialoghelper.cpp:261 #, kde-format msgctxt "@title:window" msgid "Save File" msgstr "Salvar arquivo" #: platformtheme/kdeplatformtheme.cpp:299 #, kde-format msgctxt "@action:button" msgid "Save All" msgstr "Salvar tudo" #: platformtheme/kdeplatformtheme.cpp:303 #, kde-format msgctxt "@action:button" msgid "&Yes" msgstr "&Sim" #: platformtheme/kdeplatformtheme.cpp:305 #, kde-format msgctxt "@action:button" msgid "Yes to All" msgstr "Sim para tudo" #: platformtheme/kdeplatformtheme.cpp:307 #, kde-format msgctxt "@action:button" msgid "&No" msgstr "&Não" #: platformtheme/kdeplatformtheme.cpp:309 #, kde-format msgctxt "@action:button" msgid "No to All" msgstr "Não para tudo" #: platformtheme/kdeplatformtheme.cpp:312 #, kde-format msgctxt "@action:button" msgid "Abort" msgstr "Cancelar" #: platformtheme/kdeplatformtheme.cpp:314 #, kde-format msgctxt "@action:button" msgid "Retry" msgstr "Repetir" #: platformtheme/kdeplatformtheme.cpp:316 #, kde-format msgctxt "@action:button" msgid "Ignore" msgstr "Ignorar" #: platformtheme/kdirselectdialog.cpp:122 #, kde-format msgctxt "folder name" msgid "New Folder" msgstr "Nova pasta" #: platformtheme/kdirselectdialog.cpp:128 #, kde-format msgctxt "@title:window" msgid "New Folder" msgstr "Nova pasta" #: platformtheme/kdirselectdialog.cpp:129 #, kde-format msgctxt "@label:textbox" msgid "" "Create new folder in:\n" "%1" msgstr "" "Criar nova pasta em:\n" "%1" #: platformtheme/kdirselectdialog.cpp:160 #, kde-format msgid "A file or folder named %1 already exists." msgstr "Um arquivo ou pasta chamado %1 já existe." #: platformtheme/kdirselectdialog.cpp:169 #, kde-format msgid "You do not have permission to create that folder." msgstr "Você não tem permissão para criar esta pasta." #: platformtheme/kdirselectdialog.cpp:271 #, kde-format msgctxt "@title:window" msgid "Select Folder" msgstr "Selecionar pasta" #: platformtheme/kdirselectdialog.cpp:279 #, kde-format msgctxt "@action:button" msgid "New Folder..." msgstr "Nova pasta..." #: platformtheme/kdirselectdialog.cpp:336 #, kde-format msgctxt "@action:inmenu" msgid "New Folder..." msgstr "Nova pasta..." #: platformtheme/kdirselectdialog.cpp:345 #, kde-format msgctxt "@action:inmenu" msgid "Move to Trash" msgstr "Mover para a Lixeira" #: platformtheme/kdirselectdialog.cpp:354 #, kde-format msgctxt "@action:inmenu" msgid "Delete" msgstr "Excluir" #: platformtheme/kdirselectdialog.cpp:365 #, kde-format msgctxt "@option:check" msgid "Show Hidden Folders" msgstr "Mostrar pastas ocultas" #: platformtheme/kdirselectdialog.cpp:372 #, kde-format msgctxt "@action:inmenu" msgid "Properties" msgstr "Propriedades" #: platformtheme/kfiletreeview.cpp:185 #, kde-format msgid "Show Hidden Folders" msgstr "Mostrar pastas ocultas" #: platformtheme/kioopenwith.cpp:147 #, kde-format msgid "" "Failed to launch for unknown reasons. Please try with a pre-existing " "application." msgstr "" 07070100000063000041ED0000000000000000000000026728A27700000000000000000000000000000000000000000000003C00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/ro07070100000064000081A40000000000000000000000016728A27700000EFC000000000000000000000000000000000000005200000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/ro/plasmaintegration5.po# Copyright (C) YEAR This file is copyright: # This file is distributed under the same license as the plasma-integration package. # Sergiu Bivol <sergiu@cip.md>, 2020, 2023. # msgid "" msgstr "" "Project-Id-Version: plasma-integration\n" "Report-Msgid-Bugs-To: https://bugs.kde.org\n" "POT-Creation-Date: 2024-09-17 00:40+0000\n" "PO-Revision-Date: 2023-04-10 19:09+0100\n" "Last-Translator: Sergiu Bivol <sergiu@cip.md>\n" "Language-Team: Romanian <kde-i18n-ro@kde.org>\n" "Language: ro\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=n==1 ? 0 : (n==0 || (n%100 > 0 && n%100 < " "20)) ? 1 : 2;\n" "X-Generator: Lokalize 21.12.3\n" #: platformtheme/kdeplatformfiledialoghelper.cpp:260 #, kde-format msgctxt "@title:window" msgid "Open File" msgstr "Deschide fișierul" #: platformtheme/kdeplatformfiledialoghelper.cpp:261 #, kde-format msgctxt "@title:window" msgid "Save File" msgstr "Salvează fișierul" #: platformtheme/kdeplatformtheme.cpp:299 #, kde-format msgctxt "@action:button" msgid "Save All" msgstr "Salvează toate" #: platformtheme/kdeplatformtheme.cpp:303 #, kde-format msgctxt "@action:button" msgid "&Yes" msgstr "&Da" #: platformtheme/kdeplatformtheme.cpp:305 #, kde-format msgctxt "@action:button" msgid "Yes to All" msgstr "Da la toate" #: platformtheme/kdeplatformtheme.cpp:307 #, kde-format msgctxt "@action:button" msgid "&No" msgstr "&Nu" #: platformtheme/kdeplatformtheme.cpp:309 #, kde-format msgctxt "@action:button" msgid "No to All" msgstr "Nu la toate" #: platformtheme/kdeplatformtheme.cpp:312 #, kde-format msgctxt "@action:button" msgid "Abort" msgstr "Abandonează" #: platformtheme/kdeplatformtheme.cpp:314 #, kde-format msgctxt "@action:button" msgid "Retry" msgstr "Reîncearcă" #: platformtheme/kdeplatformtheme.cpp:316 #, kde-format msgctxt "@action:button" msgid "Ignore" msgstr "Ignoră" #: platformtheme/kdirselectdialog.cpp:122 #, kde-format msgctxt "folder name" msgid "New Folder" msgstr "Dosar nou" #: platformtheme/kdirselectdialog.cpp:128 #, kde-format msgctxt "@title:window" msgid "New Folder" msgstr "Dosar nou" #: platformtheme/kdirselectdialog.cpp:129 #, kde-format msgctxt "@label:textbox" msgid "" "Create new folder in:\n" "%1" msgstr "" "Creează un dosar nou în:\n" "%1" #: platformtheme/kdirselectdialog.cpp:160 #, kde-format msgid "A file or folder named %1 already exists." msgstr "Există deja un fișier sau un dosar cu denumirea %1." #: platformtheme/kdirselectdialog.cpp:169 #, kde-format msgid "You do not have permission to create that folder." msgstr "Nu aveți permisiuni pentru a crea acel dosar." #: platformtheme/kdirselectdialog.cpp:271 #, kde-format msgctxt "@title:window" msgid "Select Folder" msgstr "Alege dosarul" #: platformtheme/kdirselectdialog.cpp:279 #, kde-format msgctxt "@action:button" msgid "New Folder..." msgstr "Dosar nou..." #: platformtheme/kdirselectdialog.cpp:336 #, kde-format msgctxt "@action:inmenu" msgid "New Folder..." msgstr "Dosar nou..." #: platformtheme/kdirselectdialog.cpp:345 #, kde-format msgctxt "@action:inmenu" msgid "Move to Trash" msgstr "Mută la gunoi" #: platformtheme/kdirselectdialog.cpp:354 #, kde-format msgctxt "@action:inmenu" msgid "Delete" msgstr "Șterge" #: platformtheme/kdirselectdialog.cpp:365 #, kde-format msgctxt "@option:check" msgid "Show Hidden Folders" msgstr "Arată dosarele ascunse" #: platformtheme/kdirselectdialog.cpp:372 #, kde-format msgctxt "@action:inmenu" msgid "Properties" msgstr "Proprietăți" #: platformtheme/kfiletreeview.cpp:185 #, kde-format msgid "Show Hidden Folders" msgstr "Arată dosarele ascunse" #: platformtheme/kioopenwith.cpp:147 #, kde-format msgid "" "Failed to launch for unknown reasons. Please try with a pre-existing " "application." msgstr "" 07070100000065000041ED0000000000000000000000026728A27700000000000000000000000000000000000000000000003C00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/ru07070100000066000081A40000000000000000000000016728A2770000123B000000000000000000000000000000000000005200000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/ru/plasmaintegration5.po# Copyright (C) YEAR This_file_is_part_of_KDE # This file is distributed under the same license as the PACKAGE package. # # Alexander Potashev <aspotashev@gmail.com>, 2014, 2016. # Alexander Yavorsky <kekcuha@gmail.com>, 2023, 2024. msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: https://bugs.kde.org\n" "POT-Creation-Date: 2024-09-17 00:40+0000\n" "PO-Revision-Date: 2024-09-20 11:55+0300\n" "Last-Translator: Alexander Yavorsky <kekcuha@gmail.com>\n" "Language-Team: Russian <kde-russian@lists.kde.ru>\n" "Language: ru\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=4; plural=n==1 ? 3 : n%10==1 && n%100!=11 ? 0 : n" "%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" "X-Generator: Lokalize 21.08.3\n" #: platformtheme/kdeplatformfiledialoghelper.cpp:260 #, kde-format msgctxt "@title:window" msgid "Open File" msgstr "Открытие файла" #: platformtheme/kdeplatformfiledialoghelper.cpp:261 #, kde-format msgctxt "@title:window" msgid "Save File" msgstr "Сохранение файла" #: platformtheme/kdeplatformtheme.cpp:299 #, kde-format msgctxt "@action:button" msgid "Save All" msgstr "Сохранить все" #: platformtheme/kdeplatformtheme.cpp:303 #, kde-format msgctxt "@action:button" msgid "&Yes" msgstr "&Да" #: platformtheme/kdeplatformtheme.cpp:305 #, kde-format msgctxt "@action:button" msgid "Yes to All" msgstr "Да для всех" #: platformtheme/kdeplatformtheme.cpp:307 #, kde-format msgctxt "@action:button" msgid "&No" msgstr "&Нет" #: platformtheme/kdeplatformtheme.cpp:309 #, kde-format msgctxt "@action:button" msgid "No to All" msgstr "Нет для всех" #: platformtheme/kdeplatformtheme.cpp:312 #, kde-format msgctxt "@action:button" msgid "Abort" msgstr "Прервать" #: platformtheme/kdeplatformtheme.cpp:314 #, kde-format msgctxt "@action:button" msgid "Retry" msgstr "Повторить" #: platformtheme/kdeplatformtheme.cpp:316 #, kde-format msgctxt "@action:button" msgid "Ignore" msgstr "Пропустить" #: platformtheme/kdirselectdialog.cpp:122 #, kde-format msgctxt "folder name" msgid "New Folder" msgstr "Новая папка" #: platformtheme/kdirselectdialog.cpp:128 #, kde-format msgctxt "@title:window" msgid "New Folder" msgstr "Создание папки" #: platformtheme/kdirselectdialog.cpp:129 #, kde-format msgctxt "@label:textbox" msgid "" "Create new folder in:\n" "%1" msgstr "" "Создать новую папку в:\n" "%1" #: platformtheme/kdirselectdialog.cpp:160 #, kde-format msgid "A file or folder named %1 already exists." msgstr "Файл или папка с именем %1 уже существует." #: platformtheme/kdirselectdialog.cpp:169 #, kde-format msgid "You do not have permission to create that folder." msgstr "У вас нет прав для создания этой папки." #: platformtheme/kdirselectdialog.cpp:271 #, kde-format msgctxt "@title:window" msgid "Select Folder" msgstr "Выбор папки" #: platformtheme/kdirselectdialog.cpp:279 #, kde-format msgctxt "@action:button" msgid "New Folder..." msgstr "Создать папку..." #: platformtheme/kdirselectdialog.cpp:336 #, kde-format msgctxt "@action:inmenu" msgid "New Folder..." msgstr "Создать папку..." #: platformtheme/kdirselectdialog.cpp:345 #, kde-format msgctxt "@action:inmenu" msgid "Move to Trash" msgstr "Удалить в корзину" #: platformtheme/kdirselectdialog.cpp:354 #, kde-format msgctxt "@action:inmenu" msgid "Delete" msgstr "Удалить" #: platformtheme/kdirselectdialog.cpp:365 #, kde-format msgctxt "@option:check" msgid "Show Hidden Folders" msgstr "Показывать скрытые папки" #: platformtheme/kdirselectdialog.cpp:372 #, kde-format msgctxt "@action:inmenu" msgid "Properties" msgstr "Свойства" #: platformtheme/kfiletreeview.cpp:185 #, kde-format msgid "Show Hidden Folders" msgstr "Показывать скрытые папки" #: platformtheme/kioopenwith.cpp:147 #, kde-format msgid "" "Failed to launch for unknown reasons. Please try with a pre-existing " "application." msgstr "" "Не удалось запустить приложение по неизвестной причине. Повторите попытку с " "предустановленным приложением." # BUGME: "Выбор файла для открытия"? --aspotashev #~ msgid "Opening..." #~ msgstr "Открытие" # BUGME: "Выбор файла для сохранения"? --aspotashev #~ msgid "Saving..." #~ msgstr "Сохранение" 07070100000067000041ED0000000000000000000000026728A27700000000000000000000000000000000000000000000003C00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/sa07070100000068000081A40000000000000000000000016728A277000011AB000000000000000000000000000000000000005200000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/sa/plasmaintegration5.po# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR This file is copyright: # This file is distributed under the same license as the plasma-integration package. # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. # msgid "" msgstr "" "Project-Id-Version: plasma-integration\n" "Report-Msgid-Bugs-To: https://bugs.kde.org\n" "POT-Creation-Date: 2024-09-17 00:40+0000\n" "PO-Revision-Date: 2023-09-25 23:45+0530\n" "Last-Translator: Ashish Kumar Prasad\n" "Language-Team: Sanskrit <kde-i18n-doc@kde.org>\n" "Language: sa\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Poedit 3.3.2\n" "Plural-Forms: nplurals=2; plural=(n>2);\n" #: platformtheme/kdeplatformfiledialoghelper.cpp:260 #, kde-format msgctxt "@title:window" msgid "Open File" msgstr "सञ्चिकां उद्घाटयन्तु" #: platformtheme/kdeplatformfiledialoghelper.cpp:261 #, kde-format msgctxt "@title:window" msgid "Save File" msgstr "सञ्चिकां रक्षतु" #: platformtheme/kdeplatformtheme.cpp:299 #, kde-format msgctxt "@action:button" msgid "Save All" msgstr "सर्वं रक्षन्तु" #: platformtheme/kdeplatformtheme.cpp:303 #, kde-format msgctxt "@action:button" msgid "&Yes" msgstr "&हाँ" #: platformtheme/kdeplatformtheme.cpp:305 #, kde-format msgctxt "@action:button" msgid "Yes to All" msgstr "हाँ सर्वेभ्यः" #: platformtheme/kdeplatformtheme.cpp:307 #, kde-format msgctxt "@action:button" msgid "&No" msgstr "&न" #: platformtheme/kdeplatformtheme.cpp:309 #, kde-format msgctxt "@action:button" msgid "No to All" msgstr "न सर्वेभ्यः" #: platformtheme/kdeplatformtheme.cpp:312 #, kde-format msgctxt "@action:button" msgid "Abort" msgstr "रद्दं कुर्वन्तु" #: platformtheme/kdeplatformtheme.cpp:314 #, kde-format msgctxt "@action:button" msgid "Retry" msgstr "पुनः प्रयासं कुर्वन्तु" #: platformtheme/kdeplatformtheme.cpp:316 #, kde-format msgctxt "@action:button" msgid "Ignore" msgstr "उपेक्ष्यताम्" #: platformtheme/kdirselectdialog.cpp:122 #, kde-format msgctxt "folder name" msgid "New Folder" msgstr "नूतनं पुटम्" #: platformtheme/kdirselectdialog.cpp:128 #, kde-format msgctxt "@title:window" msgid "New Folder" msgstr "नूतनं पुटम्" #: platformtheme/kdirselectdialog.cpp:129 #, kde-format msgctxt "@label:textbox" msgid "" "Create new folder in:\n" "%1" msgstr "" "अस्मिन् नूतनं पुटं रचयन्तु:\n" "%1" #: platformtheme/kdirselectdialog.cpp:160 #, kde-format msgid "A file or folder named %1 already exists." msgstr "%1 इति नाम्ना सञ्चिका अथवा पुटं पूर्वमेव अस्ति ।." #: platformtheme/kdirselectdialog.cpp:169 #, kde-format msgid "You do not have permission to create that folder." msgstr "तत् पुटं निर्मातुं भवतः अनुमतिः नास्ति ।." #: platformtheme/kdirselectdialog.cpp:271 #, kde-format msgctxt "@title:window" msgid "Select Folder" msgstr "पुटम् इति चिनोतु" #: platformtheme/kdirselectdialog.cpp:279 #, kde-format msgctxt "@action:button" msgid "New Folder..." msgstr "नूतनं पुटम्..." #: platformtheme/kdirselectdialog.cpp:336 #, kde-format msgctxt "@action:inmenu" msgid "New Folder..." msgstr "नूतनं पुटम्..." #: platformtheme/kdirselectdialog.cpp:345 #, kde-format msgctxt "@action:inmenu" msgid "Move to Trash" msgstr "पुनःप्रयोगस्य कूपं मध्ये स्थानान्तरणम्" #: platformtheme/kdirselectdialog.cpp:354 #, kde-format msgctxt "@action:inmenu" msgid "Delete" msgstr "विलोपयतु" #: platformtheme/kdirselectdialog.cpp:365 #, kde-format msgctxt "@option:check" msgid "Show Hidden Folders" msgstr "गुप्तपुटं दर्शयन्तु" #: platformtheme/kdirselectdialog.cpp:372 #, kde-format msgctxt "@action:inmenu" msgid "Properties" msgstr "गुणाः" #: platformtheme/kfiletreeview.cpp:185 #, kde-format msgid "Show Hidden Folders" msgstr "गुप्तपुटं दर्शयन्तु" #: platformtheme/kioopenwith.cpp:147 #, kde-format msgid "" "Failed to launch for unknown reasons. Please try with a pre-existing " "application." msgstr "" 07070100000069000041ED0000000000000000000000026728A27700000000000000000000000000000000000000000000003C00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/sk0707010000006A000081A40000000000000000000000016728A27700000F7E000000000000000000000000000000000000005200000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/sk/plasmaintegration5.po# translation of frameworkintegration5.po to Slovak # Roman Paholík <wizzardsk@gmail.com>, 2016. # Ferdinand Galko <galko.ferdinand@gmail.com>, 2023. msgid "" msgstr "" "Project-Id-Version: frameworkintegration5\n" "Report-Msgid-Bugs-To: https://bugs.kde.org\n" "POT-Creation-Date: 2024-09-17 00:40+0000\n" "PO-Revision-Date: 2023-03-24 19:13+0100\n" "Last-Translator: Ferdinand Galko <galko.ferdinand@gmail.com>\n" "Language-Team: Slovak <opensuse-translation@opensuse.org>\n" "Language: sk\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Lokalize 21.12.3\n" "Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n" #: platformtheme/kdeplatformfiledialoghelper.cpp:260 #, kde-format msgctxt "@title:window" msgid "Open File" msgstr "Otvoriť súbor" #: platformtheme/kdeplatformfiledialoghelper.cpp:261 #, kde-format msgctxt "@title:window" msgid "Save File" msgstr "Uložiť súbor" #: platformtheme/kdeplatformtheme.cpp:299 #, kde-format msgctxt "@action:button" msgid "Save All" msgstr "Uložiť všetko" #: platformtheme/kdeplatformtheme.cpp:303 #, kde-format msgctxt "@action:button" msgid "&Yes" msgstr "Áno" #: platformtheme/kdeplatformtheme.cpp:305 #, kde-format msgctxt "@action:button" msgid "Yes to All" msgstr "Áno všetkým" #: platformtheme/kdeplatformtheme.cpp:307 #, kde-format msgctxt "@action:button" msgid "&No" msgstr "Nie" #: platformtheme/kdeplatformtheme.cpp:309 #, kde-format msgctxt "@action:button" msgid "No to All" msgstr "Nie všetkým" #: platformtheme/kdeplatformtheme.cpp:312 #, kde-format msgctxt "@action:button" msgid "Abort" msgstr "Prerušiť" #: platformtheme/kdeplatformtheme.cpp:314 #, kde-format msgctxt "@action:button" msgid "Retry" msgstr "Skúsiť znova" #: platformtheme/kdeplatformtheme.cpp:316 #, kde-format msgctxt "@action:button" msgid "Ignore" msgstr "Ignorovať" #: platformtheme/kdirselectdialog.cpp:122 #, kde-format msgctxt "folder name" msgid "New Folder" msgstr "Nový priečinok" #: platformtheme/kdirselectdialog.cpp:128 #, kde-format msgctxt "@title:window" msgid "New Folder" msgstr "Nový priečinok" #: platformtheme/kdirselectdialog.cpp:129 #, kde-format msgctxt "@label:textbox" msgid "" "Create new folder in:\n" "%1" msgstr "" "Vytvoriť nový priečinok v:\n" "%1" #: platformtheme/kdirselectdialog.cpp:160 #, kde-format msgid "A file or folder named %1 already exists." msgstr "Súbor alebo priečinok s názvom %1 už existuje." #: platformtheme/kdirselectdialog.cpp:169 #, kde-format msgid "You do not have permission to create that folder." msgstr "Nemáte práva na vytvorenie tohto priečinka." #: platformtheme/kdirselectdialog.cpp:271 #, kde-format msgctxt "@title:window" msgid "Select Folder" msgstr "Vybrať priečinok" #: platformtheme/kdirselectdialog.cpp:279 #, kde-format msgctxt "@action:button" msgid "New Folder..." msgstr "Nový priečinok..." #: platformtheme/kdirselectdialog.cpp:336 #, kde-format msgctxt "@action:inmenu" msgid "New Folder..." msgstr "Nový priečinok..." #: platformtheme/kdirselectdialog.cpp:345 #, kde-format msgctxt "@action:inmenu" msgid "Move to Trash" msgstr "Presunúť do koša" #: platformtheme/kdirselectdialog.cpp:354 #, kde-format msgctxt "@action:inmenu" msgid "Delete" msgstr "Odstrániť" #: platformtheme/kdirselectdialog.cpp:365 #, kde-format msgctxt "@option:check" msgid "Show Hidden Folders" msgstr "Zobraziť skryté priečinky" #: platformtheme/kdirselectdialog.cpp:372 #, kde-format msgctxt "@action:inmenu" msgid "Properties" msgstr "Vlastnosti" #: platformtheme/kfiletreeview.cpp:185 #, kde-format msgid "Show Hidden Folders" msgstr "Zobraziť skryté priečinky" #: platformtheme/kioopenwith.cpp:147 #, kde-format msgid "" "Failed to launch for unknown reasons. Please try with a pre-existing " "application." msgstr "" #~ msgid "Opening..." #~ msgstr "Otvára sa..." #~ msgid "Saving..." #~ msgstr "Ukladám..." 0707010000006B000041ED0000000000000000000000026728A27700000000000000000000000000000000000000000000003C00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/sl0707010000006C000081A40000000000000000000000016728A27700000F9A000000000000000000000000000000000000005200000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/sl/plasmaintegration5.po# Copyright (C) YEAR This_file_is_part_of_KDE # This file is distributed under the same license as the PACKAGE package. # # Andrej Mernik <andrejm@ubuntu.si>, 2016. # Matjaž Jeran <matjaz.jeran@amis.net>, 2022. msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: https://bugs.kde.org\n" "POT-Creation-Date: 2024-09-17 00:40+0000\n" "PO-Revision-Date: 2024-06-26 12:25+0200\n" "Last-Translator: Matjaž Jeran <matjaz.jeran@amis.net>\n" "Language-Team: Slovenian <lugos-slo@lugos.si>\n" "Language: sl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=4; plural=(n%100==1 ? 1 : n%100==2 ? 2 : n%100==3 || n" "%100==4 ? 3 : 0);\n" "X-Generator: Poedit 3.4.4\n" #: platformtheme/kdeplatformfiledialoghelper.cpp:260 #, kde-format msgctxt "@title:window" msgid "Open File" msgstr "&Odpri datoteko" #: platformtheme/kdeplatformfiledialoghelper.cpp:261 #, kde-format msgctxt "@title:window" msgid "Save File" msgstr "Shrani datoteko" #: platformtheme/kdeplatformtheme.cpp:299 #, kde-format msgctxt "@action:button" msgid "Save All" msgstr "Shrani vse" #: platformtheme/kdeplatformtheme.cpp:303 #, kde-format msgctxt "@action:button" msgid "&Yes" msgstr "Da" #: platformtheme/kdeplatformtheme.cpp:305 #, kde-format msgctxt "@action:button" msgid "Yes to All" msgstr "Da za vse" #: platformtheme/kdeplatformtheme.cpp:307 #, kde-format msgctxt "@action:button" msgid "&No" msgstr "&Ne" #: platformtheme/kdeplatformtheme.cpp:309 #, kde-format msgctxt "@action:button" msgid "No to All" msgstr "Ne za vse" #: platformtheme/kdeplatformtheme.cpp:312 #, kde-format msgctxt "@action:button" msgid "Abort" msgstr "Prekini" #: platformtheme/kdeplatformtheme.cpp:314 #, kde-format msgctxt "@action:button" msgid "Retry" msgstr "Poskusi znova" #: platformtheme/kdeplatformtheme.cpp:316 #, kde-format msgctxt "@action:button" msgid "Ignore" msgstr "Prezri" #: platformtheme/kdirselectdialog.cpp:122 #, kde-format msgctxt "folder name" msgid "New Folder" msgstr "Nova mapa" #: platformtheme/kdirselectdialog.cpp:128 #, kde-format msgctxt "@title:window" msgid "New Folder" msgstr "Nova mapa" #: platformtheme/kdirselectdialog.cpp:129 #, kde-format msgctxt "@label:textbox" msgid "" "Create new folder in:\n" "%1" msgstr "" "Ustvari novo mapo v:\n" "%1" #: platformtheme/kdirselectdialog.cpp:160 #, kde-format msgid "A file or folder named %1 already exists." msgstr "Datoteka ali mapa %1 že obstaja." #: platformtheme/kdirselectdialog.cpp:169 #, kde-format msgid "You do not have permission to create that folder." msgstr "Nimate dovoljenja za ustvaritev te mape." #: platformtheme/kdirselectdialog.cpp:271 #, kde-format msgctxt "@title:window" msgid "Select Folder" msgstr "Izberite mapo" #: platformtheme/kdirselectdialog.cpp:279 #, kde-format msgctxt "@action:button" msgid "New Folder..." msgstr "Nova mapa ..." #: platformtheme/kdirselectdialog.cpp:336 #, kde-format msgctxt "@action:inmenu" msgid "New Folder..." msgstr "Nova mapa ..." #: platformtheme/kdirselectdialog.cpp:345 #, kde-format msgctxt "@action:inmenu" msgid "Move to Trash" msgstr "Premakni v Smeti" #: platformtheme/kdirselectdialog.cpp:354 #, kde-format msgctxt "@action:inmenu" msgid "Delete" msgstr "Izbriši" #: platformtheme/kdirselectdialog.cpp:365 #, kde-format msgctxt "@option:check" msgid "Show Hidden Folders" msgstr "Pokaži skrite mape" #: platformtheme/kdirselectdialog.cpp:372 #, kde-format msgctxt "@action:inmenu" msgid "Properties" msgstr "Lastnosti" #: platformtheme/kfiletreeview.cpp:185 #, kde-format msgid "Show Hidden Folders" msgstr "Pokaži skrite mape" #: platformtheme/kioopenwith.cpp:147 #, kde-format msgid "" "Failed to launch for unknown reasons. Please try with a pre-existing " "application." msgstr "" "Iz neznanih razlogov ni bilo mogoče zagnati. Poskusite z že obstoječo " "aplikacijo." #~ msgid "Opening..." #~ msgstr "Odpiranje ..." #~ msgid "Saving..." #~ msgstr "Shranjevanje ..." 0707010000006D000041ED0000000000000000000000026728A27700000000000000000000000000000000000000000000003C00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/sr0707010000006E000081A40000000000000000000000016728A27700001016000000000000000000000000000000000000005200000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/sr/plasmaintegration5.po# Translation of plasmaintegration5.po into Serbian. # Chusslove Illich <caslav.ilic@gmx.net>, 2014, 2016, 2017. msgid "" msgstr "" "Project-Id-Version: plasmaintegration5\n" "Report-Msgid-Bugs-To: https://bugs.kde.org\n" "POT-Creation-Date: 2024-09-17 00:40+0000\n" "PO-Revision-Date: 2017-09-28 17:58+0200\n" "Last-Translator: Chusslove Illich <caslav.ilic@gmx.net>\n" "Language-Team: Serbian <kde-i18n-sr@kde.org>\n" "Language: sr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=4; plural=n==1 ? 3 : n%10==1 && n%100!=11 ? 0 : n" "%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" "X-Accelerator-Marker: &\n" "X-Text-Markup: kde4\n" "X-Environment: kde\n" #: platformtheme/kdeplatformfiledialoghelper.cpp:260 #, kde-format msgctxt "@title:window" msgid "Open File" msgstr "Отварање фајла" #: platformtheme/kdeplatformfiledialoghelper.cpp:261 #, kde-format msgctxt "@title:window" msgid "Save File" msgstr "Уписивање фајла" #: platformtheme/kdeplatformtheme.cpp:299 #, kde-format msgctxt "@action:button" msgid "Save All" msgstr "Сачувај све" #: platformtheme/kdeplatformtheme.cpp:303 #, kde-format msgctxt "@action:button" msgid "&Yes" msgstr "" #: platformtheme/kdeplatformtheme.cpp:305 #, kde-format msgctxt "@action:button" msgid "Yes to All" msgstr "Да за све" #: platformtheme/kdeplatformtheme.cpp:307 #, kde-format msgctxt "@action:button" msgid "&No" msgstr "" #: platformtheme/kdeplatformtheme.cpp:309 #, kde-format msgctxt "@action:button" msgid "No to All" msgstr "Не за све" #: platformtheme/kdeplatformtheme.cpp:312 #, kde-format msgctxt "@action:button" msgid "Abort" msgstr "Обустави" #: platformtheme/kdeplatformtheme.cpp:314 #, kde-format msgctxt "@action:button" msgid "Retry" msgstr "Покушај поново" #: platformtheme/kdeplatformtheme.cpp:316 #, kde-format msgctxt "@action:button" msgid "Ignore" msgstr "Игнориши" #: platformtheme/kdirselectdialog.cpp:122 #, kde-format msgctxt "folder name" msgid "New Folder" msgstr "Нова фасцикла" #: platformtheme/kdirselectdialog.cpp:128 #, kde-format msgctxt "@title:window" msgid "New Folder" msgstr "Нова фасцикла" #: platformtheme/kdirselectdialog.cpp:129 #, kde-format msgctxt "@label:textbox" msgid "" "Create new folder in:\n" "%1" msgstr "" "Направи нову фасциклу у:\n" "‘%1’" #: platformtheme/kdirselectdialog.cpp:160 #, kde-format msgid "A file or folder named %1 already exists." msgstr "Фајл или фасцикла по имену ‘%1’ већ постоји." #: platformtheme/kdirselectdialog.cpp:169 #, kde-format msgid "You do not have permission to create that folder." msgstr "Немате дозволу да направите ту фасциклу." #: platformtheme/kdirselectdialog.cpp:271 #, kde-format msgctxt "@title:window" msgid "Select Folder" msgstr "Избор фасцикле" #: platformtheme/kdirselectdialog.cpp:279 #, kde-format msgctxt "@action:button" msgid "New Folder..." msgstr "Нова фасцикла..." #: platformtheme/kdirselectdialog.cpp:336 #, kde-format msgctxt "@action:inmenu" msgid "New Folder..." msgstr "Нова фасцикла..." #: platformtheme/kdirselectdialog.cpp:345 #, kde-format msgctxt "@action:inmenu" msgid "Move to Trash" msgstr "Премести у смеће" #: platformtheme/kdirselectdialog.cpp:354 #, kde-format msgctxt "@action:inmenu" msgid "Delete" msgstr "Обриши" #: platformtheme/kdirselectdialog.cpp:365 #, kde-format msgctxt "@option:check" msgid "Show Hidden Folders" msgstr "Скривене фасцикле" #: platformtheme/kdirselectdialog.cpp:372 #, kde-format msgctxt "@action:inmenu" msgid "Properties" msgstr "Својства" #: platformtheme/kfiletreeview.cpp:185 #, kde-format msgid "Show Hidden Folders" msgstr "Скривене фасцикле" #: platformtheme/kioopenwith.cpp:147 #, kde-format msgid "" "Failed to launch for unknown reasons. Please try with a pre-existing " "application." msgstr "" 0707010000006F000041ED0000000000000000000000026728A27700000000000000000000000000000000000000000000004600000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/sr@ijekavian07070100000070000081A40000000000000000000000016728A27700001022000000000000000000000000000000000000005C00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/sr@ijekavian/plasmaintegration5.po# Translation of plasmaintegration5.po into Serbian. # Chusslove Illich <caslav.ilic@gmx.net>, 2014, 2016, 2017. msgid "" msgstr "" "Project-Id-Version: plasmaintegration5\n" "Report-Msgid-Bugs-To: https://bugs.kde.org\n" "POT-Creation-Date: 2024-09-17 00:40+0000\n" "PO-Revision-Date: 2017-09-28 17:58+0200\n" "Last-Translator: Chusslove Illich <caslav.ilic@gmx.net>\n" "Language-Team: Serbian <kde-i18n-sr@kde.org>\n" "Language: sr@ijekavian\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=4; plural=n==1 ? 3 : n%10==1 && n%100!=11 ? 0 : n" "%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" "X-Accelerator-Marker: &\n" "X-Text-Markup: kde4\n" "X-Environment: kde\n" #: platformtheme/kdeplatformfiledialoghelper.cpp:260 #, kde-format msgctxt "@title:window" msgid "Open File" msgstr "Отварање фајла" #: platformtheme/kdeplatformfiledialoghelper.cpp:261 #, kde-format msgctxt "@title:window" msgid "Save File" msgstr "Уписивање фајла" #: platformtheme/kdeplatformtheme.cpp:299 #, kde-format msgctxt "@action:button" msgid "Save All" msgstr "Сачувај све" #: platformtheme/kdeplatformtheme.cpp:303 #, kde-format msgctxt "@action:button" msgid "&Yes" msgstr "" #: platformtheme/kdeplatformtheme.cpp:305 #, kde-format msgctxt "@action:button" msgid "Yes to All" msgstr "Да за све" #: platformtheme/kdeplatformtheme.cpp:307 #, kde-format msgctxt "@action:button" msgid "&No" msgstr "" #: platformtheme/kdeplatformtheme.cpp:309 #, kde-format msgctxt "@action:button" msgid "No to All" msgstr "Не за све" #: platformtheme/kdeplatformtheme.cpp:312 #, kde-format msgctxt "@action:button" msgid "Abort" msgstr "Обустави" #: platformtheme/kdeplatformtheme.cpp:314 #, kde-format msgctxt "@action:button" msgid "Retry" msgstr "Покушај поново" #: platformtheme/kdeplatformtheme.cpp:316 #, kde-format msgctxt "@action:button" msgid "Ignore" msgstr "Игнориши" #: platformtheme/kdirselectdialog.cpp:122 #, kde-format msgctxt "folder name" msgid "New Folder" msgstr "Нова фасцикла" #: platformtheme/kdirselectdialog.cpp:128 #, kde-format msgctxt "@title:window" msgid "New Folder" msgstr "Нова фасцикла" #: platformtheme/kdirselectdialog.cpp:129 #, kde-format msgctxt "@label:textbox" msgid "" "Create new folder in:\n" "%1" msgstr "" "Направи нову фасциклу у:\n" "‘%1’" #: platformtheme/kdirselectdialog.cpp:160 #, kde-format msgid "A file or folder named %1 already exists." msgstr "Фајл или фасцикла по имену ‘%1’ већ постоји." #: platformtheme/kdirselectdialog.cpp:169 #, kde-format msgid "You do not have permission to create that folder." msgstr "Немате дозволу да направите ту фасциклу." #: platformtheme/kdirselectdialog.cpp:271 #, kde-format msgctxt "@title:window" msgid "Select Folder" msgstr "Избор фасцикле" #: platformtheme/kdirselectdialog.cpp:279 #, kde-format msgctxt "@action:button" msgid "New Folder..." msgstr "Нова фасцикла..." #: platformtheme/kdirselectdialog.cpp:336 #, kde-format msgctxt "@action:inmenu" msgid "New Folder..." msgstr "Нова фасцикла..." #: platformtheme/kdirselectdialog.cpp:345 #, kde-format msgctxt "@action:inmenu" msgid "Move to Trash" msgstr "Премјести у смеће" #: platformtheme/kdirselectdialog.cpp:354 #, kde-format msgctxt "@action:inmenu" msgid "Delete" msgstr "Обриши" #: platformtheme/kdirselectdialog.cpp:365 #, kde-format msgctxt "@option:check" msgid "Show Hidden Folders" msgstr "Скривене фасцикле" #: platformtheme/kdirselectdialog.cpp:372 #, kde-format msgctxt "@action:inmenu" msgid "Properties" msgstr "Својства" #: platformtheme/kfiletreeview.cpp:185 #, kde-format msgid "Show Hidden Folders" msgstr "Скривене фасцикле" #: platformtheme/kioopenwith.cpp:147 #, kde-format msgid "" "Failed to launch for unknown reasons. Please try with a pre-existing " "application." msgstr "" 07070100000071000041ED0000000000000000000000026728A27700000000000000000000000000000000000000000000004B00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/sr@ijekavianlatin07070100000072000081A40000000000000000000000016728A27700000F0F000000000000000000000000000000000000006100000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/sr@ijekavianlatin/plasmaintegration5.po# Translation of plasmaintegration5.po into Serbian. # Chusslove Illich <caslav.ilic@gmx.net>, 2014, 2016, 2017. msgid "" msgstr "" "Project-Id-Version: plasmaintegration5\n" "Report-Msgid-Bugs-To: https://bugs.kde.org\n" "POT-Creation-Date: 2024-09-17 00:40+0000\n" "PO-Revision-Date: 2017-09-28 17:58+0200\n" "Last-Translator: Chusslove Illich <caslav.ilic@gmx.net>\n" "Language-Team: Serbian <kde-i18n-sr@kde.org>\n" "Language: sr@ijekavianlatin\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=4; plural=n==1 ? 3 : n%10==1 && n%100!=11 ? 0 : n" "%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" "X-Accelerator-Marker: &\n" "X-Text-Markup: kde4\n" "X-Environment: kde\n" #: platformtheme/kdeplatformfiledialoghelper.cpp:260 #, kde-format msgctxt "@title:window" msgid "Open File" msgstr "Otvaranje fajla" #: platformtheme/kdeplatformfiledialoghelper.cpp:261 #, kde-format msgctxt "@title:window" msgid "Save File" msgstr "Upisivanje fajla" #: platformtheme/kdeplatformtheme.cpp:299 #, kde-format msgctxt "@action:button" msgid "Save All" msgstr "Sačuvaj sve" #: platformtheme/kdeplatformtheme.cpp:303 #, kde-format msgctxt "@action:button" msgid "&Yes" msgstr "" #: platformtheme/kdeplatformtheme.cpp:305 #, kde-format msgctxt "@action:button" msgid "Yes to All" msgstr "Da za sve" #: platformtheme/kdeplatformtheme.cpp:307 #, kde-format msgctxt "@action:button" msgid "&No" msgstr "" #: platformtheme/kdeplatformtheme.cpp:309 #, kde-format msgctxt "@action:button" msgid "No to All" msgstr "Ne za sve" #: platformtheme/kdeplatformtheme.cpp:312 #, kde-format msgctxt "@action:button" msgid "Abort" msgstr "Obustavi" #: platformtheme/kdeplatformtheme.cpp:314 #, kde-format msgctxt "@action:button" msgid "Retry" msgstr "Pokušaj ponovo" #: platformtheme/kdeplatformtheme.cpp:316 #, kde-format msgctxt "@action:button" msgid "Ignore" msgstr "Ignoriši" #: platformtheme/kdirselectdialog.cpp:122 #, kde-format msgctxt "folder name" msgid "New Folder" msgstr "Nova fascikla" #: platformtheme/kdirselectdialog.cpp:128 #, kde-format msgctxt "@title:window" msgid "New Folder" msgstr "Nova fascikla" #: platformtheme/kdirselectdialog.cpp:129 #, kde-format msgctxt "@label:textbox" msgid "" "Create new folder in:\n" "%1" msgstr "" "Napravi novu fasciklu u:\n" "‘%1’" #: platformtheme/kdirselectdialog.cpp:160 #, kde-format msgid "A file or folder named %1 already exists." msgstr "Fajl ili fascikla po imenu ‘%1’ već postoji." #: platformtheme/kdirselectdialog.cpp:169 #, kde-format msgid "You do not have permission to create that folder." msgstr "Nemate dozvolu da napravite tu fasciklu." #: platformtheme/kdirselectdialog.cpp:271 #, kde-format msgctxt "@title:window" msgid "Select Folder" msgstr "Izbor fascikle" #: platformtheme/kdirselectdialog.cpp:279 #, kde-format msgctxt "@action:button" msgid "New Folder..." msgstr "Nova fascikla..." #: platformtheme/kdirselectdialog.cpp:336 #, kde-format msgctxt "@action:inmenu" msgid "New Folder..." msgstr "Nova fascikla..." #: platformtheme/kdirselectdialog.cpp:345 #, kde-format msgctxt "@action:inmenu" msgid "Move to Trash" msgstr "Premjesti u smeće" #: platformtheme/kdirselectdialog.cpp:354 #, kde-format msgctxt "@action:inmenu" msgid "Delete" msgstr "Obriši" #: platformtheme/kdirselectdialog.cpp:365 #, kde-format msgctxt "@option:check" msgid "Show Hidden Folders" msgstr "Skrivene fascikle" #: platformtheme/kdirselectdialog.cpp:372 #, kde-format msgctxt "@action:inmenu" msgid "Properties" msgstr "Svojstva" #: platformtheme/kfiletreeview.cpp:185 #, kde-format msgid "Show Hidden Folders" msgstr "Skrivene fascikle" #: platformtheme/kioopenwith.cpp:147 #, kde-format msgid "" "Failed to launch for unknown reasons. Please try with a pre-existing " "application." msgstr "" 07070100000073000041ED0000000000000000000000026728A27700000000000000000000000000000000000000000000004200000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/sr@latin07070100000074000081A40000000000000000000000016728A27700000F05000000000000000000000000000000000000005800000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/sr@latin/plasmaintegration5.po# Translation of plasmaintegration5.po into Serbian. # Chusslove Illich <caslav.ilic@gmx.net>, 2014, 2016, 2017. msgid "" msgstr "" "Project-Id-Version: plasmaintegration5\n" "Report-Msgid-Bugs-To: https://bugs.kde.org\n" "POT-Creation-Date: 2024-09-17 00:40+0000\n" "PO-Revision-Date: 2017-09-28 17:58+0200\n" "Last-Translator: Chusslove Illich <caslav.ilic@gmx.net>\n" "Language-Team: Serbian <kde-i18n-sr@kde.org>\n" "Language: sr@latin\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=4; plural=n==1 ? 3 : n%10==1 && n%100!=11 ? 0 : n" "%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" "X-Accelerator-Marker: &\n" "X-Text-Markup: kde4\n" "X-Environment: kde\n" #: platformtheme/kdeplatformfiledialoghelper.cpp:260 #, kde-format msgctxt "@title:window" msgid "Open File" msgstr "Otvaranje fajla" #: platformtheme/kdeplatformfiledialoghelper.cpp:261 #, kde-format msgctxt "@title:window" msgid "Save File" msgstr "Upisivanje fajla" #: platformtheme/kdeplatformtheme.cpp:299 #, kde-format msgctxt "@action:button" msgid "Save All" msgstr "Sačuvaj sve" #: platformtheme/kdeplatformtheme.cpp:303 #, kde-format msgctxt "@action:button" msgid "&Yes" msgstr "" #: platformtheme/kdeplatformtheme.cpp:305 #, kde-format msgctxt "@action:button" msgid "Yes to All" msgstr "Da za sve" #: platformtheme/kdeplatformtheme.cpp:307 #, kde-format msgctxt "@action:button" msgid "&No" msgstr "" #: platformtheme/kdeplatformtheme.cpp:309 #, kde-format msgctxt "@action:button" msgid "No to All" msgstr "Ne za sve" #: platformtheme/kdeplatformtheme.cpp:312 #, kde-format msgctxt "@action:button" msgid "Abort" msgstr "Obustavi" #: platformtheme/kdeplatformtheme.cpp:314 #, kde-format msgctxt "@action:button" msgid "Retry" msgstr "Pokušaj ponovo" #: platformtheme/kdeplatformtheme.cpp:316 #, kde-format msgctxt "@action:button" msgid "Ignore" msgstr "Ignoriši" #: platformtheme/kdirselectdialog.cpp:122 #, kde-format msgctxt "folder name" msgid "New Folder" msgstr "Nova fascikla" #: platformtheme/kdirselectdialog.cpp:128 #, kde-format msgctxt "@title:window" msgid "New Folder" msgstr "Nova fascikla" #: platformtheme/kdirselectdialog.cpp:129 #, kde-format msgctxt "@label:textbox" msgid "" "Create new folder in:\n" "%1" msgstr "" "Napravi novu fasciklu u:\n" "‘%1’" #: platformtheme/kdirselectdialog.cpp:160 #, kde-format msgid "A file or folder named %1 already exists." msgstr "Fajl ili fascikla po imenu ‘%1’ već postoji." #: platformtheme/kdirselectdialog.cpp:169 #, kde-format msgid "You do not have permission to create that folder." msgstr "Nemate dozvolu da napravite tu fasciklu." #: platformtheme/kdirselectdialog.cpp:271 #, kde-format msgctxt "@title:window" msgid "Select Folder" msgstr "Izbor fascikle" #: platformtheme/kdirselectdialog.cpp:279 #, kde-format msgctxt "@action:button" msgid "New Folder..." msgstr "Nova fascikla..." #: platformtheme/kdirselectdialog.cpp:336 #, kde-format msgctxt "@action:inmenu" msgid "New Folder..." msgstr "Nova fascikla..." #: platformtheme/kdirselectdialog.cpp:345 #, kde-format msgctxt "@action:inmenu" msgid "Move to Trash" msgstr "Premesti u smeće" #: platformtheme/kdirselectdialog.cpp:354 #, kde-format msgctxt "@action:inmenu" msgid "Delete" msgstr "Obriši" #: platformtheme/kdirselectdialog.cpp:365 #, kde-format msgctxt "@option:check" msgid "Show Hidden Folders" msgstr "Skrivene fascikle" #: platformtheme/kdirselectdialog.cpp:372 #, kde-format msgctxt "@action:inmenu" msgid "Properties" msgstr "Svojstva" #: platformtheme/kfiletreeview.cpp:185 #, kde-format msgid "Show Hidden Folders" msgstr "Skrivene fascikle" #: platformtheme/kioopenwith.cpp:147 #, kde-format msgid "" "Failed to launch for unknown reasons. Please try with a pre-existing " "application." msgstr "" 07070100000075000041ED0000000000000000000000026728A27700000000000000000000000000000000000000000000003C00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/sv07070100000076000081A40000000000000000000000016728A27700000F86000000000000000000000000000000000000005200000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/sv/plasmaintegration5.po# Copyright (C) YEAR This_file_is_part_of_KDE # This file is distributed under the same license as the PACKAGE package. # # SPDX-FileCopyrightText: 2016, 2024 Stefan Asserhäll <stefan.asserhall@gmail.com> msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: https://bugs.kde.org\n" "POT-Creation-Date: 2024-09-17 00:40+0000\n" "PO-Revision-Date: 2024-07-02 21:49+0200\n" "Last-Translator: Stefan Asserhäll <stefan.asserhall@gmail.com>\n" "Language-Team: Swedish <kde-i18n-doc@kde.org>\n" "Language: sv\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" "X-Generator: Lokalize 23.08.5\n" #: platformtheme/kdeplatformfiledialoghelper.cpp:260 #, kde-format msgctxt "@title:window" msgid "Open File" msgstr "Öppna fil" #: platformtheme/kdeplatformfiledialoghelper.cpp:261 #, kde-format msgctxt "@title:window" msgid "Save File" msgstr "Spara fil" #: platformtheme/kdeplatformtheme.cpp:299 #, kde-format msgctxt "@action:button" msgid "Save All" msgstr "Spara alla" #: platformtheme/kdeplatformtheme.cpp:303 #, kde-format msgctxt "@action:button" msgid "&Yes" msgstr "&Ja" #: platformtheme/kdeplatformtheme.cpp:305 #, kde-format msgctxt "@action:button" msgid "Yes to All" msgstr "Ja till alla" #: platformtheme/kdeplatformtheme.cpp:307 #, kde-format msgctxt "@action:button" msgid "&No" msgstr "&Nej" #: platformtheme/kdeplatformtheme.cpp:309 #, kde-format msgctxt "@action:button" msgid "No to All" msgstr "Nej till alla" #: platformtheme/kdeplatformtheme.cpp:312 #, kde-format msgctxt "@action:button" msgid "Abort" msgstr "Avbryt" #: platformtheme/kdeplatformtheme.cpp:314 #, kde-format msgctxt "@action:button" msgid "Retry" msgstr "Försök igen" #: platformtheme/kdeplatformtheme.cpp:316 #, kde-format msgctxt "@action:button" msgid "Ignore" msgstr "Ignorera" #: platformtheme/kdirselectdialog.cpp:122 #, kde-format msgctxt "folder name" msgid "New Folder" msgstr "Ny katalog" #: platformtheme/kdirselectdialog.cpp:128 #, kde-format msgctxt "@title:window" msgid "New Folder" msgstr "Ny katalog" #: platformtheme/kdirselectdialog.cpp:129 #, kde-format msgctxt "@label:textbox" msgid "" "Create new folder in:\n" "%1" msgstr "" "Skapa ny katalog i:\n" "%1" #: platformtheme/kdirselectdialog.cpp:160 #, kde-format msgid "A file or folder named %1 already exists." msgstr "En fil eller katalog med namn %1 finns redan." #: platformtheme/kdirselectdialog.cpp:169 #, kde-format msgid "You do not have permission to create that folder." msgstr "Du har inte behörighet att skapa den där katalogen." #: platformtheme/kdirselectdialog.cpp:271 #, kde-format msgctxt "@title:window" msgid "Select Folder" msgstr "Välj katalog" #: platformtheme/kdirselectdialog.cpp:279 #, kde-format msgctxt "@action:button" msgid "New Folder..." msgstr "Ny katalog..." #: platformtheme/kdirselectdialog.cpp:336 #, kde-format msgctxt "@action:inmenu" msgid "New Folder..." msgstr "Ny katalog..." #: platformtheme/kdirselectdialog.cpp:345 #, kde-format msgctxt "@action:inmenu" msgid "Move to Trash" msgstr "Flytta till papperskorgen" #: platformtheme/kdirselectdialog.cpp:354 #, kde-format msgctxt "@action:inmenu" msgid "Delete" msgstr "Ta bort" #: platformtheme/kdirselectdialog.cpp:365 #, kde-format msgctxt "@option:check" msgid "Show Hidden Folders" msgstr "Visa dolda kataloger" #: platformtheme/kdirselectdialog.cpp:372 #, kde-format msgctxt "@action:inmenu" msgid "Properties" msgstr "Egenskaper" #: platformtheme/kfiletreeview.cpp:185 #, kde-format msgid "Show Hidden Folders" msgstr "Visa dolda kataloger" #: platformtheme/kioopenwith.cpp:147 #, kde-format msgid "" "Failed to launch for unknown reasons. Please try with a pre-existing " "application." msgstr "" "Det gick inte att starta av okänd anledning. Försök med ett redan befintligt " "program." #~ msgid "Opening..." #~ msgstr "Öppnar..." #~ msgid "Saving..." #~ msgstr "Sparar..." 07070100000077000041ED0000000000000000000000026728A27700000000000000000000000000000000000000000000003C00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/ta07070100000078000081A40000000000000000000000016728A27700001358000000000000000000000000000000000000005200000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/ta/plasmaintegration5.po# Copyright (C) 2024 This file is copyright: # This file is distributed under the same license as the plasma-integration package. # # SPDX-FileCopyrightText: 2021, 2022, 2024 Kishore G <kishore96@gmail.com> msgid "" msgstr "" "Project-Id-Version: plasma-integration\n" "Report-Msgid-Bugs-To: https://bugs.kde.org\n" "POT-Creation-Date: 2024-09-17 00:40+0000\n" "PO-Revision-Date: 2024-06-30 13:38+0530\n" "Last-Translator: Kishore G <kishore96@gmail.com>\n" "Language-Team: Tamil <kde-i18n-doc@kde.org>\n" "Language: ta\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" "X-Generator: Lokalize 24.05.1\n" #: platformtheme/kdeplatformfiledialoghelper.cpp:260 #, kde-format msgctxt "@title:window" msgid "Open File" msgstr "கோப்பை திறத்தல்" #: platformtheme/kdeplatformfiledialoghelper.cpp:261 #, kde-format msgctxt "@title:window" msgid "Save File" msgstr "கோப்பை சேமித்தல்" #: platformtheme/kdeplatformtheme.cpp:299 #, kde-format msgctxt "@action:button" msgid "Save All" msgstr "அனைத்தையும் சேமி" #: platformtheme/kdeplatformtheme.cpp:303 #, kde-format msgctxt "@action:button" msgid "&Yes" msgstr "&ஆம்" #: platformtheme/kdeplatformtheme.cpp:305 #, kde-format msgctxt "@action:button" msgid "Yes to All" msgstr "அனைத்திற்கும் 'ஆம்'" #: platformtheme/kdeplatformtheme.cpp:307 #, kde-format msgctxt "@action:button" msgid "&No" msgstr "&இல்லை" #: platformtheme/kdeplatformtheme.cpp:309 #, kde-format msgctxt "@action:button" msgid "No to All" msgstr "அனைத்திற்கும் 'இல்லை'" #: platformtheme/kdeplatformtheme.cpp:312 #, kde-format msgctxt "@action:button" msgid "Abort" msgstr "ரத்து செய்" #: platformtheme/kdeplatformtheme.cpp:314 #, kde-format msgctxt "@action:button" msgid "Retry" msgstr "மீண்டும் முயற்சி" #: platformtheme/kdeplatformtheme.cpp:316 #, kde-format msgctxt "@action:button" msgid "Ignore" msgstr "பொருட்படுத்தாதே" #: platformtheme/kdirselectdialog.cpp:122 #, kde-format msgctxt "folder name" msgid "New Folder" msgstr "புதிய அடைவு" #: platformtheme/kdirselectdialog.cpp:128 #, kde-format msgctxt "@title:window" msgid "New Folder" msgstr "புதிய அடைவு" #: platformtheme/kdirselectdialog.cpp:129 #, kde-format msgctxt "@label:textbox" msgid "" "Create new folder in:\n" "%1" msgstr "" "%1\n" "என்ற இடத்தில் புதிய அடைவை உருவாக்கு" #: platformtheme/kdirselectdialog.cpp:160 #, kde-format msgid "A file or folder named %1 already exists." msgstr "%1 என்ற பெயரை கொண்ட கோப்பு அல்லது அடைவு ஏற்கனவே உள்ளது." #: platformtheme/kdirselectdialog.cpp:169 #, kde-format msgid "You do not have permission to create that folder." msgstr "அந்த அடைவை உருவாக்க உங்களுக்கு அனுமதி இல்லை." #: platformtheme/kdirselectdialog.cpp:271 #, kde-format msgctxt "@title:window" msgid "Select Folder" msgstr "அடைவை தேர்வு செய்தல்" #: platformtheme/kdirselectdialog.cpp:279 #, kde-format msgctxt "@action:button" msgid "New Folder..." msgstr "புதிய அடைவு..." #: platformtheme/kdirselectdialog.cpp:336 #, kde-format msgctxt "@action:inmenu" msgid "New Folder..." msgstr "புதிய அடைவு..." #: platformtheme/kdirselectdialog.cpp:345 #, kde-format msgctxt "@action:inmenu" msgid "Move to Trash" msgstr "அகற்றிடத்துக்கு நகர்த்து" #: platformtheme/kdirselectdialog.cpp:354 #, kde-format msgctxt "@action:inmenu" msgid "Delete" msgstr "நீக்கு" #: platformtheme/kdirselectdialog.cpp:365 #, kde-format msgctxt "@option:check" msgid "Show Hidden Folders" msgstr "மறைந்துள்ள அடைவுகளை காட்டு" #: platformtheme/kdirselectdialog.cpp:372 #, kde-format msgctxt "@action:inmenu" msgid "Properties" msgstr "பண்புகள்" #: platformtheme/kfiletreeview.cpp:185 #, kde-format msgid "Show Hidden Folders" msgstr "மறைந்துள்ள அடைவுகளை காட்டு" #: platformtheme/kioopenwith.cpp:147 #, kde-format msgid "" "Failed to launch for unknown reasons. Please try with a pre-existing " "application." msgstr "" "தெரியாத காரணங்களால் தோல்வியடைந்தது. இச்செயலி ஏற்கனவே ஓடிக்கொண்டிருந்தால் " "அச்சாளரத்திலிருந்து முயற்சிக்கவும்." 07070100000079000041ED0000000000000000000000026728A27700000000000000000000000000000000000000000000003C00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/tr0707010000007A000081A40000000000000000000000016728A27700000F3F000000000000000000000000000000000000005200000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/tr/plasmaintegration5.po# Copyright (C) YEAR This_file_is_part_of_KDE # This file is distributed under the same license as the PACKAGE package. # # SPDX-FileCopyrightText: 2022, 2024 Emir SARI <emir_sari@icloud.com> msgid "" msgstr "" "Project-Id-Version: plasmaintegration5\n" "Report-Msgid-Bugs-To: https://bugs.kde.org\n" "POT-Creation-Date: 2024-09-17 00:40+0000\n" "PO-Revision-Date: 2024-06-26 14:22+0300\n" "Last-Translator: Emir SARI <emir_sari@icloud.com>\n" "Language-Team: Turkish <kde-l10n-tr@kde.org>\n" "Language: tr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" "X-Generator: Lokalize 24.07.70\n" #: platformtheme/kdeplatformfiledialoghelper.cpp:260 #, kde-format msgctxt "@title:window" msgid "Open File" msgstr "Dosyayı Aç" #: platformtheme/kdeplatformfiledialoghelper.cpp:261 #, kde-format msgctxt "@title:window" msgid "Save File" msgstr "Dosyayı Kaydet" #: platformtheme/kdeplatformtheme.cpp:299 #, kde-format msgctxt "@action:button" msgid "Save All" msgstr "Tümünü Kaydet" #: platformtheme/kdeplatformtheme.cpp:303 #, kde-format msgctxt "@action:button" msgid "&Yes" msgstr "&Evet" #: platformtheme/kdeplatformtheme.cpp:305 #, kde-format msgctxt "@action:button" msgid "Yes to All" msgstr "Tümüne Evet" #: platformtheme/kdeplatformtheme.cpp:307 #, kde-format msgctxt "@action:button" msgid "&No" msgstr "&Hayır" #: platformtheme/kdeplatformtheme.cpp:309 #, kde-format msgctxt "@action:button" msgid "No to All" msgstr "Tümüne Hayır" #: platformtheme/kdeplatformtheme.cpp:312 #, kde-format msgctxt "@action:button" msgid "Abort" msgstr "İptal Et" #: platformtheme/kdeplatformtheme.cpp:314 #, kde-format msgctxt "@action:button" msgid "Retry" msgstr "Yeniden Dene" #: platformtheme/kdeplatformtheme.cpp:316 #, kde-format msgctxt "@action:button" msgid "Ignore" msgstr "Yok Say" #: platformtheme/kdirselectdialog.cpp:122 #, kde-format msgctxt "folder name" msgid "New Folder" msgstr "Yeni Klasör" #: platformtheme/kdirselectdialog.cpp:128 #, kde-format msgctxt "@title:window" msgid "New Folder" msgstr "Yeni Klasör" #: platformtheme/kdirselectdialog.cpp:129 #, kde-format msgctxt "@label:textbox" msgid "" "Create new folder in:\n" "%1" msgstr "" "Burada yeni klasör oluştur:\n" "%1" #: platformtheme/kdirselectdialog.cpp:160 #, kde-format msgid "A file or folder named %1 already exists." msgstr "%1 adlı bir klasör ya da dosya zaten var." #: platformtheme/kdirselectdialog.cpp:169 #, kde-format msgid "You do not have permission to create that folder." msgstr "Bu klasörü oluşturmaya izniniz yok." #: platformtheme/kdirselectdialog.cpp:271 #, kde-format msgctxt "@title:window" msgid "Select Folder" msgstr "Klasör Seç" #: platformtheme/kdirselectdialog.cpp:279 #, kde-format msgctxt "@action:button" msgid "New Folder..." msgstr "Yeni Klasör…" #: platformtheme/kdirselectdialog.cpp:336 #, kde-format msgctxt "@action:inmenu" msgid "New Folder..." msgstr "Yeni Klasör…" #: platformtheme/kdirselectdialog.cpp:345 #, kde-format msgctxt "@action:inmenu" msgid "Move to Trash" msgstr "Çöp Kutusuna Taşı" #: platformtheme/kdirselectdialog.cpp:354 #, kde-format msgctxt "@action:inmenu" msgid "Delete" msgstr "Sil" #: platformtheme/kdirselectdialog.cpp:365 #, kde-format msgctxt "@option:check" msgid "Show Hidden Folders" msgstr "Gizli Klasörleri Göster" #: platformtheme/kdirselectdialog.cpp:372 #, kde-format msgctxt "@action:inmenu" msgid "Properties" msgstr "Özellikler" #: platformtheme/kfiletreeview.cpp:185 #, kde-format msgid "Show Hidden Folders" msgstr "Gizli Klasörleri Göster" #: platformtheme/kioopenwith.cpp:147 #, kde-format msgid "" "Failed to launch for unknown reasons. Please try with a pre-existing " "application." msgstr "" "Bilinmeyen nedenlerden dolayı başlatılamadı. Lütfen var olan bir uygulamayla " "deneyin." 0707010000007B000041ED0000000000000000000000026728A27700000000000000000000000000000000000000000000003C00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/uk0707010000007C000081A40000000000000000000000016728A277000011B8000000000000000000000000000000000000005200000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/uk/plasmaintegration5.po# Translation of plasmaintegration5.po to Ukrainian # Copyright (C) 2018 This_file_is_part_of_KDE # This file is distributed under the license LGPL version 2.1 or # version 3 or later versions approved by the membership of KDE e.V. # # Yuri Chornoivan <yurchor@ukr.net>, 2016, 2022, 2024. msgid "" msgstr "" "Project-Id-Version: plasmaintegration5\n" "Report-Msgid-Bugs-To: https://bugs.kde.org\n" "POT-Creation-Date: 2024-09-17 00:40+0000\n" "PO-Revision-Date: 2024-06-26 20:32+0300\n" "Last-Translator: Yuri Chornoivan <yurchor@ukr.net>\n" "Language-Team: Ukrainian\n" "Language: uk\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=4; plural=n==1 ? 3 : n%10==1 && n%100!=11 ? 0 : n" "%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" "X-Generator: Lokalize 23.04.3\n" #: platformtheme/kdeplatformfiledialoghelper.cpp:260 #, kde-format msgctxt "@title:window" msgid "Open File" msgstr "Відкриття файла" #: platformtheme/kdeplatformfiledialoghelper.cpp:261 #, kde-format msgctxt "@title:window" msgid "Save File" msgstr "Збереження файла" #: platformtheme/kdeplatformtheme.cpp:299 #, kde-format msgctxt "@action:button" msgid "Save All" msgstr "Зберегти всі" #: platformtheme/kdeplatformtheme.cpp:303 #, kde-format msgctxt "@action:button" msgid "&Yes" msgstr "&Так" #: platformtheme/kdeplatformtheme.cpp:305 #, kde-format msgctxt "@action:button" msgid "Yes to All" msgstr "Так для всіх" #: platformtheme/kdeplatformtheme.cpp:307 #, kde-format msgctxt "@action:button" msgid "&No" msgstr "&Ні" #: platformtheme/kdeplatformtheme.cpp:309 #, kde-format msgctxt "@action:button" msgid "No to All" msgstr "Ні для всіх" #: platformtheme/kdeplatformtheme.cpp:312 #, kde-format msgctxt "@action:button" msgid "Abort" msgstr "Перервати" #: platformtheme/kdeplatformtheme.cpp:314 #, kde-format msgctxt "@action:button" msgid "Retry" msgstr "Повторити" #: platformtheme/kdeplatformtheme.cpp:316 #, kde-format msgctxt "@action:button" msgid "Ignore" msgstr "Ігнорувати" #: platformtheme/kdirselectdialog.cpp:122 #, kde-format msgctxt "folder name" msgid "New Folder" msgstr "Нова тека" #: platformtheme/kdirselectdialog.cpp:128 #, kde-format msgctxt "@title:window" msgid "New Folder" msgstr "Створення теки" #: platformtheme/kdirselectdialog.cpp:129 #, kde-format msgctxt "@label:textbox" msgid "" "Create new folder in:\n" "%1" msgstr "" "Створити нову теку у:\n" "%1" #: platformtheme/kdirselectdialog.cpp:160 #, kde-format msgid "A file or folder named %1 already exists." msgstr "Файл або тека з назвою %1 вже існує." #: platformtheme/kdirselectdialog.cpp:169 #, kde-format msgid "You do not have permission to create that folder." msgstr "У вас немає прав для створення теки." #: platformtheme/kdirselectdialog.cpp:271 #, kde-format msgctxt "@title:window" msgid "Select Folder" msgstr "Вибір теки" #: platformtheme/kdirselectdialog.cpp:279 #, kde-format msgctxt "@action:button" msgid "New Folder..." msgstr "Створити теку…" #: platformtheme/kdirselectdialog.cpp:336 #, kde-format msgctxt "@action:inmenu" msgid "New Folder..." msgstr "Створити теку…" #: platformtheme/kdirselectdialog.cpp:345 #, kde-format msgctxt "@action:inmenu" msgid "Move to Trash" msgstr "Пересунути до смітника" #: platformtheme/kdirselectdialog.cpp:354 #, kde-format msgctxt "@action:inmenu" msgid "Delete" msgstr "Вилучити" #: platformtheme/kdirselectdialog.cpp:365 #, kde-format msgctxt "@option:check" msgid "Show Hidden Folders" msgstr "Показувати приховані теки" #: platformtheme/kdirselectdialog.cpp:372 #, kde-format msgctxt "@action:inmenu" msgid "Properties" msgstr "Властивості" #: platformtheme/kfiletreeview.cpp:185 #, kde-format msgid "Show Hidden Folders" msgstr "Показати приховані теки" #: platformtheme/kioopenwith.cpp:147 #, kde-format msgid "" "Failed to launch for unknown reasons. Please try with a pre-existing " "application." msgstr "" "Не вдалося запустити з невідомих причин. Будь ласка, спробуйте із раніше " "наявною програмою." #~ msgid "Opening..." #~ msgstr "Відкриття…" #~ msgid "Saving..." #~ msgstr "Збереження…" 0707010000007D000041ED0000000000000000000000026728A27700000000000000000000000000000000000000000000003C00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/vi0707010000007E000081A40000000000000000000000016728A27700000F1F000000000000000000000000000000000000005200000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/vi/plasmaintegration5.po# Copyright (C) YEAR This file is copyright: # This file is distributed under the same license as the plasma-integration package. # # Phu Hung Nguyen <phu.nguyen@kdemail.net>, 2021, 2022. msgid "" msgstr "" "Project-Id-Version: plasma-integration\n" "Report-Msgid-Bugs-To: https://bugs.kde.org\n" "POT-Creation-Date: 2024-09-17 00:40+0000\n" "PO-Revision-Date: 2022-11-14 15:03+0100\n" "Last-Translator: Phu Hung Nguyen <phu.nguyen@kdemail.net>\n" "Language-Team: Vietnamese <kde-l10n-vi@kde.org>\n" "Language: vi\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Lokalize 22.08.1\n" #: platformtheme/kdeplatformfiledialoghelper.cpp:260 #, kde-format msgctxt "@title:window" msgid "Open File" msgstr "Mở tệp" #: platformtheme/kdeplatformfiledialoghelper.cpp:261 #, kde-format msgctxt "@title:window" msgid "Save File" msgstr "Lưu tệp" #: platformtheme/kdeplatformtheme.cpp:299 #, kde-format msgctxt "@action:button" msgid "Save All" msgstr "Lưu tất cả" #: platformtheme/kdeplatformtheme.cpp:303 #, kde-format msgctxt "@action:button" msgid "&Yes" msgstr "&Có" #: platformtheme/kdeplatformtheme.cpp:305 #, kde-format msgctxt "@action:button" msgid "Yes to All" msgstr "Có cho tất cả" #: platformtheme/kdeplatformtheme.cpp:307 #, kde-format msgctxt "@action:button" msgid "&No" msgstr "&Không" #: platformtheme/kdeplatformtheme.cpp:309 #, kde-format msgctxt "@action:button" msgid "No to All" msgstr "Không cho tất cả" #: platformtheme/kdeplatformtheme.cpp:312 #, kde-format msgctxt "@action:button" msgid "Abort" msgstr "Huỷ bỏ" #: platformtheme/kdeplatformtheme.cpp:314 #, kde-format msgctxt "@action:button" msgid "Retry" msgstr "Thử lại" #: platformtheme/kdeplatformtheme.cpp:316 #, kde-format msgctxt "@action:button" msgid "Ignore" msgstr "Bỏ qua" #: platformtheme/kdirselectdialog.cpp:122 #, kde-format msgctxt "folder name" msgid "New Folder" msgstr "Thư mục mới" #: platformtheme/kdirselectdialog.cpp:128 #, kde-format msgctxt "@title:window" msgid "New Folder" msgstr "Thư mục mới" #: platformtheme/kdirselectdialog.cpp:129 #, kde-format msgctxt "@label:textbox" msgid "" "Create new folder in:\n" "%1" msgstr "" "Tạo thư mục mới trong:\n" "%1" #: platformtheme/kdirselectdialog.cpp:160 #, kde-format msgid "A file or folder named %1 already exists." msgstr "Một tệp hay thư mục tên là %1 đã tồn tại." #: platformtheme/kdirselectdialog.cpp:169 #, kde-format msgid "You do not have permission to create that folder." msgstr "Bạn không có quyền truy cập để tạo thư mục đó." #: platformtheme/kdirselectdialog.cpp:271 #, kde-format msgctxt "@title:window" msgid "Select Folder" msgstr "Chọn thư mục" #: platformtheme/kdirselectdialog.cpp:279 #, kde-format msgctxt "@action:button" msgid "New Folder..." msgstr "Thư mục mới..." #: platformtheme/kdirselectdialog.cpp:336 #, kde-format msgctxt "@action:inmenu" msgid "New Folder..." msgstr "Thư mục mới..." #: platformtheme/kdirselectdialog.cpp:345 #, kde-format msgctxt "@action:inmenu" msgid "Move to Trash" msgstr "Chuyển vào thùng rác" #: platformtheme/kdirselectdialog.cpp:354 #, kde-format msgctxt "@action:inmenu" msgid "Delete" msgstr "Xoá" #: platformtheme/kdirselectdialog.cpp:365 #, kde-format msgctxt "@option:check" msgid "Show Hidden Folders" msgstr "Hiện thư mục ẩn" #: platformtheme/kdirselectdialog.cpp:372 #, kde-format msgctxt "@action:inmenu" msgid "Properties" msgstr "Thuộc tính" #: platformtheme/kfiletreeview.cpp:185 #, kde-format msgid "Show Hidden Folders" msgstr "Hiện thư mục ẩn" #: platformtheme/kioopenwith.cpp:147 #, kde-format msgid "" "Failed to launch for unknown reasons. Please try with a pre-existing " "application." msgstr "" 0707010000007F000041ED0000000000000000000000026728A27700000000000000000000000000000000000000000000003F00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/zh_CN07070100000080000081A40000000000000000000000016728A27700000EC5000000000000000000000000000000000000005500000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/zh_CN/plasmaintegration5.pomsgid "" msgstr "" "Project-Id-Version: kdeorg\n" "Report-Msgid-Bugs-To: https://bugs.kde.org\n" "POT-Creation-Date: 2024-09-17 00:40+0000\n" "PO-Revision-Date: 2024-04-22 15:58\n" "Last-Translator: \n" "Language-Team: Chinese Simplified\n" "Language: zh_CN\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Crowdin-Project: kdeorg\n" "X-Crowdin-Project-ID: 269464\n" "X-Crowdin-Language: zh-CN\n" "X-Crowdin-File: /kf6-trunk/messages/plasma-integration/plasmaintegration5." "pot\n" "X-Crowdin-File-ID: 43187\n" #: platformtheme/kdeplatformfiledialoghelper.cpp:260 #, kde-format msgctxt "@title:window" msgid "Open File" msgstr "打开文件" #: platformtheme/kdeplatformfiledialoghelper.cpp:261 #, kde-format msgctxt "@title:window" msgid "Save File" msgstr "保存文件" #: platformtheme/kdeplatformtheme.cpp:299 #, kde-format msgctxt "@action:button" msgid "Save All" msgstr "全部保存" #: platformtheme/kdeplatformtheme.cpp:303 #, kde-format msgctxt "@action:button" msgid "&Yes" msgstr "是(&Y)" #: platformtheme/kdeplatformtheme.cpp:305 #, kde-format msgctxt "@action:button" msgid "Yes to All" msgstr "全部选是" #: platformtheme/kdeplatformtheme.cpp:307 #, kde-format msgctxt "@action:button" msgid "&No" msgstr "否(&N)" #: platformtheme/kdeplatformtheme.cpp:309 #, kde-format msgctxt "@action:button" msgid "No to All" msgstr "全部选否" #: platformtheme/kdeplatformtheme.cpp:312 #, kde-format msgctxt "@action:button" msgid "Abort" msgstr "中止" #: platformtheme/kdeplatformtheme.cpp:314 #, kde-format msgctxt "@action:button" msgid "Retry" msgstr "重试" #: platformtheme/kdeplatformtheme.cpp:316 #, kde-format msgctxt "@action:button" msgid "Ignore" msgstr "忽略" #: platformtheme/kdirselectdialog.cpp:122 #, kde-format msgctxt "folder name" msgid "New Folder" msgstr "新建文件夹" #: platformtheme/kdirselectdialog.cpp:128 #, kde-format msgctxt "@title:window" msgid "New Folder" msgstr "新建文件夹" #: platformtheme/kdirselectdialog.cpp:129 #, kde-format msgctxt "@label:textbox" msgid "" "Create new folder in:\n" "%1" msgstr "" "创建新文件夹于:\n" "\n" "%1" #: platformtheme/kdirselectdialog.cpp:160 #, kde-format msgid "A file or folder named %1 already exists." msgstr "名为“%1”的文件或文件夹已存在。" #: platformtheme/kdirselectdialog.cpp:169 #, kde-format msgid "You do not have permission to create that folder." msgstr "您没有创建该文件夹的权限。" #: platformtheme/kdirselectdialog.cpp:271 #, kde-format msgctxt "@title:window" msgid "Select Folder" msgstr "选择文件夹" #: platformtheme/kdirselectdialog.cpp:279 #, kde-format msgctxt "@action:button" msgid "New Folder..." msgstr "新建文件夹..." #: platformtheme/kdirselectdialog.cpp:336 #, kde-format msgctxt "@action:inmenu" msgid "New Folder..." msgstr "新建文件夹..." #: platformtheme/kdirselectdialog.cpp:345 #, kde-format msgctxt "@action:inmenu" msgid "Move to Trash" msgstr "移动到回收站" #: platformtheme/kdirselectdialog.cpp:354 #, kde-format msgctxt "@action:inmenu" msgid "Delete" msgstr "删除" #: platformtheme/kdirselectdialog.cpp:365 #, kde-format msgctxt "@option:check" msgid "Show Hidden Folders" msgstr "显示隐藏文件夹" #: platformtheme/kdirselectdialog.cpp:372 #, kde-format msgctxt "@action:inmenu" msgid "Properties" msgstr "属性" #: platformtheme/kfiletreeview.cpp:185 #, kde-format msgid "Show Hidden Folders" msgstr "显示隐藏文件夹" #: platformtheme/kioopenwith.cpp:147 #, kde-format msgid "" "Failed to launch for unknown reasons. Please try with a pre-existing " "application." msgstr "启动失败,原因未知。请尝试使用已有的应用程序。" 07070100000081000041ED0000000000000000000000026728A27700000000000000000000000000000000000000000000003F00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/zh_TW07070100000082000081A40000000000000000000000016728A27700000F5A000000000000000000000000000000000000005500000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/po/zh_TW/plasmaintegration5.po# Copyright (C) YEAR This_file_is_part_of_KDE # This file is distributed under the same license as the PACKAGE package. # # Jeff Huang <s8321414@gmail.com>, 2016. # SPDX-FileCopyrightText: 2023, 2024 Kisaragi Hiu <mail@kisaragi-hiu.com> msgid "" msgstr "" "Project-Id-Version: plasmaintegration5\n" "Report-Msgid-Bugs-To: https://bugs.kde.org\n" "POT-Creation-Date: 2024-09-17 00:40+0000\n" "PO-Revision-Date: 2024-06-30 11:24+0900\n" "Last-Translator: Kisaragi Hiu <mail@kisaragi-hiu.com>\n" "Language-Team: Traditional Chinese <zh-l10n@lists.slat.org>\n" "Language: Traditional Chinese\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Lokalize 24.04.70\n" "Plural-Forms: nplurals=1; plural=0;\n" #: platformtheme/kdeplatformfiledialoghelper.cpp:260 #, kde-format msgctxt "@title:window" msgid "Open File" msgstr "開啟檔案" #: platformtheme/kdeplatformfiledialoghelper.cpp:261 #, kde-format msgctxt "@title:window" msgid "Save File" msgstr "儲存檔案" #: platformtheme/kdeplatformtheme.cpp:299 #, kde-format msgctxt "@action:button" msgid "Save All" msgstr "全部儲存" #: platformtheme/kdeplatformtheme.cpp:303 #, kde-format msgctxt "@action:button" msgid "&Yes" msgstr "是(&Y)" #: platformtheme/kdeplatformtheme.cpp:305 #, kde-format msgctxt "@action:button" msgid "Yes to All" msgstr "全部答是" #: platformtheme/kdeplatformtheme.cpp:307 #, kde-format msgctxt "@action:button" msgid "&No" msgstr "否(&N)" #: platformtheme/kdeplatformtheme.cpp:309 #, kde-format msgctxt "@action:button" msgid "No to All" msgstr "全部答否" #: platformtheme/kdeplatformtheme.cpp:312 #, kde-format msgctxt "@action:button" msgid "Abort" msgstr "中止" #: platformtheme/kdeplatformtheme.cpp:314 #, kde-format msgctxt "@action:button" msgid "Retry" msgstr "重試" #: platformtheme/kdeplatformtheme.cpp:316 #, kde-format msgctxt "@action:button" msgid "Ignore" msgstr "忽略" #: platformtheme/kdirselectdialog.cpp:122 #, kde-format msgctxt "folder name" msgid "New Folder" msgstr "新資料夾" #: platformtheme/kdirselectdialog.cpp:128 #, kde-format msgctxt "@title:window" msgid "New Folder" msgstr "新資料夾" #: platformtheme/kdirselectdialog.cpp:129 #, kde-format msgctxt "@label:textbox" msgid "" "Create new folder in:\n" "%1" msgstr "" "建立新資料夾於:\n" "%1" #: platformtheme/kdirselectdialog.cpp:160 #, kde-format msgid "A file or folder named %1 already exists." msgstr "名為 %1 的檔案或資料夾已經存在。" #: platformtheme/kdirselectdialog.cpp:169 #, kde-format msgid "You do not have permission to create that folder." msgstr "您沒有權限建立該資料夾。" #: platformtheme/kdirselectdialog.cpp:271 #, kde-format msgctxt "@title:window" msgid "Select Folder" msgstr "選擇資料夾" #: platformtheme/kdirselectdialog.cpp:279 #, kde-format msgctxt "@action:button" msgid "New Folder..." msgstr "新增資料夾..." #: platformtheme/kdirselectdialog.cpp:336 #, kde-format msgctxt "@action:inmenu" msgid "New Folder..." msgstr "新增資料夾..." #: platformtheme/kdirselectdialog.cpp:345 #, kde-format msgctxt "@action:inmenu" msgid "Move to Trash" msgstr "移到垃圾桶" #: platformtheme/kdirselectdialog.cpp:354 #, kde-format msgctxt "@action:inmenu" msgid "Delete" msgstr "刪除" #: platformtheme/kdirselectdialog.cpp:365 #, kde-format msgctxt "@option:check" msgid "Show Hidden Folders" msgstr "顯示隱藏的資料夾" #: platformtheme/kdirselectdialog.cpp:372 #, kde-format msgctxt "@action:inmenu" msgid "Properties" msgstr "屬性" #: platformtheme/kfiletreeview.cpp:185 #, kde-format msgid "Show Hidden Folders" msgstr "顯示隱藏的資料夾" #: platformtheme/kioopenwith.cpp:147 #, kde-format msgid "" "Failed to launch for unknown reasons. Please try with a pre-existing " "application." msgstr "因為不明原因而啟動失敗。請以現存的應用程式嘗試。" 07070100000083000041ED0000000000000000000000056728A27700000000000000000000000000000000000000000000003A00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt507070100000084000081A40000000000000000000000016728A277000003F5000000000000000000000000000000000000004900000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt5/CMakeLists.txtset(QT_MAJOR_VERSION 5) include(KDEInstallDirs5) include(KDECMakeSettings) find_package(Qt5 ${QT5_MIN_VERSION} CONFIG REQUIRED Widgets DBus QuickControls2 WaylandClient) find_package(Qt5Gui ${QT5_MIN_VERSION} CONFIG REQUIRED Private) find_package(Qt5 ${QT5_MIN_VERSION} CONFIG REQUIRED X11Extras) # https://bugreports.qt.io/browse/QTBUG-114706 add_library(Qt::Core ALIAS Qt5::Core) add_library(Qt::Network ALIAS Qt5::Network) add_library(Qt::Gui ALIAS Qt5::Gui) find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS Config ConfigWidgets I18n IconThemes KIO Notifications WindowSystem Wayland GuiAddons XmlGui ) find_package(QtWaylandScanner ${QT5_MIN_VERSION} REQUIRED) # dependencies for QPA plugin find_package(Qt5ThemeSupport REQUIRED) set(QT5PLATFORMSUPPORT_LIBS Qt5ThemeSupport::Qt5ThemeSupport) ecm_set_disabled_deprecation_versions(QT 5.15.2 KF 5.101 ) add_subdirectory(src) if(BUILD_TESTING) add_subdirectory(autotests) add_subdirectory(tests) endif() 07070100000085000041ED0000000000000000000000036728A27700000000000000000000000000000000000000000000004400000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt5/autotests07070100000086000081A40000000000000000000000016728A277000010FC000000000000000000000000000000000000005300000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt5/autotests/CMakeLists.txtinclude(ECMMarkAsTest) include(ECMMarkNonGuiExecutable) find_package(Qt5Test ${QT5_MIN_VERSION} CONFIG QUIET) find_package(Qt5Qml ${QT5_MIN_VERSION} CONFIG QUIET) if(NOT Qt5Test_FOUND) message(STATUS "Qt5Test not found, autotests will not be built.") return() endif() if(NOT Qt5Qml_FOUND) message(STATUS "Qt5Qml not found, QML autotests will not be built.") endif() set(CONFIGFILE "${CMAKE_CURRENT_SOURCE_DIR}/kdeplatformtheme_kdeglobals") set(CHANGED_CONFIGFILE "${CMAKE_CURRENT_SOURCE_DIR}/kdeplatformtheme_changed_kdeglobals") configure_file(kdeplatformtheme_config.h.in ${CMAKE_CURRENT_BINARY_DIR}/kdeplatformtheme_config.h) remove_definitions(-DQT_NO_CAST_FROM_ASCII) # qdbusmenubar uses them remove_definitions(-DQT_NO_SIGNALS_SLOTS_KEYWORDS) macro(FRAMEWORKINTEGRATION_TESTS _testname) add_executable(${_testname}5 ${_testname}.cpp ${ARGN}) set_target_properties(${_testname}5 PROPERTIES COMPILE_FLAGS "-DUNIT_TEST") add_test(NAME frameworkintegration-${_testname}5 COMMAND ${_testname}5) ecm_mark_as_test(${_testname}5) ecm_mark_nongui_executable(${_testname}5) target_include_directories(${_testname}5 PRIVATE ${CMAKE_BINARY_DIR}/qt5/src/platformtheme) target_link_libraries(${_testname}5 Qt5::GuiPrivate Qt5::Test Qt5::DBus Qt5::QuickControls2 ${QT5PLATFORMSUPPORT_LIBS} KF5::ConfigWidgets KF5::ConfigCore KF5::IconThemes KF5::KIOFileWidgets KF5::I18n KF5::Notifications KF5::WindowSystem KF5::GuiAddons Qt5::WaylandClient XCB::XCB Wayland::Client KF5::WaylandClient KF5::XmlGui Qt5::X11Extras ) endmacro() set(dbus_interface) qt5_add_dbus_interface(dbus_interface ../src/platformtheme/org.kde.StatusNotifierWatcher.xml statusnotifierwatcher_interface) frameworkintegration_tests( kdeplatformtheme_unittest ) set(wayland_interfaces) ecm_add_qtwayland_client_protocol(wayland_interfaces PROTOCOL ${PLASMA_WAYLAND_PROTOCOLS_DIR}/appmenu.xml BASENAME appmenu ) ecm_add_qtwayland_client_protocol(wayland_interfaces PROTOCOL ${PLASMA_WAYLAND_PROTOCOLS_DIR}/server-decoration-palette.xml BASENAME server-decoration-palette ) target_sources(kdeplatformtheme_unittest5 PRIVATE ../src/platformtheme/kdeplatformtheme.cpp ../src/platformtheme/kdeplatformtheme.h ../src/platformtheme/kfontsettingsdata.cpp ../src/platformtheme/kfontsettingsdata.h ../src/platformtheme/khintssettings.cpp ../src/platformtheme/khintssettings.h ../src/platformtheme/kdeplatformfiledialoghelper.cpp ../src/platformtheme/kdeplatformfiledialoghelper.h ../src/platformtheme/kdeplatformfiledialogbase.cpp ../src/platformtheme/kdeplatformsystemtrayicon.cpp ../src/platformtheme/kdeplatformsystemtrayicon.h ../src/platformtheme/kdirselectdialog.cpp ../src/platformtheme/kfiletreeview.cpp ../src/platformtheme/kwaylandintegration.cpp ../src/platformtheme/kwaylandintegration.h ../src/platformtheme/x11integration.cpp ../src/platformtheme/x11integration.h ../src/platformtheme/qxdgdesktopportalfiledialog.cpp ${dbus_interface} ${wayland_interfaces} ) target_sources(kdeplatformtheme_unittest5 PRIVATE ../src/platformtheme/qdbusmenubar.cpp # fork of Qt's qdbusmenubar with some added setters for our convenience ) frameworkintegration_tests( kfontsettingsdata_unittest ../src/platformtheme/kfontsettingsdata.cpp ../src/platformtheme/kfontsettingsdata.h ) frameworkintegration_tests( kfiledialog_unittest ) frameworkintegration_tests( ksni_unittest ) frameworkintegration_tests( kdeplatformsystemtrayicon_unittest ../src/platformtheme/kdeplatformsystemtrayicon.cpp ../src/platformtheme/kdeplatformsystemtrayicon.h ${dbus_interface} ) frameworkintegration_tests( kdirselectdialog_unittest ../src/platformtheme/kdeplatformfiledialogbase.cpp ../src/platformtheme/kdirselectdialog.cpp ../src/platformtheme/kfiletreeview.cpp ) frameworkintegration_tests( khintssettings_unittest ../src/platformtheme/khintssettings.cpp ../src/platformtheme/khintssettings.h ) if(Qt5Qml_FOUND) add_test(NAME qmltests5 COMMAND qmltestrunner WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}) frameworkintegration_tests(kfiledialogqml_unittest) target_link_libraries(kfiledialogqml_unittest5 Qt5::Qml) endif() 07070100000087000081A40000000000000000000000016728A27700000C09000000000000000000000000000000000000006B00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt5/autotests/kdeplatformsystemtrayicon_unittest.cpp/* This file is part of the KDE libraries SPDX-FileCopyrightText: 2019 Konrad Materka <materka@gmail.com> SPDX-License-Identifier: LGPL-2.0-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ #include <QMenu> #include <QSignalSpy> #include <QTest> #include "../src/platformtheme/kdeplatformsystemtrayicon.h" class KDEPlatformSystemTrayIcon_UnitTest : public QObject { Q_OBJECT private Q_SLOTS: // test for BUG 365105 void testMenuRecreate(); void testAddActionAfterMenuRecreate(); }; void KDEPlatformSystemTrayIcon_UnitTest::testMenuRecreate() { QMenu *trayIconMenu = new QMenu(); trayIconMenu->addAction(QStringLiteral("testAction")); KDEPlatformSystemTrayIcon *kpsti = new KDEPlatformSystemTrayIcon(); // simulates first QSystemTrayIcon::show() kpsti->init(); SystemTrayMenu *ourMenu = qobject_cast<SystemTrayMenu *>(kpsti->createMenu()); trayIconMenu->setPlatformMenu(ourMenu); kpsti->updateMenu(trayIconMenu->platformMenu()); QMenu *firstMenu = ourMenu->menu(); QSignalSpy menuDestroyedSpy(firstMenu, &QObject::destroyed); QCOMPARE(firstMenu->actions().size(), 1); QCOMPARE(firstMenu->actions().first()->text(), "testAction"); // simulates QSystemTrayIcon::hide() kpsti->cleanup(); // simulates second QSystemTrayIcon::show() kpsti->init(); kpsti->updateMenu(trayIconMenu->platformMenu()); QMenu *recreatedMenu = ourMenu->menu(); QVERIFY(firstMenu != recreatedMenu); QCOMPARE(recreatedMenu->actions().size(), 1); QCOMPARE(recreatedMenu->actions().first()->text(), "testAction"); QCOMPARE(menuDestroyedSpy.count(), 1); } void KDEPlatformSystemTrayIcon_UnitTest::testAddActionAfterMenuRecreate() { QMenu *trayIconMenu = new QMenu(); trayIconMenu->addAction(QStringLiteral("testAction1")); KDEPlatformSystemTrayIcon *kpsti = new KDEPlatformSystemTrayIcon(); // simulates first QSystemTrayIcon::show() kpsti->init(); SystemTrayMenu *ourMenu = qobject_cast<SystemTrayMenu *>(kpsti->createMenu()); trayIconMenu->setPlatformMenu(ourMenu); kpsti->updateMenu(trayIconMenu->platformMenu()); QMenu *firstMenu = ourMenu->menu(); QSignalSpy menuDestroyedSpy(firstMenu, &QObject::destroyed); QCOMPARE(firstMenu->actions().size(), 1); QCOMPARE(firstMenu->actions().first()->text(), "testAction1"); // simulates QSystemTrayIcon::hide() kpsti->cleanup(); // add action, internal menu is destroyed trayIconMenu->addAction(QStringLiteral("testAction2")); // simulates second QSystemTrayIcon::show() kpsti->init(); kpsti->updateMenu(trayIconMenu->platformMenu()); QMenu *recreatedMenu = ourMenu->menu(); QVERIFY(firstMenu != recreatedMenu); QCOMPARE(recreatedMenu->actions().size(), 2); QCOMPARE(recreatedMenu->actions().first()->text(), "testAction1"); QCOMPARE(recreatedMenu->actions().last()->text(), "testAction2"); QCOMPARE(menuDestroyedSpy.count(), 1); } QTEST_MAIN(KDEPlatformSystemTrayIcon_UnitTest) #include "kdeplatformsystemtrayicon_unittest.moc" 07070100000088000081A40000000000000000000000016728A27700000AB4000000000000000000000000000000000000006800000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt5/autotests/kdeplatformtheme_changed_kdeglobals[KDE] CursorBlinkRate=1022 DoubleClickInterval=401 StartDragDist=35 StartDragTime=501 SingleClick=true widgetStyle=another-non-existent-widget-style ShowIconsInMenuItems=false ShowIconsOnPushButtons=true GraphicEffectsLevel=1 WheelScrollLines=122 ShowIconsInMenuItems=false [Toolbar style] ToolButtonStyle=textundericon [Icons] Theme=other-non-existent [MainToolbarIcons] Size=11 [ColorEffects:Active] ChangeSelectionColor=false Enable=false [ColorEffects:Inactive] ChangeSelectionColor=false Enable=false [ColorEffects:Disabled] ChangeSelectionColor=false Enable=false [Colors:Button] BackgroundAlternate=174,11,11 BackgroundNormal=174,11,11 DecorationFocus=174,11,11 DecorationHover=174,11,11 ForegroundActive=174,11,11 ForegroundInactive=174,11,11 ForegroundLink=174,11,11 ForegroundNegative=174,11,11 ForegroundNeutral=174,11,11 ForegroundNormal=174,11,11 ForegroundPositive=174,11,11 ForegroundVisited=174,11,11 [Colors:Selection] BackgroundAlternate=174,11,11 BackgroundNormal=174,11,11 DecorationFocus=174,11,11 DecorationHover=174,11,11 ForegroundActive=174,11,11 ForegroundInactive=174,11,11 ForegroundLink=174,11,11 ForegroundNegative=174,11,11 ForegroundNeutral=174,11,11 ForegroundNormal=174,11,11 ForegroundPositive=174,11,11 ForegroundVisited=174,11,11 [Colors:Tooltip] BackgroundAlternate=174,11,11 BackgroundNormal=174,11,11 DecorationFocus=174,11,11 DecorationHover=174,11,11 ForegroundActive=174,11,11 ForegroundInactive=174,11,11 ForegroundLink=174,11,11 ForegroundNegative=174,11,11 ForegroundNeutral=174,11,11 ForegroundNormal=174,11,11 ForegroundPositive=174,11,11 ForegroundVisited=174,11,11 [Colors:View] BackgroundAlternate=174,11,11 BackgroundNormal=174,11,11 DecorationFocus=174,11,11 DecorationHover=174,11,11 ForegroundActive=174,11,11 ForegroundInactive=174,11,11 ForegroundLink=174,11,11 ForegroundNegative=174,11,11 ForegroundNeutral=174,11,11 ForegroundNormal=174,11,11 ForegroundPositive=174,11,11 ForegroundVisited=174,11,11 [Colors:Window] BackgroundAlternate=174,11,11 BackgroundNormal=174,11,11 DecorationFocus=174,11,11 DecorationHover=174,11,11 ForegroundActive=174,11,11 ForegroundInactive=174,11,11 ForegroundLink=174,11,11 ForegroundNegative=174,11,11 ForegroundNeutral=174,11,11 ForegroundNormal=174,11,11 ForegroundPositive=174,11,11 ForegroundVisited=174,11,11 [WM] activeFont=ChangedActiveTest,9,-1,5,50,0,0,0,0,0 [General] desktopFont=ChangedDesktopTest,9,-1,5,50,0,0,0,0,0 fixed=ChangedFixedTest Mono,10,-1,5,50,0,0,0,0,0 font=ChangedFontTest,9,-1,5,50,0,0,0,0,0 menuFont=ChangedMenuTest,9,-1,5,50,0,0,0,0,0 smallestReadableFont=ChangedSmallestReadableTest,8,-1,5,50,0,0,0,0,0 taskbarFont=ChangedTaskbarTest,9,-1,5,50,0,0,0,0,0 toolBarFont=ChangedToolbarTest,8,-1,5,50,0,0,0,0,007070100000089000081A40000000000000000000000016728A27700000174000000000000000000000000000000000000006100000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt5/autotests/kdeplatformtheme_config.h.in/* This file is part of the KDE libraries SPDX-FileCopyrightText: 2013 Alejandro Fiestas Olivares <afiestas@kde.org> SPDX-License-Identifier: LGPL-2.0-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ #ifndef KPLATFORMTHEMETEST_H #define KPLATFORMTHEMETEST_H #define CONFIGFILE "${CONFIGFILE}" #define CHANGED_CONFIGFILE "${CHANGED_CONFIGFILE}" #endif 0707010000008A000081A40000000000000000000000016728A27700000A69000000000000000000000000000000000000006000000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt5/autotests/kdeplatformtheme_kdeglobals[KDE] CursorBlinkRate=1042 DoubleClickInterval=4343 StartDragDist=15 StartDragTime=555 SingleClick=false widgetStyle=non-existent-widget-style ShowIconsInMenuItems=false ShowIconsOnPushButtons=false GraphicEffectsLevel=0 WheelScrollLines=1234 ShowIconsInMenuItems=true [Toolbar style] ToolButtonStyle=textonly ToolButtonStyleOtherToolbars=textundericon [Icons] Theme=non-existent-icon-theme [MainToolbarIcons] Size=2 [ColorEffects:Active] ChangeSelectionColor=false Enable=false [ColorEffects:Inactive] ChangeSelectionColor=false Enable=false [ColorEffects:Disabled] ChangeSelectionColor=false Enable=false [Colors:Button] BackgroundAlternate=0,128,0 BackgroundNormal=0,128,0 DecorationFocus=0,128,0 DecorationHover=0,128,0 ForegroundActive=0,128,0 ForegroundInactive=0,128,0 ForegroundLink=0,128,0 ForegroundNegative=0,128,0 ForegroundNeutral=0,128,0 ForegroundNormal=0,128,0 ForegroundPositive=0,128,0 ForegroundVisited=0,128,0 [Colors:Selection] BackgroundAlternate=0,128,0 BackgroundNormal=0,128,0 DecorationFocus=0,128,0 DecorationHover=0,128,0 ForegroundActive=0,128,0 ForegroundInactive=0,128,0 ForegroundLink=0,128,0 ForegroundNegative=0,128,0 ForegroundNeutral=0,128,0 ForegroundNormal=0,128,0 ForegroundPositive=0,128,0 ForegroundVisited=0,128,0 [Colors:Tooltip] BackgroundAlternate=0,128,0 BackgroundNormal=0,128,0 DecorationFocus=0,128,0 DecorationHover=0,128,0 ForegroundActive=0,128,0 ForegroundInactive=0,128,0 ForegroundLink=0,128,0 ForegroundNegative=0,128,0 ForegroundNeutral=0,128,0 ForegroundNormal=0,128,0 ForegroundPositive=0,128,0 ForegroundVisited=0,128,0 [Colors:View] BackgroundAlternate=0,128,0 BackgroundNormal=0,128,0 DecorationFocus=0,128,0 DecorationHover=0,128,0 ForegroundActive=0,128,0 ForegroundInactive=0,128,0 ForegroundLink=0,128,0 ForegroundNegative=0,128,0 ForegroundNeutral=0,128,0 ForegroundNormal=0,128,0 ForegroundPositive=0,128,0 ForegroundVisited=0,128,0 [Colors:Window] BackgroundAlternate=0,128,0 BackgroundNormal=0,128,0 DecorationFocus=0,128,0 DecorationHover=0,128,0 ForegroundActive=0,128,0 ForegroundInactive=0,128,0 ForegroundLink=0,128,0 ForegroundNegative=0,128,0 ForegroundNeutral=0,128,0 ForegroundNormal=0,128,0 ForegroundPositive=0,128,0 ForegroundVisited=0,128,0 [WM] activeFont=OxyActiveTest,9,-1,5,400,0,0,0,0,0,0,0,0,0,0,1 [General] desktopFont=OxyDesktopTest,9,-1,5,50,0,0,0,0,0 fixed=OxyFixedTest Mono,10,-1,5,800,0,0,0,0,0,0,0,0,0,0,1 font=OxyFontTest,9,-1,5,500,0,0,0,0,0,0,0,0,0,0,1 menuFont=OxyMenuTest,9,-1,5,50,0,0,0,0,0 smallestReadableFont=OxySmallestReadableTest,8,-1,5,50,0,0,0,0,0 taskbarFont=OxyTaskbarTest,9,-1,5,50,0,0,0,0,0 toolBarFont=OxyToolbarTest,8,-1,5,50,0,0,0,0,0 0707010000008B000081A40000000000000000000000016728A277000036AE000000000000000000000000000000000000006200000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt5/autotests/kdeplatformtheme_unittest.cpp/* This file is part of the KDE libraries SPDX-FileCopyrightText: 2013 Alejandro Fiestas Olivares <afiestas@kde.org> SPDX-License-Identifier: LGPL-2.0-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ #include "../src/platformtheme/kdeplatformtheme.h" #include "../src/platformtheme/khintssettings.h" #include "kdeplatformtheme_config.h" #include <config-platformtheme.h> #undef HAVE_X11 #define HAVE_X11 0 #include <QApplication> #include <QDialogButtonBox> #include <QDir> #include <QDrag> #include <QFile> #include <QIconEngine> #include <QMimeData> #include <QPalette> #include <QStandardPaths> #include <QString> #include <QTest> #include <QToolButton> #include <Qt> #include <KWindowSystem> #include <QDBusConnection> #include <QDBusMessage> #include <QTimer> #include <KIconTheme> #include <KWindowInfo> #include <kiconloader.h> static void prepareEnvironment() { QStandardPaths::setTestModeEnabled(true); QString configPath = QStandardPaths::writableLocation(QStandardPaths::GenericConfigLocation); if (!QDir(configPath).mkpath(QStringLiteral("."))) { qFatal("Failed to create test configuration directory."); } configPath.append("/kdeglobals"); QFile::remove(configPath); if (!QFile::copy(CONFIGFILE, configPath)) { qFatal("Failed to copy kdeglobals required for tests."); } } Q_CONSTRUCTOR_FUNCTION(prepareEnvironment) class EventTest : public QObject { public: EventTest(QObject *tested, QEvent::Type type) : QObject() , gotEvent(false) , m_type(type) { tested->installEventFilter(this); } bool eventFilter(QObject *, QEvent *e) override { if (e->type() == m_type) { gotEvent = true; } return false; } bool gotEvent; QEvent::Type m_type; }; class KdePlatformTheme_UnitTest : public QObject { Q_OBJECT public: KdePlatformTheme_UnitTest() { } private: void sendNotifyChange(KHintsSettings::ChangeType type, int arg = -1) { QDBusMessage message = QDBusMessage::createSignal(QStringLiteral("/KGlobalSettings"), QStringLiteral("org.kde.KGlobalSettings"), QStringLiteral("notifyChange")); QList<QVariant> args; args.append(static_cast<int>(type)); if (arg >= 0) { args.append(arg); } message.setArguments(args); QDBusConnection::sessionBus().send(message); } QEventLoop m_loop; QToolButton m_toolBtn; KdePlatformTheme *m_qpa; private Q_SLOTS: void initTestCase() { m_qpa = new KdePlatformTheme(); QDBusConnection::sessionBus().connect(QString(), QStringLiteral("/KGlobalSettings"), QStringLiteral("org.kde.KGlobalSettings"), QStringLiteral("notifyChange"), &m_loop, SLOT(quit())); } void cleanupTestCase() { QString configPath = QStandardPaths::writableLocation(QStandardPaths::GenericConfigLocation); configPath.append("/kdeglobals"); QFile::remove(configPath); } void testPlatformHints() { QCOMPARE(qApp->cursorFlashTime(), 1042); QCOMPARE(qApp->doubleClickInterval(), 4343); QCOMPARE(qApp->startDragDistance(), 15); QCOMPARE(qApp->startDragTime(), 555); QCOMPARE(m_qpa->themeHint(QPlatformTheme::ToolButtonStyle).toInt(), (int)Qt::ToolButtonTextOnly); QCOMPARE(m_qpa->themeHint(QPlatformTheme::ToolBarIconSize).toInt(), 2); QCOMPARE(m_qpa->themeHint(QPlatformTheme::ItemViewActivateItemOnSingleClick).toBool(), false); QCOMPARE(m_qpa->themeHint(QPlatformTheme::SystemIconThemeName).toString(), QLatin1String("non-existent-icon-theme")); QCOMPARE(m_qpa->themeHint(QPlatformTheme::SystemIconFallbackThemeName).toString(), QLatin1String("hicolor")); QStringList iconThemeSearchPaths = m_qpa->themeHint(QPlatformTheme::IconThemeSearchPaths).toStringList(); foreach (const QString &iconPath, iconThemeSearchPaths) { QVERIFY(iconPath.endsWith(QLatin1String("/icons")) || iconPath.endsWith(QLatin1String("/.icons"))); QVERIFY(QFile::exists(iconPath)); } // there must be *some* icons in XDG_DATA_DIRS, right? QVERIFY(!iconThemeSearchPaths.isEmpty()); QStringList styles; styles << QStringLiteral("non-existent-widget-style") << QStringLiteral("breeze") << QStringLiteral("oxygen") << QStringLiteral("fusion") << QStringLiteral("windows"); QCOMPARE(m_qpa->themeHint(QPlatformTheme::StyleNames).toStringList(), styles); QCOMPARE(m_qpa->themeHint(QPlatformTheme::DialogButtonBoxLayout).toInt(), (int)QDialogButtonBox::KdeLayout); QCOMPARE(m_qpa->themeHint(QPlatformTheme::DialogButtonBoxButtonsHaveIcons).toBool(), false); QCOMPARE(m_qpa->themeHint(QPlatformTheme::UseFullScreenForPopupMenu).toBool(), true); QCOMPARE(m_qpa->themeHint(QPlatformTheme::KeyboardScheme).toInt(), (int)QPlatformTheme::KdeKeyboardScheme); QCOMPARE(m_qpa->themeHint(QPlatformTheme::UiEffects).toInt(), 0); QCOMPARE(m_qpa->themeHint(QPlatformTheme::IconPixmapSizes).value<QList<int>>(), QList<int>() << 512 << 256 << 128 << 64 << 32 << 22 << 16 << 8); QCOMPARE(qApp->wheelScrollLines(), 1234); QCOMPARE(qApp->testAttribute(Qt::AA_DontShowIconsInMenus), false); } void testPlatformPalette() { const QPalette palette = qApp->palette(); QPalette::ColorGroup states[3] = {QPalette::Active, QPalette::Inactive, QPalette::Disabled}; QColor greenColor(QColor(0, 128, 0)); QBrush greenBrush(greenColor); for (int i = 0; i < 3; i++) { QCOMPARE(palette.brush(states[i], QPalette::ButtonText), greenBrush); QCOMPARE(palette.brush(states[i], QPalette::WindowText), greenBrush); QCOMPARE(palette.brush(states[i], QPalette::Window), greenBrush); QCOMPARE(palette.brush(states[i], QPalette::Base), greenBrush); QCOMPARE(palette.brush(states[i], QPalette::Text), greenBrush); QCOMPARE(palette.brush(states[i], QPalette::Button), greenBrush); QCOMPARE(palette.brush(states[i], QPalette::ButtonText), greenBrush); QCOMPARE(palette.brush(states[i], QPalette::Highlight), greenBrush); QCOMPARE(palette.brush(states[i], QPalette::HighlightedText), greenBrush); QCOMPARE(palette.brush(states[i], QPalette::ToolTipBase), greenBrush); QCOMPARE(palette.brush(states[i], QPalette::ToolTipText), greenBrush); // KColorScheme applies modifications and we can't disable them, so I extracted // the values and blindly compare them. QCOMPARE(palette.color(states[i], QPalette::Light).green(), 162); QCOMPARE(palette.color(states[i], QPalette::Midlight).green(), 144); QCOMPARE(palette.color(states[i], QPalette::Mid).green(), 109); QCOMPARE(palette.color(states[i], QPalette::Dark).green(), 62); QCOMPARE(palette.color(states[i], QPalette::Shadow).green(), 43); QCOMPARE(palette.brush(states[i], QPalette::AlternateBase), greenBrush); QCOMPARE(palette.brush(states[i], QPalette::Link), greenBrush); QCOMPARE(palette.brush(states[i], QPalette::LinkVisited), greenBrush); } } void testPlatformIconEngine() { QIconEngine *engine = m_qpa->createIconEngine(QStringLiteral("test-icon")); QCOMPARE(engine->key(), QStringLiteral("KIconEngine")); } void testPlatformIconEngineTheme() { // The current theme should be what we defined. KdePlatformTheme().createIconEngine(QStringLiteral("test-icon")); QCOMPARE(KIconLoader::global()->theme()->current(), QStringLiteral("non-existent-icon-theme")); } void testPlatformIconChanges() { QString configPath = QStandardPaths::writableLocation(QStandardPaths::GenericConfigLocation); configPath.append("/kdeglobals"); QFile::remove(configPath); QFile::copy(CHANGED_CONFIGFILE, configPath); QDBusConnection::sessionBus() .connect(QString(), QStringLiteral("/KIconLoader"), QStringLiteral("org.kde.KIconLoader"), QStringLiteral("iconChanged"), &m_loop, SLOT(quit())); QDBusMessage message = QDBusMessage::createSignal(QStringLiteral("/KIconLoader"), QStringLiteral("org.kde.KIconLoader"), QStringLiteral("iconChanged")); message.setArguments(QList<QVariant>() << int(KIconLoader::MainToolbar)); QDBusConnection::sessionBus().send(message); m_loop.exec(); QCOMPARE(m_qpa->themeHint(QPlatformTheme::ToolBarIconSize).toInt(), 11); } void testPlatformHintChanges() { EventTest tester(&m_toolBtn, QEvent::StyleChange); sendNotifyChange(KHintsSettings::SettingsChanged, KHintsSettings::SETTINGS_QT); m_loop.exec(); QCOMPARE(qApp->cursorFlashTime(), 1022); sendNotifyChange(KHintsSettings::SettingsChanged, KHintsSettings::SETTINGS_MOUSE); m_loop.exec(); QCOMPARE(m_qpa->themeHint(QPlatformTheme::ItemViewActivateItemOnSingleClick).toBool(), true); QCOMPARE(qApp->doubleClickInterval(), 401); QCOMPARE(qApp->startDragDistance(), 35); QCOMPARE(qApp->startDragTime(), 501); QCOMPARE(qApp->wheelScrollLines(), 122); QCOMPARE(qApp->testAttribute(Qt::AA_DontShowIconsInMenus), true); sendNotifyChange(KHintsSettings::ToolbarStyleChanged, 2); m_loop.exec(); QCOMPARE(m_qpa->themeHint(QPlatformTheme::ToolButtonStyle).toInt(), (int)Qt::ToolButtonTextUnderIcon); QCOMPARE(tester.gotEvent, true); sendNotifyChange(KHintsSettings::StyleChanged, 2); m_loop.exec(); QStringList styles; styles << QStringLiteral("another-non-existent-widget-style") << QStringLiteral("breeze") << QStringLiteral("oxygen") << QStringLiteral("fusion") << QStringLiteral("windows"); QCOMPARE(m_qpa->themeHint(QPlatformTheme::StyleNames).toStringList(), styles); sendNotifyChange(KHintsSettings::SettingsChanged, KHintsSettings::SETTINGS_STYLE); m_loop.exec(); QCOMPARE(m_qpa->themeHint(QPlatformTheme::DialogButtonBoxButtonsHaveIcons).toBool(), true); sendNotifyChange(KHintsSettings::IconChanged, 4); m_loop.exec(); QCOMPARE(m_qpa->themeHint(QPlatformTheme::SystemIconThemeName).toString(), QLatin1String("other-non-existent")); } void testPlatformPaletteChanges() { EventTest tester(QGuiApplication::instance(), QEvent::ApplicationPaletteChange); sendNotifyChange(KHintsSettings::PaletteChanged, 0); m_loop.exec(); QCOMPARE(tester.gotEvent, true); const QPalette *palette = m_qpa->palette(); QPalette::ColorGroup states[3] = {QPalette::Active, QPalette::Inactive, QPalette::Disabled}; QColor redColor(QColor(174, 11, 11)); QBrush redBrush(redColor); for (int i = 0; i < 3; i++) { QCOMPARE(palette->brush(states[i], QPalette::ButtonText), redBrush); QCOMPARE(palette->brush(states[i], QPalette::WindowText), redBrush); QCOMPARE(palette->brush(states[i], QPalette::Window), redBrush); QCOMPARE(palette->brush(states[i], QPalette::Base), redBrush); QCOMPARE(palette->brush(states[i], QPalette::Text), redBrush); QCOMPARE(palette->brush(states[i], QPalette::Button), redBrush); QCOMPARE(palette->brush(states[i], QPalette::ButtonText), redBrush); QCOMPARE(palette->brush(states[i], QPalette::Highlight), redBrush); QCOMPARE(palette->brush(states[i], QPalette::HighlightedText), redBrush); QCOMPARE(palette->brush(states[i], QPalette::ToolTipBase), redBrush); QCOMPARE(palette->brush(states[i], QPalette::ToolTipText), redBrush); // KColorScheme applies modifications and we can't disable them, so I extracted // the values and blindly compare them. QCOMPARE(palette->color(states[i], QPalette::Light).red(), 230); QCOMPARE(palette->color(states[i], QPalette::Midlight).red(), 203); QCOMPARE(palette->color(states[i], QPalette::Mid).red(), 149); QCOMPARE(palette->color(states[i], QPalette::Dark).red(), 84); QCOMPARE(palette->color(states[i], QPalette::Shadow).red(), 60); QCOMPARE(palette->brush(states[i], QPalette::AlternateBase), redBrush); QCOMPARE(palette->brush(states[i], QPalette::Link), redBrush); QCOMPARE(palette->brush(states[i], QPalette::LinkVisited), redBrush); } } void dndWindowFlagsTest() { if (!KWindowSystem::isPlatformX11()) { QSKIP("This test requires xcb platform."); } QDrag *drag = new QDrag(this); QMimeData *data = new QMimeData; data->setData("Text/Plain", "drag data"); drag->setMimeData(data); bool succeeded = false; QTimer::singleShot(1000, [&succeeded] { auto windows = QGuiApplication::allWindows(); auto it = std::find_if(windows.constBegin(), windows.constEnd(), [](QWindow *w) { return w->inherits("QShapedPixmapWindow"); }); if (it != windows.constEnd()) { KWindowInfo info((*it)->winId(), NET::WMWindowType); succeeded = info.windowType(NET::DNDIconMask) == NET::DNDIcon; } QTest::keyClick(windows.first(), Qt::Key_Escape); }); drag->exec(); QVERIFY(succeeded); } }; QTEST_MAIN(KdePlatformTheme_UnitTest) #include "kdeplatformtheme_unittest.moc" 0707010000008C000081A40000000000000000000000016728A277000004B3000000000000000000000000000000000000006200000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt5/autotests/kdirselectdialog_unittest.cpp/* This file is part of the KDE libraries SPDX-FileCopyrightText: 2015 Alejandro Fiestas Olivares <afiestas@kde.org> SPDX-License-Identifier: LGPL-2.0-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ #include "../src/platformtheme/kdirselectdialog_p.h" #include "../src/platformtheme/kfiletreeview_p.h" #include <QTest> class KDirSelectDialog_UnitTest : public QObject { Q_OBJECT private Q_SLOTS: void testSetCurrentUrl_data() { QTest::addColumn<QUrl>("url"); QTest::addColumn<QUrl>("expectedUrl"); QTest::newRow("only_scheme") << QUrl(QStringLiteral("trash:")) << QUrl(QStringLiteral("trash:/")); QTest::newRow("with_no_host") << QUrl(QStringLiteral("trash://")) << QUrl(QStringLiteral("trash://")); QTest::newRow("with_root_path") << QUrl(QStringLiteral("trash:///")) << QUrl(QStringLiteral("trash:///")); } void testSetCurrentUrl() { QFETCH(QUrl, url); QFETCH(QUrl, expectedUrl); KDirSelectDialog dirDialog; dirDialog.setCurrentUrl(url); QCOMPARE(dirDialog.rootUrl(), expectedUrl); } }; QTEST_MAIN(KDirSelectDialog_UnitTest) #include "kdirselectdialog_unittest.moc" 0707010000008D000081A40000000000000000000000016728A2770000323E000000000000000000000000000000000000005D00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt5/autotests/kfiledialog_unittest.cpp/* This file is part of the KDE libraries SPDX-FileCopyrightText: 2014 Dominik Haumann <dhaumann@kde.org> SPDX-License-Identifier: LGPL-2.0-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ #include <KDirOperator> #include <KFileWidget> #include <QDir> #include <QFileDialog> #include <QTemporaryDir> #include <QTemporaryFile> #include <QTest> #include <QTimer> Q_DECLARE_METATYPE(QFileDialog::ViewMode) Q_DECLARE_METATYPE(QFileDialog::FileMode) Q_DECLARE_METATYPE(KFile::FileView) Q_DECLARE_METATYPE(KFile::Modes) class KFileDialog_UnitTest : public QObject { Q_OBJECT private Q_SLOTS: void initTestCase() { } void init() { } void cleanupTestCase() { } void testSetNameFilters() { QFileDialog dialog; QStringList nameFilterList = QStringList() << QStringLiteral("c (*.cpp)") << QStringLiteral("h (*.h)"); dialog.setNameFilters(nameFilterList); QCOMPARE(dialog.nameFilters(), nameFilterList); } void testSelectNameFilter() { QFileDialog dialog; QStringList nameFilterList = QStringList() << QStringLiteral("c (*.cpp)") << QStringLiteral("h (*.h)"); dialog.setNameFilters(nameFilterList); QCOMPARE(dialog.nameFilters(), nameFilterList); QString selectNameFilter(QStringLiteral("h (*.h)")); dialog.selectNameFilter(selectNameFilter); QEXPECT_FAIL("", "Does currently not work. Works, once the dialog gets shown, though.", Continue); QCOMPARE(dialog.selectedNameFilter(), selectNameFilter); dialog.show(); QCOMPARE(dialog.selectedNameFilter(), selectNameFilter); } void testSelectNameFilterMultipleMatching() { QFileDialog dialog; QStringList nameFilterList = QStringList() << QStringLiteral("c (*.cpp)") << QStringLiteral("h1 (*.h)") << QStringLiteral("h2 (*.h)"); dialog.setNameFilters(nameFilterList); QCOMPARE(dialog.nameFilters(), nameFilterList); QString selectNameFilter(QStringLiteral("h2 (*.h)")); dialog.selectNameFilter(selectNameFilter); QEXPECT_FAIL("", "Does currently not work. Works, once the dialog gets shown, though.", Continue); QCOMPARE(dialog.selectedNameFilter(), selectNameFilter); dialog.show(); QCOMPARE(dialog.selectedNameFilter(), selectNameFilter); } void testSelectedMimeTypeFilter_data() { QTest::addColumn<QStringList>("mimeTypeFilters"); QTest::addColumn<QString>("targetMimeTypeFilter"); const auto headerMime = QStringLiteral("text/x-chdr"); const auto jsonMime = QStringLiteral("application/json"); const auto zipMime = QStringLiteral("application/zip"); QTest::newRow("single mime filter (C header file)") << QStringList{headerMime} << headerMime; QTest::newRow("single mime filter (JSON file)") << QStringList{jsonMime} << jsonMime; QTest::newRow("multiple mime filters") << QStringList{jsonMime, zipMime} << jsonMime; } void testSelectedMimeTypeFilter() { QFileDialog dialog; QFETCH(QStringList, mimeTypeFilters); dialog.setMimeTypeFilters(mimeTypeFilters); QFETCH(QString, targetMimeTypeFilter); dialog.selectMimeTypeFilter(targetMimeTypeFilter); dialog.show(); QCOMPARE(dialog.selectedMimeTypeFilter(), targetMimeTypeFilter); } void testFallbackOnFirstFilterInSaveMode() { QFileDialog dialog; dialog.setAcceptMode(QFileDialog::AcceptSave); dialog.setMimeTypeFilters({QStringLiteral("application/json"), QStringLiteral("application/zip")}); dialog.show(); QCOMPARE(dialog.selectedMimeTypeFilter(), QStringLiteral("application/json")); } void testSetDirectory() { QFileDialog dialog; dialog.setDirectory(QDir::rootPath()); QCOMPARE(dialog.directory().absolutePath(), QDir::rootPath()); } void testSelectUrl() { QTemporaryFile tempFile(m_tempDir.path() + "/kfiledialogtest_XXXXXX"); tempFile.setAutoRemove(true); tempFile.open(); QString tempName = tempFile.fileName(); QUrl url = QUrl::fromLocalFile(tempName); int idx = tempName.lastIndexOf('/'); QUrl directoryUrl = QUrl::fromLocalFile(tempName.left(idx + 1)); QFileDialog dialog; dialog.selectUrl(url); dialog.show(); // check if dialog was set to base directory url of the passed file url QCOMPARE(dialog.directoryUrl(), directoryUrl); } void testGetSaveFileUrl() { QObject lambdaGuard; QTemporaryFile tempFile(m_tempDir.path() + "/kfiledialogtest_XXXXXX"); tempFile.open(); const QString tempName = tempFile.fileName(); const QUrl url = QUrl::fromLocalFile(tempName); // Need to use a lambda and not just QTest::qWaitForWindowExposed(); // because with the static getSaveFileUrl we do not have access // to the QFileDialog object, so instead we hook to a signal KFileWidget::OperationMode saveFileOperationMode = KFileWidget::Other; connect(qApp, &QGuiApplication::focusWindowChanged, &lambdaGuard, [&saveFileOperationMode] { KFileWidget *fileWidget = findFileWidget(); saveFileOperationMode = fileWidget->operationMode(); qApp->activeWindow()->close(); }); QFileDialog::getSaveFileUrl(nullptr, QString(), url); QCOMPARE(saveFileOperationMode, KFileWidget::Saving); } void testViewMode() { // Open a file dialog, and change view mode to tree { QFileDialog dialog; dialog.show(); KFileWidget *fw = findFileWidget(); QVERIFY(fw); fw->setViewMode(KFile::Tree); fw->slotCancel(); // the saving happens there } // Open another one, and check that the view mode is now tree, change it to simple { QFileDialog dialog; dialog.show(); KFileWidget *fw = findFileWidget(); QVERIFY(fw); KDirOperator *op = fw->dirOperator(); QCOMPARE(fileViewToString(op->viewMode()), fileViewToString(KFile::Tree)); fw->setViewMode(KFile::Simple); fw->slotCancel(); } // Open another one, and check that the view mode is now simple { QFileDialog dialog; dialog.show(); KFileWidget *fw = findFileWidget(); QVERIFY(fw); KDirOperator *op = fw->dirOperator(); QCOMPARE(fileViewToString(op->viewMode()), fileViewToString(KFile::Simple)); fw->setViewMode(KFile::Detail); fw->slotCancel(); } } void testOpenDialog() { // Open parentless { QFileDialog dialog; dialog.open(); KFileWidget *fw = findFileWidget(); QVERIFY(fw); QCOMPARE(fw->isVisible(), true); fw->slotCancel(); } // Open with parent { QWidget w; w.show(); QFileDialog dialog(&w); dialog.open(); KFileWidget *fw = findFileWidget(); QVERIFY(fw); QCOMPARE(fw->isVisible(), true); fw->slotCancel(); } } void testShowDialog() { // Show parentless { QFileDialog dialog; dialog.show(); KFileWidget *fw = findFileWidget(); QVERIFY(fw); QCOMPARE(fw->isVisible(), true); fw->slotCancel(); } // Show with parent { QWidget w; w.show(); QFileDialog dialog(&w); dialog.show(); KFileWidget *fw = findFileWidget(); QVERIFY(fw); QCOMPARE(fw->isVisible(), true); fw->slotCancel(); } } void testSetFileMode_data() { QTest::addColumn<QFileDialog::FileMode>("qtFileMode"); QTest::addColumn<KFile::Modes>("kdeFileMode"); QTest::newRow("anyfile") << QFileDialog::AnyFile << KFile::Modes(KFile::File); QTest::newRow("existingfile") << QFileDialog::ExistingFile << KFile::Modes(KFile::File | KFile::ExistingOnly); QTest::newRow("directory") << QFileDialog::Directory << KFile::Modes(KFile::Directory | KFile::ExistingOnly); QTest::newRow("existingfiles") << QFileDialog::ExistingFiles << KFile::Modes(KFile::Files | KFile::ExistingOnly); } void testSetFileMode() { QFETCH(QFileDialog::FileMode, qtFileMode); QFETCH(KFile::Modes, kdeFileMode); QFileDialog dialog; dialog.setFileMode(qtFileMode); dialog.show(); KFileWidget *fw = findFileWidget(); QVERIFY(fw); QCOMPARE(fw->mode(), kdeFileMode); QCOMPARE(dialog.fileMode(), qtFileMode); } void testSaveOverwrite_data() { QTest::addColumn<bool>("qtOverwriteOption"); QTest::addColumn<bool>("messageBoxExpected"); QTest::newRow("checkoverwrite") << false << true; QTest::newRow("allowoverwrite") << true << false; } void testSaveOverwrite() { QFETCH(bool, qtOverwriteOption); QFETCH(bool, messageBoxExpected); QTemporaryFile tempFile(m_tempDir.path() + "/kfiledialogtest_XXXXXX"); tempFile.setAutoRemove(true); tempFile.open(); QString tempName = tempFile.fileName(); tempFile.close(); int idx = tempName.lastIndexOf('/'); QFileDialog dialog; dialog.setAcceptMode(QFileDialog::AcceptSave); if (qtOverwriteOption) dialog.setOption(QFileDialog::DontConfirmOverwrite); dialog.setDirectory(tempName.left(idx + 1)); dialog.selectFile(tempName.mid(idx + 1)); dialog.open(); KFileWidget *fw = findFileWidget(); QVERIFY(fw); QVERIFY(QTest::qWaitForWindowExposed(fw->window())); QCOMPARE(fw->isVisible(), true); bool timerRun = false; QTimer::singleShot(3500, this, [&] { timerRun = true; QDialog *msgbox = findMessageBox(); if (msgbox) { QVERIFY(QTest::qWaitForWindowExposed(msgbox)); QCOMPARE(msgbox->isVisible(), true); msgbox->close(); QVERIFY(messageBoxExpected); } else { QVERIFY(!messageBoxExpected); } }); fw->slotOk(); QTRY_VERIFY(timerRun); } void testRememberLastDirectory() { const QUrl dir = QUrl::fromLocalFile(QDir::tempPath()).adjusted(QUrl::StripTrailingSlash); // Open and navigate { QFileDialog dialog; dialog.open(); KFileWidget *fw = findFileWidget(); QVERIFY(fw); QCOMPARE(fw->isVisible(), true); fw->setUrl(dir); fw->slotCancel(); } // Open another filedialog, check that the default directory is the one from above { QFileDialog dialog; dialog.open(); KFileWidget *fw = findFileWidget(); QVERIFY(fw); QCOMPARE(fw->isVisible(), true); QCOMPARE(dialog.directoryUrl().adjusted(QUrl::StripTrailingSlash), dir); fw->slotCancel(); } } private: QTemporaryDir m_tempDir; static QString fileViewToString(KFile::FileView fv) { switch (fv) { case KFile::Detail: return QStringLiteral("Detail"); case KFile::Simple: return QStringLiteral("Simple"); case KFile::Tree: return QStringLiteral("Tree"); case KFile::DetailTree: return QStringLiteral("DetailTree"); default: break; } return QStringLiteral("ERROR"); } static KFileWidget *findFileWidget() { QList<KFileWidget *> widgets; foreach (QWidget *widget, QApplication::topLevelWidgets()) { KFileWidget *fw = widget->findChild<KFileWidget *>(); if (fw) { widgets.append(fw); } } Q_ASSERT(widgets.count() == 1); return (widgets.count() == 1) ? widgets.first() : nullptr; } static QDialog *findMessageBox() { QList<QDialog *> widgets; foreach (QWidget *widget, QApplication::topLevelWidgets()) { QDialog *dlg = widget->findChild<QDialog *>(); if (dlg) { widgets.append(dlg); } } return (widgets.count() == 1) ? widgets.first() : nullptr; } }; QTEST_MAIN(KFileDialog_UnitTest) #include "kfiledialog_unittest.moc" 0707010000008E000081A40000000000000000000000016728A2770000081E000000000000000000000000000000000000006000000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt5/autotests/kfiledialogqml_unittest.cpp/* This file is part of the KDE libraries SPDX-FileCopyrightText: 2014 Dominik Haumann <dhaumann@kde.org> SPDX-FileCopyrightText: 2015 David Rosca <nowrep@gmail.com> SPDX-License-Identifier: LGPL-2.0-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ #include <KFileWidget> #include <QQmlComponent> #include <QQmlEngine> #include <QTest> class KFileDialogQml_UnitTest : public QObject { Q_OBJECT private Q_SLOTS: void initTestCase() { m_engine = new QQmlEngine; } void cleanupTestCase() { delete m_engine; } void testShowDialogParentless() { KFileWidget *fw; { QQmlComponent component(m_engine); component.loadUrl(QUrl::fromLocalFile(QFINDTESTDATA("qml/filedialog_parentless.qml"))); QScopedPointer<QObject> object(component.create()); QVERIFY(!object.isNull()); fw = findFileWidget(); QVERIFY(fw); QCOMPARE(fw->isVisible(), true); fw->slotCancel(); } } void testShowDialogWithParent() { KFileWidget *fw; { QQmlComponent component(m_engine); component.loadUrl(QUrl::fromLocalFile(QFINDTESTDATA("qml/filedialog_withparent.qml"))); QScopedPointer<QObject> object(component.create()); QVERIFY(!object.isNull()); fw = findFileWidget(); QVERIFY(fw); QCOMPARE(fw->isVisible(), true); fw->slotCancel(); } } private: static KFileWidget *findFileWidget() { QList<KFileWidget *> widgets; foreach (QWidget *widget, QApplication::topLevelWidgets()) { KFileWidget *fw = widget->findChild<KFileWidget *>(); if (fw) { widgets.append(fw); } } Q_ASSERT(widgets.count() == 1); return (widgets.count() == 1) ? widgets.first() : nullptr; } QQmlEngine *m_engine = nullptr; }; QTEST_MAIN(KFileDialogQml_UnitTest) #include "kfiledialogqml_unittest.moc" 0707010000008F000081A40000000000000000000000016728A27700001314000000000000000000000000000000000000006300000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt5/autotests/kfontsettingsdata_unittest.cpp/* This file is part of the KDE libraries SPDX-FileCopyrightText: 2013 Alejandro Fiestas Olivares <afiestas@kde.org> SPDX-License-Identifier: LGPL-2.0-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ #include "../src/platformtheme/kfontsettingsdata.h" #include "kdeplatformtheme_config.h" #include <QApplication> #include <QDir> #include <QFile> #include <QString> #include <QTest> #include <QDBusConnection> #include <QDBusMessage> static void prepareEnvironment() { qputenv("KDEHOME", QFile::encodeName(QDir::homePath() + QStringLiteral("/.kde5-unit-test-platformtheme"))); qputenv("XDG_DATA_HOME", QFile::encodeName(QDir::homePath() + QStringLiteral("/.kde5-unit-test-platformtheme/xdg/local"))); QByteArray configPath = QFile::encodeName(QDir::homePath() + QStringLiteral("/.kde5-unit-test-platformtheme/xdg/config")); qputenv("XDG_CONFIG_HOME", configPath); qputenv("KDE_SKIP_KDERC", "1"); qunsetenv("KDE_COLOR_DEBUG"); QDir().mkpath(configPath); configPath.append("/kdeglobals"); QFile::remove(configPath); QFile::copy(CONFIGFILE, configPath); } // Run prepareEnvironment before qApp is created! slightly incorrect, QFile::encodeName can be wrong then. // But we can't use Q_COREAPP_STARTUP_FUNCTION because the platform theme ends up being created // first, with the wrong environment. Q_CONSTRUCTOR_FUNCTION(prepareEnvironment) class KFontSettingsData_UnitTest : public QWidget { Q_OBJECT public: bool event(QEvent *e) override { if (e->type() == QEvent::ApplicationFontChange) { m_appChangedFont = true; } return QWidget::event(e); } private: bool m_appChangedFont; KFontSettingsData *m_fonts; private Q_SLOTS: void initTestCase() { m_appChangedFont = false; m_fonts = new KFontSettingsData; qApp->processEvents(); // give time to delayed dbus connect } void testFonts() { QCOMPARE(m_fonts->font(KFontSettingsData::GeneralFont)->family(), QStringLiteral("OxyFontTest")); QCOMPARE(m_fonts->font(KFontSettingsData::FixedFont)->family(), QStringLiteral("OxyFixedTest Mono")); QCOMPARE(m_fonts->font(KFontSettingsData::ToolbarFont)->family(), QStringLiteral("OxyToolbarTest")); QCOMPARE(m_fonts->font(KFontSettingsData::MenuFont)->family(), QStringLiteral("OxyMenuTest")); QCOMPARE(m_fonts->font(KFontSettingsData::WindowTitleFont)->family(), QStringLiteral("OxyActiveTest")); QCOMPARE(m_fonts->font(KFontSettingsData::TaskbarFont)->family(), QStringLiteral("OxyTaskbarTest")); QCOMPARE(m_fonts->font(KFontSettingsData::SmallestReadableFont)->family(), QStringLiteral("OxySmallestReadableTest")); QCOMPARE(m_fonts->font(KFontSettingsData::WindowTitleFont)->weight(), QFont::Normal); QCOMPARE(m_fonts->font(KFontSettingsData::GeneralFont)->weight(), QFont::Medium); QCOMPARE(m_fonts->font(KFontSettingsData::FixedFont)->weight(), QFont::ExtraBold); } void testFontsChanged() { QByteArray configPath = qgetenv("XDG_CONFIG_HOME"); configPath.append("/kdeglobals"); QFile::remove(configPath); QVERIFY(QFile::copy(CHANGED_CONFIGFILE, configPath)); QEventLoop loop; QDBusConnection::sessionBus().connect(QString(), QStringLiteral("/KDEPlatformTheme"), QStringLiteral("org.kde.KDEPlatformTheme"), QStringLiteral("refreshFonts"), &loop, SLOT(quit())); QDBusMessage message = QDBusMessage::createSignal(QStringLiteral("/KDEPlatformTheme"), QStringLiteral("org.kde.KDEPlatformTheme"), QStringLiteral("refreshFonts")); QDBusConnection::sessionBus().send(message); loop.exec(); QVERIFY(m_appChangedFont); QCOMPARE(m_fonts->font(KFontSettingsData::GeneralFont)->family(), QStringLiteral("ChangedFontTest")); QCOMPARE(m_fonts->font(KFontSettingsData::FixedFont)->family(), QStringLiteral("ChangedFixedTest Mono")); QCOMPARE(m_fonts->font(KFontSettingsData::ToolbarFont)->family(), QStringLiteral("ChangedToolbarTest")); QCOMPARE(m_fonts->font(KFontSettingsData::MenuFont)->family(), QStringLiteral("ChangedMenuTest")); QCOMPARE(m_fonts->font(KFontSettingsData::WindowTitleFont)->family(), QStringLiteral("ChangedActiveTest")); QCOMPARE(m_fonts->font(KFontSettingsData::TaskbarFont)->family(), QStringLiteral("ChangedTaskbarTest")); QCOMPARE(m_fonts->font(KFontSettingsData::SmallestReadableFont)->family(), QStringLiteral("ChangedSmallestReadableTest")); } }; QTEST_MAIN(KFontSettingsData_UnitTest) #include "kfontsettingsdata_unittest.moc" 07070100000090000081A40000000000000000000000016728A27700000A2C000000000000000000000000000000000000006000000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt5/autotests/khintssettings_unittest.cpp/* This file is part of the KDE libraries SPDX-FileCopyrightText: 2016 Martin Gräßlin <mgraesslin@kde.org> SPDX-License-Identifier: LGPL-2.0-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ #include "../src/platformtheme/khintssettings.h" #include <KSharedConfig> #include <QDialogButtonBox> #include <QTest> #include <config-platformtheme.h> class KHintsSettingsTest : public QObject { Q_OBJECT private Q_SLOTS: void testDefaults(); }; void KHintsSettingsTest::testDefaults() { // this test verifies that default are correctly loaded if there is no config yet KSharedConfig::Ptr config = KSharedConfig::openConfig(QString(), KConfig::SimpleConfig); KHintsSettings hints(config); QCOMPARE(hints.hint(QPlatformTheme::CursorFlashTime).toInt(), 1000); QCOMPARE(hints.hint(QPlatformTheme::MouseDoubleClickInterval).toInt(), 400); QCOMPARE(hints.hint(QPlatformTheme::StartDragDistance).toInt(), 10); QCOMPARE(hints.hint(QPlatformTheme::StartDragTime).toInt(), 500); QCOMPARE(hints.hint(QPlatformTheme::ToolButtonStyle).toInt(), int(Qt::ToolButtonTextBesideIcon)); QCOMPARE(hints.hint(QPlatformTheme::ToolBarIconSize).toInt(), 22); QCOMPARE(hints.hint(QPlatformTheme::ItemViewActivateItemOnSingleClick).toBool(), true); QCOMPARE(hints.hint(QPlatformTheme::SystemIconThemeName).toString(), QStringLiteral("breeze")); QCOMPARE(hints.hint(QPlatformTheme::SystemIconFallbackThemeName).toString(), QStringLiteral("hicolor")); QCOMPARE(hints.hint(QPlatformTheme::IconThemeSearchPaths).toStringList(), hints.xdgIconThemePaths()); const QStringList expectedStyles = QStringList{QStringLiteral("breeze"), QStringLiteral("oxygen"), QStringLiteral("fusion"), QStringLiteral("windows")}; QCOMPARE(hints.hint(QPlatformTheme::StyleNames).toStringList(), expectedStyles); QCOMPARE(hints.hint(QPlatformTheme::DialogButtonBoxLayout).toInt(), int(QDialogButtonBox::KdeLayout)); QCOMPARE(hints.hint(QPlatformTheme::DialogButtonBoxButtonsHaveIcons).toBool(), true); QCOMPARE(hints.hint(QPlatformTheme::UseFullScreenForPopupMenu).toBool(), true); QCOMPARE(hints.hint(QPlatformTheme::KeyboardScheme).toInt(), int(QPlatformTheme::KdeKeyboardScheme)); QCOMPARE(hints.hint(QPlatformTheme::UiEffects).toInt(), QPlatformTheme::HoverEffect); QCOMPARE(hints.hint(QPlatformTheme::IconPixmapSizes).value<QList<int>>(), QList<int>({512, 256, 128, 64, 32, 22, 16, 8})); QCOMPARE(hints.hint(QPlatformTheme::WheelScrollLines).toInt(), 3); } QTEST_GUILESS_MAIN(KHintsSettingsTest) #include "khintssettings_unittest.moc" 07070100000091000081A40000000000000000000000016728A27700000459000000000000000000000000000000000000005600000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt5/autotests/ksni_unittest.cpp/* This file is part of the KDE libraries SPDX-FileCopyrightText: 2015 Martin Gräßlin <mgraesslin@kde.org> SPDX-License-Identifier: LGPL-2.0-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ #include <QAbstractEventDispatcher> #include <QMenu> #include <QSignalSpy> #include <QSystemTrayIcon> #include <QTest> class KSniUnitTest : public QObject { Q_OBJECT private Q_SLOTS: // test for BUG 343976 void testHideDontCrash(); }; void KSniUnitTest::testHideDontCrash() { QSystemTrayIcon *sti = new QSystemTrayIcon(this); QMenu *trayIconMenu = new QMenu(); QAction *dummyAction = new QAction(QStringLiteral("foo"), sti); trayIconMenu->addAction(dummyAction); QSignalSpy menuDestroyedSpy(trayIconMenu, &QObject::destroyed); QVERIFY(menuDestroyedSpy.isValid()); sti->setContextMenu(trayIconMenu); connect(sti, &QSystemTrayIcon::destroyed, trayIconMenu, &QMenu::deleteLater); sti->setVisible(true); sti->show(); // now delete it delete sti; QVERIFY(menuDestroyedSpy.wait()); } QTEST_MAIN(KSniUnitTest) #include "ksni_unittest.moc" 07070100000092000041ED0000000000000000000000026728A27700000000000000000000000000000000000000000000004800000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt5/autotests/qml07070100000093000081A40000000000000000000000016728A27700000147000000000000000000000000000000000000006200000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt5/autotests/qml/filedialog_parentless.qml/* This file is part of the KDE libraries SPDX-FileCopyrightText: 2015 David Rosca <nowrep@gmail.com> SPDX-License-Identifier: LGPL-2.0-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ import QtQuick 2.2 import QtQuick.Dialogs 1.0 FileDialog { id: fileDialog Component.onCompleted: visible = true } 07070100000094000081A40000000000000000000000016728A277000001B2000000000000000000000000000000000000006200000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt5/autotests/qml/filedialog_withparent.qml/* This file is part of the KDE libraries SPDX-FileCopyrightText: 2015 David Rosca <nowrep@gmail.com> SPDX-License-Identifier: LGPL-2.0-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ import QtQuick 2.2 import QtQuick.Window 2.2 import QtQuick.Dialogs 1.0 Window { x: 100 y: 100 width: 100 height: 100 FileDialog { id: fileDialog Component.onCompleted: visible = true } } 07070100000095000081A40000000000000000000000016728A2770000022C000000000000000000000000000000000000005700000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt5/autotests/tst_filedialog.qmlimport QtQuick 2.2 import QtTest 1.0 import QtQuick.Dialogs 1.2 TestCase { id: testCase width: 400 height: 400 visible: true when: windowShown name: "FileDialogTest" FileDialog { id: fileDialog folder: shortcuts.home } function test_filedialog() { //At the moment it just makes sure that something opens and doesn't crash. //Since this is a QGuiApplication (and not a QApplication) fileDialog.visible = true testCase.wait(200) fileDialog.visible = false } } 07070100000096000041ED0000000000000000000000036728A27700000000000000000000000000000000000000000000003E00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt5/src07070100000097000081A40000000000000000000000016728A27700000020000000000000000000000000000000000000004D00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt5/src/CMakeLists.txtadd_subdirectory(platformtheme) 07070100000098000081ED0000000000000000000000016728A27700000213000000000000000000000000000000000000004A00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt5/src/Messages.sh#!/bin/sh # Invoke the extractrc script on all .ui, .rc, and .kcfg files in the sources. # The results are stored in a pseudo .cpp file to be picked up by xgettext. lst=`find . -name \*.rc -o -name \*.ui -o -name \*.kcfg` if [ -n "$lst" ] ; then $EXTRACTRC $lst >> rc.cpp fi # Extract strings from all source files. # If your framework depends on KI18n, use $XGETTEXT. If it uses Qt translation # system, use $EXTRACT_TR_STRINGS. $XGETTEXT `find . -name \*.cpp -o -name \*.h -o -name \*.qml` -o $podir/plasmaintegration5.pot 07070100000099000041ED0000000000000000000000026728A27700000000000000000000000000000000000000000000004C00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt5/src/platformtheme0707010000009A000081A40000000000000000000000016728A27700000B64000000000000000000000000000000000000005B00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt5/src/platformtheme/CMakeLists.txtfind_package(X11) set_package_properties(X11 PROPERTIES DESCRIPTION "Required for updating the Cursor theme on X11" URL "https://www.x.org" TYPE REQUIRED ) set(HAVE_X11 ${X11_FOUND}) if(HAVE_X11) find_package(Qt5 ${QT5_MIN_VERSION} CONFIG REQUIRED X11Extras) find_package(XCB COMPONENTS XCB) set_package_properties(XCB PROPERTIES TYPE REQUIRED) endif() configure_file(config-platformtheme.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-platformtheme.h ) # qdbusmenubar uses them remove_definitions(-DQT_NO_SIGNALS_SLOTS_KEYWORDS) set(platformtheme_SRCS kdeplatformtheme.cpp kdeplatformtheme.h kfontsettingsdata.cpp kfontsettingsdata.h khintssettings.cpp khintssettings.h kdeplatformfiledialoghelper.cpp kdeplatformfiledialoghelper.h kdeplatformfiledialogbase.cpp kdeplatformsystemtrayicon.cpp kdeplatformsystemtrayicon.h kfiletreeview.cpp kdirselectdialog.cpp kwaylandintegration.cpp kwaylandintegration.h x11integration.cpp x11integration.h main.cpp qxdgdesktopportalfiledialog.cpp qtquickrenderersettings.cpp ) list(APPEND platformtheme_SRCS qdbusmenubar.cpp) # fork of Qt's qdbusmenubar with some added setters for our convenience qt5_add_dbus_interface(platformtheme_SRCS org.kde.StatusNotifierWatcher.xml statusnotifierwatcher_interface) kconfig_add_kcfg_files(platformtheme_SRCS renderersettings.kcfgc) add_library(KDEPlasmaPlatformTheme5 MODULE) ecm_add_qtwayland_client_protocol(platformtheme_SRCS PROTOCOL ${PLASMA_WAYLAND_PROTOCOLS_DIR}/appmenu.xml BASENAME appmenu ) ecm_add_qtwayland_client_protocol(platformtheme_SRCS PROTOCOL ${PLASMA_WAYLAND_PROTOCOLS_DIR}/server-decoration-palette.xml BASENAME server-decoration-palette ) target_sources(KDEPlasmaPlatformTheme5 PRIVATE ${platformtheme_SRCS}) target_link_libraries(KDEPlasmaPlatformTheme5 PRIVATE Qt5::GuiPrivate Qt5::DBus Qt5::QuickControls2 KF5::ConfigCore KF5::IconThemes KF5::KIOFileWidgets # KFileFilterCombo, KDirSortFilterProxyModel, KRecentDirs KF5::KIOWidgets KF5::KIOGui KF5::XmlGui KF5::I18n KF5::Notifications KF5::WindowSystem KF5::GuiAddons XCB::XCB ${QT5PLATFORMSUPPORT_LIBS} Qt5::WaylandClient Qt5::GuiPrivate Wayland::Client KF5::WaylandClient ) target_link_libraries(KDEPlasmaPlatformTheme5 PRIVATE Qt5::X11Extras) target_link_libraries(KDEPlasmaPlatformTheme5 PRIVATE KF5::ConfigWidgets) if(HAVE_X11) target_link_libraries(KDEPlasmaPlatformTheme5 PRIVATE ${X11_Xcursor_LIB} ${XCB_XCB_LIBRARY}) endif() set_target_properties(KDEPlasmaPlatformTheme5 PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin/platformthemes/") install(TARGETS KDEPlasmaPlatformTheme5 DESTINATION ${KDE_INSTALL_QTPLUGINDIR}/platformthemes) 0707010000009B000081A40000000000000000000000016728A27700000018000000000000000000000000000000000000006900000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt5/src/platformtheme/config-platformtheme.h.cmake#cmakedefine01 HAVE_X11 0707010000009C000081A40000000000000000000000016728A277000001E2000000000000000000000000000000000000006A00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt5/src/platformtheme/kdeplatformfiledialogbase.cpp/* This file is part of the KDE libraries SPDX-FileCopyrightText: 2013 Aleix Pol Gonzalez <aleixpol@blue-systems.com> SPDX-License-Identifier: LGPL-2.0-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ #include "kdeplatformfiledialogbase_p.h" KDEPlatformFileDialogBase::KDEPlatformFileDialogBase() { } void KDEPlatformFileDialogBase::closeEvent(QCloseEvent *e) { Q_EMIT closed(); QDialog::closeEvent(e); } #include "moc_kdeplatformfiledialogbase_p.cpp" 0707010000009D000081A40000000000000000000000016728A27700000546000000000000000000000000000000000000006A00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt5/src/platformtheme/kdeplatformfiledialogbase_p.h/* This file is part of the KDE libraries SPDX-FileCopyrightText: 2013 Aleix Pol Gonzalez <aleixpol@blue-systems.com> SPDX-License-Identifier: LGPL-2.0-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ #ifndef KDEPLATFORMFILEDIALOGBASE_H #define KDEPLATFORMFILEDIALOGBASE_H #include <QDialog> #include <QUrl> class QDialogButtonBox; class KDEPlatformFileDialogBase : public QDialog { Q_OBJECT public: friend class KDEPlatformFileDialogHelper; explicit KDEPlatformFileDialogBase(); virtual QUrl directory() = 0; virtual void selectMimeTypeFilter(const QString &filter) = 0; virtual void selectNameFilter(const QString &filter) = 0; virtual void setDirectory(const QUrl &directory) = 0; virtual void selectFile(const QUrl &filename) = 0; virtual QString selectedMimeTypeFilter() = 0; virtual QString selectedNameFilter() = 0; virtual QString currentFilterText() = 0; virtual QList<QUrl> selectedFiles() = 0; Q_SIGNALS: void closed(); void fileSelected(const QUrl &file); void filesSelected(const QList<QUrl> &files); void currentChanged(const QUrl &path); void directoryEntered(const QUrl &directory); void filterSelected(const QString &filter); protected: void closeEvent(QCloseEvent *e) override; QDialogButtonBox *m_buttons = nullptr; }; #endif 0707010000009E000081A40000000000000000000000016728A27700003FE5000000000000000000000000000000000000006C00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt5/src/platformtheme/kdeplatformfiledialoghelper.cpp/* This file is part of the KDE libraries SPDX-FileCopyrightText: 2013 Aleix Pol Gonzalez <aleixpol@blue-systems.com> SPDX-FileCopyrightText: 2014 Martin Klapetek <mklapetek@kde.org> SPDX-License-Identifier: LGPL-2.0-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ #include "kdeplatformfiledialoghelper.h" #include "kdirselectdialog_p.h" #include <KIO/StatJob> #include <KJobWidgets> #include <KProtocolInfo> #include <KSharedConfig> #include <KWindowConfig> #include <kdiroperator.h> #include <kfilefiltercombo.h> #include <kfilewidget.h> #include <kio_version.h> #include <klocalizedstring.h> #include <QDialogButtonBox> #include <QMimeDatabase> #include <QPushButton> #include <QTextStream> #include <QVBoxLayout> #include <QWindow> /* * Map a Qt filter string into a KDE one. */ QString KDEPlatformFileDialogHelper::qt2KdeFilter(const QStringList &f) { QStringList qtFilters(f); // escape slashes to avoid them being interpreted as MIME types qtFilters.replaceInStrings(QStringLiteral("/"), QStringLiteral("\\/")); QStringList outFilters; for (const QString &filter : std::as_const(qtFilters)) { const QString name = filter.left(filter.indexOf(QLatin1Char('('))).trimmed(); const QStringList extensions = cleanFilterList(filter); if (name.isEmpty()) { outFilters << extensions.join(QLatin1Char(' ')); } else { outFilters << extensions.join(QLatin1Char(' ')) + QLatin1Char('|') + name; } } return outFilters.join(QLatin1Char('\n')); } namespace { /* * Map a KDE filter string into a Qt one. */ static QString kde2QtFilter(const QStringList &list, const QString &kde, const QString &filterText) { QStringList::const_iterator it(list.constBegin()), end(list.constEnd()); int pos; for (; it != end; ++it) { if (-1 != (pos = it->indexOf(kde)) && pos > 0 && (QLatin1Char('(') == (*it)[pos - 1] || QLatin1Char(' ') == (*it)[pos - 1]) && it->length() >= kde.length() + pos && (QLatin1Char(')') == (*it)[pos + kde.length()] || QLatin1Char(' ') == (*it)[pos + kde.length()]) && (filterText.isEmpty() || it->startsWith(filterText))) { return *it; } } return QString(); } } KDEPlatformFileDialog::KDEPlatformFileDialog() : KDEPlatformFileDialogBase() , m_fileWidget(new KFileWidget(QUrl(), this)) { auto v = new QVBoxLayout; v->setContentsMargins({}); setLayout(v); connect(m_fileWidget, &KFileWidget::filterChanged, this, &KDEPlatformFileDialogBase::filterSelected); layout()->addWidget(m_fileWidget); m_fileWidget->okButton()->show(); m_fileWidget->cancelButton()->show(); connect(this, &QDialog::rejected, m_fileWidget, &KFileWidget::slotCancel); // Also call the cancel function when the dialog is closed via the escape key // or titlebar close button to make sure we always save the view config connect(this, &KDEPlatformFileDialog::rejected, m_fileWidget, &KFileWidget::slotCancel); connect(m_fileWidget->okButton(), &QAbstractButton::clicked, m_fileWidget, &KFileWidget::slotOk); connect(m_fileWidget, &KFileWidget::accepted, m_fileWidget, &KFileWidget::accept); connect(m_fileWidget, &KFileWidget::accepted, this, &QDialog::accept); connect(m_fileWidget->cancelButton(), &QAbstractButton::clicked, this, &QDialog::reject); connect(m_fileWidget->dirOperator(), &KDirOperator::urlEntered, this, &KDEPlatformFileDialogBase::directoryEntered); } QUrl KDEPlatformFileDialog::directory() { return m_fileWidget->baseUrl(); } QList<QUrl> KDEPlatformFileDialog::selectedFiles() { return m_fileWidget->selectedUrls(); } void KDEPlatformFileDialog::selectFile(const QUrl &filename) { const QUrl dirUrl = filename.adjusted(QUrl::RemoveFilename); m_fileWidget->setUrl(dirUrl); m_fileWidget->setSelectedUrl(filename); } void KDEPlatformFileDialog::setViewMode(QFileDialogOptions::ViewMode view) { switch (view) { case QFileDialogOptions::ViewMode::Detail: m_fileWidget->setViewMode(KFile::FileView::Detail); break; case QFileDialogOptions::ViewMode::List: m_fileWidget->setViewMode(KFile::FileView::Simple); break; default: m_fileWidget->setViewMode(KFile::FileView::Default); break; } } void KDEPlatformFileDialog::setFileMode(QFileDialogOptions::FileMode mode) { switch (mode) { case QFileDialogOptions::FileMode::AnyFile: m_fileWidget->setMode(KFile::File); break; case QFileDialogOptions::FileMode::ExistingFile: m_fileWidget->setMode(KFile::Mode::File | KFile::Mode::ExistingOnly); break; case QFileDialogOptions::FileMode::Directory: m_fileWidget->setMode(KFile::Mode::Directory | KFile::Mode::ExistingOnly); break; case QFileDialogOptions::FileMode::ExistingFiles: m_fileWidget->setMode(KFile::Mode::Files | KFile::Mode::ExistingOnly); break; default: m_fileWidget->setMode(KFile::File); break; } } void KDEPlatformFileDialog::setCustomLabel(QFileDialogOptions::DialogLabel label, const QString &text) { if (label == QFileDialogOptions::Accept) { // OK button m_fileWidget->okButton()->setText(text); } else if (label == QFileDialogOptions::Reject) { // Cancel button m_fileWidget->cancelButton()->setText(text); } else if (label == QFileDialogOptions::LookIn) { // Location label m_fileWidget->setLocationLabel(text); } } QString KDEPlatformFileDialog::selectedMimeTypeFilter() { if (m_fileWidget->filterWidget()->isMimeFilter()) { const auto mimeTypeFromFilter = QMimeDatabase().mimeTypeForName(m_fileWidget->filterWidget()->currentFilter()); // If one does not call selectMimeTypeFilter(), KFileFilterCombo::currentFilter() returns invalid mimeTypes, // such as "application/json application/zip". if (mimeTypeFromFilter.isValid()) { return mimeTypeFromFilter.name(); } } if (selectedFiles().isEmpty()) { return QString(); } // Works for both KFile::File and KFile::Files modes. return QMimeDatabase().mimeTypeForUrl(selectedFiles().at(0)).name(); } QString KDEPlatformFileDialog::selectedNameFilter() { return m_fileWidget->filterWidget()->currentFilter(); } QString KDEPlatformFileDialog::currentFilterText() { return m_fileWidget->filterWidget()->currentText(); } void KDEPlatformFileDialog::selectMimeTypeFilter(const QString &filter) { m_fileWidget->filterWidget()->setCurrentFilter(filter); } void KDEPlatformFileDialog::selectNameFilter(const QString &filter) { m_fileWidget->filterWidget()->setCurrentFilter(filter); } void KDEPlatformFileDialog::setDirectory(const QUrl &directory) { if (!directory.isLocalFile()) { // Short-circuit: Avoid stat if the effective URL hasn't changed if (directory == m_fileWidget->baseUrl()) { return; } // Qt can not determine if the remote URL points to a file or a // directory, that is why options()->initialDirectory() always returns // the full URL. KIO::StatJob *job = KIO::stat(directory); KJobWidgets::setWindow(job, this); if (job->exec()) { KIO::UDSEntry entry = job->statResult(); if (!entry.isDir()) { // this is probably a file remove the file part m_fileWidget->setUrl(directory.adjusted(QUrl::RemoveFilename)); m_fileWidget->setSelectedUrl(directory); } else { m_fileWidget->setUrl(directory); } } } else { m_fileWidget->setUrl(directory); } } bool KDEPlatformFileDialogHelper::isSupportedUrl(const QUrl &url) const { return KProtocolInfo::protocols().contains(url.scheme()); } //////////////////////////////////////////////// KDEPlatformFileDialogHelper::KDEPlatformFileDialogHelper() : QPlatformFileDialogHelper() , m_dialog(new KDEPlatformFileDialog) { connect(m_dialog, &KDEPlatformFileDialogBase::closed, this, &KDEPlatformFileDialogHelper::saveSize); connect(m_dialog, &QDialog::finished, this, &KDEPlatformFileDialogHelper::saveSize); connect(m_dialog, &KDEPlatformFileDialogBase::currentChanged, this, &QPlatformFileDialogHelper::currentChanged); connect(m_dialog, &KDEPlatformFileDialogBase::directoryEntered, this, &QPlatformFileDialogHelper::directoryEntered); connect(m_dialog, &KDEPlatformFileDialogBase::fileSelected, this, &QPlatformFileDialogHelper::fileSelected); connect(m_dialog, &KDEPlatformFileDialogBase::filesSelected, this, &QPlatformFileDialogHelper::filesSelected); connect(m_dialog, &KDEPlatformFileDialogBase::filterSelected, this, &QPlatformFileDialogHelper::filterSelected); connect(m_dialog, &QDialog::accepted, this, &QPlatformDialogHelper::accept); connect(m_dialog, &QDialog::rejected, this, &QPlatformDialogHelper::reject); } KDEPlatformFileDialogHelper::~KDEPlatformFileDialogHelper() { saveSize(); delete m_dialog; } void KDEPlatformFileDialogHelper::initializeDialog() { m_dialogInitialized = true; if (options()->testOption(QFileDialogOptions::ShowDirsOnly)) { m_dialog->deleteLater(); KDirSelectDialog *dialog = new KDirSelectDialog(options()->initialDirectory()); m_dialog = dialog; connect(dialog, &QDialog::accepted, this, &QPlatformDialogHelper::accept); connect(dialog, &QDialog::rejected, this, &QPlatformDialogHelper::reject); if (options()->isLabelExplicitlySet(QFileDialogOptions::Accept)) { // OK button dialog->setOkButtonText(options()->labelText(QFileDialogOptions::Accept)); } else if (options()->isLabelExplicitlySet(QFileDialogOptions::Reject)) { // Cancel button dialog->setCancelButtonText(options()->labelText(QFileDialogOptions::Reject)); } else if (options()->isLabelExplicitlySet(QFileDialogOptions::LookIn)) { // Location label // Not implemented yet. } if (!options()->windowTitle().isEmpty()) m_dialog->setWindowTitle(options()->windowTitle()); } else { // needed for accessing m_fileWidget KDEPlatformFileDialog *dialog = qobject_cast<KDEPlatformFileDialog *>(m_dialog); dialog->m_fileWidget->setOperationMode(options()->acceptMode() == QFileDialogOptions::AcceptOpen ? KFileWidget::Opening : KFileWidget::Saving); if (options()->windowTitle().isEmpty()) { dialog->setWindowTitle(options()->acceptMode() == QFileDialogOptions::AcceptOpen ? i18nc("@title:window", "Open File") : i18nc("@title:window", "Save File")); } else { dialog->setWindowTitle(options()->windowTitle()); } if (!m_directorySet) { setDirectory(options()->initialDirectory()); } // dialog->setViewMode(options()->viewMode()); // don't override our options, fixes remembering the chosen view mode and sizes! dialog->setFileMode(options()->fileMode()); // custom labels if (options()->isLabelExplicitlySet(QFileDialogOptions::Accept)) { // OK button dialog->setCustomLabel(QFileDialogOptions::Accept, options()->labelText(QFileDialogOptions::Accept)); } else if (options()->isLabelExplicitlySet(QFileDialogOptions::Reject)) { // Cancel button dialog->setCustomLabel(QFileDialogOptions::Reject, options()->labelText(QFileDialogOptions::Reject)); } else if (options()->isLabelExplicitlySet(QFileDialogOptions::LookIn)) { // Location label dialog->setCustomLabel(QFileDialogOptions::LookIn, options()->labelText(QFileDialogOptions::LookIn)); } const QStringList mimeFilters = options()->mimeTypeFilters(); const QStringList nameFilters = options()->nameFilters(); if (!mimeFilters.isEmpty()) { QString defaultMimeFilter; if (options()->acceptMode() == QFileDialogOptions::AcceptSave) { defaultMimeFilter = options()->initiallySelectedMimeTypeFilter(); if (defaultMimeFilter.isEmpty()) { defaultMimeFilter = mimeFilters.at(0); } } dialog->m_fileWidget->setMimeFilter(mimeFilters, defaultMimeFilter); if (mimeFilters.contains(QStringLiteral("inode/directory"))) dialog->m_fileWidget->setMode(dialog->m_fileWidget->mode() | KFile::Directory); } else if (!nameFilters.isEmpty()) { dialog->m_fileWidget->setFilter(qt2KdeFilter(nameFilters)); } if (!options()->initiallySelectedMimeTypeFilter().isEmpty()) { selectMimeTypeFilter(options()->initiallySelectedMimeTypeFilter()); } else if (!options()->initiallySelectedNameFilter().isEmpty()) { selectNameFilter(options()->initiallySelectedNameFilter()); } // overwrite option if (options()->testOption(QFileDialogOptions::FileDialogOption::DontConfirmOverwrite)) { dialog->m_fileWidget->setConfirmOverwrite(false); } else if (options()->acceptMode() == QFileDialogOptions::AcceptSave) { dialog->m_fileWidget->setConfirmOverwrite(true); } const QStringList schemes = options()->supportedSchemes(); dialog->m_fileWidget->setSupportedSchemes(schemes); } } void KDEPlatformFileDialogHelper::exec() { restoreSize(); m_dialog->exec(); } void KDEPlatformFileDialogHelper::hide() { m_dialog->hide(); } void KDEPlatformFileDialogHelper::saveSize() { KSharedConfig::Ptr conf = KSharedConfig::openConfig(); KConfigGroup group = conf->group("FileDialogSize"); KWindowConfig::saveWindowSize(m_dialog->windowHandle(), group); } void KDEPlatformFileDialogHelper::restoreSize() { m_dialog->winId(); // ensure there's a window created KSharedConfig::Ptr conf = KSharedConfig::openConfig(); // see the note below m_dialog->windowHandle()->resize(m_dialog->sizeHint()); KWindowConfig::restoreWindowSize(m_dialog->windowHandle(), conf->group("FileDialogSize")); // NOTICE: QWindow::setGeometry() does NOT impact the backing QWidget geometry even if the platform // window was created -> QTBUG-40584. We therefore copy the size here. // TODO: remove once this was resolved in QWidget QPA m_dialog->resize(m_dialog->windowHandle()->size()); } bool KDEPlatformFileDialogHelper::show(Qt::WindowFlags windowFlags, Qt::WindowModality windowModality, QWindow *parent) { initializeDialog(); m_dialog->setWindowFlags(windowFlags); m_dialog->setWindowModality(windowModality); restoreSize(); m_dialog->windowHandle()->setTransientParent(parent); m_dialog->show(); return true; } QVariant KDEPlatformFileDialogHelper::styleHint(StyleHint hint) const { if (hint == DialogIsQtWindow) { return true; } return QPlatformDialogHelper::styleHint(hint); } QList<QUrl> KDEPlatformFileDialogHelper::selectedFiles() const { return m_dialog->selectedFiles(); } QString KDEPlatformFileDialogHelper::selectedMimeTypeFilter() const { return m_dialog->selectedMimeTypeFilter(); } void KDEPlatformFileDialogHelper::selectMimeTypeFilter(const QString &filter) { m_dialog->selectMimeTypeFilter(filter); } QString KDEPlatformFileDialogHelper::selectedNameFilter() const { return kde2QtFilter(options()->nameFilters(), m_dialog->selectedNameFilter(), m_dialog->currentFilterText()); } QUrl KDEPlatformFileDialogHelper::directory() const { return m_dialog->directory(); } void KDEPlatformFileDialogHelper::selectFile(const QUrl &filename) { m_dialog->selectFile(filename); m_fileSelected = true; } void KDEPlatformFileDialogHelper::setDirectory(const QUrl &directory) { if (!directory.isEmpty()) { m_dialog->setDirectory(directory); m_directorySet = true; } } void KDEPlatformFileDialogHelper::selectNameFilter(const QString &filter) { m_dialog->selectNameFilter(qt2KdeFilter(QStringList(filter))); } void KDEPlatformFileDialogHelper::setFilter() { } bool KDEPlatformFileDialogHelper::defaultNameFilterDisables() const { return false; } 0707010000009F000081A40000000000000000000000016728A277000009F4000000000000000000000000000000000000006A00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt5/src/platformtheme/kdeplatformfiledialoghelper.h/* This file is part of the KDE libraries SPDX-FileCopyrightText: 2013 Aleix Pol Gonzalez <aleixpol@blue-systems.com> SPDX-License-Identifier: LGPL-2.0-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ #ifndef KDEPLATFORMFILEDIALOGHELPER_H #define KDEPLATFORMFILEDIALOGHELPER_H #include "kdeplatformfiledialogbase_p.h" #include <qpa/qplatformdialoghelper.h> class KFileWidget; class KDEPlatformFileDialog : public KDEPlatformFileDialogBase { Q_OBJECT public: friend class KDEPlatformFileDialogHelper; explicit KDEPlatformFileDialog(); QUrl directory() override; void selectMimeTypeFilter(const QString &filter) override; void selectNameFilter(const QString &filter) override; void setDirectory(const QUrl &directory) override; void selectFile(const QUrl &filename) override; void setViewMode(QFileDialogOptions::ViewMode view); void setFileMode(QFileDialogOptions::FileMode mode); void setCustomLabel(QFileDialogOptions::DialogLabel label, const QString &text); QString selectedMimeTypeFilter() override; QString selectedNameFilter() override; QString currentFilterText() override; QList<QUrl> selectedFiles() override; protected: KFileWidget *const m_fileWidget; }; class KDEPlatformFileDialogHelper : public QPlatformFileDialogHelper { Q_OBJECT public: KDEPlatformFileDialogHelper(); ~KDEPlatformFileDialogHelper() override; void initializeDialog(); bool defaultNameFilterDisables() const override; QUrl directory() const override; QList<QUrl> selectedFiles() const override; QString selectedMimeTypeFilter() const override; void selectMimeTypeFilter(const QString &filter) override; QString selectedNameFilter() const override; void selectNameFilter(const QString &filter) override; void selectFile(const QUrl &filename) override; void setFilter() override; void setDirectory(const QUrl &directory) override; bool isSupportedUrl(const QUrl &url) const override; void exec() override; void hide() override; bool show(Qt::WindowFlags windowFlags, Qt::WindowModality windowModality, QWindow *parent) override; QVariant styleHint(StyleHint hint) const override; private Q_SLOTS: void saveSize(); private: QString qt2KdeFilter(const QStringList &f); void restoreSize(); KDEPlatformFileDialogBase *m_dialog = nullptr; bool m_directorySet = false; bool m_fileSelected = false; bool m_dialogInitialized = false; }; #endif // KDEPLATFORMFILEDIALOGHELPER_H 070701000000A0000081A40000000000000000000000016728A277000023F3000000000000000000000000000000000000006A00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt5/src/platformtheme/kdeplatformsystemtrayicon.cpp/* This file is part of the KDE libraries SPDX-FileCopyrightText: 2014 Martin Gräßlin <mgraesslin@kde.org> SPDX-License-Identifier: LGPL-2.0-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ #include "kdeplatformsystemtrayicon.h" #include <QAction> #include <QActionGroup> #include <QApplication> #include <QIcon> #include <QMenu> #include <QRect> #include <kstatusnotifieritem.h> #include "statusnotifierwatcher_interface.h" SystemTrayMenu::SystemTrayMenu() : QPlatformMenu() , m_enabled(QVariant::Bool) , m_visible(QVariant::Bool) , m_separatorsCollapsible(QVariant::Bool) , m_tag(0) { } SystemTrayMenu::~SystemTrayMenu() { if (m_menu) { m_menu->deleteLater(); } } QPlatformMenuItem *SystemTrayMenu::createMenuItem() const { return new SystemTrayMenuItem(); } QPlatformMenu *SystemTrayMenu::createSubMenu() const { return new SystemTrayMenu(); } void SystemTrayMenu::insertMenuItem(QPlatformMenuItem *menuItem, QPlatformMenuItem *before) { if (SystemTrayMenuItem *ours = qobject_cast<SystemTrayMenuItem *>(menuItem)) { bool inserted = false; if (SystemTrayMenuItem *oursBefore = qobject_cast<SystemTrayMenuItem *>(before)) { for (auto it = m_items.begin(); it != m_items.end(); ++it) { if (*it == oursBefore) { m_items.insert(it, ours); if (m_menu) { m_menu->insertAction(oursBefore->action(), ours->action()); } inserted = true; break; } } } if (!inserted) { m_items.append(ours); if (m_menu) { m_menu->addAction(ours->action()); } } } } QPlatformMenuItem *SystemTrayMenu::menuItemAt(int position) const { if (position < m_items.size()) { return m_items.at(position); } return nullptr; } QPlatformMenuItem *SystemTrayMenu::menuItemForTag(quintptr tag) const { auto it = std::find_if(m_items.constBegin(), m_items.constEnd(), [tag](SystemTrayMenuItem *item) { return item->tag() == tag; }); if (it != m_items.constEnd()) { return *it; } return nullptr; } void SystemTrayMenu::removeMenuItem(QPlatformMenuItem *menuItem) { if (SystemTrayMenuItem *ours = qobject_cast<SystemTrayMenuItem *>(menuItem)) { m_items.removeOne(ours); if (ours->action() && m_menu) { m_menu->removeAction(ours->action()); } } } void SystemTrayMenu::setEnabled(bool enabled) { m_enabled = enabled; if (m_menu) { m_menu->setEnabled(enabled); } } void SystemTrayMenu::setIcon(const QIcon &icon) { m_icon = icon; if (m_menu) { m_menu->setIcon(icon); } } void SystemTrayMenu::setTag(quintptr tag) { m_tag = tag; } void SystemTrayMenu::setText(const QString &text) { m_text = text; if (m_menu) { m_menu->setTitle(text); } } void SystemTrayMenu::setVisible(bool visible) { m_visible = visible; if (m_menu) { m_menu->setVisible(visible); } } void SystemTrayMenu::syncMenuItem(QPlatformMenuItem *menuItem) { Q_UNUSED(menuItem) // nothing to do } void SystemTrayMenu::syncSeparatorsCollapsible(bool enable) { m_separatorsCollapsible = enable; if (m_menu) { m_menu->setSeparatorsCollapsible(enable); } } quintptr SystemTrayMenu::tag() const { return m_tag; } QMenu *SystemTrayMenu::menu() { if (!m_menu) { createMenu(); } return m_menu; } void SystemTrayMenu::createMenu() { m_menu = new QMenu(); connect(m_menu, &QMenu::aboutToShow, this, &QPlatformMenu::aboutToShow); connect(m_menu, &QMenu::aboutToHide, this, &QPlatformMenu::aboutToHide); if (!m_icon.isNull()) { m_menu->setIcon(m_icon); } if (m_menu->title() != m_text) { m_menu->setTitle(m_text); } if (!m_enabled.isNull()) { m_menu->setEnabled(m_enabled.toBool()); } if (!m_visible.isNull()) { m_menu->setVisible(m_visible.toBool()); } if (!m_separatorsCollapsible.isNull()) { m_menu->setSeparatorsCollapsible(m_separatorsCollapsible.toBool()); } for (auto item : std::as_const(m_items)) { m_menu->addAction(item->action()); } } SystemTrayMenuItem::SystemTrayMenuItem() : QPlatformMenuItem() , m_tag(0) , m_action(new QAction(this)) { connect(m_action, &QAction::triggered, this, &QPlatformMenuItem::activated); connect(m_action, &QAction::hovered, this, &QPlatformMenuItem::hovered); } SystemTrayMenuItem::~SystemTrayMenuItem() { } void SystemTrayMenuItem::setCheckable(bool checkable) { m_action->setCheckable(checkable); } void SystemTrayMenuItem::setChecked(bool isChecked) { m_action->setChecked(isChecked); } void SystemTrayMenuItem::setEnabled(bool enabled) { m_action->setEnabled(enabled); } void SystemTrayMenuItem::setFont(const QFont &font) { m_action->setFont(font); } void SystemTrayMenuItem::setIcon(const QIcon &icon) { m_action->setIcon(icon); } void SystemTrayMenuItem::setIsSeparator(bool isSeparator) { m_action->setSeparator(isSeparator); } void SystemTrayMenuItem::setMenu(QPlatformMenu *menu) { if (SystemTrayMenu *ourMenu = qobject_cast<SystemTrayMenu *>(menu)) { m_action->setMenu(ourMenu->menu()); } } void SystemTrayMenuItem::setRole(QPlatformMenuItem::MenuRole role) { Q_UNUSED(role) } void SystemTrayMenuItem::setShortcut(const QKeySequence &shortcut) { m_action->setShortcut(shortcut); } void SystemTrayMenuItem::setTag(quintptr tag) { m_tag = tag; } void SystemTrayMenuItem::setText(const QString &text) { m_action->setText(text); } void SystemTrayMenuItem::setVisible(bool isVisible) { m_action->setVisible(isVisible); } void SystemTrayMenuItem::setIconSize(int size) { Q_UNUSED(size) } void SystemTrayMenuItem::setHasExclusiveGroup(bool hasExclusiveGroup) { if (hasExclusiveGroup) { if (!m_action->actionGroup()) { m_action->setActionGroup(new QActionGroup(m_action)); } } else { QActionGroup *actionGroup = m_action->actionGroup(); if (actionGroup) { m_action->setActionGroup(nullptr); delete actionGroup; } } } quintptr SystemTrayMenuItem::tag() const { return m_tag; } QAction *SystemTrayMenuItem::action() const { return m_action; } KDEPlatformSystemTrayIcon::KDEPlatformSystemTrayIcon() : QPlatformSystemTrayIcon() { } KDEPlatformSystemTrayIcon::~KDEPlatformSystemTrayIcon() { } void KDEPlatformSystemTrayIcon::init() { if (!m_sni) { m_sni = new KStatusNotifierItem(); m_sni->setStandardActionsEnabled(false); m_sni->setTitle(QApplication::applicationDisplayName()); m_sni->setStatus(KStatusNotifierItem::Active); connect(m_sni, &KStatusNotifierItem::activateRequested, [this](bool active, const QPoint &pos) { Q_UNUSED(active) Q_UNUSED(pos) Q_EMIT activated(QPlatformSystemTrayIcon::Trigger); }); connect(m_sni, &KStatusNotifierItem::secondaryActivateRequested, [this](const QPoint &pos) { Q_UNUSED(pos) Q_EMIT activated(QPlatformSystemTrayIcon::MiddleClick); }); } } void KDEPlatformSystemTrayIcon::cleanup() { delete m_sni; m_sni = nullptr; } void KDEPlatformSystemTrayIcon::updateIcon(const QIcon &icon) { if (!m_sni) { return; } if (icon.name().isEmpty()) { m_sni->setIconByPixmap(icon); m_sni->setToolTipIconByPixmap(icon); } else { m_sni->setIconByName(icon.name()); m_sni->setToolTipIconByName(icon.name()); } } void KDEPlatformSystemTrayIcon::updateToolTip(const QString &tooltip) { if (!m_sni) { return; } m_sni->setToolTipTitle(tooltip); } void KDEPlatformSystemTrayIcon::updateMenu(QPlatformMenu *menu) { if (!m_sni) { return; } if (SystemTrayMenu *ourMenu = qobject_cast<SystemTrayMenu *>(menu)) { m_sni->setContextMenu(ourMenu->menu()); } } QPlatformMenu *KDEPlatformSystemTrayIcon::createMenu() const { return new SystemTrayMenu(); } QRect KDEPlatformSystemTrayIcon::geometry() const { // StatusNotifierItem doesn't provide the geometry return QRect(); } void KDEPlatformSystemTrayIcon::showMessage(const QString &title, const QString &msg, const QIcon &icon, MessageIcon iconType, int secs) { Q_UNUSED(iconType) if (!m_sni) { return; } m_sni->showMessage(title, msg, icon.name(), secs); } bool KDEPlatformSystemTrayIcon::isSystemTrayAvailable() const { org::kde::StatusNotifierWatcher systrayHost(QStringLiteral("org.kde.StatusNotifierWatcher"), QStringLiteral("/StatusNotifierWatcher"), QDBusConnection::sessionBus()); if (systrayHost.isValid()) { return systrayHost.isStatusNotifierHostRegistered(); } return false; } bool KDEPlatformSystemTrayIcon::supportsMessages() const { return true; } 070701000000A1000081A40000000000000000000000016728A27700000CDA000000000000000000000000000000000000006800000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt5/src/platformtheme/kdeplatformsystemtrayicon.h/* This file is part of the KDE libraries SPDX-FileCopyrightText: 2014 Martin Gräßlin <mgraesslin@kde.org> SPDX-License-Identifier: LGPL-2.0-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ #ifndef KDEPLATFORMSYSTEMTRAYICON_H #define KDEPLATFORMSYSTEMTRAYICON_H #include <QVariant> #include <qpa/qplatformmenu.h> #include <qpa/qplatformsystemtrayicon.h> class KStatusNotifierItem; class SystemTrayMenuItem; class QAction; class QMenu; class SystemTrayMenu : public QPlatformMenu { Q_OBJECT public: SystemTrayMenu(); ~SystemTrayMenu() override; void insertMenuItem(QPlatformMenuItem *menuItem, QPlatformMenuItem *before) override; QPlatformMenuItem *menuItemAt(int position) const override; QPlatformMenuItem *menuItemForTag(quintptr tag) const override; void removeMenuItem(QPlatformMenuItem *menuItem) override; void setEnabled(bool enabled) override; void setIcon(const QIcon &icon) override; void setTag(quintptr tag) override; void setText(const QString &text) override; void setVisible(bool visible) override; void syncMenuItem(QPlatformMenuItem *menuItem) override; void syncSeparatorsCollapsible(bool enable) override; quintptr tag() const override; QPlatformMenuItem *createMenuItem() const override; QPlatformMenu *createSubMenu() const override; QMenu *menu(); private: void createMenu(); QString m_text; QIcon m_icon; QVariant m_enabled; QVariant m_visible; QVariant m_separatorsCollapsible; quintptr m_tag; QPointer<QMenu> m_menu; QList<SystemTrayMenuItem *> m_items; }; class SystemTrayMenuItem : public QPlatformMenuItem { Q_OBJECT public: SystemTrayMenuItem(); ~SystemTrayMenuItem() override; void setCheckable(bool checkable) override; void setChecked(bool isChecked) override; void setEnabled(bool enabled) override; void setFont(const QFont &font) override; void setIcon(const QIcon &icon) override; void setIsSeparator(bool isSeparator) override; void setMenu(QPlatformMenu *menu) override; void setRole(MenuRole role) override; void setShortcut(const QKeySequence &shortcut) override; void setTag(quintptr tag) override; void setText(const QString &text) override; void setVisible(bool isVisible) override; quintptr tag() const override; void setIconSize(int size) override; void setHasExclusiveGroup(bool hasExclusiveGroup) override; QAction *action() const; private: quintptr m_tag; QAction *m_action = nullptr; }; class KDEPlatformSystemTrayIcon : public QPlatformSystemTrayIcon { public: KDEPlatformSystemTrayIcon(); ~KDEPlatformSystemTrayIcon() override; void init() override; void cleanup() override; void updateIcon(const QIcon &icon) override; void updateToolTip(const QString &tooltip) override; void updateMenu(QPlatformMenu *menu) override; QRect geometry() const override; void showMessage(const QString &title, const QString &msg, const QIcon &icon, MessageIcon iconType, int secs) override; bool isSystemTrayAvailable() const override; bool supportsMessages() const override; QPlatformMenu *createMenu() const override; private: KStatusNotifierItem *m_sni = nullptr; }; #endif 070701000000A2000081A40000000000000000000000016728A27700005F20000000000000000000000000000000000000006100000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt5/src/platformtheme/kdeplatformtheme.cpp/* This file is part of the KDE libraries SPDX-FileCopyrightText: 2013 Kevin Ottens <ervin+bluesystems@kde.org> SPDX-FileCopyrightText: 2013 Aleix Pol Gonzalez <aleixpol@blue-systems.com> SPDX-FileCopyrightText: 2014 Lukáš Tinkl <ltinkl@redhat.com> SPDX-FileCopyrightText: 2022 Harald Sitter <sitter@kde.org> SPDX-License-Identifier: LGPL-2.0-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ #include <config-platformtheme.h> #include "kdeplatformfiledialoghelper.h" #include "kdeplatformsystemtrayicon.h" #include "kdeplatformtheme.h" #include "kfontsettingsdata.h" #include "khintssettings.h" #include "kwaylandintegration.h" #include "x11integration.h" #include <QApplication> #include <QDBusConnection> #include <QDBusConnectionInterface> #include <QDebug> #include <QFont> #include <QPalette> #include <QString> #include <QVariant> #include <QtQuickControls2/QQuickStyle> #include <KConfigGroup> #include <KIO/Global> #include <KIO/JobUiDelegate> #include <KIO/JobUiDelegateFactory> #include <KIO/OpenWithHandlerInterface> #include <KJobWidgets> #include <KLocalizedString> #include <KStandardGuiItem> #include <KWayland/Client/connection_thread.h> #include <KWayland/Client/registry.h> #include <KWayland/Client/xdgforeign.h> #include <KWindowSystem> #include <kiconengine.h> #include <kiconloader.h> #include <kstandardshortcut.h> #include "qdbusmenubar_p.h" #include "qxdgdesktopportalfiledialog_p.h" static const QByteArray s_x11AppMenuServiceNamePropertyName = QByteArrayLiteral("_KDE_NET_WM_APPMENU_SERVICE_NAME"); static const QByteArray s_x11AppMenuObjectPathPropertyName = QByteArrayLiteral("_KDE_NET_WM_APPMENU_OBJECT_PATH"); static bool checkDBusGlobalMenuAvailable() { if (qEnvironmentVariableIsSet("KDE_NO_GLOBAL_MENU")) { return false; } QDBusConnection connection = QDBusConnection::sessionBus(); QString registrarService = QStringLiteral("com.canonical.AppMenu.Registrar"); return connection.interface()->isServiceRegistered(registrarService); } static bool isDBusGlobalMenuAvailable() { static bool dbusGlobalMenuAvailable = checkDBusGlobalMenuAvailable(); return dbusGlobalMenuAvailable; } static QString desktopPortalService() { return QStringLiteral("org.freedesktop.impl.portal.desktop.kde"); } static QString desktopPortalPath() { return QStringLiteral("/org/freedesktop/portal/desktop"); } class XdgWindowExporter : public QObject { Q_OBJECT public: using QObject::QObject; virtual void run(QWidget *widget) = 0; Q_SIGNALS: void exported(const QString &id); }; class XdgWindowExporterWayland : public XdgWindowExporter { public: using XdgWindowExporter::XdgWindowExporter; void run(QWidget *widget) override { Q_ASSERT(widget); auto connection = KWayland::Client::ConnectionThread::fromApplication(QGuiApplication::instance()); if (!connection) { Q_EMIT exported({}); return; } auto registry = new KWayland::Client::Registry(this); QPointer<QWidget> maybeWidget(widget); connect(registry, &KWayland::Client::Registry::exporterUnstableV2Announced, this, [this, registry, maybeWidget](quint32 name, quint32 version) { auto exporter = registry->createXdgExporter(name, std::min(version, quint32(1)), this); if (!maybeWidget) { qWarning() << "widget was invalid, not exporting any window as transient parent"; Q_EMIT exported({}); return; } auto surface = KWayland::Client::Surface::fromWindow(maybeWidget->windowHandle()); if (!surface) { qWarning() << "wayland surface was unexpectedly null, not exporting any window as transient parent"; Q_EMIT exported({}); return; } auto xdgExported = exporter->exportTopLevel(surface, this); connect(xdgExported, &KWayland::Client::XdgExported::done, this, [this, xdgExported] { Q_EMIT exported(QLatin1String("wayland:") + xdgExported->handle()); }); }); registry->create(connection); registry->setup(); } }; class XdgWindowExporterX11 : public XdgWindowExporter { public: using XdgWindowExporter::XdgWindowExporter; void run(QWidget *widget) override { Q_ASSERT(widget); Q_EMIT exported(QLatin1String("x11:") + QString::number(widget->winId(), 16)); } }; class KIOOpenWith : public KIO::OpenWithHandlerInterface { Q_OBJECT public: explicit KIOOpenWith(QWidget *parentWidget, QObject *parent = nullptr) : KIO::OpenWithHandlerInterface(parent) , m_parentWidget(parentWidget) { } void promptUserForApplication(KJob *job, const QList<QUrl> &urls, const QString &mimeType) override { QWidget *widget = nullptr; if (job) { widget = KJobWidgets::window(job); } if (!widget) { widget = m_parentWidget; } if (!widget) { promptInternal({}, urls, mimeType); return; } widget->winId(); // ensure we have a handle so we can export a window (without this windowHandle() may be null) XdgWindowExporter *exporter = nullptr; switch (KWindowSystem::platform()) { case KWindowSystem::Platform::X11: exporter = new XdgWindowExporterX11(this); break; case KWindowSystem::Platform::Wayland: exporter = new XdgWindowExporterWayland(this); break; case KWindowSystem::Platform::Unknown: break; } if (exporter) { connect(exporter, &XdgWindowExporter::exported, this, [this, urls, exporter, mimeType](const QString &windowId) { exporter->deleteLater(); promptInternal(windowId, urls, mimeType); }); exporter->run(widget); } else { promptInternal({}, urls, mimeType); } } void promptInternal(const QString &windowId, const QList<QUrl> &urls, const QString &mimeType) { QDBusMessage message = QDBusMessage::createMethodCall(desktopPortalService(), desktopPortalPath(), QStringLiteral("org.freedesktop.impl.portal.AppChooser"), QStringLiteral("ChooseApplicationPrivate")); QStringList urlStrings; for (const auto &url : urls) { urlStrings << url.toString(); } QString lastChoice; KSharedConfig::Ptr xdgConfig; if (!mimeType.isEmpty()) { xdgConfig = KSharedConfig::openConfig(QStringLiteral("xdg-desktop-portal-kderc"), KConfig::NoGlobals); KConfigGroup appChooserGroup = xdgConfig->group("org.freedesktop.impl.portal.AppChooser"); if (appChooserGroup.isValid()) { KConfigGroup lastUsedGroup = appChooserGroup.group("LastChoice"); if (lastUsedGroup.isValid()) { lastChoice = lastUsedGroup.readEntry(mimeType); } } } message << windowId << urlStrings << QVariantMap{ {QStringLiteral("ask"), true}, {QStringLiteral("last_choice"), lastChoice}, }; QDBusPendingCall pendingCall = QDBusConnection::sessionBus().asyncCall(message, std::numeric_limits<int>::max()); auto watcher = new QDBusPendingCallWatcher(pendingCall, this); connect(watcher, &QDBusPendingCallWatcher::finished, this, [this, mimeType](QDBusPendingCallWatcher *watcher) { watcher->deleteLater(); QDBusPendingReply<uint, QVariantMap> reply = *watcher; if (reply.isError()) { qWarning() << "Couldn't get reply"; qWarning() << "Error: " << reply.error().message(); Q_EMIT canceled(); } else { if (reply.argumentAt<0>() == 0) { const QString choice = reply.argumentAt<1>().value(QStringLiteral("choice")).toString(); Q_EMIT serviceSelected(KService::serviceByDesktopName(choice)); if (!mimeType.isEmpty()) { KSharedConfig::Ptr xdgConfig = KSharedConfig::openConfig(QStringLiteral("xdg-desktop-portal-kderc"), KConfig::NoGlobals); KConfigGroup appChooserGroup = xdgConfig->group("org.freedesktop.impl.portal.AppChooser"); KConfigGroup lastUsedGroup = appChooserGroup.group("LastChoice"); lastUsedGroup.writeEntry(mimeType, choice); } } else { Q_EMIT canceled(); } } }); } private: QWidget *const m_parentWidget; }; class KIOUiDelegate : public KIO::JobUiDelegate { public: explicit KIOUiDelegate(KJobUiDelegate::Flags flags = AutoHandlingDisabled, QWidget *window = nullptr) : KIO::JobUiDelegate(KIO::JobUiDelegate::Version::V2, flags, window, {new KIOOpenWith(window, nullptr)}) { } }; class KIOUiFactory : public KIO::JobUiDelegateFactoryV2 { public: KIOUiFactory() = default; KJobUiDelegate *createDelegate() const override { return new KIOUiDelegate; } KJobUiDelegate *createDelegate(KJobUiDelegate::Flags flags, QWidget *window) const override { return new KIOUiDelegate(flags, window); } }; KdePlatformTheme::KdePlatformTheme() { loadSettings(); // explicitly not KWindowSystem::isPlatformWayland to not include the kwin process if (QGuiApplication::platformName() == QLatin1String("wayland")) { m_kwaylandIntegration.reset(new KWaylandIntegration(this)); } #if HAVE_X11 if (KWindowSystem::isPlatformX11()) { m_x11Integration.reset(new X11Integration(this)); m_x11Integration->init(); } #endif // Don't show the titlebar "What's This?" help button for dialogs that // have any UI elements with help text, unless the window specifically // requests it. This is because KDE apps with help text will use the nice // contextual tooltips instead; we only want to ever see the titlebar button // to invoke the "What's This?" feature in 3rd-party Qt apps that have set // "What's This" help text and requested the button QCoreApplication::setAttribute(Qt::AA_DisableWindowContextHelpButton, true); QCoreApplication::setAttribute(Qt::AA_DontUseNativeMenuBar, false); setQtQuickControlsTheme(); static KIOUiFactory factory; KIO::setDefaultJobUiDelegateFactoryV2(&factory); static KIOUiDelegate delegateExtension; KIO::setDefaultJobUiDelegateExtension(&delegateExtension); } KdePlatformTheme::~KdePlatformTheme() { delete m_fontsData; delete m_hints; } QVariant KdePlatformTheme::themeHint(QPlatformTheme::ThemeHint hintType) const { QVariant hint = m_hints->hint(hintType); if (hint.isValid()) { return hint; } else { return QPlatformTheme::themeHint(hintType); } } QIcon KdePlatformTheme::fileIcon(const QFileInfo &fileInfo, QPlatformTheme::IconOptions iconOptions) const { if (iconOptions.testFlag(DontUseCustomDirectoryIcons) && fileInfo.isDir()) { return QIcon::fromTheme(QLatin1String("inode-directory")); } return QIcon::fromTheme(KIO::iconNameForUrl(QUrl::fromLocalFile(fileInfo.absoluteFilePath()))); } const QPalette *KdePlatformTheme::palette(Palette type) const { QPalette *palette = m_hints->palette(type); if (palette) { return palette; } else { return QPlatformTheme::palette(type); } } const QFont *KdePlatformTheme::font(Font type) const { KFontSettingsData::FontTypes fdtype; switch (type) { case SystemFont: fdtype = KFontSettingsData::GeneralFont; break; case MenuFont: case MenuBarFont: case MenuItemFont: fdtype = KFontSettingsData::MenuFont; break; case MessageBoxFont: case LabelFont: case TipLabelFont: case StatusBarFont: case PushButtonFont: case ItemViewFont: case ListViewFont: case HeaderViewFont: case ListBoxFont: case ComboMenuItemFont: case ComboLineEditFont: fdtype = KFontSettingsData::GeneralFont; break; case TitleBarFont: case MdiSubWindowTitleFont: case DockWidgetTitleFont: fdtype = KFontSettingsData::WindowTitleFont; break; case SmallFont: case MiniFont: fdtype = KFontSettingsData::SmallestReadableFont; break; case FixedFont: fdtype = KFontSettingsData::FixedFont; break; case ToolButtonFont: fdtype = KFontSettingsData::ToolbarFont; break; default: fdtype = KFontSettingsData::GeneralFont; break; } return m_fontsData->font(fdtype); } QIconEngine *KdePlatformTheme::createIconEngine(const QString &iconName) const { return new KIconEngine(iconName, KIconLoader::global()); } void KdePlatformTheme::loadSettings() { m_fontsData = new KFontSettingsData; m_hints = new KHintsSettings; } QList<QKeySequence> KdePlatformTheme::keyBindings(QKeySequence::StandardKey key) const { switch (key) { case QKeySequence::HelpContents: return KStandardShortcut::shortcut(KStandardShortcut::Help); case QKeySequence::WhatsThis: return KStandardShortcut::shortcut(KStandardShortcut::WhatsThis); case QKeySequence::Open: return KStandardShortcut::shortcut(KStandardShortcut::Open); case QKeySequence::Close: return KStandardShortcut::shortcut(KStandardShortcut::Close); case QKeySequence::Save: return KStandardShortcut::shortcut(KStandardShortcut::Save); case QKeySequence::New: return KStandardShortcut::shortcut(KStandardShortcut::New); case QKeySequence::Cut: return KStandardShortcut::shortcut(KStandardShortcut::Cut); case QKeySequence::Copy: return KStandardShortcut::shortcut(KStandardShortcut::Copy); case QKeySequence::Paste: return KStandardShortcut::shortcut(KStandardShortcut::Paste); case QKeySequence::Undo: return KStandardShortcut::shortcut(KStandardShortcut::Undo); case QKeySequence::Redo: return KStandardShortcut::shortcut(KStandardShortcut::Redo); case QKeySequence::Back: return KStandardShortcut::shortcut(KStandardShortcut::Back); case QKeySequence::Forward: return KStandardShortcut::shortcut(KStandardShortcut::Forward); case QKeySequence::Refresh: return KStandardShortcut::shortcut(KStandardShortcut::Reload); case QKeySequence::ZoomIn: return KStandardShortcut::shortcut(KStandardShortcut::ZoomIn); case QKeySequence::ZoomOut: return KStandardShortcut::shortcut(KStandardShortcut::ZoomOut); case QKeySequence::Print: return KStandardShortcut::shortcut(KStandardShortcut::Print); case QKeySequence::Find: return KStandardShortcut::shortcut(KStandardShortcut::Find); case QKeySequence::FindNext: return KStandardShortcut::shortcut(KStandardShortcut::FindNext); case QKeySequence::FindPrevious: return KStandardShortcut::shortcut(KStandardShortcut::FindPrev); case QKeySequence::Replace: return KStandardShortcut::shortcut(KStandardShortcut::Replace); case QKeySequence::SelectAll: return KStandardShortcut::shortcut(KStandardShortcut::SelectAll); case QKeySequence::MoveToNextWord: return KStandardShortcut::shortcut(KStandardShortcut::ForwardWord); case QKeySequence::MoveToPreviousWord: return KStandardShortcut::shortcut(KStandardShortcut::BackwardWord); case QKeySequence::MoveToNextPage: return KStandardShortcut::shortcut(KStandardShortcut::Next); case QKeySequence::MoveToPreviousPage: return KStandardShortcut::shortcut(KStandardShortcut::Prior); case QKeySequence::MoveToStartOfLine: return KStandardShortcut::shortcut(KStandardShortcut::BeginningOfLine); case QKeySequence::MoveToEndOfLine: return KStandardShortcut::shortcut(KStandardShortcut::EndOfLine); case QKeySequence::MoveToStartOfDocument: return KStandardShortcut::shortcut(KStandardShortcut::Begin); case QKeySequence::MoveToEndOfDocument: return KStandardShortcut::shortcut(KStandardShortcut::End); case QKeySequence::SaveAs: return KStandardShortcut::shortcut(KStandardShortcut::SaveAs); case QKeySequence::Preferences: return KStandardShortcut::shortcut(KStandardShortcut::Preferences); case QKeySequence::Quit: return KStandardShortcut::shortcut(KStandardShortcut::Quit); case QKeySequence::FullScreen: return KStandardShortcut::shortcut(KStandardShortcut::FullScreen); case QKeySequence::Deselect: return KStandardShortcut::shortcut(KStandardShortcut::Deselect); case QKeySequence::DeleteStartOfWord: return KStandardShortcut::shortcut(KStandardShortcut::DeleteWordBack); case QKeySequence::DeleteEndOfWord: return KStandardShortcut::shortcut(KStandardShortcut::DeleteWordForward); case QKeySequence::NextChild: return KStandardShortcut::shortcut(KStandardShortcut::TabNext); case QKeySequence::PreviousChild: return KStandardShortcut::shortcut(KStandardShortcut::TabPrev); case QKeySequence::Delete: return KStandardShortcut::shortcut(KStandardShortcut::MoveToTrash); default: return QPlatformTheme::keyBindings(key); } } bool KdePlatformTheme::usePlatformNativeDialog(QPlatformTheme::DialogType type) const { return type == QPlatformTheme::FileDialog && qobject_cast<QApplication *>(QCoreApplication::instance()); } QString KdePlatformTheme::standardButtonText(int button) const { switch (static_cast<QPlatformDialogHelper::StandardButton>(button)) { case QPlatformDialogHelper::NoButton: qWarning() << Q_FUNC_INFO << "Unsupported standard button:" << button; return QString(); case QPlatformDialogHelper::Ok: return KStandardGuiItem::ok().text(); case QPlatformDialogHelper::Save: return KStandardGuiItem::save().text(); case QPlatformDialogHelper::SaveAll: return i18nc("@action:button", "Save All"); case QPlatformDialogHelper::Open: return KStandardGuiItem::open().text(); case QPlatformDialogHelper::Yes: return i18nc("@action:button", "&Yes"); case QPlatformDialogHelper::YesToAll: return i18nc("@action:button", "Yes to All"); case QPlatformDialogHelper::No: return i18nc("@action:button", "&No"); case QPlatformDialogHelper::NoToAll: return i18nc("@action:button", "No to All"); case QPlatformDialogHelper::Abort: // FIXME KStandardGuiItem::stop() doesn't seem right here return i18nc("@action:button", "Abort"); case QPlatformDialogHelper::Retry: return i18nc("@action:button", "Retry"); case QPlatformDialogHelper::Ignore: return i18nc("@action:button", "Ignore"); case QPlatformDialogHelper::Close: return KStandardGuiItem::close().text(); case QPlatformDialogHelper::Cancel: return KStandardGuiItem::cancel().text(); case QPlatformDialogHelper::Discard: return KStandardGuiItem::discard().text(); case QPlatformDialogHelper::Help: return KStandardGuiItem::help().text(); case QPlatformDialogHelper::Apply: return KStandardGuiItem::apply().text(); case QPlatformDialogHelper::Reset: return KStandardGuiItem::reset().text(); case QPlatformDialogHelper::RestoreDefaults: return KStandardGuiItem::defaults().text(); default: return QPlatformTheme::defaultStandardButtonText(button); } } QPlatformDialogHelper *KdePlatformTheme::createPlatformDialogHelper(QPlatformTheme::DialogType type) const { switch (type) { case QPlatformTheme::FileDialog: if (useXdgDesktopPortal()) { return new QXdgDesktopPortalFileDialog; } return new KDEPlatformFileDialogHelper; case QPlatformTheme::FontDialog: case QPlatformTheme::ColorDialog: case QPlatformTheme::MessageDialog: default: return nullptr; } } QPlatformSystemTrayIcon *KdePlatformTheme::createPlatformSystemTrayIcon() const { return new KDEPlatformSystemTrayIcon; } QPlatformMenuBar *KdePlatformTheme::createPlatformMenuBar() const { if (isDBusGlobalMenuAvailable()) { #ifndef KF6_TODO_DBUS_MENUBAR auto *menu = new QDBusMenuBar(const_cast<KdePlatformTheme *>(this)); QObject::connect(menu, &QDBusMenuBar::windowChanged, menu, [this, menu](QWindow *newWindow, QWindow *oldWindow) { const QString &serviceName = QDBusConnection::sessionBus().baseService(); const QString &objectPath = menu->objectPath(); setMenuBarForWindow(oldWindow, {}, {}); setMenuBarForWindow(newWindow, serviceName, objectPath); }); return menu; #endif } return nullptr; } // Force QtQuickControls to use org.kde.desktop theme for QApplication, // and org.kde.breeze for QGuiApplication unless it's otherwise set. void KdePlatformTheme::setQtQuickControlsTheme() { // if the user is running only a QGuiApplication, explicitly unset the QQC1 desktop style and use // org.kde.breeze style if it's installed. if (!qobject_cast<QApplication *>(qApp)) { if (qgetenv("QT_QUICK_CONTROLS_1_STYLE").right(7) == "Desktop") { qunsetenv("QT_QUICK_CONTROLS_1_STYLE"); } QQuickStyle::setStyle(QLatin1String("org.kde.breeze")); return; } // if the user has explicitly set something else, don't meddle // Also ignore the default Fusion style if (!QQuickStyle::name().isEmpty() && QQuickStyle::name() != QLatin1String("Fusion")) { return; } QQuickStyle::setStyle(QLatin1String("org.kde.desktop")); } bool KdePlatformTheme::useXdgDesktopPortal() { static bool usePortal = qEnvironmentVariableIntValue("PLASMA_INTEGRATION_USE_PORTAL") == 1; return usePortal; } inline bool windowRelevantForGlobalMenu(QWindow *window) { return !(window->type() & Qt::WindowType::Popup); } void KdePlatformTheme::globalMenuBarExistsNow() { #ifndef KF6_TODO_DBUS_MENUBAR const QString &serviceName = QDBusConnection::sessionBus().baseService(); const QString &objectPath = QDBusMenuBar::globalMenuBar()->objectPath(); for (auto *window : qApp->topLevelWindows()) { if (QDBusMenuBar::menuBarForWindow(window)) continue; if (!windowRelevantForGlobalMenu(window)) return; setMenuBarForWindow(window, serviceName, objectPath); } #endif } void KdePlatformTheme::windowCreated(QWindow *window) { #ifndef KF6_TODO_DBUS_MENUBAR if (!QDBusMenuBar::globalMenuBar()) return; if (QDBusMenuBar::menuBarForWindow(window)) return; const QString &serviceName = QDBusConnection::sessionBus().baseService(); const QString &objectPath = QDBusMenuBar::globalMenuBar()->objectPath(); setMenuBarForWindow(window, serviceName, objectPath); #endif } void KdePlatformTheme::globalMenuBarNoLongerExists() { #ifndef KF6_TODO_DBUS_MENUBAR for (auto *window : qApp->topLevelWindows()) { if (QDBusMenuBar::menuBarForWindow(window)) continue; if (!windowRelevantForGlobalMenu(window)) return; setMenuBarForWindow(window, {}, {}); } #endif } void KdePlatformTheme::setMenuBarForWindow(QWindow *window, const QString &serviceName, const QString &objectPath) const { if (!window) return; if (m_x11Integration) { m_x11Integration->setWindowProperty(window, s_x11AppMenuServiceNamePropertyName, serviceName.toUtf8()); m_x11Integration->setWindowProperty(window, s_x11AppMenuObjectPathPropertyName, objectPath.toUtf8()); } if (m_kwaylandIntegration) { m_kwaylandIntegration->setAppMenu(window, serviceName, objectPath); } } #include "kdeplatformtheme.moc" 070701000000A3000081A40000000000000000000000016728A2770000080A000000000000000000000000000000000000005F00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt5/src/platformtheme/kdeplatformtheme.h/* This file is part of the KDE libraries SPDX-FileCopyrightText: 2013 Kevin Ottens <ervin+bluesystems@kde.org> SPDX-License-Identifier: LGPL-2.0-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ #ifndef KDEPLATFORMTHEME_H #define KDEPLATFORMTHEME_H #include <qpa/qplatformtheme.h> #include <QHash> #include <QKeySequence> class KHintsSettings; class KFontSettingsData; class KWaylandIntegration; class X11Integration; class QIconEngine; class QWindow; class KdePlatformTheme : public QPlatformTheme { public: KdePlatformTheme(); ~KdePlatformTheme() override; QVariant themeHint(ThemeHint hint) const override; QIcon fileIcon(const QFileInfo &fileInfo, QPlatformTheme::IconOptions iconOptions) const override; const QPalette *palette(Palette type = SystemPalette) const override; const QFont *font(Font type) const override; QIconEngine *createIconEngine(const QString &iconName) const override; QList<QKeySequence> keyBindings(QKeySequence::StandardKey key) const override; QPlatformDialogHelper *createPlatformDialogHelper(DialogType type) const override; bool usePlatformNativeDialog(DialogType type) const override; QString standardButtonText(int button) const override; QPlatformSystemTrayIcon *createPlatformSystemTrayIcon() const override; QPlatformMenuBar *createPlatformMenuBar() const override; void globalMenuBarExistsNow(); void globalMenuBarNoLongerExists(); void windowCreated(QWindow *window); private: void setMenuBarForWindow(QWindow *window, const QString &serviceName, const QString &objectPath) const; void loadSettings(); void setQtQuickControlsTheme(); static void setWindowProperty(QWindow *window, const QByteArray &name, const QByteArray &value); static bool useXdgDesktopPortal(); KHintsSettings *m_hints = nullptr; KFontSettingsData *m_fontsData = nullptr; QScopedPointer<KWaylandIntegration> m_kwaylandIntegration; QScopedPointer<X11Integration> m_x11Integration; }; #endif // KDEPLATFORMTHEME_H 070701000000A4000081A40000000000000000000000016728A2770000001A000000000000000000000000000000000000006200000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt5/src/platformtheme/kdeplatformtheme.json{ "Keys": [ "kde" ] } 070701000000A5000081A40000000000000000000000016728A27700004F6C000000000000000000000000000000000000006100000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt5/src/platformtheme/kdirselectdialog.cpp/* SPDX-FileCopyrightText: 2001, 2002 Carsten Pfeiffer <pfeiffer@kde.org> SPDX-FileCopyrightText: 2001 Michael Jarrett <michaelj@corel.com> SPDX-FileCopyrightText: 2009 Shaun Reich <shaun.reich@kdemail.net> SPDX-License-Identifier: LGPL-2.0-only */ #include "kdirselectdialog_p.h" #include <QDebug> #include <QDialogButtonBox> #include <QDir> #include <QFileDialog> #include <QInputDialog> #include <QLayout> #include <QMenu> #include <QPushButton> #include <QSplitter> #include <QStandardPaths> #include <QStringList> #include <QUrl> #include <KActionCollection> #include <KAuthorized> #include <KConfig> #include <KConfigGroup> #include <KFileItemDelegate> #include <KFileUtils> #include <KFileWidget> #include <KHistoryComboBox> #include <KIO/CopyJob> #include <KIO/DeleteJob> #include <KIO/DeleteOrTrashJob> #include <KIO/Job> #include <KIO/JobUiDelegate> #include <KIO/MkdirJob> #include <KJobWidgets> #include <KLocalizedString> #include <KMessageBox> #include <KPropertiesDialog> #include <KRecentDirs> #include <KService> #include <KSharedConfig> #include <KStandardShortcut> #include <KToggleAction> #include <KUrlCompletion> #include "kfiletreeview_p.h" #include <KFilePlacesModel> #include <KFilePlacesView> // ### add mutator for treeview! class KDirSelectDialog::Private { public: Private(bool localOnly, KDirSelectDialog *parent) : m_parent(parent) , m_localOnly(localOnly) , m_comboLocked(false) { } void readConfig(const KSharedConfigPtr &config, const QString &group); void saveConfig(KSharedConfigPtr config, const QString &group); void slotMkdir(); void slotCurrentChanged(const QUrl &url); void slotExpand(const QModelIndex &); void slotUrlActivated(const QString &); void slotComboTextChanged(const QString &); void slotContextMenuRequested(const QPoint &); void slotMoveToTrash(); void slotDelete(); void slotProperties(); KDirSelectDialog *const m_parent; bool m_localOnly : 1; bool m_comboLocked : 1; QUrl m_rootUrl; QUrl m_startDir; KFileTreeView *m_treeView = nullptr; QMenu *m_contextMenu = nullptr; KActionCollection *m_actions = nullptr; KFilePlacesView *m_placesView = nullptr; KHistoryComboBox *m_urlCombo = nullptr; QString m_recentDirClass; QUrl m_startURL; QAction *moveToTrash = nullptr; QAction *deleteAction = nullptr; QAction *showHiddenFoldersAction = nullptr; QDialogButtonBox *m_buttons = nullptr; }; void KDirSelectDialog::Private::readConfig(const KSharedConfig::Ptr &config, const QString &group) { m_urlCombo->clear(); KConfigGroup conf(config, group); m_urlCombo->setHistoryItems(conf.readPathEntry("History Items", QStringList())); const QSize size = conf.readEntry("DirSelectDialog Size", QSize()); if (size.isValid()) { m_parent->resize(size); } } void KDirSelectDialog::Private::saveConfig(KSharedConfig::Ptr config, const QString &group) { KConfigGroup conf(config, group); KConfigGroup::WriteConfigFlags flags(KConfigGroup::Persistent | KConfigGroup::Global); conf.writePathEntry("History Items", m_urlCombo->historyItems(), flags); conf.writeEntry("DirSelectDialog Size", m_parent->size(), flags); config->sync(); } void KDirSelectDialog::Private::slotMkdir() { bool ok; QString where = m_parent->url().toDisplayString(QUrl::PreferLocalFile); QString name = i18nc("folder name", "New Folder"); if (m_parent->url().isLocalFile() && QFileInfo::exists(m_parent->url().toLocalFile() + QLatin1Char('/') + name)) { name = KFileUtils::suggestName(m_parent->url(), name); } const QString directory = QInputDialog::getText(m_parent, i18nc("@title:window", "New Folder"), i18nc("@label:textbox", "Create new folder in:\n%1", where), QLineEdit::Normal, name, &ok); if (!ok) { return; } bool writeOk = false; bool exists = false; QUrl folderurl(m_parent->url()); const QStringList dirs = directory.split(QLatin1Char('/'), Qt::SkipEmptyParts); QStringList::ConstIterator it = dirs.begin(); for (; it != dirs.end(); ++it) { folderurl.setPath(folderurl.path() + QLatin1Char('/') + *it); KIO::StatJob *job = KIO::stat(folderurl); KJobWidgets::setWindow(job, m_parent); job->setDetails(KIO::StatNoDetails); // We only want to know if it exists job->setSide(KIO::StatJob::DestinationSide); exists = job->exec(); if (!exists) { KIO::MkdirJob *job = KIO::mkdir(folderurl); KJobWidgets::setWindow(job, m_parent); writeOk = job->exec(); } } if (exists) { // url was already existent QString which = folderurl.toDisplayString(QUrl::PreferLocalFile); KMessageBox::error(m_parent, i18n("A file or folder named %1 already exists.", which)); // Select the existing dir (if a file with that name exists, it won't be selected since // we only show dirs here, this is cheaper than checking if the existing item is a file // or folder). m_parent->setCurrentUrl(folderurl); return; } if (!writeOk) { KMessageBox::error(m_parent, i18n("You do not have permission to create that folder.")); return; } // Select the newly created dir m_parent->setCurrentUrl(folderurl); } void KDirSelectDialog::Private::slotCurrentChanged(const QUrl &url) { if (m_comboLocked) { return; } if (url.isValid()) { m_urlCombo->setEditText(url.toDisplayString(QUrl::PreferLocalFile)); } else { m_urlCombo->setEditText(QString()); } } void KDirSelectDialog::Private::slotUrlActivated(const QString &text) { if (text.isEmpty()) { return; } const QUrl url = QUrl::fromUserInput(text); m_urlCombo->addToHistory(url.toDisplayString()); if (m_parent->localOnly() && !url.isLocalFile()) { return; // FIXME: messagebox for the user } QUrl oldUrl = m_treeView->currentUrl(); if (oldUrl.isEmpty()) { oldUrl = m_startDir; } m_parent->setCurrentUrl(oldUrl); } void KDirSelectDialog::Private::slotComboTextChanged(const QString &text) { m_treeView->blockSignals(true); QUrl url = QUrl::fromUserInput(text); #ifdef Q_OS_WIN QUrl rootUrl(m_treeView->rootUrl()); if (url.isLocalFile() && !rootUrl.isParentOf(url) && !rootUrl.matches(url, QUrl::StripTrailingSlash)) { QUrl tmp = KIO::upUrl(url); while (tmp.path().length() > 1) { url = tmp; tmp = KIO::upUrl(url); } m_treeView->setRootUrl(url); } #endif m_treeView->setCurrentUrl(url); m_treeView->blockSignals(false); } void KDirSelectDialog::Private::slotContextMenuRequested(const QPoint &pos) { m_contextMenu->popup(m_treeView->viewport()->mapToGlobal(pos)); } void KDirSelectDialog::Private::slotExpand(const QModelIndex &index) { m_treeView->setExpanded(index, !m_treeView->isExpanded(index)); } void KDirSelectDialog::Private::slotMoveToTrash() { const QUrl url = m_treeView->selectedUrl(); using Iface = KIO::AskUserActionInterface; auto *trashJob = new KIO::DeleteOrTrashJob({url}, Iface::Trash, Iface::DefaultConfirmation, m_parent); trashJob->start(); } void KDirSelectDialog::Private::slotDelete() { const QUrl url = m_treeView->selectedUrl(); using Iface = KIO::AskUserActionInterface; auto *deleteJob = new KIO::DeleteOrTrashJob({url}, Iface::Delete, Iface::DefaultConfirmation, m_parent); deleteJob->start(); } void KDirSelectDialog::Private::slotProperties() { KPropertiesDialog *dialog = new KPropertiesDialog(m_treeView->selectedUrl(), this->m_parent); dialog->setAttribute(Qt::WA_DeleteOnClose); dialog->show(); } KDirSelectDialog::KDirSelectDialog(const QUrl &startDir, bool localOnly, QWidget *parent) // #ifdef Q_OS_WIN // : QDialog(parent, Qt::WindowMinMaxButtonsHint), // #else // : QDialog(parent), // #endif : d(new Private(localOnly, this)) { setWindowTitle(i18nc("@title:window", "Select Folder")); setMinimumSize({200, 200}); QVBoxLayout *topLayout = new QVBoxLayout; topLayout->setContentsMargins({}); setLayout(topLayout); QPushButton *folderButton = new QPushButton(this); KGuiItem::assign(folderButton, KGuiItem(i18nc("@action:button", "New Folder..."), QStringLiteral("folder-new"))); connect(folderButton, &QPushButton::clicked, this, [this]() { d->slotMkdir(); }); auto splitter = new QSplitter(this); splitter->setChildrenCollapsible(false); splitter->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); topLayout->addWidget(splitter); auto mainWidget = new QWidget(splitter); QVBoxLayout *mainLayout = new QVBoxLayout(mainWidget); mainLayout->setContentsMargins({}); d->m_actions = new KActionCollection(this); d->m_actions->addAssociatedWidget(this); d->m_placesView = new KFilePlacesView(splitter); d->m_placesView->setModel(new KFilePlacesModel(d->m_placesView)); d->m_placesView->setObjectName(QStringLiteral("speedbar")); d->m_placesView->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff); d->m_placesView->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); d->m_placesView->setMinimumSize(250, 200); connect(d->m_placesView, &KFilePlacesView::urlChanged, this, &KDirSelectDialog::setCurrentUrl); splitter->addWidget(d->m_placesView); splitter->addWidget(mainWidget); d->m_treeView = new KFileTreeView(splitter); d->m_treeView->setDirOnlyMode(true); d->m_treeView->setContextMenuPolicy(Qt::CustomContextMenu); d->m_treeView->setProperty("_breeze_borders_sides", QVariant::fromValue(QFlags{Qt::TopEdge | Qt::BottomEdge})); for (int i = 1; i < d->m_treeView->model()->columnCount(); ++i) { d->m_treeView->hideColumn(i); } auto urlComboWrapper = new QWidget(splitter); auto urlComboWrapperLayout = new QVBoxLayout(urlComboWrapper); urlComboWrapperLayout->setContentsMargins(style()->pixelMetric(QStyle::PM_LayoutLeftMargin), 0, style()->pixelMetric(QStyle::PM_LayoutRightMargin), 0); d->m_urlCombo = new KHistoryComboBox(urlComboWrapper); d->m_urlCombo->setContentsMargins({}); d->m_urlCombo->setLayoutDirection(Qt::LeftToRight); d->m_urlCombo->setSizeAdjustPolicy(QComboBox::AdjustToContents); d->m_urlCombo->setTrapReturnKey(true); d->m_urlCombo->setIconProvider([](const QString &name) { return QIcon::fromTheme(KIO::iconNameForUrl(QUrl::fromUserInput(name))); }); KUrlCompletion *comp = new KUrlCompletion(); comp->setMode(KUrlCompletion::DirCompletion); d->m_urlCombo->setCompletionObject(comp, true); d->m_urlCombo->setAutoDeleteCompletionObject(true); d->m_urlCombo->setDuplicatesEnabled(false); urlComboWrapperLayout->addWidget(d->m_urlCombo); d->m_contextMenu = new QMenu(this); QAction *newFolder = new QAction(i18nc("@action:inmenu", "New Folder..."), this); d->m_actions->addAction(newFolder->objectName(), newFolder); newFolder->setIcon(QIcon::fromTheme(QStringLiteral("folder-new"))); newFolder->setShortcuts(KStandardShortcut::createFolder()); connect(newFolder, &QAction::triggered, this, [this]() { d->slotMkdir(); }); d->m_contextMenu->addAction(newFolder); d->moveToTrash = new QAction(i18nc("@action:inmenu", "Move to Trash"), this); d->m_actions->addAction(d->moveToTrash->objectName(), d->moveToTrash); d->moveToTrash->setIcon(QIcon::fromTheme(QStringLiteral("user-trash"))); d->moveToTrash->setShortcut(Qt::Key_Delete); connect(d->moveToTrash, &QAction::triggered, this, [this]() { d->slotMoveToTrash(); }); d->m_contextMenu->addAction(d->moveToTrash); d->deleteAction = new QAction(i18nc("@action:inmenu", "Delete"), this); d->m_actions->addAction(d->deleteAction->objectName(), d->deleteAction); d->deleteAction->setIcon(QIcon::fromTheme(QStringLiteral("edit-delete"))); d->deleteAction->setShortcut(Qt::SHIFT | Qt::Key_Delete); connect(d->deleteAction, &QAction::triggered, this, [this]() { d->slotDelete(); }); d->m_contextMenu->addAction(d->deleteAction); d->m_contextMenu->addSeparator(); d->showHiddenFoldersAction = new KToggleAction(i18nc("@option:check", "Show Hidden Folders"), this); d->m_actions->addAction(d->showHiddenFoldersAction->objectName(), d->showHiddenFoldersAction); d->showHiddenFoldersAction->setShortcuts(KStandardShortcut::showHideHiddenFiles()); connect(d->showHiddenFoldersAction, &QAction::triggered, d->m_treeView, &KFileTreeView::setShowHiddenFiles); d->m_contextMenu->addAction(d->showHiddenFoldersAction); d->m_contextMenu->addSeparator(); QAction *propertiesAction = new QAction(i18nc("@action:inmenu", "Properties"), this); d->m_actions->addAction(propertiesAction->objectName(), propertiesAction); propertiesAction->setIcon(QIcon::fromTheme(QStringLiteral("document-properties"))); propertiesAction->setShortcut(Qt::ALT | Qt::Key_Return); connect(propertiesAction, &QAction::triggered, this, [this]() { d->slotProperties(); }); d->m_contextMenu->addAction(propertiesAction); d->m_startURL = KFileWidget::getStartUrl(startDir, d->m_recentDirClass); if (localOnly && !d->m_startURL.isLocalFile()) { QString docPath = QStandardPaths::writableLocation(QStandardPaths::DocumentsLocation); if (QDir(docPath).exists()) { d->m_startURL = QUrl::fromLocalFile(docPath); } else { d->m_startURL = QUrl::fromLocalFile(QDir::homePath()); } } d->m_startDir = d->m_startURL; d->m_rootUrl = d->m_treeView->rootUrl(); d->readConfig(KSharedConfig::openConfig(), QStringLiteral("DirSelect Dialog")); d->m_buttons = new QDialogButtonBox(mainWidget); d->m_buttons->setContentsMargins(style()->pixelMetric(QStyle::PM_LayoutLeftMargin), 0, style()->pixelMetric(QStyle::PM_LayoutRightMargin), style()->pixelMetric(QStyle::PM_LayoutBottomMargin)); d->m_buttons->addButton(folderButton, QDialogButtonBox::ActionRole); d->m_buttons->setStandardButtons(QDialogButtonBox::Ok | QDialogButtonBox::Cancel); connect(d->m_buttons, &QDialogButtonBox::accepted, this, &QDialog::accept); connect(d->m_buttons, &QDialogButtonBox::rejected, this, &QDialog::reject); mainLayout->addWidget(d->m_treeView, 1); mainLayout->addWidget(urlComboWrapper, 0); mainLayout->addWidget(d->m_buttons); connect(d->m_treeView, &KFileTreeView::currentUrlChanged, this, [this](const QUrl &url) { d->slotCurrentChanged(url); }); connect(d->m_treeView, &QAbstractItemView::activated, this, [this](const QModelIndex &index) { d->slotExpand(index); }); connect(d->m_treeView, &QWidget::customContextMenuRequested, this, [this](const QPoint &pos) { d->slotContextMenuRequested(pos); }); connect(d->m_urlCombo, &QComboBox::editTextChanged, this, [this](const QString &text) { d->slotComboTextChanged(text); }); connect(d->m_urlCombo, &QComboBox::textActivated, this, [this](const QString &text) { d->slotUrlActivated(text); }); connect(d->m_urlCombo, QOverload<const QString &>::of(&KComboBox::returnPressed), this, [this](const QString &text) { d->slotUrlActivated(text); }); setCurrentUrl(d->m_startURL); } KDirSelectDialog::~KDirSelectDialog() { delete d; } QUrl KDirSelectDialog::url() const { QUrl comboUrl = QUrl::fromUserInput(d->m_urlCombo->currentText()); if (comboUrl.isValid()) { KIO::StatJob *statJob = KIO::stat(comboUrl, KIO::HideProgressInfo); KJobWidgets::setWindow(statJob, d->m_parent); const bool ok = statJob->exec(); if (ok && statJob->statResult().isDir()) { return comboUrl; } } // qDebug() << comboUrl.path() << " is not an accessible directory"; return d->m_treeView->currentUrl(); } QUrl KDirSelectDialog::rootUrl() const { return d->m_rootUrl; } QAbstractItemView *KDirSelectDialog::view() const { return d->m_treeView; } bool KDirSelectDialog::localOnly() const { return d->m_localOnly; } QUrl KDirSelectDialog::startDir() const { return d->m_startDir; } void KDirSelectDialog::setCurrentUrl(const QUrl &url) { if (!url.isValid()) { return; } if (url.scheme() != d->m_rootUrl.scheme()) { QUrl u(url); // We need the url to end with / because some code ahead (kdirmodel) is expecting // to find the / separator. It can happen that a valid url like smb: does not have // one so we should add it. if (!u.toString().endsWith(QLatin1Char('/'))) { u.setPath(QStringLiteral("/")); } d->m_treeView->setRootUrl(u); d->m_rootUrl = u; } // Check if url represents a hidden folder and enable showing them QString fileName = url.fileName(); // TODO a better hidden file check? bool isHidden = fileName.length() > 1 && fileName[0] == QLatin1Char('.') && (fileName.length() > 2 ? fileName[1] != QLatin1Char('.') : true); bool showHiddenFiles = isHidden && !d->m_treeView->showHiddenFiles(); if (showHiddenFiles) { d->showHiddenFoldersAction->setChecked(true); d->m_treeView->setShowHiddenFiles(true); } d->m_treeView->setCurrentUrl(url); } void KDirSelectDialog::accept() { QUrl selectedUrl = url(); if (!selectedUrl.isValid()) { return; } if (!d->m_recentDirClass.isEmpty()) { KRecentDirs::add(d->m_recentDirClass, selectedUrl.toString()); } d->m_urlCombo->addToHistory(selectedUrl.toDisplayString()); KFileWidget::setStartDir(url()); QDialog::accept(); } void KDirSelectDialog::hideEvent(QHideEvent *event) { d->saveConfig(KSharedConfig::openConfig(), QStringLiteral("DirSelect Dialog")); QDialog::hideEvent(event); } // static QUrl KDirSelectDialog::selectDirectory(const QUrl &startDir, bool localOnly, QWidget *parent, const QString &caption) { KDirSelectDialog myDialog(startDir, localOnly, parent); if (!caption.isNull()) { myDialog.setWindowTitle(caption); } if (myDialog.exec() == QDialog::Accepted) { QUrl url = myDialog.url(); // Returning the most local url if (url.isLocalFile()) { return url; } KIO::StatJob *job = KIO::stat(url); KJobWidgets::setWindow(job, parent); if (!job->exec()) { return url; } KIO::UDSEntry entry = job->statResult(); const QString path = entry.stringValue(KIO::UDSEntry::UDS_LOCAL_PATH); return path.isEmpty() ? url : QUrl::fromLocalFile(path); } else { return QUrl(); } } QUrl KDirSelectDialog::directory() { return url(); } QList<QUrl> KDirSelectDialog::selectedFiles() { return QList<QUrl>() << url(); } void KDirSelectDialog::setOkButtonText(const QString &text) { d->m_buttons->button(QDialogButtonBox::Ok)->setText(text); } void KDirSelectDialog::setCancelButtonText(const QString &text) { d->m_buttons->button(QDialogButtonBox::Cancel)->setText(text); } void KDirSelectDialog::setDirectory(const QUrl &directory) { setCurrentUrl(directory); } QString KDirSelectDialog::selectedMimeTypeFilter() { return QString(); } QString KDirSelectDialog::selectedNameFilter() { return QString(); } QString KDirSelectDialog::currentFilterText() { return QString(); } void KDirSelectDialog::selectFile(const QUrl &filename) { Q_UNUSED(filename) } void KDirSelectDialog::selectMimeTypeFilter(const QString &filter) { Q_UNUSED(filter) } void KDirSelectDialog::selectNameFilter(const QString &filter) { Q_UNUSED(filter) } #include "moc_kdirselectdialog_p.cpp" 070701000000A6000081A40000000000000000000000016728A27700000E08000000000000000000000000000000000000006100000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt5/src/platformtheme/kdirselectdialog_p.h/* SPDX-FileCopyrightText: 2001 Michael Jarrett <michaelj@corel.com> SPDX-FileCopyrightText: 2001 Carsten Pfeiffer <pfeiffer@kde.org> SPDX-FileCopyrightText: 2009 Shaun Reich <shaun.reich@kdemail.net> SPDX-License-Identifier: LGPL-2.0-only */ #ifndef KDIRSELECTDIALOG_H #define KDIRSELECTDIALOG_H #include "kdeplatformfiledialogbase_p.h" #include <QUrl> class QAbstractItemView; /** * A pretty dialog for a KDirSelect control for selecting directories. * @author Michael Jarrett <michaelj@corel.com> */ class KDirSelectDialog : public KDEPlatformFileDialogBase { Q_OBJECT public: /** * Creates a new directory selection dialog. * @internal use the static selectDirectory function * @param startDir the directory, initially shown * @param localOnly unused. You can only select paths below the startDir * @param parent the parent for the dialog, usually 0L */ explicit KDirSelectDialog(const QUrl &startDir = QUrl(), bool localOnly = false, QWidget *parent = nullptr); /** * Destroys the directory selection dialog. */ ~KDirSelectDialog() override; /** * Returns the currently selected URL, or an empty one if no item is selected. * * If the URL entered in the combobox is valid and exists, it is returned. * Otherwise, the URL selected in the treeview is returned instead. */ QUrl url() const; /** * Returns the root url */ QUrl rootUrl() const; /** * Returns a pointer to the view which is used for displaying the directories. */ QAbstractItemView *view() const; /** * Returns whether only local directories can be selected. */ bool localOnly() const; /** * Creates a KDirSelectDialog, and returns the result. * @param startDir the directory, initially shown * The tree will display this directory and subdirectories of it. * @param localOnly unused. You can only select paths below the startDir * @param parent the parent widget to use for the dialog, or NULL to create a parent-less dialog * @param caption the caption to use for the dialog, or QString() for the default caption * @return The URL selected, or an empty URL if the user canceled * or no URL was selected. * * @deprecated since 5.0, use QFileDialog::getExistingDirectory (if localOnly was true) * or QFileDialog::getExistingDirectoryUrl (if localOnly was false) instead. */ static QUrl selectDirectory(const QUrl &startDir = QUrl(), bool localOnly = false, QWidget *parent = nullptr, const QString &caption = QString()); /** * @return The path for the root node */ QUrl startDir() const; QUrl directory() override; void selectMimeTypeFilter(const QString &filter) override; void selectNameFilter(const QString &filter) override; void setDirectory(const QUrl &directory) override; void selectFile(const QUrl &filename) override; QString selectedMimeTypeFilter() override; QString selectedNameFilter() override; QString currentFilterText() override; QList<QUrl> selectedFiles() override; void setOkButtonText(const QString &text); void setCancelButtonText(const QString &text); public Q_SLOTS: /** * Sets the current @p url in the dialog. */ void setCurrentUrl(const QUrl &url); protected: void accept() override; /** * Reimplemented for saving the dialog geometry. */ void hideEvent(QHideEvent *event) override; private: class Private; Private *const d; }; #endif 070701000000A7000081A40000000000000000000000016728A2770000154A000000000000000000000000000000000000005E00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt5/src/platformtheme/kfiletreeview.cpp/* This file is part of the KDE project SPDX-FileCopyrightText: 2007 Tobias Koenig <tokoe@kde.org> SPDX-License-Identifier: LGPL-2.0-or-later */ #include "kfiletreeview_p.h" #include <QContextMenuEvent> #include <QDir> #include <QMenu> #include <QUrl> #include <kdirlister.h> #include <kdirmodel.h> #include <kdirsortfilterproxymodel.h> #include <kfileitemdelegate.h> #include <klocalizedstring.h> #include <ktoggleaction.h> class KFileTreeView::Private { public: Private(KFileTreeView *parent) : q(parent) { } QUrl urlForProxyIndex(const QModelIndex &index) const; void activated(const QModelIndex &); void currentChanged(const QModelIndex &, const QModelIndex &); void expanded(const QModelIndex &); KFileTreeView *const q; KDirModel *mSourceModel = nullptr; KDirSortFilterProxyModel *mProxyModel = nullptr; }; QUrl KFileTreeView::Private::urlForProxyIndex(const QModelIndex &index) const { const KFileItem item = mSourceModel->itemForIndex(mProxyModel->mapToSource(index)); return !item.isNull() ? item.url() : QUrl(); } void KFileTreeView::Private::activated(const QModelIndex &index) { const QUrl url = urlForProxyIndex(index); if (url.isValid()) { Q_EMIT q->activated(url); } } void KFileTreeView::Private::currentChanged(const QModelIndex ¤tIndex, const QModelIndex &) { const QUrl url = urlForProxyIndex(currentIndex); if (url.isValid()) { Q_EMIT q->currentUrlChanged(url); } } void KFileTreeView::Private::expanded(const QModelIndex &baseIndex) { QModelIndex index = mProxyModel->mapFromSource(baseIndex); q->setExpanded(index, true); q->selectionModel()->clearSelection(); q->selectionModel()->setCurrentIndex(index, QItemSelectionModel::SelectCurrent); q->scrollTo(index); } KFileTreeView::KFileTreeView(QWidget *parent) : QTreeView(parent) , d(new Private(this)) { d->mSourceModel = new KDirModel(this); d->mProxyModel = new KDirSortFilterProxyModel(this); d->mProxyModel->setSourceModel(d->mSourceModel); setModel(d->mProxyModel); setItemDelegate(new KFileItemDelegate(this)); setLayoutDirection(Qt::LeftToRight); d->mSourceModel->dirLister()->openUrl(QUrl::fromLocalFile(QDir::root().absolutePath()), KDirLister::Keep); connect(this, &QAbstractItemView::activated, this, [this](const QModelIndex &index) { d->activated(index); }); connect(selectionModel(), &QItemSelectionModel::currentChanged, this, [this](const QModelIndex ¤t, const QModelIndex &previous) { d->currentChanged(current, previous); }); connect(d->mSourceModel, &KDirModel::expand, this, [this](const QModelIndex &index) { d->expanded(index); }); } KFileTreeView::~KFileTreeView() { delete d; } QUrl KFileTreeView::currentUrl() const { return d->urlForProxyIndex(currentIndex()); } QUrl KFileTreeView::selectedUrl() const { if (!selectionModel()->hasSelection()) { return QUrl(); } const QItemSelection selection = selectionModel()->selection(); const QModelIndex firstIndex = selection.indexes().first(); return d->urlForProxyIndex(firstIndex); } QList<QUrl> KFileTreeView::selectedUrls() const { QList<QUrl> urls; if (!selectionModel()->hasSelection()) { return urls; } const QModelIndexList indexes = selectionModel()->selection().indexes(); foreach (const QModelIndex &index, indexes) { const QUrl url = d->urlForProxyIndex(index); if (url.isValid()) { urls.append(url); } } return urls; } QUrl KFileTreeView::rootUrl() const { return d->mSourceModel->dirLister()->url(); } void KFileTreeView::setDirOnlyMode(bool enabled) { d->mSourceModel->dirLister()->setDirOnlyMode(enabled); d->mSourceModel->dirLister()->openUrl(d->mSourceModel->dirLister()->url()); } void KFileTreeView::setShowHiddenFiles(bool enabled) { QUrl url = currentUrl(); d->mSourceModel->dirLister()->setShowHiddenFiles(enabled); d->mSourceModel->dirLister()->openUrl(d->mSourceModel->dirLister()->url()); setCurrentUrl(url); } void KFileTreeView::setCurrentUrl(const QUrl &url) { const QModelIndex baseIndex = d->mSourceModel->indexForUrl(url); if (!baseIndex.isValid()) { d->mSourceModel->expandToUrl(url); return; } const QModelIndex proxyIndex = d->mProxyModel->mapFromSource(baseIndex); selectionModel()->clearSelection(); selectionModel()->setCurrentIndex(proxyIndex, QItemSelectionModel::SelectCurrent); scrollTo(proxyIndex); } void KFileTreeView::setRootUrl(const QUrl &url) { d->mSourceModel->dirLister()->openUrl(url); } void KFileTreeView::contextMenuEvent(QContextMenuEvent *event) { QMenu menu; KToggleAction *showHiddenAction = new KToggleAction(i18n("Show Hidden Folders"), &menu); showHiddenAction->setChecked(d->mSourceModel->dirLister()->showHiddenFiles()); connect(showHiddenAction, &QAction::toggled, this, &KFileTreeView::setShowHiddenFiles); menu.addAction(showHiddenAction); menu.exec(event->globalPos()); } bool KFileTreeView::showHiddenFiles() const { return d->mSourceModel->dirLister()->showHiddenFiles(); } QSize KFileTreeView::sizeHint() const { // This size makes KDirSelectDialog pop up just under 800x600 by default :-) return QSize(680, 500); } #include "moc_kfiletreeview_p.cpp" 070701000000A8000081A40000000000000000000000016728A27700000854000000000000000000000000000000000000005E00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt5/src/platformtheme/kfiletreeview_p.h/* This file is part of the KDE project SPDX-FileCopyrightText: 2007 Tobias Koenig <tokoe@kde.org> SPDX-License-Identifier: LGPL-2.0-or-later */ #ifndef KFILETREEVIEW_H #define KFILETREEVIEW_H #include <QTreeView> #include <QUrl> /** * The file treeview offers a treeview on the filesystem. */ class KFileTreeView : public QTreeView // exported only for kfiletreeviewtest { Q_OBJECT public: /** * Creates a new file tree view. */ explicit KFileTreeView(QWidget *parent = nullptr); /** * Destroys the file tree view. */ ~KFileTreeView() override; /** * Returns the current url. */ QUrl currentUrl() const; /** * Returns the selected url. */ QUrl selectedUrl() const; /** * Returns all selected urls. */ QList<QUrl> selectedUrls() const; /** * Returns the current root url of the view. */ QUrl rootUrl() const; /** * Returns true if the view is currently showing hidden files * @since 4.3 */ bool showHiddenFiles() const; /** * @reimplemented */ QSize sizeHint() const override; public Q_SLOTS: /** * Sets whether the dir-only mode is @p enabled. * * In dir-only mode, only directories and subdirectories * are listed in the view. */ void setDirOnlyMode(bool enabled); /** * Sets whether hidden files shall be listed. */ void setShowHiddenFiles(bool enabled); /** * Sets the current @p url of the view. */ void setCurrentUrl(const QUrl &url); /** * Sets the root @p url of the view. * * The default is file:///. */ void setRootUrl(const QUrl &url); Q_SIGNALS: /** * This signal is emitted whenever an @p url has been activated. */ void activated(const QUrl &url); /** * This signal is emitted whenever the current @p url has been changed. */ void currentUrlChanged(const QUrl &url); protected: void contextMenuEvent(QContextMenuEvent *) override; private: class Private; Private *const d; }; #endif 070701000000A9000081A40000000000000000000000016728A27700001D08000000000000000000000000000000000000006200000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt5/src/platformtheme/kfontsettingsdata.cpp/* This file is part of the KDE libraries SPDX-FileCopyrightText: 2000, 2006 David Faure <faure@kde.org> SPDX-FileCopyrightText: 2008 Friedrich W. H. Kossebau <kossebau@kde.org> SPDX-FileCopyrightText: 2013 Aleix Pol Gonzalez <aleixpol@blue-systems.com> SPDX-FileCopyrightText: 2022 Harald Sitter <sitter@kde.org> SPDX-License-Identifier: LGPL-2.0-only */ #include "kfontsettingsdata.h" #include <QApplication> #include <QCoreApplication> #include <QDBusConnection> #include <QDBusMessage> #include <QDBusReply> #include <QString> #include <QVariant> #include <qpa/qwindowsysteminterface.h> #include <KSandbox> #include <kconfiggroup.h> KFontSettingsData::KFontSettingsData() : QObject(nullptr) , mUsePortal(KSandbox::isInside()) , mKdeGlobals(KSharedConfig::openConfig()) { QMetaObject::invokeMethod(this, "delayedDBusConnects", Qt::QueuedConnection); for (int i = 0; i < FontTypesCount; ++i) { mFonts[i] = nullptr; } } KFontSettingsData::~KFontSettingsData() { for (int i = 0; i < FontTypesCount; ++i) { delete mFonts[i]; } } // NOTE: keep in sync with plasma-desktop/kcms/fonts/fonts.cpp static const char GeneralId[] = "General"; static const char DefaultFont[] = "Noto Sans"; static const KFontData DefaultFontData[KFontSettingsData::FontTypesCount] = { {GeneralId, "font", DefaultFont, 10, QFont::Normal, QFont::SansSerif, "Regular"}, {GeneralId, "fixed", "Hack", 10, QFont::Normal, QFont::Monospace, "Regular"}, {GeneralId, "toolBarFont", DefaultFont, 10, QFont::Normal, QFont::SansSerif, "Regular"}, {GeneralId, "menuFont", DefaultFont, 10, QFont::Normal, QFont::SansSerif, "Regular"}, {"WM", "activeFont", DefaultFont, 10, QFont::Normal, QFont::SansSerif, "Regular"}, {GeneralId, "taskbarFont", DefaultFont, 10, QFont::Normal, QFont::SansSerif, "Regular"}, {GeneralId, "smallestReadableFont", DefaultFont, 8, QFont::Normal, QFont::SansSerif, "Regular"}, }; // From https://invent.kde.org/qt/qt/qtbase/blob/6.7/src/gui/text/qfont.cpp#L146 static int convertWeights(int weight, bool inverted) { static constexpr int legacyToOpenTypeMap[][2] = { {0, 100}, {12, 200}, {25, 300}, {50, 400}, {57, 500}, {63, 600}, {75, 700}, {81, 800}, {87, 900}, }; int closestDist = INT_MAX; int result = -1; // Go through and find the closest mapped value for (const auto &mapping : legacyToOpenTypeMap) { const int weightOld = mapping[inverted]; const int weightNew = mapping[!inverted]; const int dist = qAbs(weightOld - weight); if (dist < closestDist) { result = weightNew; closestDist = dist; } else { // Break early since following values will be further away break; } } return result; } // Qt5: https://invent.kde.org/qt/qt/qtbase/blob/5.15/src/gui/text/qfont.cpp#L2110 // Qt6: https://invent.kde.org/qt/qt/qtbase/blob/6.7/src/gui/text/qfont.cpp#L2135 static QString convertQt6FontStringToQt5(const QString &fontInfo) { const auto parts = fontInfo.trimmed().split(QLatin1Char(',')); const int count = parts.count(); if (count != 16 && count != 17) { return fontInfo; } auto result = parts.mid(0, 10); result[4] = QString::number(convertWeights(parts[4].toInt(), true)); if (count == 17) { result << parts.last(); } return result.join(QLatin1Char(',')); } QFont *KFontSettingsData::font(FontTypes fontType) { QFont *cachedFont = mFonts[fontType]; if (!cachedFont) { const KFontData &fontData = DefaultFontData[fontType]; cachedFont = new QFont(QLatin1String(fontData.FontName), fontData.Size, fontData.Weight); cachedFont->setStyleHint(fontData.StyleHint); const QString fontInfo = readConfigValue(QLatin1String(fontData.ConfigGroupKey), QLatin1String(fontData.ConfigKey)); // If we have serialized information for this font, restore it // NOTE: We are not using KConfig directly because we can't call QFont::QFont from here if (!fontInfo.isEmpty()) { cachedFont->fromString(convertQt6FontStringToQt5(fontInfo)); } // Don't set default font style names, as it prevents different font weights from being used (the QFont::Normal weight should work) mFonts[fontType] = cachedFont; } return cachedFont; } void KFontSettingsData::dropFontSettingsCache() { mKdeGlobals->reparseConfiguration(); for (int i = 0; i < FontTypesCount; ++i) { delete mFonts[i]; mFonts[i] = nullptr; } QWindowSystemInterface::handleThemeChange(nullptr); if (qobject_cast<QApplication *>(QCoreApplication::instance())) { QApplication::setFont(*font(KFontSettingsData::GeneralFont)); } else { QGuiApplication::setFont(*font(KFontSettingsData::GeneralFont)); } } void KFontSettingsData::delayedDBusConnects() { QDBusConnection::sessionBus().connect(QString(), QStringLiteral("/KDEPlatformTheme"), QStringLiteral("org.kde.KDEPlatformTheme"), QStringLiteral("refreshFonts"), this, SLOT(dropFontSettingsCache())); if (mUsePortal) { QDBusConnection::sessionBus().connect(QString(), QStringLiteral("/org/freedesktop/portal/desktop"), QStringLiteral("org.freedesktop.portal.Settings"), QStringLiteral("SettingChanged"), this, SLOT(slotPortalSettingChanged(QString, QString, QDBusVariant))); } } void KFontSettingsData::slotPortalSettingChanged(const QString &group, const QString &key, const QDBusVariant &value) { Q_UNUSED(value); if (group == QLatin1String("org.kde.kdeglobals.General") && key == QLatin1String("font")) { dropFontSettingsCache(); } } QString KFontSettingsData::readConfigValue(const QString &group, const QString &key, const QString &defaultValue) const { if (mUsePortal) { const QString settingName = QStringLiteral("org.kde.kdeglobals.%1").arg(group); QDBusMessage message = QDBusMessage::createMethodCall(QStringLiteral("org.freedesktop.portal.Desktop"), QStringLiteral("/org/freedesktop/portal/desktop"), QStringLiteral("org.freedesktop.portal.Settings"), QStringLiteral("Read")); message << settingName << key; // FIXME: async? QDBusReply<QVariant> reply = QDBusConnection::sessionBus().call(message); if (reply.isValid()) { QDBusVariant result = qvariant_cast<QDBusVariant>(reply.value()); const QString resultStr = result.variant().toString(); if (!resultStr.isEmpty()) { return resultStr; } } } const KConfigGroup configGroup(mKdeGlobals, group); return configGroup.readEntry(key, defaultValue); } 070701000000AA000081A40000000000000000000000016728A2770000064D000000000000000000000000000000000000006000000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt5/src/platformtheme/kfontsettingsdata.h/* This file is part of the KDE libraries SPDX-FileCopyrightText: 2000, 2006 David Faure <faure@kde.org> SPDX-FileCopyrightText: 2008 Friedrich W. H. Kossebau <kossebau@kde.org> SPDX-FileCopyrightText: 2013 Aleix Pol Gonzalez <aleixpol@blue-systems.com> SPDX-License-Identifier: LGPL-2.0-only */ #ifndef KFONTSETTINGSDATA_H #define KFONTSETTINGSDATA_H #include <QDBusVariant> #include <QFont> #include <QObject> #include <ksharedconfig.h> struct KFontData { const char *ConfigGroupKey; const char *ConfigKey; const char *FontName; int Size; int Weight; QFont::StyleHint StyleHint; const char *StyleName; }; class KFontSettingsData : public QObject { Q_OBJECT public: // if adding a new type here also add an entry to DefaultFontData enum FontTypes { GeneralFont = 0, FixedFont, ToolbarFont, MenuFont, WindowTitleFont, TaskbarFont, SmallestReadableFont, FontTypesCount, }; public: KFontSettingsData(); ~KFontSettingsData() override; public Q_SLOTS: void dropFontSettingsCache(); private Q_SLOTS: void delayedDBusConnects(); void slotPortalSettingChanged(const QString &group, const QString &key, const QDBusVariant &value); public: // access, is not const due to caching QFont *font(FontTypes fontType); private: QString readConfigValue(const QString &group, const QString &key, const QString &defaultValue = QString()) const; bool mUsePortal; QFont *mFonts[FontTypesCount]; KSharedConfigPtr mKdeGlobals; }; #endif // KFONTSETTINGSDATA_H 070701000000AB000081A40000000000000000000000016728A277000051C1000000000000000000000000000000000000005F00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt5/src/platformtheme/khintssettings.cpp/* This file is part of the KDE libraries SPDX-FileCopyrightText: 2013 Kevin Ottens <ervin+bluesystems@kde.org> SPDX-FileCopyrightText: 2013 Aleix Pol Gonzalez <aleixpol@blue-systems.com> SPDX-FileCopyrightText: 2013 Alejandro Fiestas Olivares <afiestas@kde.org> SPDX-FileCopyrightText: 2022 Harald Sitter <sitter@kde.org> SPDX-License-Identifier: LGPL-2.0-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ #include "khintssettings.h" #include <QApplication> #include <QDebug> #include <QDialogButtonBox> #include <QDir> #include <QFileInfo> #include <QGuiApplication> #include <QMainWindow> #include <QPalette> #include <QScreen> #include <QStandardPaths> #include <QString> #include <QTemporaryFile> #include <QToolBar> #include <QToolButton> #include <QDBusArgument> #include <QDBusConnection> #include <QDBusInterface> #include <KSandbox> #include <kcolorscheme.h> #include <kconfiggroup.h> #include <kiconloader.h> #include <config-platformtheme.h> #ifdef UNIT_TEST #undef HAVE_X11 #define HAVE_X11 0 #endif #if HAVE_X11 #include <QX11Info> #include <X11/Xcursor/Xcursor.h> #endif static const QString defaultLookAndFeelPackage = QStringLiteral("org.kde.breeze.desktop"); const QDBusArgument &operator>>(const QDBusArgument &argument, QMap<QString, QVariantMap> &map) { argument.beginMap(); map.clear(); while (!argument.atEnd()) { QString key; QVariantMap value; argument.beginMapEntry(); argument >> key >> value; argument.endMapEntry(); map.insert(key, value); } argument.endMap(); return argument; } KHintsSettings::KHintsSettings(const KSharedConfig::Ptr &kdeglobals) : QObject(nullptr) , mKdeGlobals(kdeglobals) , mUsePortal(KSandbox::isInside()) { if (!mKdeGlobals) { mKdeGlobals = KSharedConfig::openConfig(); } KConfigGroup cg(mKdeGlobals, "KDE"); if (mUsePortal) { updatePortalSetting(); } const auto cursorBlinkRate = readConfigValue(cg, QStringLiteral("CursorBlinkRate"), 1000).toInt(); m_hints[QPlatformTheme::CursorFlashTime] = cursorBlinkRate > 0 ? qBound(200, cursorBlinkRate, 2000) : 0; // 0 => no blinking m_hints[QPlatformTheme::MouseDoubleClickInterval] = readConfigValue(cg, QStringLiteral("DoubleClickInterval"), 400); m_hints[QPlatformTheme::StartDragDistance] = readConfigValue(cg, QStringLiteral("StartDragDist"), 10); m_hints[QPlatformTheme::StartDragTime] = readConfigValue(cg, QStringLiteral("StartDragTime"), 500); KConfigGroup cgToolbar(mKdeGlobals, "Toolbar style"); m_hints[QPlatformTheme::ToolButtonStyle] = toolButtonStyle(cgToolbar); m_hints[QPlatformTheme::ToolBarIconSize] = KIconLoader::global()->currentSize(KIconLoader::MainToolbar); m_hints[QPlatformTheme::ItemViewActivateItemOnSingleClick] = readConfigValue(cg, QStringLiteral("SingleClick"), false); m_hints[QPlatformTheme::SystemIconThemeName] = readConfigValue(QStringLiteral("Icons"), QStringLiteral("Theme"), QStringLiteral("breeze")); m_hints[QPlatformTheme::SystemIconFallbackThemeName] = QStringLiteral("hicolor"); m_hints[QPlatformTheme::IconThemeSearchPaths] = xdgIconThemePaths(); QStringList styleNames{ QStringLiteral("breeze"), QStringLiteral("oxygen"), QStringLiteral("fusion"), QStringLiteral("windows"), }; const QString configuredStyle = readConfigValue(cg, QStringLiteral("widgetStyle"), QString()).toString(); if (!configuredStyle.isEmpty()) { styleNames.removeOne(configuredStyle); styleNames.prepend(configuredStyle); } const QString lnfStyle = readConfigValue(QStringLiteral("KDE"), QStringLiteral("widgetStyle"), QString()).toString(); if (!lnfStyle.isEmpty()) { styleNames.removeOne(lnfStyle); styleNames.prepend(lnfStyle); } m_hints[QPlatformTheme::StyleNames] = styleNames; m_hints[QPlatformTheme::DialogButtonBoxLayout] = QDialogButtonBox::KdeLayout; m_hints[QPlatformTheme::DialogButtonBoxButtonsHaveIcons] = readConfigValue(cg, QStringLiteral("ShowIconsOnPushButtons"), true); m_hints[QPlatformTheme::UseFullScreenForPopupMenu] = true; m_hints[QPlatformTheme::KeyboardScheme] = QPlatformTheme::KdeKeyboardScheme; int uiEffectsFlags = readConfigValue(cg, QStringLiteral("GraphicEffectsLevel"), 0) != 0 ? QPlatformTheme::GeneralUiEffect : 0; uiEffectsFlags |= QPlatformTheme::HoverEffect; m_hints[QPlatformTheme::UiEffects] = uiEffectsFlags; m_hints[QPlatformTheme::IconPixmapSizes] = QVariant::fromValue(QList<int>() << 512 << 256 << 128 << 64 << 32 << 22 << 16 << 8); m_hints[QPlatformTheme::WheelScrollLines] = readConfigValue(cg, QStringLiteral("WheelScrollLines"), 3); if (qobject_cast<QApplication *>(QCoreApplication::instance())) { QApplication::setWheelScrollLines(readConfigValue(cg, QStringLiteral("WheelScrollLines"), 3).toInt()); } updateShowIconsInMenuItems(cg); m_hints[QPlatformTheme::ShowShortcutsInContextMenus] = true; QMetaObject::invokeMethod(this, "delayedDBusConnects", Qt::QueuedConnection); QMetaObject::invokeMethod(this, "setupIconLoader", Qt::QueuedConnection); loadPalettes(); updateCursorTheme(); } KHintsSettings::~KHintsSettings() { qDeleteAll(m_palettes); } QVariant KHintsSettings::readConfigValue(const QString &group, const QString &key, const QVariant &defaultValue) { KConfigGroup userCg(mKdeGlobals, group); return readConfigValue(userCg, key, defaultValue); } QVariant KHintsSettings::readConfigValue(const KConfigGroup &cg, const QString &key, const QVariant &defaultValue) const { if (mUsePortal) { const QString settingName = QStringLiteral("org.kde.kdeglobals.%1").arg(cg.name()); auto groupIt = mKdeGlobalsPortal.constFind(settingName); if (groupIt != mKdeGlobalsPortal.constEnd()) { auto valueIt = groupIt.value().constFind(key); if (valueIt != groupIt.value().constEnd()) { return valueIt.value(); } } } return cg.readEntry(key, defaultValue); } QStringList KHintsSettings::xdgIconThemePaths() const { QStringList paths; // make sure we have ~/.local/share/icons in paths if it exists paths << QStandardPaths::locateAll(QStandardPaths::GenericDataLocation, QStringLiteral("icons"), QStandardPaths::LocateDirectory); const QFileInfo homeIconDir(QDir::homePath() + QStringLiteral("/.icons")); if (homeIconDir.isDir()) { paths << homeIconDir.absoluteFilePath(); } return paths; } void KHintsSettings::delayedDBusConnects() { QDBusConnection::sessionBus() .connect(QString(), QStringLiteral("/KToolBar"), QStringLiteral("org.kde.KToolBar"), QStringLiteral("styleChanged"), this, SLOT(toolbarStyleChanged())); QDBusConnection::sessionBus().connect(QString(), QStringLiteral("/KGlobalSettings"), QStringLiteral("org.kde.KGlobalSettings"), QStringLiteral("notifyChange"), this, SLOT(slotNotifyChange(int, int))); if (mUsePortal) { QDBusConnection::sessionBus().connect(QString(), QStringLiteral("/org/freedesktop/portal/desktop"), QStringLiteral("org.freedesktop.portal.Settings"), QStringLiteral("SettingChanged"), this, SLOT(slotPortalSettingChanged(QString, QString, QDBusVariant))); } } void KHintsSettings::setupIconLoader() { connect(KIconLoader::global(), &KIconLoader::iconChanged, this, &KHintsSettings::iconChanged); } void KHintsSettings::toolbarStyleChanged() { mKdeGlobals->reparseConfiguration(); KConfigGroup cg(mKdeGlobals, "Toolbar style"); m_hints[QPlatformTheme::ToolButtonStyle] = toolButtonStyle(cg); // from gtksymbol.cpp QWidgetList widgets = QApplication::allWidgets(); for (int i = 0; i < widgets.size(); ++i) { QWidget *widget = widgets.at(i); if (qobject_cast<QToolButton *>(widget)) { QEvent event(QEvent::StyleChange); QApplication::sendEvent(widget, &event); } } } void KHintsSettings::slotNotifyChange(int type, int arg) { mKdeGlobals->reparseConfiguration(); KConfigGroup cg(mKdeGlobals, "KDE"); switch (type) { case PaletteChanged: { loadPalettes(); // Don't change the palette if the application has a custom one set if (!qApp->property("KDE_COLOR_SCHEME_PATH").toString().isEmpty()) { break; } // QApplication::setPalette and QGuiApplication::setPalette are different functions // and non virtual. Call the correct one if (qobject_cast<QApplication *>(QCoreApplication::instance())) { QPalette palette = *m_palettes[QPlatformTheme::SystemPalette]; QApplication::setPalette(palette); // QTBUG QGuiApplication::paletteChanged() signal is only emitted by QGuiApplication // so things like SystemPalette QtQuick item that use it won't notice a palette // change when a QApplication which causes e.g. QML System Settings modules to not update Q_EMIT qApp->paletteChanged(palette); } else if (qobject_cast<QGuiApplication *>(QCoreApplication::instance())) { QGuiApplication::setPalette(*m_palettes[QPlatformTheme::SystemPalette]); } break; } case SettingsChanged: { SettingsCategory category = static_cast<SettingsCategory>(arg); if (category == SETTINGS_QT || category == SETTINGS_MOUSE) { updateQtSettings(cg); } else if (category == SETTINGS_STYLE) { m_hints[QPlatformTheme::DialogButtonBoxButtonsHaveIcons] = cg.readEntry("ShowIconsOnPushButtons", true); m_hints[QPlatformTheme::UiEffects] = cg.readEntry("GraphicEffectsLevel", 0) != 0 ? QPlatformTheme::GeneralUiEffect : 0; updateShowIconsInMenuItems(cg); } break; } case ToolbarStyleChanged: { toolbarStyleChanged(); break; } case IconChanged: iconChanged(arg); // Once the KCM is ported to use IconChanged, this should not be needed break; case CursorChanged: updateCursorTheme(); updateX11CursorTheme(); break; case StyleChanged: { QApplication *app = qobject_cast<QApplication *>(QCoreApplication::instance()); if (!app) { return; } // HOTFIX here. Hardcoded default value is duplicated and may be inconsistent with the one actually defined in kcm_style kcfg const QString theme = readConfigValue(cg, QStringLiteral("widgetStyle"), QStringLiteral("breeze")).toString(); QStringList styleNames; if (theme != QStringLiteral("breeze")) { styleNames << theme; } styleNames << QStringLiteral("breeze") << QStringLiteral("oxygen") << QStringLiteral("fusion") << QStringLiteral("windows"); const QString lnfStyle = readConfigValue(QStringLiteral("KDE"), QStringLiteral("widgetStyle"), QString()).toString(); if (!lnfStyle.isEmpty() && !styleNames.contains(lnfStyle)) { styleNames.prepend(lnfStyle); } m_hints[QPlatformTheme::StyleNames] = styleNames; app->setStyle(theme); loadPalettes(); break; } default: qWarning() << "Unknown type of change in KGlobalSettings::slotNotifyChange: " << type; } } void KHintsSettings::slotPortalSettingChanged(const QString &group, const QString &key, const QDBusVariant &value) { if (group == QLatin1String("org.kde.kdeglobals.General") && key == QLatin1String("ColorScheme")) { // For colors obtain complete configuration again updatePortalSetting(); slotNotifyChange(PaletteChanged, 0); } else if (group == QLatin1String("org.kde.kdeglobals.KDE") && key == QLatin1String("widgetStyle")) { mKdeGlobalsPortal[group][key] = value.variant().toString(); slotNotifyChange(StyleChanged, 0); } else if (group == QLatin1String("org.kde.kdeglobals.Icons") && key == QLatin1String("Theme")) { mKdeGlobalsPortal[group][key] = value.variant().toString(); // Change icons for each group for (int i = 0; i <= 5; ++i) { iconChanged(i); } } else if (group == QLatin1String("org.kde.kdeglobals.Toolbar style") && key == QLatin1String("ToolButtonStyle")) { mKdeGlobalsPortal[group][key] = value.variant().toString(); toolbarStyleChanged(); } } void KHintsSettings::iconChanged(int group) { KIconLoader::Group iconGroup = (KIconLoader::Group)group; if (iconGroup != KIconLoader::MainToolbar) { m_hints[QPlatformTheme::SystemIconThemeName] = readConfigValue(QStringLiteral("Icons"), QStringLiteral("Theme"), QStringLiteral("breeze")); return; } const int currentSize = KIconLoader::global()->currentSize(KIconLoader::MainToolbar); if (m_hints[QPlatformTheme::ToolBarIconSize] == currentSize) { return; } m_hints[QPlatformTheme::ToolBarIconSize] = currentSize; // If we are not a QApplication, means that we are a QGuiApplication, then we do nothing. if (!qobject_cast<QApplication *>(QCoreApplication::instance())) { return; } const QWidgetList widgets = QApplication::allWidgets(); for (QWidget *widget : widgets) { if (qobject_cast<QToolBar *>(widget) || qobject_cast<QMainWindow *>(widget)) { QEvent event(QEvent::StyleChange); QApplication::sendEvent(widget, &event); } } } void KHintsSettings::updateQtSettings(KConfigGroup &cg) { int flash = qBound(200, cg.readEntry("CursorBlinkRate", 1000), 2000); m_hints[QPlatformTheme::CursorFlashTime] = flash; int doubleClickInterval = cg.readEntry("DoubleClickInterval", 400); m_hints[QPlatformTheme::MouseDoubleClickInterval] = doubleClickInterval; int startDragDistance = cg.readEntry("StartDragDist", 10); m_hints[QPlatformTheme::StartDragDistance] = startDragDistance; int startDragTime = cg.readEntry("StartDragTime", 500); m_hints[QPlatformTheme::StartDragTime] = startDragTime; m_hints[QPlatformTheme::ItemViewActivateItemOnSingleClick] = cg.readEntry("SingleClick", false); updateShowIconsInMenuItems(cg); int wheelScrollLines = cg.readEntry("WheelScrollLines", 3); m_hints[QPlatformTheme::WheelScrollLines] = wheelScrollLines; QApplication *app = qobject_cast<QApplication *>(QCoreApplication::instance()); if (app) { QApplication::setWheelScrollLines(cg.readEntry("WheelScrollLines", 3)); } } void KHintsSettings::updateShowIconsInMenuItems(KConfigGroup &cg) { bool showIcons = readConfigValue(cg, QStringLiteral("ShowIconsInMenuItems"), true).toBool(); QCoreApplication::setAttribute(Qt::AA_DontShowIconsInMenus, !showIcons); } Qt::ToolButtonStyle KHintsSettings::toolButtonStyle(const KConfigGroup &cg) { const QString buttonStyle = readConfigValue(cg, QStringLiteral("ToolButtonStyle"), QStringLiteral("TextBesideIcon")).toString().toLower(); return buttonStyle == QLatin1String("textbesideicon") ? Qt::ToolButtonTextBesideIcon : buttonStyle == QLatin1String("icontextright") ? Qt::ToolButtonTextBesideIcon : buttonStyle == QLatin1String("textundericon") ? Qt::ToolButtonTextUnderIcon : buttonStyle == QLatin1String("icontextbottom") ? Qt::ToolButtonTextUnderIcon : buttonStyle == QLatin1String("textonly") ? Qt::ToolButtonTextOnly : Qt::ToolButtonIconOnly; } void KHintsSettings::loadPalettes() { qDeleteAll(m_palettes); m_palettes.clear(); if (mUsePortal && mKdeGlobalsPortal.contains(QStringLiteral("org.kde.kdeglobals.Colors:View"))) { // Construct a temporary KConfig file containing color setting so we can create a KColorScheme from it QTemporaryFile file; file.open(); KSharedConfigPtr tempConfig = KSharedConfig::openConfig(file.fileName(), KConfig::SimpleConfig); for (auto groupIt = mKdeGlobalsPortal.constBegin(); groupIt != mKdeGlobalsPortal.constEnd(); ++groupIt) { if (groupIt.key().startsWith(QStringLiteral("org.kde.kdeglobals.Colors:"))) { KConfigGroup tempGroup(tempConfig, groupIt.key().right(groupIt.key().length() - QStringLiteral("org.kde.kdeglobals.").length())); for (auto valueIt = groupIt.value().constBegin(); valueIt != groupIt.value().constEnd(); ++valueIt) { tempGroup.writeEntry(valueIt.key(), valueIt.value()); } } } m_palettes[QPlatformTheme::SystemPalette] = new QPalette(KColorScheme::createApplicationPalette(tempConfig)); } else if (mKdeGlobals->hasGroup("Colors:View")) { m_palettes[QPlatformTheme::SystemPalette] = new QPalette(KColorScheme::createApplicationPalette(mKdeGlobals)); } else { KConfigGroup cg(mKdeGlobals, "KDE"); const QString looknfeel = readConfigValue(cg, QStringLiteral("LookAndFeelPackage"), defaultLookAndFeelPackage).toString(); QString path = QStandardPaths::locate(QStandardPaths::GenericDataLocation, QStringLiteral("plasma/look-and-feel/") + looknfeel + QStringLiteral("/contents/colors")); if (!path.isEmpty()) { m_palettes[QPlatformTheme::SystemPalette] = new QPalette(KColorScheme::createApplicationPalette(KSharedConfig::openConfig(path))); return; } const QString scheme = readConfigValue(QStringLiteral("General"), QStringLiteral("ColorScheme"), QStringLiteral("BreezeLight")).toString(); path = QStandardPaths::locate(QStandardPaths::GenericDataLocation, QStringLiteral("color-schemes/") + scheme + QStringLiteral(".colors")); if (path.isEmpty()) { qWarning() << "Could not find color scheme" << scheme << "falling back to BreezeLight"; path = QStandardPaths::locate(QStandardPaths::GenericDataLocation, QStringLiteral("color-schemes/BreezeLight.colors")); } m_palettes[QPlatformTheme::SystemPalette] = new QPalette(KColorScheme::createApplicationPalette(KSharedConfig::openConfig(path))); } } void KHintsSettings::updateCursorTheme() { KSharedConfig::Ptr inputConfig = KSharedConfig::openConfig(QStringLiteral("kcminputrc")); KConfigGroup mouseConfig(inputConfig, "Mouse"); const QString cursorTheme = readConfigValue(mouseConfig, QStringLiteral("cursorTheme"), QStringLiteral("breeze_cursors")).toString(); const int cursorSize = readConfigValue(mouseConfig, QStringLiteral("cursorSize"), 24).toInt(); if (QGuiApplication::platformName() == QLatin1String("wayland")) { qputenv("XCURSOR_THEME", cursorTheme.toUtf8()); qputenv("XCURSOR_SIZE", QByteArray::number(cursorSize)); } } void KHintsSettings::updateX11CursorTheme() { #if HAVE_X11 if (QX11Info::isPlatformX11()) { KConfig config(QStringLiteral("kcminputrc")); KConfigGroup g(&config, "Mouse"); int size = g.readEntry("cursorSize", 24); const QString theme = g.readEntry("cursorTheme", QString()); // Note that in X11R7.1 and earlier, calling XcursorSetTheme() // with a NULL theme would cause Xcursor to use "default", but // in 7.2 and later it will cause it to revert to the theme that // was configured when the application was started. XcursorSetTheme(QX11Info::display(), theme.isNull() ? "default" : QFile::encodeName(theme).constData()); XcursorSetDefaultSize(QX11Info::display(), size); } #endif } void KHintsSettings::updatePortalSetting() { mKdeGlobalsPortal.clear(); QDBusMessage message = QDBusMessage::createMethodCall(QStringLiteral("org.freedesktop.portal.Desktop"), QStringLiteral("/org/freedesktop/portal/desktop"), QStringLiteral("org.freedesktop.portal.Settings"), QStringLiteral("ReadAll")); message << QStringList{QStringLiteral("org.kde.kdeglobals.*")}; // FIXME: async? QDBusMessage resultMessage = QDBusConnection::sessionBus().call(message); if (resultMessage.type() == QDBusMessage::ReplyMessage) { QDBusArgument dbusArgument = resultMessage.arguments().at(0).value<QDBusArgument>(); dbusArgument >> mKdeGlobalsPortal; } } 070701000000AC000081A40000000000000000000000016728A27700000A62000000000000000000000000000000000000005D00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt5/src/platformtheme/khintssettings.h/* This file is part of the KDE libraries SPDX-FileCopyrightText: 2013 Alejandro Fiestas Olivares <afiestas@kde.org> SPDX-License-Identifier: LGPL-2.0-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ #ifndef KHINTS_SETTINGS_H #define KHINTS_SETTINGS_H #include <QDBusVariant> #include <QObject> #include <QVariant> #include <ksharedconfig.h> #include <qpa/qplatformtheme.h> class KConfigGroup; class QPalette; class KHintsSettings : public QObject { Q_OBJECT public: /** * An identifier for change signals. * @note Copied from KGlobalSettings */ enum ChangeType { PaletteChanged = 0, FontChanged, StyleChanged, SettingsChanged, IconChanged, CursorChanged, ToolbarStyleChanged, ClipboardConfigChanged, BlockShortcuts, NaturalSortingChanged, }; /** * Valid values for the settingsChanged signal * @note Copied from KGlobalSettings */ enum SettingsCategory { SETTINGS_MOUSE, SETTINGS_COMPLETION, SETTINGS_PATHS, SETTINGS_POPUPMENU, SETTINGS_QT, SETTINGS_SHORTCUTS, SETTINGS_LOCALE, SETTINGS_STYLE, }; explicit KHintsSettings(const KSharedConfig::Ptr &kdeglobals = KSharedConfig::Ptr()); ~KHintsSettings() override; inline QVariant hint(QPlatformTheme::ThemeHint hint) const { return m_hints[hint]; } inline QPalette *palette(QPlatformTheme::Palette type) const { return m_palettes[type]; } QStringList xdgIconThemePaths() const; private Q_SLOTS: void delayedDBusConnects(); void setupIconLoader(); void toolbarStyleChanged(); void slotNotifyChange(int type, int arg); void slotPortalSettingChanged(const QString &group, const QString &key, const QDBusVariant &value); private: QVariant readConfigValue(const QString &group, const QString &key, const QVariant &defaultValue); QVariant readConfigValue(const KConfigGroup &cg, const QString &key, const QVariant &defaultValue) const; void loadPalettes(); void iconChanged(int group); void updateQtSettings(KConfigGroup &cg); void updateShowIconsInMenuItems(KConfigGroup &cg); Qt::ToolButtonStyle toolButtonStyle(const KConfigGroup &cg); void updateCursorTheme(); void updateX11CursorTheme(); void updatePortalSetting(); QHash<QPlatformTheme::Palette, QPalette *> m_palettes; QHash<QPlatformTheme::ThemeHint, QVariant> m_hints; KSharedConfigPtr mKdeGlobals; QMap<QString, QVariantMap> mKdeGlobalsPortal; bool mUsePortal; }; #endif // KHINTS_SETTINGS_H 070701000000AD000081A40000000000000000000000016728A27700001E03000000000000000000000000000000000000006400000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt5/src/platformtheme/kwaylandintegration.cpp/* This file is part of the KDE libraries SPDX-FileCopyrightText: 2015 Martin Gräßlin <mgraesslin@kde.org> SPDX-License-Identifier: LGPL-2.0-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ #include "kwaylandintegration.h" #include <QExposeEvent> #include <QGuiApplication> #include <QWindow> #include <qpa/qplatformnativeinterface.h> #include <qtwaylandclientversion.h> #include "qdbusmenubar_p.h" #include "qwayland-appmenu.h" #include "qwayland-server-decoration-palette.h" #include <KWindowEffects> static const QByteArray s_schemePropertyName = QByteArrayLiteral("KDE_COLOR_SCHEME_PATH"); static const QByteArray s_blurBehindPropertyName = QByteArrayLiteral("ENABLE_BLUR_BEHIND_HINT"); class AppMenuManager : public QWaylandClientExtensionTemplate<AppMenuManager>, public QtWayland::org_kde_kwin_appmenu_manager { Q_OBJECT public: AppMenuManager() : QWaylandClientExtensionTemplate<AppMenuManager>(2) { // QWaylandClientExtensionTemplate invokes this with a QueuedConnection QMetaObject::invokeMethod(this, "addRegistryListener"); } ~AppMenuManager() { if (isActive() && QWaylandClientExtension::version() >= ORG_KDE_KWIN_APPMENU_MANAGER_RELEASE_SINCE_VERSION) { release(); } } }; class AppMenu : public QtWayland::org_kde_kwin_appmenu { public: using org_kde_kwin_appmenu::org_kde_kwin_appmenu; ~AppMenu() { release(); } }; class ServerSideDecorationPaletteManager : public QWaylandClientExtensionTemplate<ServerSideDecorationPaletteManager>, public QtWayland::org_kde_kwin_server_decoration_palette_manager { Q_OBJECT public: ServerSideDecorationPaletteManager() : QWaylandClientExtensionTemplate<ServerSideDecorationPaletteManager>(1) { QMetaObject::invokeMethod(this, "addRegistryListener"); } ~ServerSideDecorationPaletteManager() override { if (isActive()) { org_kde_kwin_server_decoration_palette_manager_destroy(object()); } } }; class ServerSideDecorationPalette : public QtWayland::org_kde_kwin_server_decoration_palette { public: using org_kde_kwin_server_decoration_palette::org_kde_kwin_server_decoration_palette; ~ServerSideDecorationPalette() override { release(); } }; Q_DECLARE_METATYPE(AppMenu *); Q_DECLARE_METATYPE(ServerSideDecorationPalette *); KWaylandIntegration::KWaylandIntegration(KdePlatformTheme *platformTheme) : QObject() , m_platformTheme(platformTheme) { QCoreApplication::instance()->installEventFilter(this); } KWaylandIntegration::~KWaylandIntegration() = default; bool KWaylandIntegration::isRelevantTopLevel(QWindow *w) { if (!w || w->parent()) { return false; } // ignore windows that map to XdgPopup if (w->type() == Qt::ToolTip || w->type() == Qt::Popup) { return false; } return true; } bool KWaylandIntegration::eventFilter(QObject *watched, QEvent *event) { if (event->type() == QEvent::Expose) { auto ee = static_cast<QExposeEvent *>(event); if (ee->region().isNull()) { return false; } QWindow *w = qobject_cast<QWindow *>(watched); if (!isRelevantTopLevel(w)) { return false; } if (!w->isVisible()) { return false; } if (w->property("org.kde.plasma.integration.shellSurfaceCreated").isNull()) { shellSurfaceCreated(w); } } else if (event->type() == QEvent::Hide) { QWindow *w = qobject_cast<QWindow *>(watched); if (!isRelevantTopLevel(w)) { return false; } shellSurfaceDestroyed(w); } else if (event->type() == QEvent::ApplicationPaletteChange) { if (watched != QGuiApplication::instance()) { return false; } const auto topLevelWindows = QGuiApplication::topLevelWindows(); for (QWindow *w : topLevelWindows) { if (isRelevantTopLevel(w)) { installColorScheme(w); } } } else if (event->type() == QEvent::PlatformSurface) { QWindow *w = qobject_cast<QWindow *>(watched); QPlatformSurfaceEvent *pe = static_cast<QPlatformSurfaceEvent *>(event); if (w && !w->flags().testFlag(Qt::ForeignWindow) && pe->surfaceEventType() == QPlatformSurfaceEvent::SurfaceCreated) { m_platformTheme->windowCreated(w); } } return false; } void KWaylandIntegration::shellSurfaceCreated(QWindow *w) { // set colorscheme hint if (qApp->property(s_schemePropertyName.constData()).isValid()) { installColorScheme(w); } const auto blurBehindProperty = w->property(s_blurBehindPropertyName.constData()); if (blurBehindProperty.isValid()) { KWindowEffects::enableBlurBehind(w, blurBehindProperty.toBool()); } // create deco wl_surface *s = surfaceFromWindow(w); if (!s) { return; } w->setProperty("org.kde.plasma.integration.shellSurfaceCreated", true); #ifndef KF6_TODO_DBUS_MENUBAR if (!m_appMenuManager) { m_appMenuManager.reset(new AppMenuManager()); } if (m_appMenuManager->isActive()) { auto menu = new AppMenu(m_appMenuManager->create(s)); w->setProperty("org.kde.plasma.integration.appmenu", QVariant::fromValue(menu)); auto menuBar = QDBusMenuBar::menuBarForWindow(w); if (!menuBar) { menuBar = QDBusMenuBar::globalMenuBar(); } if (menuBar) { menu->set_address(QDBusConnection::sessionBus().baseService(), menuBar->objectPath()); } } #endif } void KWaylandIntegration::shellSurfaceDestroyed(QWindow *w) { w->setProperty("org.kde.plasma.integration.shellSurfaceCreated", QVariant()); auto appMenu = w->property("org.kde.plasma.integration.appmenu").value<AppMenu *>(); if (appMenu) { delete appMenu; } w->setProperty("org.kde.plasma.integration.appmenu", QVariant()); auto decoPallete = w->property("org.kde.plasma.integration.palette").value<ServerSideDecorationPalette *>(); if (decoPallete) { delete decoPallete; } w->setProperty("org.kde.plasma.integration.palette", QVariant()); } void KWaylandIntegration::installColorScheme(QWindow *w) { if (!m_paletteManager) { m_paletteManager.reset(new ServerSideDecorationPaletteManager()); } if (!m_paletteManager->isActive()) { return; } auto palette = w->property("org.kde.plasma.integration.palette").value<ServerSideDecorationPalette *>(); if (!palette) { auto s = surfaceFromWindow(w); if (!s) { return; } palette = new ServerSideDecorationPalette(m_paletteManager->create(s)); w->setProperty("org.kde.plasma.integration.palette", QVariant::fromValue(palette)); } if (palette) { palette->set_palette(qApp->property(s_schemePropertyName.constData()).toString()); } } void KWaylandIntegration::setAppMenu(QWindow *window, const QString &serviceName, const QString &objectPath) { auto menu = window->property("org.kde.plasma.integration.appmenu").value<AppMenu *>(); if (menu) { menu->set_address(serviceName, objectPath); } } wl_surface *KWaylandIntegration::surfaceFromWindow(QWindow *window) { QPlatformNativeInterface *nativeInterface = qGuiApp->platformNativeInterface(); if (!nativeInterface) { return nullptr; } return static_cast<wl_surface *>(nativeInterface->nativeResourceForWindow("surface", window)); } #include "kwaylandintegration.moc" 070701000000AE000081A40000000000000000000000016728A27700000511000000000000000000000000000000000000006200000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt5/src/platformtheme/kwaylandintegration.h/* This file is part of the KDE libraries SPDX-FileCopyrightText: 2015 Martin Gräßlin <mgraesslin@kde.org> SPDX-License-Identifier: LGPL-2.0-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ #ifndef KWAYLANDINTEGRATION_H #define KWAYLANDINTEGRATION_H #include "kdeplatformtheme.h" #include <QHash> #include <QObject> #include <QtWaylandClient/QWaylandClientExtensionTemplate> class QWindow; class AppMenuManager; class ServerSideDecorationPaletteManager; class KWaylandIntegration : public QObject { Q_OBJECT public: explicit KWaylandIntegration(KdePlatformTheme *platformTheme); ~KWaylandIntegration() override; void setAppMenu(QWindow *window, const QString &serviceName, const QString &objectPath); void setPalette(QWindow *window, const QString &paletteName); bool eventFilter(QObject *watched, QEvent *event) override; private: static bool isRelevantTopLevel(QWindow *w); static struct wl_surface *surfaceFromWindow(QWindow *w); void shellSurfaceCreated(QWindow *w); void shellSurfaceDestroyed(QWindow *w); void installColorScheme(QWindow *w); QScopedPointer<AppMenuManager> m_appMenuManager; QScopedPointer<ServerSideDecorationPaletteManager> m_paletteManager; KdePlatformTheme *m_platformTheme; }; #endif 070701000000AF000081A40000000000000000000000016728A2770000031C000000000000000000000000000000000000005500000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt5/src/platformtheme/main.cpp/* This file is part of the KDE libraries SPDX-FileCopyrightText: 2013 Kevin Ottens <ervin+bluesystems@kde.org> SPDX-License-Identifier: LGPL-2.0-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ #include <qpa/qplatformthemeplugin.h> #include "kdeplatformtheme.h" class KdePlatformThemePlugin : public QPlatformThemePlugin { Q_OBJECT Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QPA.QPlatformThemeFactoryInterface.5.1" FILE "kdeplatformtheme.json") public: KdePlatformThemePlugin(QObject *parent = nullptr) : QPlatformThemePlugin(parent) { } QPlatformTheme *create(const QString &key, const QStringList ¶mList) override { Q_UNUSED(key) Q_UNUSED(paramList) return new KdePlatformTheme; } }; #include "main.moc" 070701000000B0000081ED0000000000000000000000016728A27700000071000000000000000000000000000000000000005900000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt5/src/platformtheme/mono_font.pl#! /usr/bin/perl use strict; while (<>) { chomp; s/fixed=Oxygen\ Mono/fixed=Hack/; print "$_\n"; } 070701000000B1000081A40000000000000000000000016728A27700000064000000000000000000000000000000000000005A00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt5/src/platformtheme/mono_font.updVersion=5 Id=Plasma_Mono_Font Options=overwrite File=kdeglobals,kdeglobals Script=mono_font.pl,perl 070701000000B2000081A40000000000000000000000016728A2770000047F000000000000000000000000000000000000006E00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt5/src/platformtheme/org.kde.StatusNotifierWatcher.xml<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd"> <node> <interface name="org.kde.StatusNotifierWatcher"> <!-- methods --> <method name="RegisterStatusNotifierItem"> <arg name="service" type="s" direction="in"/> </method> <method name="RegisterStatusNotifierHost"> <arg name="service" type="s" direction="in"/> </method> <!-- properties --> <property name="RegisteredStatusNotifierItems" type="as" access="read"> <annotation name="org.qtproject.QtDBus.QtTypeName.Out0" value="QStringList"/> </property> <property name="IsStatusNotifierHostRegistered" type="b" access="read"/> <property name="ProtocolVersion" type="i" access="read"/> <!-- signals --> <signal name="StatusNotifierItemRegistered"> <arg type="s"/> </signal> <signal name="StatusNotifierItemUnregistered"> <arg type="s"/> </signal> <signal name="StatusNotifierHostRegistered"> </signal> <signal name="StatusNotifierHostUnregistered"> </signal> </interface> </node> 070701000000B3000081A40000000000000000000000016728A27700001951000000000000000000000000000000000000005D00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt5/src/platformtheme/qdbusmenubar.cpp/* SPDX-FileCopyrightText: 2016 Dmitry Shachnev <mitya57@gmail.com> SPDX-FileContributor: The Qt Company <https://www.qt.io/licensing/> SPDX-License-Identifier: LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KFQF-Accepted-GPL OR LicenseRef-Qt-Commercial */ #include "qdbusmenubar_p.h" QT_BEGIN_NAMESPACE /* note: do not change these to QStringLiteral; we are unloaded before QtDBus is done using the strings. */ #define REGISTRAR_SERVICE QLatin1String("com.canonical.AppMenu.Registrar") #define REGISTRAR_PATH QLatin1String("/com/canonical/AppMenu/Registrar") QDBusMenuBar::QDBusMenuBar(KdePlatformTheme *platformTheme) : QPlatformMenuBar() , m_menu(new QDBusPlatformMenu()) , m_menuAdaptor(new QDBusMenuAdaptor(m_menu)) , m_platformTheme(platformTheme) { QDBusMenuItem::registerDBusTypes(); connect(m_menu, &QDBusPlatformMenu::propertiesUpdated, m_menuAdaptor, &QDBusMenuAdaptor::ItemsPropertiesUpdated); connect(m_menu, &QDBusPlatformMenu::updated, m_menuAdaptor, &QDBusMenuAdaptor::LayoutUpdated); connect(m_menu, SIGNAL(popupRequested(int, uint)), m_menuAdaptor, SIGNAL(ItemActivationRequested(int, uint))); } QDBusMenuBar::~QDBusMenuBar() { if (s_globalMenuBar == this) { s_globalMenuBar = nullptr; m_platformTheme->globalMenuBarNoLongerExists(); } if (this == s_menuBars.value(m_window)) s_menuBars.remove(m_window); unregisterMenuBarX11(m_window); delete m_menuAdaptor; delete m_menu; qDeleteAll(m_menuItems); } QDBusPlatformMenuItem *QDBusMenuBar::menuItemForMenu(QPlatformMenu *menu) { if (!menu) return nullptr; quintptr tag = menu->tag(); const auto it = m_menuItems.constFind(tag); if (it != m_menuItems.cend()) { return *it; } else { QDBusPlatformMenuItem *item = new QDBusPlatformMenuItem; updateMenuItem(item, menu); m_menuItems.insert(tag, item); return item; } } void QDBusMenuBar::updateMenuItem(QDBusPlatformMenuItem *item, QPlatformMenu *menu) { const QDBusPlatformMenu *ourMenu = qobject_cast<const QDBusPlatformMenu *>(menu); item->setText(ourMenu->text()); item->setIcon(ourMenu->icon()); item->setEnabled(ourMenu->isEnabled()); item->setVisible(ourMenu->isVisible()); item->setMenu(menu); } void QDBusMenuBar::insertMenu(QPlatformMenu *menu, QPlatformMenu *before) { QDBusPlatformMenuItem *menuItem = menuItemForMenu(menu); QDBusPlatformMenuItem *beforeItem = menuItemForMenu(before); m_menu->insertMenuItem(menuItem, beforeItem); m_menu->emitUpdated(); } void QDBusMenuBar::removeMenu(QPlatformMenu *menu) { QDBusPlatformMenuItem *menuItem = menuItemForMenu(menu); m_menu->removeMenuItem(menuItem); m_menu->emitUpdated(); } void QDBusMenuBar::syncMenu(QPlatformMenu *menu) { QDBusPlatformMenuItem *menuItem = menuItemForMenu(menu); updateMenuItem(menuItem, menu); } void QDBusMenuBar::handleReparent(QWindow *newParentWindow) { // if the parent is set to nullptr on our first time around, // this is supposed to be an app-wide menu bar // so we only care if nullptr == nullptr after our first round if (m_initted && newParentWindow == m_window) { return; } m_initted = true; QWindow *oldWindow = m_window; if (this == s_menuBars.value(oldWindow)) s_menuBars.remove(oldWindow); unregisterMenuBarX11(m_window); m_window = newParentWindow; s_menuBars[newParentWindow] = this; if (newParentWindow) { if (s_globalMenuBar == this) { s_globalMenuBar = nullptr; m_platformTheme->globalMenuBarNoLongerExists(); } if (createDBusMenuBar()) { registerMenuBarX11(m_window, m_objectPath); } } else if (!s_globalMenuBar) { s_globalMenuBar = this; createDBusMenuBar(); m_platformTheme->globalMenuBarExistsNow(); } else { qWarning() << "There's already a global menu bar..."; } Q_EMIT windowChanged(newParentWindow, oldWindow); } QDBusMenuBar *QDBusMenuBar::globalMenuBar() { return s_globalMenuBar; } QPlatformMenu *QDBusMenuBar::menuForTag(quintptr tag) const { QDBusPlatformMenuItem *menuItem = m_menuItems.value(tag); if (menuItem) return const_cast<QPlatformMenu *>(menuItem->menu()); return nullptr; } QPlatformMenu *QDBusMenuBar::createMenu() const { return new QDBusPlatformMenu; } bool QDBusMenuBar::createDBusMenuBar() { static uint menuBarId = 0; QDBusConnection connection = QDBusConnection::sessionBus(); m_objectPath = QStringLiteral("/MenuBar/%1").arg(++menuBarId); if (!connection.registerObject(m_objectPath, m_menu)) return false; return true; } void QDBusMenuBar::uncreateDBusMenuBar() { QDBusConnection connection = QDBusConnection::sessionBus(); if (!m_objectPath.isEmpty()) connection.unregisterObject(m_objectPath); } QDBusMenuBar *QDBusMenuBar::menuBarForWindow(QWindow *window) { return s_menuBars.value(window); } void QDBusMenuBar::registerMenuBarX11(QWindow *window, const QString &objectPath) { if (!window) { qWarning("Cannot register window menu without window"); return; } QDBusConnection connection = QDBusConnection::sessionBus(); QDBusMenuRegistrarInterface registrar(REGISTRAR_SERVICE, REGISTRAR_PATH, connection, window); QDBusPendingReply<> r = registrar.RegisterWindow(static_cast<uint>(window->winId()), QDBusObjectPath(objectPath)); r.waitForFinished(); if (r.isError()) { qWarning("Failed to register window menu, reason: %s (\"%s\")", qUtf8Printable(r.error().name()), qUtf8Printable(r.error().message())); connection.unregisterObject(objectPath); } } QDBusMenuBar *QDBusMenuBar::s_globalMenuBar = nullptr; QMap<QWindow *, QDBusMenuBar *> QDBusMenuBar::s_menuBars; void QDBusMenuBar::unregisterMenuBarX11(QWindow *window) { if (!window) { return; } QDBusConnection connection = QDBusConnection::sessionBus(); QDBusMenuRegistrarInterface registrar(REGISTRAR_SERVICE, REGISTRAR_PATH, connection, window); QDBusPendingReply<> r = registrar.UnregisterWindow(static_cast<uint>(window->winId())); r.waitForFinished(); if (r.isError()) qWarning("Failed to unregister window menu, reason: %s (\"%s\")", qUtf8Printable(r.error().name()), qUtf8Printable(r.error().message())); } QT_END_NAMESPACE 070701000000B4000081A40000000000000000000000016728A277000009E8000000000000000000000000000000000000005D00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt5/src/platformtheme/qdbusmenubar_p.h/* SPDX-FileCopyrightText: 2016 Dmitry Shachnev <mitya57@gmail.com> Contact: https://www.qt.io/licensing/ This file is part of the QtGui module of the Qt Toolkit. SPDX-License-Identifier: LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KFQF-Accepted-GPL OR LicenseRef-Qt-Commercial */ #ifndef QDBUSMENUBAR_P_H #define QDBUSMENUBAR_P_H // // W A R N I N G // ------------- // // This file is not part of the Qt API. It exists purely as an // implementation detail. This header file may change from version to // version without notice, or even be removed. // // We mean it. // #include "kdeplatformtheme.h" #include <QHash> #include <QString> #include <QWindow> #include <QtThemeSupport/private/qdbusmenuadaptor_p.h> #include <QtThemeSupport/private/qdbusmenuconnection_p.h> #include <QtThemeSupport/private/qdbusmenuregistrarproxy_p.h> #include <QtThemeSupport/private/qdbusplatformmenu_p.h> QT_BEGIN_NAMESPACE class QDBusMenuBar : public QPlatformMenuBar { Q_OBJECT public: QDBusMenuBar(KdePlatformTheme *platformTheme); ~QDBusMenuBar() override; void insertMenu(QPlatformMenu *menu, QPlatformMenu *before) override; void removeMenu(QPlatformMenu *menu) override; void syncMenu(QPlatformMenu *menu) override; void handleReparent(QWindow *newParentWindow) override; QPlatformMenu *menuForTag(quintptr tag) const override; QPlatformMenu *createMenu() const override; static QDBusMenuBar *globalMenuBar(); static QDBusMenuBar *menuBarForWindow(QWindow *window); QWindow *window() const { return m_window; } QString objectPath() const { return m_objectPath; } Q_SIGNALS: void windowChanged(QWindow *newWindow, QWindow *oldWindow); private: QDBusPlatformMenu *m_menu = nullptr; QDBusMenuAdaptor *m_menuAdaptor = nullptr; QHash<quintptr, QDBusPlatformMenuItem *> m_menuItems; QPointer<QWindow> m_window; QString m_objectPath; bool m_initted = false; KdePlatformTheme *m_platformTheme; static QDBusMenuBar *s_globalMenuBar; static QMap<QWindow *, QDBusMenuBar *> s_menuBars; QDBusPlatformMenuItem *menuItemForMenu(QPlatformMenu *menu); static void updateMenuItem(QDBusPlatformMenuItem *item, QPlatformMenu *menu); bool createDBusMenuBar(); void uncreateDBusMenuBar(); static void registerMenuBarX11(QWindow *window, const QString &objectPath); static void unregisterMenuBarX11(QWindow *window); }; QT_END_NAMESPACE #endif // QDBUSMENUBAR_P_H 070701000000B5000081A40000000000000000000000016728A27700000EE1000000000000000000000000000000000000006800000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt5/src/platformtheme/qtquickrenderersettings.cpp/* SPDX-FileCopyrightText: 2016 David Edmundson <davidedmundson@kde.org> SPDX-FileCopyrightText: 2020 Piotr Henryk Dabrowski <phd@phd.re> SPDX-FileCopyrightText: 2021 David Redondo <kde@david-redondo.de> SPDX-License-Identifier: LGPL-2.0-or-later */ #include "renderersettings.h" #include <QGuiApplication> #include <QLibraryInfo> #include <QOffscreenSurface> #include <QOpenGLContext> #include <QOpenGLFunctions> #include <QQuickWindow> #include <QSurfaceFormat> #include <QVersionNumber> /** * If QtQuick is configured (QQuickWindow::sceneGraphBackend()) to use the OpenGL backend, * check if it is supported or otherwise reconfigure QtQuick to fallback to software mode. * This function is called by init(). * * @returns true if the selected backend is supported, false on fallback to software mode. */ static bool checkBackend(QOpenGLContext &checkContext) { if (!QQuickWindow::sceneGraphBackend().isEmpty()) { return true; // QtQuick is not configured to use the OpenGL backend } // kwin wayland has it's own QPA, it is unable to create a GL context at this point. // KF6 TODO, drop this . The issue will be resolved in future kwin releases. QString platformName = qApp->platformName(); if (platformName == QLatin1String("wayland-org.kde.kwin.qpa")) { return true; } #ifdef QT_NO_OPENGL bool ok = false; #else bool ok = checkContext.create(); #endif return ok; } void initializeRendererSessions() { // This is loaded via Q_COREAPP_STARTUP_FUNCTION // Due to a quirk this gets called twice, see QTBUG-54479 // The order of events is: // Q*Application constructor starts // We load the QPA // We load the QPT (The first arguably incorrect invocation triggers) // QPA gets initalised // QCoreApplication constructor ends // Second (correct) invocation // it's important that we run after the QPA is initalised' static bool firstCall = true; if (firstCall) { firstCall = false; return; } PlasmaQtQuickSettings::RendererSettings s; QOpenGLContext checkContext; QSGRendererInterface::GraphicsApi graphicsApi = QSGRendererInterface::Unknown; switch (s.sceneGraphBackend()) { case PlasmaQtQuickSettings::RendererSettings::software: graphicsApi = QSGRendererInterface::Software; break; case PlasmaQtQuickSettings::RendererSettings::opengl: graphicsApi = QSGRendererInterface::OpenGL; break; default: if (!checkBackend(checkContext)) { qWarning("Warning: fallback to QtQuick software backend."); graphicsApi = QSGRendererInterface::Software; } } if (graphicsApi != QSGRendererInterface::Unknown) { QQuickWindow::setSceneGraphBackend(graphicsApi); } if (!qEnvironmentVariableIsSet("QSG_RENDER_LOOP")) { if (s.renderLoop() == PlasmaQtQuickSettings::RendererSettings::basic) { qputenv("QSG_RENDER_LOOP", "basic"); } else if (QGuiApplication::platformName() == QLatin1String("wayland")) { #if QT_CONFIG(opengl) // Workaround for Bug 432062 / QTBUG-95817 QOffscreenSurface surface; surface.create(); if (checkContext.makeCurrent(&surface)) { const char *vendor = reinterpret_cast<const char *>(checkContext.functions()->glGetString(GL_VENDOR)); if (qstrcmp(vendor, "NVIDIA Corporation") == 0) { // Otherwise Qt Quick Windows break when resized qputenv("QSG_RENDER_LOOP", "basic"); } } #endif } } } // Because this file gets loaded in the platform plugin, the QGuiApplication already exists Q_COREAPP_STARTUP_FUNCTION(initializeRendererSessions) 070701000000B6000081A40000000000000000000000016728A277000031B7000000000000000000000000000000000000006C00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt5/src/platformtheme/qxdgdesktopportalfiledialog.cpp/* SPDX-FileCopyrightText: 2017-2018 Red Hat Inc Contact: https://www.qt.io/licensing/ This file is part of the plugins of the Qt Toolkit. SPDX-License-Identifier: LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KFQF-Accepted-GPL OR LicenseRef-Qt-Commercial */ #include "qxdgdesktopportalfiledialog_p.h" #include <QDBusConnection> #include <QDBusMessage> #include <QDBusMetaType> #include <QDBusPendingCall> #include <QDBusPendingCallWatcher> #include <QDBusPendingReply> #include <QEventLoop> #include <QRegularExpression> #include <QFile> #include <QMetaType> #include <QMimeDatabase> #include <QMimeType> #include <QRandomGenerator> #include <QWindow> QT_BEGIN_NAMESPACE QDBusArgument &operator<<(QDBusArgument &arg, const QXdgDesktopPortalFileDialog::FilterCondition &filterCondition) { arg.beginStructure(); arg << filterCondition.type << filterCondition.pattern; arg.endStructure(); return arg; } const QDBusArgument &operator>>(const QDBusArgument &arg, QXdgDesktopPortalFileDialog::FilterCondition &filterCondition) { uint type; QString filterPattern; arg.beginStructure(); arg >> type >> filterPattern; filterCondition.type = (QXdgDesktopPortalFileDialog::ConditionType)type; filterCondition.pattern = filterPattern; arg.endStructure(); return arg; } QDBusArgument &operator<<(QDBusArgument &arg, const QXdgDesktopPortalFileDialog::Filter filter) { arg.beginStructure(); arg << filter.name << filter.filterConditions; arg.endStructure(); return arg; } const QDBusArgument &operator>>(const QDBusArgument &arg, QXdgDesktopPortalFileDialog::Filter &filter) { QString name; QXdgDesktopPortalFileDialog::FilterConditionList filterConditions; arg.beginStructure(); arg >> name >> filterConditions; filter.name = name; filter.filterConditions = filterConditions; arg.endStructure(); return arg; } class QXdgDesktopPortalFileDialogPrivate { public: QXdgDesktopPortalFileDialogPrivate(QPlatformFileDialogHelper *nativeFileDialog) : nativeFileDialog(nativeFileDialog) { } WId winId = 0; bool modal = false; bool multipleFiles = false; bool selectDirectory = false; bool saveFile = false; QString acceptLabel; QUrl directory; QString title; QStringList nameFilters; QStringList mimeTypesFilters; QList<QUrl> selectedFiles; QPlatformFileDialogHelper *nativeFileDialog = nullptr; }; QXdgDesktopPortalFileDialog::QXdgDesktopPortalFileDialog(QPlatformFileDialogHelper *nativeFileDialog) : QPlatformFileDialogHelper() , d_ptr(new QXdgDesktopPortalFileDialogPrivate(nativeFileDialog)) { Q_D(QXdgDesktopPortalFileDialog); if (d->nativeFileDialog) { connect(d->nativeFileDialog, SIGNAL(accept()), this, SIGNAL(accept())); connect(d->nativeFileDialog, SIGNAL(reject()), this, SIGNAL(reject())); } } QXdgDesktopPortalFileDialog::~QXdgDesktopPortalFileDialog() { } void QXdgDesktopPortalFileDialog::initializeDialog() { Q_D(QXdgDesktopPortalFileDialog); if (d->nativeFileDialog) d->nativeFileDialog->setOptions(options()); if (options()->fileMode() == QFileDialogOptions::ExistingFiles) d->multipleFiles = true; if (options()->fileMode() == QFileDialogOptions::Directory || options()->fileMode() == QFileDialogOptions::DirectoryOnly) { d->selectDirectory = true; } if (options()->isLabelExplicitlySet(QFileDialogOptions::Accept)) d->acceptLabel = options()->labelText(QFileDialogOptions::Accept); if (!options()->windowTitle().isEmpty()) d->title = options()->windowTitle(); if (options()->acceptMode() == QFileDialogOptions::AcceptSave) d->saveFile = true; if (!options()->nameFilters().isEmpty()) d->nameFilters = options()->nameFilters(); if (!options()->mimeTypeFilters().isEmpty()) d->mimeTypesFilters = options()->mimeTypeFilters(); setDirectory(options()->initialDirectory()); } void QXdgDesktopPortalFileDialog::openPortal() { Q_D(const QXdgDesktopPortalFileDialog); QDBusMessage message = QDBusMessage::createMethodCall(QStringLiteral("org.freedesktop.portal.Desktop"), QStringLiteral("/org/freedesktop/portal/desktop"), QStringLiteral("org.freedesktop.portal.FileChooser"), d->saveFile ? QStringLiteral("SaveFile") : QStringLiteral("OpenFile")); QString parentWindowId = QStringLiteral("x11:") + QString::number(d->winId, 16); QVariantMap options; if (!d->acceptLabel.isEmpty()) options.insert(QStringLiteral("accept_label"), d->acceptLabel); options.insert(QStringLiteral("modal"), d->modal); options.insert(QStringLiteral("multiple"), d->multipleFiles); options.insert(QStringLiteral("directory"), d->selectDirectory); if (d->saveFile) { if (!d->directory.isEmpty()) options.insert(QStringLiteral("current_folder"), QFile::encodeName(d->directory.toLocalFile()).append('\0')); if (!d->selectedFiles.isEmpty()) options.insert(QStringLiteral("current_file"), QFile::encodeName(d->selectedFiles.first().toLocalFile()).append('\0')); } // Insert filters qDBusRegisterMetaType<FilterCondition>(); qDBusRegisterMetaType<FilterConditionList>(); qDBusRegisterMetaType<Filter>(); qDBusRegisterMetaType<FilterList>(); FilterList filterList; if (!d->mimeTypesFilters.isEmpty()) { for (const QString &mimeTypefilter : d->mimeTypesFilters) { QMimeDatabase mimeDatabase; QMimeType mimeType = mimeDatabase.mimeTypeForName(mimeTypefilter); // Creates e.g. (1, "image/png") FilterCondition filterCondition; filterCondition.type = MimeType; filterCondition.pattern = mimeTypefilter; // Creates e.g. [((1, "image/png"))] FilterConditionList filterConditions; filterConditions << filterCondition; // Creates e.g. [("Images", [((1, "image/png"))])] Filter filter; filter.name = mimeType.comment(); filter.filterConditions = filterConditions; filterList << filter; } } else if (!d->nameFilters.isEmpty()) { for (const QString &filter : d->nameFilters) { // Do parsing: // Supported format is ("Images (*.png *.jpg)") QRegularExpression regexp(QString::fromLatin1(QPlatformFileDialogHelper::filterRegExp)); QRegularExpressionMatch match = regexp.match(filter); if (match.hasMatch()) { QString userVisibleName = match.captured(1); QStringList filterStrings = match.captured(2).split(QLatin1Char(' '), Qt::SkipEmptyParts); FilterConditionList filterConditions; for (const QString &filterString : std::as_const(filterStrings)) { FilterCondition filterCondition; filterCondition.type = GlobalPattern; filterCondition.pattern = filterString; filterConditions << filterCondition; } Filter filter; filter.name = userVisibleName; filter.filterConditions = filterConditions; filterList << filter; } } } if (!filterList.isEmpty()) options.insert(QStringLiteral("filters"), QVariant::fromValue(filterList)); options.insert(QStringLiteral("handle_token"), QStringLiteral("qt%1").arg(QRandomGenerator::global()->generate())); // TODO choices a(ssa(ss)s) // List of serialized combo boxes to add to the file chooser. message << parentWindowId << d->title << options; QDBusPendingCall pendingCall = QDBusConnection::sessionBus().asyncCall(message); QDBusPendingCallWatcher *watcher = new QDBusPendingCallWatcher(pendingCall); connect(watcher, &QDBusPendingCallWatcher::finished, this, [this](QDBusPendingCallWatcher *watcher) { QDBusPendingReply<QDBusObjectPath> reply = *watcher; if (reply.isError()) { Q_EMIT reject(); } else { QDBusConnection::sessionBus().connect({}, reply.value().path(), QStringLiteral("org.freedesktop.portal.Request"), QStringLiteral("Response"), this, SLOT(gotResponse(uint, QVariantMap))); } }); } bool QXdgDesktopPortalFileDialog::defaultNameFilterDisables() const { return false; } void QXdgDesktopPortalFileDialog::setDirectory(const QUrl &directory) { Q_D(QXdgDesktopPortalFileDialog); if (d->nativeFileDialog) { d->nativeFileDialog->setOptions(options()); d->nativeFileDialog->setDirectory(directory); } d->directory = directory; } QUrl QXdgDesktopPortalFileDialog::directory() const { Q_D(const QXdgDesktopPortalFileDialog); if (d->nativeFileDialog && (options()->fileMode() == QFileDialogOptions::Directory || options()->fileMode() == QFileDialogOptions::DirectoryOnly)) return d->nativeFileDialog->directory(); return d->directory; } void QXdgDesktopPortalFileDialog::selectFile(const QUrl &filename) { Q_D(QXdgDesktopPortalFileDialog); if (d->nativeFileDialog) { d->nativeFileDialog->setOptions(options()); d->nativeFileDialog->selectFile(filename); } d->selectedFiles << filename; } QList<QUrl> QXdgDesktopPortalFileDialog::selectedFiles() const { Q_D(const QXdgDesktopPortalFileDialog); if (d->nativeFileDialog && (options()->fileMode() == QFileDialogOptions::Directory || options()->fileMode() == QFileDialogOptions::DirectoryOnly)) return d->nativeFileDialog->selectedFiles(); return d->selectedFiles; } void QXdgDesktopPortalFileDialog::setFilter() { Q_D(QXdgDesktopPortalFileDialog); if (d->nativeFileDialog) { d->nativeFileDialog->setOptions(options()); d->nativeFileDialog->setFilter(); } } void QXdgDesktopPortalFileDialog::selectNameFilter(const QString &filter) { Q_D(QXdgDesktopPortalFileDialog); if (d->nativeFileDialog) { d->nativeFileDialog->setOptions(options()); d->nativeFileDialog->selectNameFilter(filter); } } QString QXdgDesktopPortalFileDialog::selectedNameFilter() const { // TODO return QString(); } void QXdgDesktopPortalFileDialog::exec() { Q_D(QXdgDesktopPortalFileDialog); if (d->nativeFileDialog && (options()->fileMode() == QFileDialogOptions::Directory || options()->fileMode() == QFileDialogOptions::DirectoryOnly)) { d->nativeFileDialog->exec(); return; } // HACK we have to avoid returning until we emit that the dialog was accepted or rejected QEventLoop loop; QObject::connect(this, &QXdgDesktopPortalFileDialog::accept, &loop, &QEventLoop::quit); QObject::connect(this, &QXdgDesktopPortalFileDialog::reject, &loop, &QEventLoop::quit); loop.exec(); } void QXdgDesktopPortalFileDialog::hide() { Q_D(QXdgDesktopPortalFileDialog); if (d->nativeFileDialog) d->nativeFileDialog->hide(); } bool QXdgDesktopPortalFileDialog::show(Qt::WindowFlags windowFlags, Qt::WindowModality windowModality, QWindow *parent) { Q_D(QXdgDesktopPortalFileDialog); initializeDialog(); d->modal = windowModality != Qt::NonModal; d->winId = parent ? parent->winId() : 0; if (d->nativeFileDialog && (options()->fileMode() == QFileDialogOptions::Directory || options()->fileMode() == QFileDialogOptions::DirectoryOnly)) return d->nativeFileDialog->show(windowFlags, windowModality, parent); openPortal(); return true; } void QXdgDesktopPortalFileDialog::gotResponse(uint response, const QVariantMap &results) { Q_D(QXdgDesktopPortalFileDialog); if (!response) { if (results.contains(QStringLiteral("uris"))) { const QStringList uris = results.value(QStringLiteral("uris")).toStringList(); d->selectedFiles.clear(); d->selectedFiles.reserve(uris.size()); for (const QString &uri : uris) { // uris are expected to have proper "file:" scheme set d->selectedFiles.append(QUrl(uri)); } } Q_EMIT accept(); } else { Q_EMIT reject(); } } QT_END_NAMESPACE 070701000000B7000081A40000000000000000000000016728A2770000097E000000000000000000000000000000000000006C00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt5/src/platformtheme/qxdgdesktopportalfiledialog_p.h/* SPDX-FileCopyrightText: 2017-2018 Red Hat Inc Contact: https://www.qt.io/licensing/ This file is part of the plugins of the Qt Toolkit. SPDX-License-Identifier: LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KFQF-Accepted-GPL OR LicenseRef-Qt-Commercial */ #ifndef QXDGDESKTOPPORTALFILEDIALOG_P_H #define QXDGDESKTOPPORTALFILEDIALOG_P_H #include <QVector> #include <qpa/qplatformdialoghelper.h> QT_BEGIN_NAMESPACE class QXdgDesktopPortalFileDialogPrivate; class QXdgDesktopPortalFileDialog : public QPlatformFileDialogHelper { Q_OBJECT Q_DECLARE_PRIVATE(QXdgDesktopPortalFileDialog) public: enum ConditionType : uint { GlobalPattern = 0, MimeType = 1, }; // Filters a(sa(us)) // Example: [('Images', [(0, '*.ico'), (1, 'image/png')]), ('Text', [(0, '*.txt')])] struct FilterCondition { ConditionType type; QString pattern; // E.g. '*ico' or 'image/png' }; typedef QVector<FilterCondition> FilterConditionList; struct Filter { QString name; // E.g. 'Images' or 'Text FilterConditionList filterConditions; // E.g. [(0, '*.ico'), (1, 'image/png')] or [(0, '*.txt')] }; typedef QVector<Filter> FilterList; QXdgDesktopPortalFileDialog(QPlatformFileDialogHelper *nativeFileDialog = nullptr); ~QXdgDesktopPortalFileDialog(); bool defaultNameFilterDisables() const override; QUrl directory() const override; void setDirectory(const QUrl &directory) override; void selectFile(const QUrl &filename) override; QList<QUrl> selectedFiles() const override; void setFilter() override; void selectNameFilter(const QString &filter) override; QString selectedNameFilter() const override; void exec() override; bool show(Qt::WindowFlags windowFlags, Qt::WindowModality windowModality, QWindow *parent) override; void hide() override; private Q_SLOTS: void gotResponse(uint response, const QVariantMap &results); private: void initializeDialog(); void openPortal(); QScopedPointer<QXdgDesktopPortalFileDialogPrivate> d_ptr; }; QT_END_NAMESPACE Q_DECLARE_METATYPE(QXdgDesktopPortalFileDialog::FilterCondition) Q_DECLARE_METATYPE(QXdgDesktopPortalFileDialog::FilterConditionList) Q_DECLARE_METATYPE(QXdgDesktopPortalFileDialog::Filter) Q_DECLARE_METATYPE(QXdgDesktopPortalFileDialog::FilterList) #endif // QXDGDESKTOPPORTALFILEDIALOG_P_H 070701000000B8000081A40000000000000000000000016728A2770000048E000000000000000000000000000000000000005A00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt5/src/platformtheme/renderer.kcfg<?xml version="1.0" encoding="UTF-8" ?> <kcfg xmlns="http://www.kde.org/standards/kcfg/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.kde.org/standards/kcfg/1.0 http://www.kde.org/standards/kcfg/1.0/kcfg.xsd" > <kcfgfile arg="true" /> <group name="QtQuickRendererSettings"> <entry name="RenderLoop" type="Enum"> <choices name="RenderLoopType"> <choice name="automaticloop" /> <choice name="basic" /> <choice name="threaded" /> </choices> <default>automaticloop</default> </entry> <entry name="SceneGraphBackend" type="Enum"> <choices name="SceneGraphBackendType"> <choice name="automaticbackend" /> <choice name="opengl" /> <choice name="software" /> <choice name="vulkan" /> </choices> <default>automaticbackend</default> </entry> <entry name="ForceGlCoreProfile" type="Bool"> <default>false</default> </entry> </group> </kcfg> 070701000000B9000081A40000000000000000000000016728A2770000006E000000000000000000000000000000000000006300000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt5/src/platformtheme/renderersettings.kcfgcFile=renderer.kcfg NameSpace=PlasmaQtQuickSettings ClassName=RendererSettings UseEnumTypes=true Mutators=true 070701000000BA000081A40000000000000000000000016728A2770000182E000000000000000000000000000000000000005F00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt5/src/platformtheme/x11integration.cpp/* This file is part of the KDE libraries SPDX-FileCopyrightText: 2015 Martin Gräßlin <mgraesslin@kde.org> SPDX-FileCopyrightText: 2016 Marco Martin <mart@kde.org> SPDX-License-Identifier: LGPL-2.0-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ #include "x11integration.h" #include <NETWM> #include <QCoreApplication> #include <QGuiApplication> #include <QPlatformSurfaceEvent> #include <QWindow> #include <QX11Info> #include <KWindowEffects> static const char s_schemePropertyName[] = "KDE_COLOR_SCHEME_PATH"; static const QByteArray s_blurBehindPropertyName = QByteArrayLiteral("ENABLE_BLUR_BEHIND_HINT"); X11Integration::X11Integration(KdePlatformTheme *platformTheme) : QObject() , m_platformTheme(platformTheme) { } X11Integration::~X11Integration() = default; void X11Integration::init() { QCoreApplication::instance()->installEventFilter(this); } bool X11Integration::eventFilter(QObject *watched, QEvent *event) { // the drag and drop window should NOT be a tooltip // https://bugreports.qt.io/browse/QTBUG-52560 if (event->type() == QEvent::Show && watched->inherits("QShapedPixmapWindow")) { // static cast should be safe there QWindow *w = static_cast<QWindow *>(watched); NETWinInfo info(QX11Info::connection(), w->winId(), QX11Info::appRootWindow(), NET::WMWindowType, NET::Properties2()); info.setWindowType(NET::DNDIcon); // TODO: does this flash the xcb connection? } if (event->type() == QEvent::PlatformSurface) { if (QWindow *w = qobject_cast<QWindow *>(watched)) { QPlatformSurfaceEvent *pe = static_cast<QPlatformSurfaceEvent *>(event); if (!w->flags().testFlag(Qt::ForeignWindow)) { if (pe->surfaceEventType() == QPlatformSurfaceEvent::SurfaceCreated) { m_platformTheme->windowCreated(w); auto flags = w->flags(); // A recent KWin change means it now follows WindowButtonHints on X11 // Some KDE applications use QDialogs for their main window, // which means the KWin now surfaces those windows having the wrong hints. // To avoid clients changing, we adjust flags here. // This is documented as being only available on some platforms, // so altering is relatively safe. if (flags.testFlag(Qt::Dialog) && !flags.testFlag(Qt::CustomizeWindowHint)) { if (!w->transientParent()) { flags.setFlag(Qt::WindowCloseButtonHint); flags.setFlag(Qt::WindowMinMaxButtonsHint); } w->setFlags(flags); } if (qApp->property(s_schemePropertyName).isValid()) { installColorScheme(w); } const auto blurBehindProperty = w->property(s_blurBehindPropertyName.constData()); if (blurBehindProperty.isValid()) { KWindowEffects::enableBlurBehind(w, blurBehindProperty.toBool()); } installDesktopFileName(w); } } } } if (event->type() == QEvent::ApplicationPaletteChange) { const auto topLevelWindows = QGuiApplication::topLevelWindows(); for (QWindow *w : topLevelWindows) { installColorScheme(w); } } return false; } void X11Integration::installColorScheme(QWindow *w) { if (!w->isTopLevel() || !w->handle() /* e.g. WebEngine's QQuickWindow */) { return; } static xcb_atom_t atom = XCB_ATOM_NONE; xcb_connection_t *c = QX11Info::connection(); if (atom == XCB_ATOM_NONE) { const QByteArray name = QByteArrayLiteral("_KDE_NET_WM_COLOR_SCHEME"); const xcb_intern_atom_cookie_t cookie = xcb_intern_atom(c, false, name.length(), name.constData()); QScopedPointer<xcb_intern_atom_reply_t, QScopedPointerPodDeleter> reply(xcb_intern_atom_reply(c, cookie, nullptr)); if (!reply.isNull()) { atom = reply->atom; } else { // no point in continuing, we don't have the atom return; } } const QString path = qApp->property(s_schemePropertyName).toString(); if (path.isEmpty()) { xcb_delete_property(c, w->winId(), atom); } else { xcb_change_property(c, XCB_PROP_MODE_REPLACE, w->winId(), atom, XCB_ATOM_STRING, 8, path.size(), qPrintable(path)); } } void X11Integration::installDesktopFileName(QWindow *w) { if (!w->isTopLevel()) { return; } QString desktopFileName = QGuiApplication::desktopFileName(); if (desktopFileName.isEmpty()) { return; } // handle apps which set the desktopFileName property with filename suffix, // due to unclear API dox (https://bugreports.qt.io/browse/QTBUG-75521) if (desktopFileName.endsWith(QLatin1String(".desktop"))) { desktopFileName.chop(8); } NETWinInfo info(QX11Info::connection(), w->winId(), QX11Info::appRootWindow(), NET::Properties(), NET::Properties2()); info.setDesktopFileName(desktopFileName.toUtf8().constData()); } void X11Integration::setWindowProperty(QWindow *window, const QByteArray &name, const QByteArray &value) { auto *c = QX11Info::connection(); xcb_atom_t atom; auto it = m_atoms.find(name); if (it == m_atoms.end()) { const xcb_intern_atom_cookie_t cookie = xcb_intern_atom(c, false, name.length(), name.constData()); QScopedPointer<xcb_intern_atom_reply_t, QScopedPointerPodDeleter> reply(xcb_intern_atom_reply(c, cookie, nullptr)); if (!reply.isNull()) { atom = reply->atom; m_atoms[name] = atom; } else { return; } } else { atom = *it; } if (value.isEmpty()) { xcb_delete_property(c, window->winId(), atom); } else { xcb_change_property(c, XCB_PROP_MODE_REPLACE, window->winId(), atom, XCB_ATOM_STRING, 8, value.length(), value.constData()); } } 070701000000BB000081A40000000000000000000000016728A277000003B3000000000000000000000000000000000000005D00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt5/src/platformtheme/x11integration.h/* This file is part of the KDE libraries SPDX-FileCopyrightText: 2015 Martin Gräßlin <mgraesslin@kde.org> SPDX-FileCopyrightText: 2016 Marco Martin <mart@kde.org> SPDX-License-Identifier: LGPL-2.0-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ #ifndef X11INTEGRATION_H #define X11INTEGRATION_H #include "kdeplatformtheme.h" #include <QHash> #include <QObject> #include <xcb/xcb.h> class QWindow; class X11Integration : public QObject { Q_OBJECT public: explicit X11Integration(KdePlatformTheme *platformTheme); ~X11Integration() override; void init(); void setWindowProperty(QWindow *window, const QByteArray &name, const QByteArray &value); bool eventFilter(QObject *watched, QEvent *event) override; private: void installColorScheme(QWindow *w); void installDesktopFileName(QWindow *w); QHash<QByteArray, xcb_atom_t> m_atoms; KdePlatformTheme *m_platformTheme; }; #endif 070701000000BC000041ED0000000000000000000000026728A27700000000000000000000000000000000000000000000004000000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt5/tests070701000000BD000081A40000000000000000000000016728A2770000019E000000000000000000000000000000000000004F00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt5/tests/CMakeLists.txtadd_executable(qfiledialogtest5 qfiledialogtest.cpp) target_link_libraries(qfiledialogtest5 Qt5::Core Qt5::Widgets) add_executable(windowdecotest5 windowdecotest.cpp) target_link_libraries(windowdecotest5 Qt5::Core Qt5::Widgets KF5::ConfigWidgets) add_executable(systraymenuexclusiveactionstest5 systraymenuexclusiveactionstest.cpp) target_link_libraries(systraymenuexclusiveactionstest5 Qt5::Core Qt5::Widgets) 070701000000BE000081A40000000000000000000000016728A277000004FE000000000000000000000000000000000000005400000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt5/tests/HoverEffectTest.qml/* SPDX-FileCopyrightText: 2020 Noah Davis <noahadvs@gmail.com> SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.12 import QtQuick.Templates 2.12 ApplicationWindow { width: control.implicitWidth + gridUnit*4 height: control.implicitHeight + gridUnit*4 color: "white" property int gridUnit: fontMetrics.height FontMetrics { id: fontMetrics } Button { id: control implicitWidth: Math.round(Math.max(implicitContentWidth + leftPadding + rightPadding)) implicitHeight: Math.round(Math.max(implicitContentHeight + topPadding + bottomPadding)) anchors.centerIn: parent padding: 8 // This is the default behavior, I'm just making it explicit. hoverEnabled: Qt.styleHints.useHoverEffects text: "There should be a red outline hover effect on this button" contentItem: Label { text: control.text font: control.font color: "white" } background: Rectangle { radius: 3 color: "black" border.color: "red" // When the useHoverEffects style hint is true, the hover effect should work border.width: control.hovered ? 4 : 0 } } } 070701000000BF000081A40000000000000000000000016728A27700001E17000000000000000000000000000000000000005400000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt5/tests/qfiledialogtest.cpp/* This file is part of the KDE libraries SPDX-FileCopyrightText: 2013 Aleix Pol Gonzalez <aleixpol@blue-systems.com> SPDX-License-Identifier: LGPL-2.0-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ #include <QApplication> #include <QCommandLineParser> #include <QDebug> #include <QFileDialog> #include <QMetaEnum> int main(int argc, char **argv) { QApplication app(argc, argv); app.setApplicationName(QStringLiteral("QFileDialogTest")); QCommandLineParser parser; parser.addHelpOption(); parser.addOption(QCommandLineOption(QStringList(QStringLiteral("staticFunction")), QStringLiteral("Test one of the static convenience function: 'getOpenFileUrl', 'getExistingDirectory'"), QStringLiteral("function name"))); parser.addOption(QCommandLineOption(QStringList(QStringLiteral("acceptMode")), QStringLiteral("File dialog acceptMode: 'open' or 'save'"), QStringLiteral("type"), QStringLiteral("open"))); parser.addOption(QCommandLineOption(QStringList(QStringLiteral("confirmOverwrite")), QStringLiteral("Test overwrite option: 'on' or 'off'"), QStringLiteral("option"), QStringLiteral("on"))); parser.addOption(QCommandLineOption(QStringList(QStringLiteral("nativeDialog")), QStringLiteral("Use the platform native dialog: 'on' or 'off'"), QStringLiteral("option"), QStringLiteral("on"))); parser.addOption(QCommandLineOption(QStringList(QStringLiteral("fileMode")), QStringLiteral("File dialog fileMode: 'AnyFile' or 'ExistingFile' or 'Directory' or 'ExistingFiles'"), QStringLiteral("type"))); parser.addOption(QCommandLineOption(QStringList(QStringLiteral("nameFilter")), QStringLiteral("Dialog nameFilter, e. g. 'cppfiles (*.cpp *.h *.hpp)', can be specified multiple times"), QStringLiteral("nameFilter"), QStringLiteral("Everything (*)"))); parser.addOption(QCommandLineOption(QStringList(QStringLiteral("mimeTypeFilter")), QStringLiteral("Dialog mimeTypeFilter, e. g. 'application/json', can be specified multiple times"), QStringLiteral("mimeTypeFilter"))); parser.addOption(QCommandLineOption(QStringList(QStringLiteral("selectNameFilter")), QStringLiteral("Initially selected nameFilter"), QStringLiteral("selectNameFilter"))); parser.addOption(QCommandLineOption(QStringList(QStringLiteral("selectMimeTypeFilter")), QStringLiteral("Initially selected mimeTypeFilter"), QStringLiteral("selectMimeTypeFilter"))); parser.addOption(QCommandLineOption(QStringList(QStringLiteral("selectFile")), QStringLiteral("Initially selected file"), QStringLiteral("filename"))); parser.addOption( QCommandLineOption(QStringList(QStringLiteral("selectDirectory")), QStringLiteral("Initially selected directory"), QStringLiteral("dirname"))); parser.addOption( QCommandLineOption(QStringList(QStringLiteral("modal")), QStringLiteral("Test modal dialog"), QStringLiteral("modality"), QStringLiteral("on"))); parser.addOption(QCommandLineOption(QStringList(QStringLiteral("options")), QStringLiteral("See QFileDialog::Options"), QStringLiteral("option"))); parser.process(app); const QString staticFunction = parser.value(QStringLiteral("staticFunction")); if (staticFunction == QLatin1String("getExistingDirectory")) { QString dir = QFileDialog::getExistingDirectory(nullptr, QStringLiteral("getExistingDirectory test"), QStringLiteral("/tmp")); qDebug() << dir; return 0; } else if (staticFunction == QLatin1String("getOpenFileUrl")) { qDebug() << QFileDialog::getOpenFileUrl(nullptr, QStringLiteral("getOpenFileUrl test"), QUrl::fromLocalFile(QDir::homePath())); return 0; } QFileDialog dialog; dialog.setAcceptMode(parser.value(QStringLiteral("acceptMode")) == QStringLiteral("open") ? QFileDialog::AcceptOpen : QFileDialog::AcceptSave); QString fileModeValue = parser.value(QStringLiteral("fileMode")); if (fileModeValue == QLatin1String("AnyFile")) { dialog.setFileMode(QFileDialog::AnyFile); } else if (fileModeValue == QLatin1String("ExistingFile")) { dialog.setFileMode(QFileDialog::ExistingFile); } else if (fileModeValue == QLatin1String("ExistingFiles")) { dialog.setFileMode(QFileDialog::ExistingFiles); } else if (fileModeValue == QLatin1String("Directory")) { dialog.setFileMode(QFileDialog::Directory); } else if (!fileModeValue.isEmpty()) { qDebug() << "Not implemented or not valid:" << fileModeValue; exit(0); } QStringList nameFilterList = parser.values(QStringLiteral("nameFilter")); if (nameFilterList.size() == 1) { dialog.setNameFilter(nameFilterList.first()); } else { dialog.setNameFilters(nameFilterList); } if (parser.isSet(QStringLiteral("options"))) { auto optStrings = parser.values(QStringLiteral("options")); QFileDialog::Options options = {}; const auto mo = QFileDialog::staticMetaObject; const auto enumerator = mo.indexOfEnumerator("Options"); for (const auto &optString : std::as_const(optStrings)) { options |= QFileDialog::Option(mo.enumerator(enumerator).keyToValue(optString.toLatin1().constData())); } dialog.setOptions(options); } const auto mimeFilterList = parser.values(QStringLiteral("mimeTypeFilter")); if (!mimeFilterList.isEmpty()) { dialog.setMimeTypeFilters(mimeFilterList); } QString selectNameFilter = parser.value(QStringLiteral("selectNameFilter")); QString selectMimeTypeFilter = parser.value(QStringLiteral("selectMimeTypeFilter")); if (!selectNameFilter.isEmpty()) { dialog.selectNameFilter(selectNameFilter); } else if (!selectMimeTypeFilter.isEmpty()) { dialog.selectMimeTypeFilter(selectMimeTypeFilter); } if (parser.value(QStringLiteral("confirmOverwrite")) == QStringLiteral("off")) { dialog.setOption(QFileDialog::DontConfirmOverwrite, true); } if (parser.value(QStringLiteral("nativeDialog")) == QStringLiteral("off")) { dialog.setOption(QFileDialog::DontUseNativeDialog, true); } dialog.setDirectoryUrl(QUrl::fromUserInput(parser.value(QStringLiteral("selectDirectory")), {}, QUrl::AssumeLocalFile)); dialog.selectFile(parser.value(QStringLiteral("selectFile"))); int ret; if (parser.value(QStringLiteral("modal")) == QStringLiteral("off")) { dialog.show(); ret = app.exec(); } else { ret = dialog.exec(); } if (dialog.result() == QDialog::Accepted) { qDebug() << "selected files" << dialog.selectedFiles(); qDebug() << "selected urls" << dialog.selectedUrls(); qDebug() << "selected mime type filter" << dialog.selectedMimeTypeFilter(); } qDebug() << "mime type filter(s):" << dialog.mimeTypeFilters(); return ret; } 070701000000C0000081A40000000000000000000000016728A277000003F0000000000000000000000000000000000000006400000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt5/tests/systraymenuexclusiveactionstest.cpp#include <QAction> #include <QActionGroup> #include <QApplication> #include <QMenu> #include <QSystemTrayIcon> int main(int argc, char *argv[]) { QApplication app(argc, argv); QSystemTrayIcon trayIcon(QIcon::fromTheme(QStringLiteral("application-exit"))); QMenu contextMenu; QAction *action1 = contextMenu.addAction(QStringLiteral("Exclusive Item 1")); QAction *action2 = contextMenu.addAction(QStringLiteral("Exclusive Item 2")); action1->setCheckable(true); action1->setChecked(true); action2->setCheckable(true); QActionGroup *actionGroup = new QActionGroup(&contextMenu); actionGroup->addAction(action1); actionGroup->addAction(action2); QAction quitAction(QIcon::fromTheme(QStringLiteral("application-exit")), QStringLiteral("Quit")); QObject::connect(&quitAction, &QAction::triggered, &app, &QApplication::quit); contextMenu.addAction(&quitAction); trayIcon.setContextMenu(&contextMenu); trayIcon.show(); return app.exec(); } 070701000000C1000081A40000000000000000000000016728A27700000643000000000000000000000000000000000000005300000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt5/tests/windowdecotest.cpp/* This file is part of the KDE libraries SPDX-FileCopyrightText: 2017 David Edmundson <davidedmundson@kde.org> SPDX-License-Identifier: LGPL-2.1-or-later */ /* * This class is for checking that wayland server side window decorations remain * after a window is hidden and shown. */ #include <KColorSchemeManager> #include <QApplication> #include <QComboBox> #include <QPushButton> #include <QTimer> #include <QVBoxLayout> #include <QWidget> class ATestWindow : public QWidget { Q_OBJECT public: ATestWindow(); private: QPushButton *mBtn = nullptr; QWidget *m_area = nullptr; }; ATestWindow::ATestWindow() { mBtn = new QPushButton(QStringLiteral("Hide and Show")); m_area = new QWidget; m_area->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); connect(mBtn, &QPushButton::clicked, this, [this]() { this->hide(); QTimer::singleShot(1000, this, [this]() { this->show(); }); }); QComboBox *colorCombo = new QComboBox(); KColorSchemeManager *schemes = new KColorSchemeManager(this); colorCombo->setModel(schemes->model()); connect(colorCombo, QOverload<int>::of(&QComboBox::activated), schemes, [=](int row) { schemes->activateScheme(colorCombo->model()->index(row, 0)); }); QVBoxLayout *layout = new QVBoxLayout; layout->addWidget(mBtn); layout->addWidget(colorCombo); setLayout(layout); } int main(int argc, char **argv) { QApplication app(argc, argv); ATestWindow wnd; wnd.show(); return app.exec(); } #include "windowdecotest.moc" 070701000000C2000041ED0000000000000000000000056728A27700000000000000000000000000000000000000000000003A00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt6070701000000C3000081A40000000000000000000000016728A2770000042D000000000000000000000000000000000000004900000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt6/CMakeLists.txtset(QT_MAJOR_VERSION 6) include(KDEInstallDirs6) include(KDECMakeSettings) find_package(Qt6 ${QT_MIN_VERSION} CONFIG REQUIRED Widgets DBus QuickControls2 WaylandClient) find_package(Qt6Gui ${QT_MIN_VERSION} CONFIG REQUIRED Private) # https://bugreports.qt.io/browse/QTBUG-114706 add_library(Qt::Core ALIAS Qt6::Core) add_library(Qt::Network ALIAS Qt6::Network) add_library(Qt::OpenGL ALIAS Qt6::OpenGL) add_library(Qt::Gui ALIAS Qt6::Gui) if(Qt6_VERSION_MINOR GREATER 6) add_library(Qt::PlatformModuleInternal ALIAS Qt6::PlatformModuleInternal) endif() find_package(KF6 ${KF6_MIN_VERSION} REQUIRED COMPONENTS Config ConfigWidgets I18n IconThemes KIO Notifications WindowSystem GuiAddons XmlGui StatusNotifierItem ) find_package(KF6ColorScheme ${KF6_MIN_VERSION} REQUIRED CONFIG) ecm_set_disabled_deprecation_versions(QT 5.15.2 KF 5.101 ) find_package(KF6I18n CONFIG REQUIRED) ki18n_install(../po) add_subdirectory(src) if(BUILD_TESTING) add_subdirectory(autotests) add_subdirectory(tests) endif() 070701000000C4000041ED0000000000000000000000036728A27700000000000000000000000000000000000000000000004400000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt6/autotests070701000000C5000081A40000000000000000000000016728A27700001181000000000000000000000000000000000000005300000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt6/autotests/CMakeLists.txtinclude(ECMMarkAsTest) include(ECMMarkNonGuiExecutable) find_package(Qt6Test ${QT_MIN_VERSION} CONFIG QUIET) find_package(Qt6Qml ${QT_MIN_VERSION} CONFIG QUIET) find_package(Qt6QmlTools ${QT_MIN_VERSION} CONFIG QUIET) # qmltestrunner if(NOT Qt6Test_FOUND) message(STATUS "Qt6Test not found, autotests will not be built.") return() endif() if(NOT Qt6Qml_FOUND) message(STATUS "Qt6Qml not found, QML autotests will not be built.") endif() set(CONFIGFILE "${CMAKE_CURRENT_SOURCE_DIR}/kdeplatformtheme_kdeglobals") set(CHANGED_CONFIGFILE "${CMAKE_CURRENT_SOURCE_DIR}/kdeplatformtheme_changed_kdeglobals") configure_file(kdeplatformtheme_config.h.in ${CMAKE_CURRENT_BINARY_DIR}/kdeplatformtheme_config.h) remove_definitions(-DQT_NO_CAST_FROM_ASCII) # qdbusmenubar uses them remove_definitions(-DQT_NO_SIGNALS_SLOTS_KEYWORDS) macro(FRAMEWORKINTEGRATION_TESTS _testname) add_executable(${_testname}6 ${_testname}.cpp ${ARGN}) set_target_properties(${_testname}6 PROPERTIES COMPILE_FLAGS "-DUNIT_TEST") add_test(NAME frameworkintegration-${_testname}6 COMMAND ${_testname}6) ecm_mark_as_test(${_testname}6) ecm_mark_nongui_executable(${_testname}6) target_include_directories(${_testname}6 PRIVATE ${CMAKE_BINARY_DIR}/qt6/src/platformtheme) target_link_libraries(${_testname}6 Qt6::GuiPrivate Qt6::Test Qt6::DBus Qt6::QuickControls2 KF6::ConfigCore KF6::IconThemes KF6::KIOFileWidgets KF6::I18n KF6::Notifications KF6::StatusNotifierItem KF6::WindowSystem KF6::GuiAddons Qt6::WaylandClient XCB::XCB Wayland::Client KF6::XmlGui ) endmacro() set(dbus_interface) qt6_add_dbus_interface(dbus_interface ../src/platformtheme/org.kde.StatusNotifierWatcher.xml statusnotifierwatcher_interface) frameworkintegration_tests( kdeplatformtheme_unittest ) set(wayland_interfaces) if (Qt6_VERSION VERSION_GREATER_EQUAL "6.8.0") set(private_code_option "PRIVATE_CODE") endif() qt6_generate_wayland_protocol_client_sources(kdeplatformtheme_unittest6 ${private_code_option} FILES ${PLASMA_WAYLAND_PROTOCOLS_DIR}/appmenu.xml ${PLASMA_WAYLAND_PROTOCOLS_DIR}/server-decoration-palette.xml ) target_sources(kdeplatformtheme_unittest6 PRIVATE ../src/platformtheme/kdeplatformtheme.cpp ../src/platformtheme/kdeplatformtheme.h ../src/platformtheme/kfontsettingsdata.cpp ../src/platformtheme/kfontsettingsdata.h ../src/platformtheme/khintssettings.cpp ../src/platformtheme/khintssettings.h ../src/platformtheme/kdeplatformfiledialoghelper.cpp ../src/platformtheme/kdeplatformfiledialoghelper.h ../src/platformtheme/kdeplatformfiledialogbase.cpp ../src/platformtheme/kdeplatformsystemtrayicon.cpp ../src/platformtheme/kdeplatformsystemtrayicon.h ../src/platformtheme/kdirselectdialog.cpp ../src/platformtheme/kfiletreeview.cpp ../src/platformtheme/kwaylandintegration.cpp ../src/platformtheme/kwaylandintegration.h ../src/platformtheme/x11integration.cpp ../src/platformtheme/x11integration.h ../src/platformtheme/qxdgdesktopportalfiledialog.cpp ../src/platformtheme/qdbusmenubarwrapper.h ../src/platformtheme/kiodelegate.cpp ../src/platformtheme/kioopenwith.cpp ${dbus_interface} ${wayland_interfaces} ) # TODO KF6 Port D-Bus menu support target_compile_definitions(kdeplatformtheme_unittest6 PRIVATE -DKF6_TODO_DBUS_MENUBAR) frameworkintegration_tests( kfontsettingsdata_unittest ../src/platformtheme/kfontsettingsdata.cpp ../src/platformtheme/kfontsettingsdata.h ) frameworkintegration_tests( kfiledialog_unittest ) frameworkintegration_tests( ksni_unittest ) frameworkintegration_tests( kdeplatformsystemtrayicon_unittest ../src/platformtheme/kdeplatformsystemtrayicon.cpp ../src/platformtheme/kdeplatformsystemtrayicon.h ${dbus_interface} ) frameworkintegration_tests( kdirselectdialog_unittest ../src/platformtheme/kdeplatformfiledialogbase.cpp ../src/platformtheme/kdirselectdialog.cpp ../src/platformtheme/kfiletreeview.cpp ) frameworkintegration_tests( khintssettings_unittest ../src/platformtheme/khintssettings.cpp ../src/platformtheme/khintssettings.h ) if(Qt6Qml_FOUND AND TARGET Qt6::qmltestrunner) add_test(NAME qmltests6 COMMAND Qt6::qmltestrunner WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}) frameworkintegration_tests(kfiledialogqml_unittest) target_link_libraries(kfiledialogqml_unittest6 Qt6::Qml) endif() 070701000000C6000081A40000000000000000000000016728A27700000C09000000000000000000000000000000000000006B00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt6/autotests/kdeplatformsystemtrayicon_unittest.cpp/* This file is part of the KDE libraries SPDX-FileCopyrightText: 2019 Konrad Materka <materka@gmail.com> SPDX-License-Identifier: LGPL-2.0-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ #include <QMenu> #include <QSignalSpy> #include <QTest> #include "../src/platformtheme/kdeplatformsystemtrayicon.h" class KDEPlatformSystemTrayIcon_UnitTest : public QObject { Q_OBJECT private Q_SLOTS: // test for BUG 365105 void testMenuRecreate(); void testAddActionAfterMenuRecreate(); }; void KDEPlatformSystemTrayIcon_UnitTest::testMenuRecreate() { QMenu *trayIconMenu = new QMenu(); trayIconMenu->addAction(QStringLiteral("testAction")); KDEPlatformSystemTrayIcon *kpsti = new KDEPlatformSystemTrayIcon(); // simulates first QSystemTrayIcon::show() kpsti->init(); SystemTrayMenu *ourMenu = qobject_cast<SystemTrayMenu *>(kpsti->createMenu()); trayIconMenu->setPlatformMenu(ourMenu); kpsti->updateMenu(trayIconMenu->platformMenu()); QMenu *firstMenu = ourMenu->menu(); QSignalSpy menuDestroyedSpy(firstMenu, &QObject::destroyed); QCOMPARE(firstMenu->actions().size(), 1); QCOMPARE(firstMenu->actions().first()->text(), "testAction"); // simulates QSystemTrayIcon::hide() kpsti->cleanup(); // simulates second QSystemTrayIcon::show() kpsti->init(); kpsti->updateMenu(trayIconMenu->platformMenu()); QMenu *recreatedMenu = ourMenu->menu(); QVERIFY(firstMenu != recreatedMenu); QCOMPARE(recreatedMenu->actions().size(), 1); QCOMPARE(recreatedMenu->actions().first()->text(), "testAction"); QCOMPARE(menuDestroyedSpy.count(), 1); } void KDEPlatformSystemTrayIcon_UnitTest::testAddActionAfterMenuRecreate() { QMenu *trayIconMenu = new QMenu(); trayIconMenu->addAction(QStringLiteral("testAction1")); KDEPlatformSystemTrayIcon *kpsti = new KDEPlatformSystemTrayIcon(); // simulates first QSystemTrayIcon::show() kpsti->init(); SystemTrayMenu *ourMenu = qobject_cast<SystemTrayMenu *>(kpsti->createMenu()); trayIconMenu->setPlatformMenu(ourMenu); kpsti->updateMenu(trayIconMenu->platformMenu()); QMenu *firstMenu = ourMenu->menu(); QSignalSpy menuDestroyedSpy(firstMenu, &QObject::destroyed); QCOMPARE(firstMenu->actions().size(), 1); QCOMPARE(firstMenu->actions().first()->text(), "testAction1"); // simulates QSystemTrayIcon::hide() kpsti->cleanup(); // add action, internal menu is destroyed trayIconMenu->addAction(QStringLiteral("testAction2")); // simulates second QSystemTrayIcon::show() kpsti->init(); kpsti->updateMenu(trayIconMenu->platformMenu()); QMenu *recreatedMenu = ourMenu->menu(); QVERIFY(firstMenu != recreatedMenu); QCOMPARE(recreatedMenu->actions().size(), 2); QCOMPARE(recreatedMenu->actions().first()->text(), "testAction1"); QCOMPARE(recreatedMenu->actions().last()->text(), "testAction2"); QCOMPARE(menuDestroyedSpy.count(), 1); } QTEST_MAIN(KDEPlatformSystemTrayIcon_UnitTest) #include "kdeplatformsystemtrayicon_unittest.moc" 070701000000C7000081A40000000000000000000000016728A27700000AB4000000000000000000000000000000000000006800000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt6/autotests/kdeplatformtheme_changed_kdeglobals[KDE] CursorBlinkRate=1022 DoubleClickInterval=401 StartDragDist=35 StartDragTime=501 SingleClick=true widgetStyle=another-non-existent-widget-style ShowIconsInMenuItems=false ShowIconsOnPushButtons=true GraphicEffectsLevel=1 WheelScrollLines=122 ShowIconsInMenuItems=false [Toolbar style] ToolButtonStyle=textundericon [Icons] Theme=other-non-existent [MainToolbarIcons] Size=11 [ColorEffects:Active] ChangeSelectionColor=false Enable=false [ColorEffects:Inactive] ChangeSelectionColor=false Enable=false [ColorEffects:Disabled] ChangeSelectionColor=false Enable=false [Colors:Button] BackgroundAlternate=174,11,11 BackgroundNormal=174,11,11 DecorationFocus=174,11,11 DecorationHover=174,11,11 ForegroundActive=174,11,11 ForegroundInactive=174,11,11 ForegroundLink=174,11,11 ForegroundNegative=174,11,11 ForegroundNeutral=174,11,11 ForegroundNormal=174,11,11 ForegroundPositive=174,11,11 ForegroundVisited=174,11,11 [Colors:Selection] BackgroundAlternate=174,11,11 BackgroundNormal=174,11,11 DecorationFocus=174,11,11 DecorationHover=174,11,11 ForegroundActive=174,11,11 ForegroundInactive=174,11,11 ForegroundLink=174,11,11 ForegroundNegative=174,11,11 ForegroundNeutral=174,11,11 ForegroundNormal=174,11,11 ForegroundPositive=174,11,11 ForegroundVisited=174,11,11 [Colors:Tooltip] BackgroundAlternate=174,11,11 BackgroundNormal=174,11,11 DecorationFocus=174,11,11 DecorationHover=174,11,11 ForegroundActive=174,11,11 ForegroundInactive=174,11,11 ForegroundLink=174,11,11 ForegroundNegative=174,11,11 ForegroundNeutral=174,11,11 ForegroundNormal=174,11,11 ForegroundPositive=174,11,11 ForegroundVisited=174,11,11 [Colors:View] BackgroundAlternate=174,11,11 BackgroundNormal=174,11,11 DecorationFocus=174,11,11 DecorationHover=174,11,11 ForegroundActive=174,11,11 ForegroundInactive=174,11,11 ForegroundLink=174,11,11 ForegroundNegative=174,11,11 ForegroundNeutral=174,11,11 ForegroundNormal=174,11,11 ForegroundPositive=174,11,11 ForegroundVisited=174,11,11 [Colors:Window] BackgroundAlternate=174,11,11 BackgroundNormal=174,11,11 DecorationFocus=174,11,11 DecorationHover=174,11,11 ForegroundActive=174,11,11 ForegroundInactive=174,11,11 ForegroundLink=174,11,11 ForegroundNegative=174,11,11 ForegroundNeutral=174,11,11 ForegroundNormal=174,11,11 ForegroundPositive=174,11,11 ForegroundVisited=174,11,11 [WM] activeFont=ChangedActiveTest,9,-1,5,50,0,0,0,0,0 [General] desktopFont=ChangedDesktopTest,9,-1,5,50,0,0,0,0,0 fixed=ChangedFixedTest Mono,10,-1,5,50,0,0,0,0,0 font=ChangedFontTest,9,-1,5,50,0,0,0,0,0 menuFont=ChangedMenuTest,9,-1,5,50,0,0,0,0,0 smallestReadableFont=ChangedSmallestReadableTest,8,-1,5,50,0,0,0,0,0 taskbarFont=ChangedTaskbarTest,9,-1,5,50,0,0,0,0,0 toolBarFont=ChangedToolbarTest,8,-1,5,50,0,0,0,0,0070701000000C8000081A40000000000000000000000016728A27700000174000000000000000000000000000000000000006100000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt6/autotests/kdeplatformtheme_config.h.in/* This file is part of the KDE libraries SPDX-FileCopyrightText: 2013 Alejandro Fiestas Olivares <afiestas@kde.org> SPDX-License-Identifier: LGPL-2.0-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ #ifndef KPLATFORMTHEMETEST_H #define KPLATFORMTHEMETEST_H #define CONFIGFILE "${CONFIGFILE}" #define CHANGED_CONFIGFILE "${CHANGED_CONFIGFILE}" #endif 070701000000C9000081A40000000000000000000000016728A27700000A41000000000000000000000000000000000000006000000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt6/autotests/kdeplatformtheme_kdeglobals[KDE] CursorBlinkRate=1042 DoubleClickInterval=4343 StartDragDist=15 StartDragTime=555 SingleClick=false widgetStyle=non-existent-widget-style ShowIconsInMenuItems=false ShowIconsOnPushButtons=false GraphicEffectsLevel=0 WheelScrollLines=1234 ShowIconsInMenuItems=true [Toolbar style] ToolButtonStyle=textonly ToolButtonStyleOtherToolbars=textundericon [Icons] Theme=non-existent-icon-theme [MainToolbarIcons] Size=2 [ColorEffects:Active] ChangeSelectionColor=false Enable=false [ColorEffects:Inactive] ChangeSelectionColor=false Enable=false [ColorEffects:Disabled] ChangeSelectionColor=false Enable=false [Colors:Button] BackgroundAlternate=0,128,0 BackgroundNormal=0,128,0 DecorationFocus=0,128,0 DecorationHover=0,128,0 ForegroundActive=0,128,0 ForegroundInactive=0,128,0 ForegroundLink=0,128,0 ForegroundNegative=0,128,0 ForegroundNeutral=0,128,0 ForegroundNormal=0,128,0 ForegroundPositive=0,128,0 ForegroundVisited=0,128,0 [Colors:Selection] BackgroundAlternate=0,128,0 BackgroundNormal=0,128,0 DecorationFocus=0,128,0 DecorationHover=0,128,0 ForegroundActive=0,128,0 ForegroundInactive=0,128,0 ForegroundLink=0,128,0 ForegroundNegative=0,128,0 ForegroundNeutral=0,128,0 ForegroundNormal=0,128,0 ForegroundPositive=0,128,0 ForegroundVisited=0,128,0 [Colors:Tooltip] BackgroundAlternate=0,128,0 BackgroundNormal=0,128,0 DecorationFocus=0,128,0 DecorationHover=0,128,0 ForegroundActive=0,128,0 ForegroundInactive=0,128,0 ForegroundLink=0,128,0 ForegroundNegative=0,128,0 ForegroundNeutral=0,128,0 ForegroundNormal=0,128,0 ForegroundPositive=0,128,0 ForegroundVisited=0,128,0 [Colors:View] BackgroundAlternate=0,128,0 BackgroundNormal=0,128,0 DecorationFocus=0,128,0 DecorationHover=0,128,0 ForegroundActive=0,128,0 ForegroundInactive=0,128,0 ForegroundLink=0,128,0 ForegroundNegative=0,128,0 ForegroundNeutral=0,128,0 ForegroundNormal=0,128,0 ForegroundPositive=0,128,0 ForegroundVisited=0,128,0 [Colors:Window] BackgroundAlternate=0,128,0 BackgroundNormal=0,128,0 DecorationFocus=0,128,0 DecorationHover=0,128,0 ForegroundActive=0,128,0 ForegroundInactive=0,128,0 ForegroundLink=0,128,0 ForegroundNegative=0,128,0 ForegroundNeutral=0,128,0 ForegroundNormal=0,128,0 ForegroundPositive=0,128,0 ForegroundVisited=0,128,0 [WM] activeFont=OxyActiveTest,9,-1,5,50,0,0,0,0,0 [General] desktopFont=OxyDesktopTest,9,-1,5,50,0,0,0,0,0 fixed=OxyFixedTest Mono,10,-1,5,50,0,0,0,0,0 font=OxyFontTest,9,-1,5,50,0,0,0,0,0 menuFont=OxyMenuTest,9,-1,5,50,0,0,0,0,0 smallestReadableFont=OxySmallestReadableTest,8,-1,5,50,0,0,0,0,0 taskbarFont=OxyTaskbarTest,9,-1,5,50,0,0,0,0,0 toolBarFont=OxyToolbarTest,8,-1,5,50,0,0,0,0,0070701000000CA000081A40000000000000000000000016728A277000036AE000000000000000000000000000000000000006200000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt6/autotests/kdeplatformtheme_unittest.cpp/* This file is part of the KDE libraries SPDX-FileCopyrightText: 2013 Alejandro Fiestas Olivares <afiestas@kde.org> SPDX-License-Identifier: LGPL-2.0-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ #include "../src/platformtheme/kdeplatformtheme.h" #include "../src/platformtheme/khintssettings.h" #include "kdeplatformtheme_config.h" #include <config-platformtheme.h> #undef HAVE_X11 #define HAVE_X11 0 #include <QApplication> #include <QDialogButtonBox> #include <QDir> #include <QDrag> #include <QFile> #include <QIconEngine> #include <QMimeData> #include <QPalette> #include <QStandardPaths> #include <QString> #include <QTest> #include <QToolButton> #include <Qt> #include <KWindowSystem> #include <QDBusConnection> #include <QDBusMessage> #include <QTimer> #include <KIconTheme> #include <KWindowInfo> #include <kiconloader.h> static void prepareEnvironment() { QStandardPaths::setTestModeEnabled(true); QString configPath = QStandardPaths::writableLocation(QStandardPaths::GenericConfigLocation); if (!QDir(configPath).mkpath(QStringLiteral("."))) { qFatal("Failed to create test configuration directory."); } configPath.append("/kdeglobals"); QFile::remove(configPath); if (!QFile::copy(CONFIGFILE, configPath)) { qFatal("Failed to copy kdeglobals required for tests."); } } Q_CONSTRUCTOR_FUNCTION(prepareEnvironment) class EventTest : public QObject { public: EventTest(QObject *tested, QEvent::Type type) : QObject() , gotEvent(false) , m_type(type) { tested->installEventFilter(this); } bool eventFilter(QObject *, QEvent *e) override { if (e->type() == m_type) { gotEvent = true; } return false; } bool gotEvent; QEvent::Type m_type; }; class KdePlatformTheme_UnitTest : public QObject { Q_OBJECT public: KdePlatformTheme_UnitTest() { } private: void sendNotifyChange(KHintsSettings::ChangeType type, int arg = -1) { QDBusMessage message = QDBusMessage::createSignal(QStringLiteral("/KGlobalSettings"), QStringLiteral("org.kde.KGlobalSettings"), QStringLiteral("notifyChange")); QList<QVariant> args; args.append(static_cast<int>(type)); if (arg >= 0) { args.append(arg); } message.setArguments(args); QDBusConnection::sessionBus().send(message); } QEventLoop m_loop; QToolButton m_toolBtn; KdePlatformTheme *m_qpa; private Q_SLOTS: void initTestCase() { m_qpa = new KdePlatformTheme(); QDBusConnection::sessionBus().connect(QString(), QStringLiteral("/KGlobalSettings"), QStringLiteral("org.kde.KGlobalSettings"), QStringLiteral("notifyChange"), &m_loop, SLOT(quit())); } void cleanupTestCase() { QString configPath = QStandardPaths::writableLocation(QStandardPaths::GenericConfigLocation); configPath.append("/kdeglobals"); QFile::remove(configPath); } void testPlatformHints() { QCOMPARE(qApp->cursorFlashTime(), 1042); QCOMPARE(qApp->doubleClickInterval(), 4343); QCOMPARE(qApp->startDragDistance(), 15); QCOMPARE(qApp->startDragTime(), 555); QCOMPARE(m_qpa->themeHint(QPlatformTheme::ToolButtonStyle).toInt(), (int)Qt::ToolButtonTextOnly); QCOMPARE(m_qpa->themeHint(QPlatformTheme::ToolBarIconSize).toInt(), 2); QCOMPARE(m_qpa->themeHint(QPlatformTheme::ItemViewActivateItemOnSingleClick).toBool(), false); QCOMPARE(m_qpa->themeHint(QPlatformTheme::SystemIconThemeName).toString(), QLatin1String("non-existent-icon-theme")); QCOMPARE(m_qpa->themeHint(QPlatformTheme::SystemIconFallbackThemeName).toString(), QLatin1String("hicolor")); QStringList iconThemeSearchPaths = m_qpa->themeHint(QPlatformTheme::IconThemeSearchPaths).toStringList(); foreach (const QString &iconPath, iconThemeSearchPaths) { QVERIFY(iconPath.endsWith(QLatin1String("/icons")) || iconPath.endsWith(QLatin1String("/.icons"))); QVERIFY(QFile::exists(iconPath)); } // there must be *some* icons in XDG_DATA_DIRS, right? QVERIFY(!iconThemeSearchPaths.isEmpty()); QStringList styles; styles << QStringLiteral("non-existent-widget-style") << QStringLiteral("breeze") << QStringLiteral("oxygen") << QStringLiteral("fusion") << QStringLiteral("windows"); QCOMPARE(m_qpa->themeHint(QPlatformTheme::StyleNames).toStringList(), styles); QCOMPARE(m_qpa->themeHint(QPlatformTheme::DialogButtonBoxLayout).toInt(), (int)QDialogButtonBox::KdeLayout); QCOMPARE(m_qpa->themeHint(QPlatformTheme::DialogButtonBoxButtonsHaveIcons).toBool(), false); QCOMPARE(m_qpa->themeHint(QPlatformTheme::UseFullScreenForPopupMenu).toBool(), true); QCOMPARE(m_qpa->themeHint(QPlatformTheme::KeyboardScheme).toInt(), (int)QPlatformTheme::KdeKeyboardScheme); QCOMPARE(m_qpa->themeHint(QPlatformTheme::UiEffects).toInt(), 0); QCOMPARE(m_qpa->themeHint(QPlatformTheme::IconPixmapSizes).value<QList<int>>(), QList<int>() << 512 << 256 << 128 << 64 << 32 << 22 << 16 << 8); QCOMPARE(qApp->wheelScrollLines(), 1234); QCOMPARE(qApp->testAttribute(Qt::AA_DontShowIconsInMenus), false); } void testPlatformPalette() { const QPalette palette = qApp->palette(); QPalette::ColorGroup states[3] = {QPalette::Active, QPalette::Inactive, QPalette::Disabled}; QColor greenColor(QColor(0, 128, 0)); QBrush greenBrush(greenColor); for (int i = 0; i < 3; i++) { QCOMPARE(palette.brush(states[i], QPalette::ButtonText), greenBrush); QCOMPARE(palette.brush(states[i], QPalette::WindowText), greenBrush); QCOMPARE(palette.brush(states[i], QPalette::Window), greenBrush); QCOMPARE(palette.brush(states[i], QPalette::Base), greenBrush); QCOMPARE(palette.brush(states[i], QPalette::Text), greenBrush); QCOMPARE(palette.brush(states[i], QPalette::Button), greenBrush); QCOMPARE(palette.brush(states[i], QPalette::ButtonText), greenBrush); QCOMPARE(palette.brush(states[i], QPalette::Highlight), greenBrush); QCOMPARE(palette.brush(states[i], QPalette::HighlightedText), greenBrush); QCOMPARE(palette.brush(states[i], QPalette::ToolTipBase), greenBrush); QCOMPARE(palette.brush(states[i], QPalette::ToolTipText), greenBrush); // KColorScheme applies modifications and we can't disable them, so I extracted // the values and blindly compare them. QCOMPARE(palette.color(states[i], QPalette::Light).green(), 162); QCOMPARE(palette.color(states[i], QPalette::Midlight).green(), 144); QCOMPARE(palette.color(states[i], QPalette::Mid).green(), 109); QCOMPARE(palette.color(states[i], QPalette::Dark).green(), 62); QCOMPARE(palette.color(states[i], QPalette::Shadow).green(), 43); QCOMPARE(palette.brush(states[i], QPalette::AlternateBase), greenBrush); QCOMPARE(palette.brush(states[i], QPalette::Link), greenBrush); QCOMPARE(palette.brush(states[i], QPalette::LinkVisited), greenBrush); } } void testPlatformIconEngine() { QIconEngine *engine = m_qpa->createIconEngine(QStringLiteral("test-icon")); QCOMPARE(engine->key(), QStringLiteral("KIconEngine")); } void testPlatformIconEngineTheme() { // The current theme should be what we defined. KdePlatformTheme().createIconEngine(QStringLiteral("test-icon")); QCOMPARE(KIconLoader::global()->theme()->current(), QStringLiteral("non-existent-icon-theme")); } void testPlatformIconChanges() { QString configPath = QStandardPaths::writableLocation(QStandardPaths::GenericConfigLocation); configPath.append("/kdeglobals"); QFile::remove(configPath); QFile::copy(CHANGED_CONFIGFILE, configPath); QDBusConnection::sessionBus() .connect(QString(), QStringLiteral("/KIconLoader"), QStringLiteral("org.kde.KIconLoader"), QStringLiteral("iconChanged"), &m_loop, SLOT(quit())); QDBusMessage message = QDBusMessage::createSignal(QStringLiteral("/KIconLoader"), QStringLiteral("org.kde.KIconLoader"), QStringLiteral("iconChanged")); message.setArguments(QList<QVariant>() << int(KIconLoader::MainToolbar)); QDBusConnection::sessionBus().send(message); m_loop.exec(); QCOMPARE(m_qpa->themeHint(QPlatformTheme::ToolBarIconSize).toInt(), 11); } void testPlatformHintChanges() { EventTest tester(&m_toolBtn, QEvent::StyleChange); sendNotifyChange(KHintsSettings::SettingsChanged, KHintsSettings::SETTINGS_QT); m_loop.exec(); QCOMPARE(qApp->cursorFlashTime(), 1022); sendNotifyChange(KHintsSettings::SettingsChanged, KHintsSettings::SETTINGS_MOUSE); m_loop.exec(); QCOMPARE(m_qpa->themeHint(QPlatformTheme::ItemViewActivateItemOnSingleClick).toBool(), true); QCOMPARE(qApp->doubleClickInterval(), 401); QCOMPARE(qApp->startDragDistance(), 35); QCOMPARE(qApp->startDragTime(), 501); QCOMPARE(qApp->wheelScrollLines(), 122); QCOMPARE(qApp->testAttribute(Qt::AA_DontShowIconsInMenus), true); sendNotifyChange(KHintsSettings::ToolbarStyleChanged, 2); m_loop.exec(); QCOMPARE(m_qpa->themeHint(QPlatformTheme::ToolButtonStyle).toInt(), (int)Qt::ToolButtonTextUnderIcon); QCOMPARE(tester.gotEvent, true); sendNotifyChange(KHintsSettings::StyleChanged, 2); m_loop.exec(); QStringList styles; styles << QStringLiteral("another-non-existent-widget-style") << QStringLiteral("breeze") << QStringLiteral("oxygen") << QStringLiteral("fusion") << QStringLiteral("windows"); QCOMPARE(m_qpa->themeHint(QPlatformTheme::StyleNames).toStringList(), styles); sendNotifyChange(KHintsSettings::SettingsChanged, KHintsSettings::SETTINGS_STYLE); m_loop.exec(); QCOMPARE(m_qpa->themeHint(QPlatformTheme::DialogButtonBoxButtonsHaveIcons).toBool(), true); sendNotifyChange(KHintsSettings::IconChanged, 4); m_loop.exec(); QCOMPARE(m_qpa->themeHint(QPlatformTheme::SystemIconThemeName).toString(), QLatin1String("other-non-existent")); } void testPlatformPaletteChanges() { EventTest tester(QGuiApplication::instance(), QEvent::ApplicationPaletteChange); sendNotifyChange(KHintsSettings::PaletteChanged, 0); m_loop.exec(); QCOMPARE(tester.gotEvent, true); const QPalette *palette = m_qpa->palette(); QPalette::ColorGroup states[3] = {QPalette::Active, QPalette::Inactive, QPalette::Disabled}; QColor redColor(QColor(174, 11, 11)); QBrush redBrush(redColor); for (int i = 0; i < 3; i++) { QCOMPARE(palette->brush(states[i], QPalette::ButtonText), redBrush); QCOMPARE(palette->brush(states[i], QPalette::WindowText), redBrush); QCOMPARE(palette->brush(states[i], QPalette::Window), redBrush); QCOMPARE(palette->brush(states[i], QPalette::Base), redBrush); QCOMPARE(palette->brush(states[i], QPalette::Text), redBrush); QCOMPARE(palette->brush(states[i], QPalette::Button), redBrush); QCOMPARE(palette->brush(states[i], QPalette::ButtonText), redBrush); QCOMPARE(palette->brush(states[i], QPalette::Highlight), redBrush); QCOMPARE(palette->brush(states[i], QPalette::HighlightedText), redBrush); QCOMPARE(palette->brush(states[i], QPalette::ToolTipBase), redBrush); QCOMPARE(palette->brush(states[i], QPalette::ToolTipText), redBrush); // KColorScheme applies modifications and we can't disable them, so I extracted // the values and blindly compare them. QCOMPARE(palette->color(states[i], QPalette::Light).red(), 230); QCOMPARE(palette->color(states[i], QPalette::Midlight).red(), 203); QCOMPARE(palette->color(states[i], QPalette::Mid).red(), 149); QCOMPARE(palette->color(states[i], QPalette::Dark).red(), 84); QCOMPARE(palette->color(states[i], QPalette::Shadow).red(), 60); QCOMPARE(palette->brush(states[i], QPalette::AlternateBase), redBrush); QCOMPARE(palette->brush(states[i], QPalette::Link), redBrush); QCOMPARE(palette->brush(states[i], QPalette::LinkVisited), redBrush); } } void dndWindowFlagsTest() { if (!KWindowSystem::isPlatformX11()) { QSKIP("This test requires xcb platform."); } QDrag *drag = new QDrag(this); QMimeData *data = new QMimeData; data->setData("Text/Plain", "drag data"); drag->setMimeData(data); bool succeeded = false; QTimer::singleShot(1000, [&succeeded] { auto windows = QGuiApplication::allWindows(); auto it = std::find_if(windows.constBegin(), windows.constEnd(), [](QWindow *w) { return w->inherits("QShapedPixmapWindow"); }); if (it != windows.constEnd()) { KWindowInfo info((*it)->winId(), NET::WMWindowType); succeeded = info.windowType(NET::DNDIconMask) == NET::DNDIcon; } QTest::keyClick(windows.first(), Qt::Key_Escape); }); drag->exec(); QVERIFY(succeeded); } }; QTEST_MAIN(KdePlatformTheme_UnitTest) #include "kdeplatformtheme_unittest.moc" 070701000000CB000081A40000000000000000000000016728A277000004B3000000000000000000000000000000000000006200000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt6/autotests/kdirselectdialog_unittest.cpp/* This file is part of the KDE libraries SPDX-FileCopyrightText: 2015 Alejandro Fiestas Olivares <afiestas@kde.org> SPDX-License-Identifier: LGPL-2.0-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ #include "../src/platformtheme/kdirselectdialog_p.h" #include "../src/platformtheme/kfiletreeview_p.h" #include <QTest> class KDirSelectDialog_UnitTest : public QObject { Q_OBJECT private Q_SLOTS: void testSetCurrentUrl_data() { QTest::addColumn<QUrl>("url"); QTest::addColumn<QUrl>("expectedUrl"); QTest::newRow("only_scheme") << QUrl(QStringLiteral("trash:")) << QUrl(QStringLiteral("trash:/")); QTest::newRow("with_no_host") << QUrl(QStringLiteral("trash://")) << QUrl(QStringLiteral("trash://")); QTest::newRow("with_root_path") << QUrl(QStringLiteral("trash:///")) << QUrl(QStringLiteral("trash:///")); } void testSetCurrentUrl() { QFETCH(QUrl, url); QFETCH(QUrl, expectedUrl); KDirSelectDialog dirDialog; dirDialog.setCurrentUrl(url); QCOMPARE(dirDialog.rootUrl(), expectedUrl); } }; QTEST_MAIN(KDirSelectDialog_UnitTest) #include "kdirselectdialog_unittest.moc" 070701000000CC000081A40000000000000000000000016728A2770000323E000000000000000000000000000000000000005D00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt6/autotests/kfiledialog_unittest.cpp/* This file is part of the KDE libraries SPDX-FileCopyrightText: 2014 Dominik Haumann <dhaumann@kde.org> SPDX-License-Identifier: LGPL-2.0-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ #include <KDirOperator> #include <KFileWidget> #include <QDir> #include <QFileDialog> #include <QTemporaryDir> #include <QTemporaryFile> #include <QTest> #include <QTimer> Q_DECLARE_METATYPE(QFileDialog::ViewMode) Q_DECLARE_METATYPE(QFileDialog::FileMode) Q_DECLARE_METATYPE(KFile::FileView) Q_DECLARE_METATYPE(KFile::Modes) class KFileDialog_UnitTest : public QObject { Q_OBJECT private Q_SLOTS: void initTestCase() { } void init() { } void cleanupTestCase() { } void testSetNameFilters() { QFileDialog dialog; QStringList nameFilterList = QStringList() << QStringLiteral("c (*.cpp)") << QStringLiteral("h (*.h)"); dialog.setNameFilters(nameFilterList); QCOMPARE(dialog.nameFilters(), nameFilterList); } void testSelectNameFilter() { QFileDialog dialog; QStringList nameFilterList = QStringList() << QStringLiteral("c (*.cpp)") << QStringLiteral("h (*.h)"); dialog.setNameFilters(nameFilterList); QCOMPARE(dialog.nameFilters(), nameFilterList); QString selectNameFilter(QStringLiteral("h (*.h)")); dialog.selectNameFilter(selectNameFilter); QEXPECT_FAIL("", "Does currently not work. Works, once the dialog gets shown, though.", Continue); QCOMPARE(dialog.selectedNameFilter(), selectNameFilter); dialog.show(); QCOMPARE(dialog.selectedNameFilter(), selectNameFilter); } void testSelectNameFilterMultipleMatching() { QFileDialog dialog; QStringList nameFilterList = QStringList() << QStringLiteral("c (*.cpp)") << QStringLiteral("h1 (*.h)") << QStringLiteral("h2 (*.h)"); dialog.setNameFilters(nameFilterList); QCOMPARE(dialog.nameFilters(), nameFilterList); QString selectNameFilter(QStringLiteral("h2 (*.h)")); dialog.selectNameFilter(selectNameFilter); QEXPECT_FAIL("", "Does currently not work. Works, once the dialog gets shown, though.", Continue); QCOMPARE(dialog.selectedNameFilter(), selectNameFilter); dialog.show(); QCOMPARE(dialog.selectedNameFilter(), selectNameFilter); } void testSelectedMimeTypeFilter_data() { QTest::addColumn<QStringList>("mimeTypeFilters"); QTest::addColumn<QString>("targetMimeTypeFilter"); const auto headerMime = QStringLiteral("text/x-chdr"); const auto jsonMime = QStringLiteral("application/json"); const auto zipMime = QStringLiteral("application/zip"); QTest::newRow("single mime filter (C header file)") << QStringList{headerMime} << headerMime; QTest::newRow("single mime filter (JSON file)") << QStringList{jsonMime} << jsonMime; QTest::newRow("multiple mime filters") << QStringList{jsonMime, zipMime} << jsonMime; } void testSelectedMimeTypeFilter() { QFileDialog dialog; QFETCH(QStringList, mimeTypeFilters); dialog.setMimeTypeFilters(mimeTypeFilters); QFETCH(QString, targetMimeTypeFilter); dialog.selectMimeTypeFilter(targetMimeTypeFilter); dialog.show(); QCOMPARE(dialog.selectedMimeTypeFilter(), targetMimeTypeFilter); } void testFallbackOnFirstFilterInSaveMode() { QFileDialog dialog; dialog.setAcceptMode(QFileDialog::AcceptSave); dialog.setMimeTypeFilters({QStringLiteral("application/json"), QStringLiteral("application/zip")}); dialog.show(); QCOMPARE(dialog.selectedMimeTypeFilter(), QStringLiteral("application/json")); } void testSetDirectory() { QFileDialog dialog; dialog.setDirectory(QDir::rootPath()); QCOMPARE(dialog.directory().absolutePath(), QDir::rootPath()); } void testSelectUrl() { QTemporaryFile tempFile(m_tempDir.path() + "/kfiledialogtest_XXXXXX"); tempFile.setAutoRemove(true); tempFile.open(); QString tempName = tempFile.fileName(); QUrl url = QUrl::fromLocalFile(tempName); int idx = tempName.lastIndexOf('/'); QUrl directoryUrl = QUrl::fromLocalFile(tempName.left(idx + 1)); QFileDialog dialog; dialog.selectUrl(url); dialog.show(); // check if dialog was set to base directory url of the passed file url QCOMPARE(dialog.directoryUrl(), directoryUrl); } void testGetSaveFileUrl() { QObject lambdaGuard; QTemporaryFile tempFile(m_tempDir.path() + "/kfiledialogtest_XXXXXX"); tempFile.open(); const QString tempName = tempFile.fileName(); const QUrl url = QUrl::fromLocalFile(tempName); // Need to use a lambda and not just QTest::qWaitForWindowExposed(); // because with the static getSaveFileUrl we do not have access // to the QFileDialog object, so instead we hook to a signal KFileWidget::OperationMode saveFileOperationMode = KFileWidget::Other; connect(qApp, &QGuiApplication::focusWindowChanged, &lambdaGuard, [&saveFileOperationMode] { KFileWidget *fileWidget = findFileWidget(); saveFileOperationMode = fileWidget->operationMode(); qApp->activeWindow()->close(); }); QFileDialog::getSaveFileUrl(nullptr, QString(), url); QCOMPARE(saveFileOperationMode, KFileWidget::Saving); } void testViewMode() { // Open a file dialog, and change view mode to tree { QFileDialog dialog; dialog.show(); KFileWidget *fw = findFileWidget(); QVERIFY(fw); fw->setViewMode(KFile::Tree); fw->slotCancel(); // the saving happens there } // Open another one, and check that the view mode is now tree, change it to simple { QFileDialog dialog; dialog.show(); KFileWidget *fw = findFileWidget(); QVERIFY(fw); KDirOperator *op = fw->dirOperator(); QCOMPARE(fileViewToString(op->viewMode()), fileViewToString(KFile::Tree)); fw->setViewMode(KFile::Simple); fw->slotCancel(); } // Open another one, and check that the view mode is now simple { QFileDialog dialog; dialog.show(); KFileWidget *fw = findFileWidget(); QVERIFY(fw); KDirOperator *op = fw->dirOperator(); QCOMPARE(fileViewToString(op->viewMode()), fileViewToString(KFile::Simple)); fw->setViewMode(KFile::Detail); fw->slotCancel(); } } void testOpenDialog() { // Open parentless { QFileDialog dialog; dialog.open(); KFileWidget *fw = findFileWidget(); QVERIFY(fw); QCOMPARE(fw->isVisible(), true); fw->slotCancel(); } // Open with parent { QWidget w; w.show(); QFileDialog dialog(&w); dialog.open(); KFileWidget *fw = findFileWidget(); QVERIFY(fw); QCOMPARE(fw->isVisible(), true); fw->slotCancel(); } } void testShowDialog() { // Show parentless { QFileDialog dialog; dialog.show(); KFileWidget *fw = findFileWidget(); QVERIFY(fw); QCOMPARE(fw->isVisible(), true); fw->slotCancel(); } // Show with parent { QWidget w; w.show(); QFileDialog dialog(&w); dialog.show(); KFileWidget *fw = findFileWidget(); QVERIFY(fw); QCOMPARE(fw->isVisible(), true); fw->slotCancel(); } } void testSetFileMode_data() { QTest::addColumn<QFileDialog::FileMode>("qtFileMode"); QTest::addColumn<KFile::Modes>("kdeFileMode"); QTest::newRow("anyfile") << QFileDialog::AnyFile << KFile::Modes(KFile::File); QTest::newRow("existingfile") << QFileDialog::ExistingFile << KFile::Modes(KFile::File | KFile::ExistingOnly); QTest::newRow("directory") << QFileDialog::Directory << KFile::Modes(KFile::Directory | KFile::ExistingOnly); QTest::newRow("existingfiles") << QFileDialog::ExistingFiles << KFile::Modes(KFile::Files | KFile::ExistingOnly); } void testSetFileMode() { QFETCH(QFileDialog::FileMode, qtFileMode); QFETCH(KFile::Modes, kdeFileMode); QFileDialog dialog; dialog.setFileMode(qtFileMode); dialog.show(); KFileWidget *fw = findFileWidget(); QVERIFY(fw); QCOMPARE(fw->mode(), kdeFileMode); QCOMPARE(dialog.fileMode(), qtFileMode); } void testSaveOverwrite_data() { QTest::addColumn<bool>("qtOverwriteOption"); QTest::addColumn<bool>("messageBoxExpected"); QTest::newRow("checkoverwrite") << false << true; QTest::newRow("allowoverwrite") << true << false; } void testSaveOverwrite() { QFETCH(bool, qtOverwriteOption); QFETCH(bool, messageBoxExpected); QTemporaryFile tempFile(m_tempDir.path() + "/kfiledialogtest_XXXXXX"); tempFile.setAutoRemove(true); tempFile.open(); QString tempName = tempFile.fileName(); tempFile.close(); int idx = tempName.lastIndexOf('/'); QFileDialog dialog; dialog.setAcceptMode(QFileDialog::AcceptSave); if (qtOverwriteOption) dialog.setOption(QFileDialog::DontConfirmOverwrite); dialog.setDirectory(tempName.left(idx + 1)); dialog.selectFile(tempName.mid(idx + 1)); dialog.open(); KFileWidget *fw = findFileWidget(); QVERIFY(fw); QVERIFY(QTest::qWaitForWindowExposed(fw->window())); QCOMPARE(fw->isVisible(), true); bool timerRun = false; QTimer::singleShot(3500, this, [&] { timerRun = true; QDialog *msgbox = findMessageBox(); if (msgbox) { QVERIFY(QTest::qWaitForWindowExposed(msgbox)); QCOMPARE(msgbox->isVisible(), true); msgbox->close(); QVERIFY(messageBoxExpected); } else { QVERIFY(!messageBoxExpected); } }); fw->slotOk(); QTRY_VERIFY(timerRun); } void testRememberLastDirectory() { const QUrl dir = QUrl::fromLocalFile(QDir::tempPath()).adjusted(QUrl::StripTrailingSlash); // Open and navigate { QFileDialog dialog; dialog.open(); KFileWidget *fw = findFileWidget(); QVERIFY(fw); QCOMPARE(fw->isVisible(), true); fw->setUrl(dir); fw->slotCancel(); } // Open another filedialog, check that the default directory is the one from above { QFileDialog dialog; dialog.open(); KFileWidget *fw = findFileWidget(); QVERIFY(fw); QCOMPARE(fw->isVisible(), true); QCOMPARE(dialog.directoryUrl().adjusted(QUrl::StripTrailingSlash), dir); fw->slotCancel(); } } private: QTemporaryDir m_tempDir; static QString fileViewToString(KFile::FileView fv) { switch (fv) { case KFile::Detail: return QStringLiteral("Detail"); case KFile::Simple: return QStringLiteral("Simple"); case KFile::Tree: return QStringLiteral("Tree"); case KFile::DetailTree: return QStringLiteral("DetailTree"); default: break; } return QStringLiteral("ERROR"); } static KFileWidget *findFileWidget() { QList<KFileWidget *> widgets; foreach (QWidget *widget, QApplication::topLevelWidgets()) { KFileWidget *fw = widget->findChild<KFileWidget *>(); if (fw) { widgets.append(fw); } } Q_ASSERT(widgets.count() == 1); return (widgets.count() == 1) ? widgets.first() : nullptr; } static QDialog *findMessageBox() { QList<QDialog *> widgets; foreach (QWidget *widget, QApplication::topLevelWidgets()) { QDialog *dlg = widget->findChild<QDialog *>(); if (dlg) { widgets.append(dlg); } } return (widgets.count() == 1) ? widgets.first() : nullptr; } }; QTEST_MAIN(KFileDialog_UnitTest) #include "kfiledialog_unittest.moc" 070701000000CD000081A40000000000000000000000016728A2770000081E000000000000000000000000000000000000006000000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt6/autotests/kfiledialogqml_unittest.cpp/* This file is part of the KDE libraries SPDX-FileCopyrightText: 2014 Dominik Haumann <dhaumann@kde.org> SPDX-FileCopyrightText: 2015 David Rosca <nowrep@gmail.com> SPDX-License-Identifier: LGPL-2.0-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ #include <KFileWidget> #include <QQmlComponent> #include <QQmlEngine> #include <QTest> class KFileDialogQml_UnitTest : public QObject { Q_OBJECT private Q_SLOTS: void initTestCase() { m_engine = new QQmlEngine; } void cleanupTestCase() { delete m_engine; } void testShowDialogParentless() { KFileWidget *fw; { QQmlComponent component(m_engine); component.loadUrl(QUrl::fromLocalFile(QFINDTESTDATA("qml/filedialog_parentless.qml"))); QScopedPointer<QObject> object(component.create()); QVERIFY(!object.isNull()); fw = findFileWidget(); QVERIFY(fw); QCOMPARE(fw->isVisible(), true); fw->slotCancel(); } } void testShowDialogWithParent() { KFileWidget *fw; { QQmlComponent component(m_engine); component.loadUrl(QUrl::fromLocalFile(QFINDTESTDATA("qml/filedialog_withparent.qml"))); QScopedPointer<QObject> object(component.create()); QVERIFY(!object.isNull()); fw = findFileWidget(); QVERIFY(fw); QCOMPARE(fw->isVisible(), true); fw->slotCancel(); } } private: static KFileWidget *findFileWidget() { QList<KFileWidget *> widgets; foreach (QWidget *widget, QApplication::topLevelWidgets()) { KFileWidget *fw = widget->findChild<KFileWidget *>(); if (fw) { widgets.append(fw); } } Q_ASSERT(widgets.count() == 1); return (widgets.count() == 1) ? widgets.first() : nullptr; } QQmlEngine *m_engine = nullptr; }; QTEST_MAIN(KFileDialogQml_UnitTest) #include "kfiledialogqml_unittest.moc" 070701000000CE000081A40000000000000000000000016728A27700001200000000000000000000000000000000000000006300000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt6/autotests/kfontsettingsdata_unittest.cpp/* This file is part of the KDE libraries SPDX-FileCopyrightText: 2013 Alejandro Fiestas Olivares <afiestas@kde.org> SPDX-License-Identifier: LGPL-2.0-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ #include "../src/platformtheme/kfontsettingsdata.h" #include "kdeplatformtheme_config.h" #include <QApplication> #include <QDir> #include <QFile> #include <QString> #include <QTest> #include <QDBusConnection> #include <QDBusMessage> static void prepareEnvironment() { qputenv("KDEHOME", QFile::encodeName(QDir::homePath() + QStringLiteral("/.kde5-unit-test-platformtheme"))); qputenv("XDG_DATA_HOME", QFile::encodeName(QDir::homePath() + QStringLiteral("/.kde5-unit-test-platformtheme/xdg/local"))); QByteArray configPath = QFile::encodeName(QDir::homePath() + QStringLiteral("/.kde5-unit-test-platformtheme/xdg/config")); qputenv("XDG_CONFIG_HOME", configPath); qputenv("KDE_SKIP_KDERC", "1"); qunsetenv("KDE_COLOR_DEBUG"); QDir().mkpath(configPath); configPath.append("/kdeglobals"); QFile::remove(configPath); QFile::copy(CONFIGFILE, configPath); } // Run prepareEnvironment before qApp is created! slightly incorrect, QFile::encodeName can be wrong then. // But we can't use Q_COREAPP_STARTUP_FUNCTION because the platform theme ends up being created // first, with the wrong environment. Q_CONSTRUCTOR_FUNCTION(prepareEnvironment) class KFontSettingsData_UnitTest : public QWidget { Q_OBJECT public: bool event(QEvent *e) override { if (e->type() == QEvent::ApplicationFontChange) { m_appChangedFont = true; } return QWidget::event(e); } private: bool m_appChangedFont; KFontSettingsData *m_fonts; private Q_SLOTS: void initTestCase() { m_appChangedFont = false; m_fonts = new KFontSettingsData; qApp->processEvents(); // give time to delayed dbus connect } void testFonts() { QCOMPARE(m_fonts->font(KFontSettingsData::GeneralFont)->family(), QStringLiteral("OxyFontTest")); QCOMPARE(m_fonts->font(KFontSettingsData::FixedFont)->family(), QStringLiteral("OxyFixedTest Mono")); QCOMPARE(m_fonts->font(KFontSettingsData::ToolbarFont)->family(), QStringLiteral("OxyToolbarTest")); QCOMPARE(m_fonts->font(KFontSettingsData::MenuFont)->family(), QStringLiteral("OxyMenuTest")); QCOMPARE(m_fonts->font(KFontSettingsData::WindowTitleFont)->family(), QStringLiteral("OxyActiveTest")); QCOMPARE(m_fonts->font(KFontSettingsData::TaskbarFont)->family(), QStringLiteral("OxyTaskbarTest")); QCOMPARE(m_fonts->font(KFontSettingsData::SmallestReadableFont)->family(), QStringLiteral("OxySmallestReadableTest")); } void testFontsChanged() { QByteArray configPath = qgetenv("XDG_CONFIG_HOME"); configPath.append("/kdeglobals"); QFile::remove(configPath); QVERIFY(QFile::copy(CHANGED_CONFIGFILE, configPath)); QEventLoop loop; QDBusConnection::sessionBus().connect(QString(), QStringLiteral("/KDEPlatformTheme"), QStringLiteral("org.kde.KDEPlatformTheme"), QStringLiteral("refreshFonts"), &loop, SLOT(quit())); QDBusMessage message = QDBusMessage::createSignal(QStringLiteral("/KDEPlatformTheme"), QStringLiteral("org.kde.KDEPlatformTheme"), QStringLiteral("refreshFonts")); QDBusConnection::sessionBus().send(message); loop.exec(); QVERIFY(m_appChangedFont); QCOMPARE(m_fonts->font(KFontSettingsData::GeneralFont)->family(), QStringLiteral("ChangedFontTest")); QCOMPARE(m_fonts->font(KFontSettingsData::FixedFont)->family(), QStringLiteral("ChangedFixedTest Mono")); QCOMPARE(m_fonts->font(KFontSettingsData::ToolbarFont)->family(), QStringLiteral("ChangedToolbarTest")); QCOMPARE(m_fonts->font(KFontSettingsData::MenuFont)->family(), QStringLiteral("ChangedMenuTest")); QCOMPARE(m_fonts->font(KFontSettingsData::WindowTitleFont)->family(), QStringLiteral("ChangedActiveTest")); QCOMPARE(m_fonts->font(KFontSettingsData::TaskbarFont)->family(), QStringLiteral("ChangedTaskbarTest")); QCOMPARE(m_fonts->font(KFontSettingsData::SmallestReadableFont)->family(), QStringLiteral("ChangedSmallestReadableTest")); } }; QTEST_MAIN(KFontSettingsData_UnitTest) #include "kfontsettingsdata_unittest.moc" 070701000000CF000081A40000000000000000000000016728A27700000A2D000000000000000000000000000000000000006000000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt6/autotests/khintssettings_unittest.cpp/* This file is part of the KDE libraries SPDX-FileCopyrightText: 2016 Martin Gräßlin <mgraesslin@kde.org> SPDX-License-Identifier: LGPL-2.0-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ #include "../src/platformtheme/khintssettings.h" #include <KSharedConfig> #include <QDialogButtonBox> #include <QTest> #include <config-platformtheme.h> class KHintsSettingsTest : public QObject { Q_OBJECT private Q_SLOTS: void testDefaults(); }; void KHintsSettingsTest::testDefaults() { // this test verifies that default are correctly loaded if there is no config yet KSharedConfig::Ptr config = KSharedConfig::openConfig(QString(), KConfig::SimpleConfig); KHintsSettings hints(config); QCOMPARE(hints.hint(QPlatformTheme::CursorFlashTime).toInt(), 1000); QCOMPARE(hints.hint(QPlatformTheme::MouseDoubleClickInterval).toInt(), 400); QCOMPARE(hints.hint(QPlatformTheme::StartDragDistance).toInt(), 10); QCOMPARE(hints.hint(QPlatformTheme::StartDragTime).toInt(), 500); QCOMPARE(hints.hint(QPlatformTheme::ToolButtonStyle).toInt(), int(Qt::ToolButtonTextBesideIcon)); QCOMPARE(hints.hint(QPlatformTheme::ToolBarIconSize).toInt(), 22); QCOMPARE(hints.hint(QPlatformTheme::ItemViewActivateItemOnSingleClick).toBool(), false); QCOMPARE(hints.hint(QPlatformTheme::SystemIconThemeName).toString(), QStringLiteral("breeze")); QCOMPARE(hints.hint(QPlatformTheme::SystemIconFallbackThemeName).toString(), QStringLiteral("hicolor")); QCOMPARE(hints.hint(QPlatformTheme::IconThemeSearchPaths).toStringList(), hints.xdgIconThemePaths()); const QStringList expectedStyles = QStringList{QStringLiteral("breeze"), QStringLiteral("oxygen"), QStringLiteral("fusion"), QStringLiteral("windows")}; QCOMPARE(hints.hint(QPlatformTheme::StyleNames).toStringList(), expectedStyles); QCOMPARE(hints.hint(QPlatformTheme::DialogButtonBoxLayout).toInt(), int(QDialogButtonBox::KdeLayout)); QCOMPARE(hints.hint(QPlatformTheme::DialogButtonBoxButtonsHaveIcons).toBool(), true); QCOMPARE(hints.hint(QPlatformTheme::UseFullScreenForPopupMenu).toBool(), true); QCOMPARE(hints.hint(QPlatformTheme::KeyboardScheme).toInt(), int(QPlatformTheme::KdeKeyboardScheme)); QCOMPARE(hints.hint(QPlatformTheme::UiEffects).toInt(), QPlatformTheme::HoverEffect); QCOMPARE(hints.hint(QPlatformTheme::IconPixmapSizes).value<QList<int>>(), QList<int>({512, 256, 128, 64, 32, 22, 16, 8})); QCOMPARE(hints.hint(QPlatformTheme::WheelScrollLines).toInt(), 3); } QTEST_GUILESS_MAIN(KHintsSettingsTest) #include "khintssettings_unittest.moc" 070701000000D0000081A40000000000000000000000016728A27700000459000000000000000000000000000000000000005600000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt6/autotests/ksni_unittest.cpp/* This file is part of the KDE libraries SPDX-FileCopyrightText: 2015 Martin Gräßlin <mgraesslin@kde.org> SPDX-License-Identifier: LGPL-2.0-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ #include <QAbstractEventDispatcher> #include <QMenu> #include <QSignalSpy> #include <QSystemTrayIcon> #include <QTest> class KSniUnitTest : public QObject { Q_OBJECT private Q_SLOTS: // test for BUG 343976 void testHideDontCrash(); }; void KSniUnitTest::testHideDontCrash() { QSystemTrayIcon *sti = new QSystemTrayIcon(this); QMenu *trayIconMenu = new QMenu(); QAction *dummyAction = new QAction(QStringLiteral("foo"), sti); trayIconMenu->addAction(dummyAction); QSignalSpy menuDestroyedSpy(trayIconMenu, &QObject::destroyed); QVERIFY(menuDestroyedSpy.isValid()); sti->setContextMenu(trayIconMenu); connect(sti, &QSystemTrayIcon::destroyed, trayIconMenu, &QMenu::deleteLater); sti->setVisible(true); sti->show(); // now delete it delete sti; QVERIFY(menuDestroyedSpy.wait()); } QTEST_MAIN(KSniUnitTest) #include "ksni_unittest.moc" 070701000000D1000041ED0000000000000000000000026728A27700000000000000000000000000000000000000000000004800000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt6/autotests/qml070701000000D2000081A40000000000000000000000016728A2770000013F000000000000000000000000000000000000006200000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt6/autotests/qml/filedialog_parentless.qml/* This file is part of the KDE libraries SPDX-FileCopyrightText: 2015 David Rosca <nowrep@gmail.com> SPDX-License-Identifier: LGPL-2.0-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ import QtQuick import QtQuick.Dialogs FileDialog { id: fileDialog Component.onCompleted: visible = true } 070701000000D3000081A40000000000000000000000016728A277000001A6000000000000000000000000000000000000006200000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt6/autotests/qml/filedialog_withparent.qml/* This file is part of the KDE libraries SPDX-FileCopyrightText: 2015 David Rosca <nowrep@gmail.com> SPDX-License-Identifier: LGPL-2.0-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ import QtQuick import QtQuick.Window import QtQuick.Dialogs Window { x: 100 y: 100 width: 100 height: 100 FileDialog { id: fileDialog Component.onCompleted: visible = true } } 070701000000D4000081A40000000000000000000000016728A27700000227000000000000000000000000000000000000005700000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt6/autotests/tst_filedialog.qmlimport QtQuick import QtTest import QtQuick.Dialogs TestCase { id: testCase width: 400 height: 400 visible: true when: windowShown name: "FileDialogTest" FileDialog { id: fileDialog currentFolder: shortcuts.home } function test_filedialog() { //At the moment it just makes sure that something opens and doesn't crash. //Since this is a QGuiApplication (and not a QApplication) fileDialog.visible = true testCase.wait(200) fileDialog.visible = false } } 070701000000D5000041ED0000000000000000000000036728A27700000000000000000000000000000000000000000000003E00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt6/src070701000000D6000081A40000000000000000000000016728A27700000020000000000000000000000000000000000000004D00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt6/src/CMakeLists.txtadd_subdirectory(platformtheme) 070701000000D7000081ED0000000000000000000000016728A27700000213000000000000000000000000000000000000004A00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt6/src/Messages.sh#!/bin/sh # Invoke the extractrc script on all .ui, .rc, and .kcfg files in the sources. # The results are stored in a pseudo .cpp file to be picked up by xgettext. lst=`find . -name \*.rc -o -name \*.ui -o -name \*.kcfg` if [ -n "$lst" ] ; then $EXTRACTRC $lst >> rc.cpp fi # Extract strings from all source files. # If your framework depends on KI18n, use $XGETTEXT. If it uses Qt translation # system, use $EXTRACT_TR_STRINGS. $XGETTEXT `find . -name \*.cpp -o -name \*.h -o -name \*.qml` -o $podir/plasmaintegration5.pot 070701000000D8000041ED0000000000000000000000026728A27700000000000000000000000000000000000000000000004C00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt6/src/platformtheme070701000000D9000081A40000000000000000000000016728A27700000B08000000000000000000000000000000000000005B00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt6/src/platformtheme/CMakeLists.txtfind_package(X11) set_package_properties(X11 PROPERTIES DESCRIPTION "Required for updating the Cursor theme on X11" URL "https://www.x.org" TYPE REQUIRED ) set(HAVE_X11 ${X11_FOUND}) if(HAVE_X11) find_package(XCB COMPONENTS XCB) set_package_properties(XCB PROPERTIES TYPE REQUIRED) endif() configure_file(config-platformtheme.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-platformtheme.h ) set(platformtheme_SRCS kdeplatformtheme.cpp kdeplatformtheme.h kfontsettingsdata.cpp kfontsettingsdata.h khintssettings.cpp khintssettings.h kdeplatformfiledialoghelper.cpp kdeplatformfiledialoghelper.h kdeplatformfiledialogbase.cpp kdeplatformsystemtrayicon.cpp kdeplatformsystemtrayicon.h kfiletreeview.cpp kdirselectdialog.cpp kwaylandintegration.cpp kwaylandintegration.h x11integration.cpp x11integration.h main.cpp qxdgdesktopportalfiledialog.cpp qtquickrenderersettings.cpp qdbusmenubarwrapper.h kioopenwith.cpp kiodelegate.cpp ) qt6_add_dbus_interface(platformtheme_SRCS org.kde.StatusNotifierWatcher.xml statusnotifierwatcher_interface) kconfig_add_kcfg_files(platformtheme_SRCS renderersettings.kcfgc) add_library(KDEPlasmaPlatformTheme6 MODULE) # TODO KF6 Port D-Bus menu support target_compile_definitions(KDEPlasmaPlatformTheme6 PRIVATE -DKF6_TODO_DBUS_MENUBAR) if (Qt6_VERSION VERSION_GREATER_EQUAL "6.8.0") set(private_code_option "PRIVATE_CODE") endif() qt6_generate_wayland_protocol_client_sources(KDEPlasmaPlatformTheme6 ${private_code_option} FILES ${PLASMA_WAYLAND_PROTOCOLS_DIR}/server-decoration-palette.xml ${PLASMA_WAYLAND_PROTOCOLS_DIR}/appmenu.xml ) target_sources(KDEPlasmaPlatformTheme6 PRIVATE ${platformtheme_SRCS}) target_link_libraries(KDEPlasmaPlatformTheme6 PRIVATE Qt6::Core Qt6::Gui Qt6::GuiPrivate Qt6::DBus Qt6::QuickControls2 KF6::ConfigCore KF6::ConfigGui KF6::IconThemes KF6::KIOFileWidgets # KFileFilterCombo, KDirSortFilterProxyModel, KRecentDirs KF6::KIOWidgets KF6::KIOGui KF6::StatusNotifierItem KF6::XmlGui KF6::I18n KF6::Notifications KF6::WindowSystem KF6::GuiAddons XCB::XCB Qt6::WaylandClient Qt6::GuiPrivate Wayland::Client ) target_link_libraries(KDEPlasmaPlatformTheme6 PRIVATE KF6::ColorScheme) if(HAVE_X11) target_link_libraries(KDEPlasmaPlatformTheme6 PRIVATE ${X11_Xcursor_LIB} ${XCB_XCB_LIBRARY}) endif() set_target_properties(KDEPlasmaPlatformTheme6 PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin/platformthemes/") install(TARGETS KDEPlasmaPlatformTheme6 DESTINATION ${KDE_INSTALL_QTPLUGINDIR}/platformthemes) 070701000000DA000081A40000000000000000000000016728A27700000018000000000000000000000000000000000000006900000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt6/src/platformtheme/config-platformtheme.h.cmake#cmakedefine01 HAVE_X11 070701000000DB000081A40000000000000000000000016728A277000001E2000000000000000000000000000000000000006A00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt6/src/platformtheme/kdeplatformfiledialogbase.cpp/* This file is part of the KDE libraries SPDX-FileCopyrightText: 2013 Aleix Pol Gonzalez <aleixpol@blue-systems.com> SPDX-License-Identifier: LGPL-2.0-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ #include "kdeplatformfiledialogbase_p.h" KDEPlatformFileDialogBase::KDEPlatformFileDialogBase() { } void KDEPlatformFileDialogBase::closeEvent(QCloseEvent *e) { Q_EMIT closed(); QDialog::closeEvent(e); } #include "moc_kdeplatformfiledialogbase_p.cpp" 070701000000DC000081A40000000000000000000000016728A27700000536000000000000000000000000000000000000006A00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt6/src/platformtheme/kdeplatformfiledialogbase_p.h/* This file is part of the KDE libraries SPDX-FileCopyrightText: 2013 Aleix Pol Gonzalez <aleixpol@blue-systems.com> SPDX-License-Identifier: LGPL-2.0-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ #ifndef KDEPLATFORMFILEDIALOGBASE_H #define KDEPLATFORMFILEDIALOGBASE_H #include <KFileFilter> #include <QDialog> #include <QUrl> class QDialogButtonBox; class KDEPlatformFileDialogBase : public QDialog { Q_OBJECT public: friend class KDEPlatformFileDialogHelper; explicit KDEPlatformFileDialogBase(); virtual QUrl directory() = 0; virtual void selectMimeTypeFilter(const QString &filter) = 0; virtual void selectNameFilter(const KFileFilter &filter) = 0; virtual void setDirectory(const QUrl &directory) = 0; virtual void selectFile(const QUrl &filename) = 0; virtual QString selectedMimeTypeFilter() = 0; virtual QString selectedNameFilter() = 0; virtual QString currentFilterText() = 0; virtual QList<QUrl> selectedFiles() = 0; Q_SIGNALS: void closed(); void fileSelected(const QUrl &file); void filesSelected(const QList<QUrl> &files); void currentChanged(const QUrl &path); void directoryEntered(const QUrl &directory); void filterSelected(const QString &filter); protected: void closeEvent(QCloseEvent *e) override; }; #endif 070701000000DD000081A40000000000000000000000016728A27700003EBA000000000000000000000000000000000000006C00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt6/src/platformtheme/kdeplatformfiledialoghelper.cpp/* This file is part of the KDE libraries SPDX-FileCopyrightText: 2013 Aleix Pol Gonzalez <aleixpol@blue-systems.com> SPDX-FileCopyrightText: 2014 Martin Klapetek <mklapetek@kde.org> SPDX-License-Identifier: LGPL-2.0-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ #include "kdeplatformfiledialoghelper.h" #include "kdirselectdialog_p.h" #include <KFileFilter> #include <KIO/StatJob> #include <KJobWidgets> #include <KProtocolInfo> #include <KSharedConfig> #include <KWindowConfig> #include <kdiroperator.h> #include <kfilefiltercombo.h> #include <kfilewidget.h> #include <kio_version.h> #include <klocalizedstring.h> #include <QDialogButtonBox> #include <QMimeDatabase> #include <QPushButton> #include <QTextStream> #include <QVBoxLayout> #include <QWindow> namespace { static QString fileFilter2NameFilter(const KFileFilter &filter) { if (filter.isEmpty()) { return QString(); } return QStringLiteral("%1 (%2)").arg(filter.label(), filter.filePatterns().join(" ")); } } KDEPlatformFileDialog::KDEPlatformFileDialog() : KDEPlatformFileDialogBase() , m_fileWidget(new KFileWidget(QUrl(), this)) { auto v = new QVBoxLayout; v->setContentsMargins({}); setLayout(v); connect(m_fileWidget, &KFileWidget::filterChanged, this, [this](const KFileFilter &filter) { if (filter.isEmpty()) { return; } if (!filter.filePatterns().isEmpty()) { Q_EMIT filterSelected(fileFilter2NameFilter(filter)); } else { Q_ASSERT(!filter.mimePatterns().isEmpty()); QMimeDatabase db; QMimeType mimeType = db.mimeTypeForName(filter.mimePatterns().first()); Q_EMIT filterSelected(mimeType.filterString()); } }); layout()->addWidget(m_fileWidget); m_fileWidget->okButton()->show(); m_fileWidget->cancelButton()->show(); connect(this, &QDialog::rejected, m_fileWidget, &KFileWidget::slotCancel); // Also call the cancel function when the dialog is closed via the escape key // or titlebar close button to make sure we always save the view config connect(this, &KDEPlatformFileDialog::rejected, m_fileWidget, &KFileWidget::slotCancel); connect(m_fileWidget->okButton(), &QAbstractButton::clicked, m_fileWidget, &KFileWidget::slotOk); connect(m_fileWidget, &KFileWidget::accepted, m_fileWidget, &KFileWidget::accept); connect(m_fileWidget, &KFileWidget::accepted, this, &QDialog::accept); connect(m_fileWidget->cancelButton(), &QAbstractButton::clicked, this, &QDialog::reject); connect(m_fileWidget->dirOperator(), &KDirOperator::urlEntered, this, &KDEPlatformFileDialogBase::directoryEntered); } QUrl KDEPlatformFileDialog::directory() { return m_fileWidget->baseUrl(); } QList<QUrl> KDEPlatformFileDialog::selectedFiles() { return m_fileWidget->selectedUrls(); } void KDEPlatformFileDialog::selectFile(const QUrl &filename) { const QUrl dirUrl = filename.adjusted(QUrl::RemoveFilename); m_fileWidget->setUrl(dirUrl); m_fileWidget->setSelectedUrl(filename); } void KDEPlatformFileDialog::setViewMode(QFileDialogOptions::ViewMode view) { switch (view) { case QFileDialogOptions::ViewMode::Detail: m_fileWidget->setViewMode(KFile::FileView::Detail); break; case QFileDialogOptions::ViewMode::List: m_fileWidget->setViewMode(KFile::FileView::Simple); break; default: m_fileWidget->setViewMode(KFile::FileView::Default); break; } } void KDEPlatformFileDialog::setFileMode(QFileDialogOptions::FileMode mode) { switch (mode) { case QFileDialogOptions::FileMode::AnyFile: m_fileWidget->setMode(KFile::File); break; case QFileDialogOptions::FileMode::ExistingFile: m_fileWidget->setMode(KFile::Mode::File | KFile::Mode::ExistingOnly); break; case QFileDialogOptions::FileMode::Directory: m_fileWidget->setMode(KFile::Mode::Directory | KFile::Mode::ExistingOnly); break; case QFileDialogOptions::FileMode::ExistingFiles: m_fileWidget->setMode(KFile::Mode::Files | KFile::Mode::ExistingOnly); break; default: m_fileWidget->setMode(KFile::File); break; } } void KDEPlatformFileDialog::setCustomLabel(QFileDialogOptions::DialogLabel label, const QString &text) { if (label == QFileDialogOptions::Accept) { // OK button m_fileWidget->okButton()->setText(text); } else if (label == QFileDialogOptions::Reject) { // Cancel button m_fileWidget->cancelButton()->setText(text); } else if (label == QFileDialogOptions::LookIn) { // Location label m_fileWidget->setLocationLabel(text); } } QString KDEPlatformFileDialog::selectedMimeTypeFilter() { const QStringList mimeTypes = m_fileWidget->filterWidget()->currentFilter().mimePatterns(); if (mimeTypes.length() == 1) { return mimeTypes.first(); } if (selectedFiles().isEmpty()) { return QString(); } // Works for both KFile::File and KFile::Files modes. return QMimeDatabase().mimeTypeForUrl(selectedFiles().at(0)).name(); } QString KDEPlatformFileDialog::selectedNameFilter() { return fileFilter2NameFilter(m_fileWidget->filterWidget()->currentFilter()); } QString KDEPlatformFileDialog::currentFilterText() { return m_fileWidget->filterWidget()->currentText(); } void KDEPlatformFileDialog::selectMimeTypeFilter(const QString &filter) { m_fileWidget->filterWidget()->setCurrentFilter(KFileFilter::fromMimeType(filter)); } void KDEPlatformFileDialog::selectNameFilter(const KFileFilter &filter) { m_fileWidget->filterWidget()->setCurrentFilter(filter); } void KDEPlatformFileDialog::setDirectory(const QUrl &directory) { if (!directory.isLocalFile()) { // Short-circuit: Avoid stat if the effective URL hasn't changed if (directory == m_fileWidget->baseUrl()) { return; } // Qt can not determine if the remote URL points to a file or a // directory, that is why options()->initialDirectory() always returns // the full URL. KIO::StatJob *job = KIO::stat(directory); KJobWidgets::setWindow(job, this); if (job->exec()) { KIO::UDSEntry entry = job->statResult(); if (!entry.isDir()) { // this is probably a file remove the file part m_fileWidget->setUrl(directory.adjusted(QUrl::RemoveFilename)); m_fileWidget->setSelectedUrl(directory); } else { m_fileWidget->setUrl(directory); } } } else { m_fileWidget->setUrl(directory); } } bool KDEPlatformFileDialogHelper::isSupportedUrl(const QUrl &url) const { return KProtocolInfo::protocols().contains(url.scheme()); } //////////////////////////////////////////////// KDEPlatformFileDialogHelper::KDEPlatformFileDialogHelper() : QPlatformFileDialogHelper() , m_dialog(new KDEPlatformFileDialog) { connect(m_dialog, &KDEPlatformFileDialogBase::closed, this, &KDEPlatformFileDialogHelper::saveSize); connect(m_dialog, &QDialog::finished, this, &KDEPlatformFileDialogHelper::saveSize); connect(m_dialog, &KDEPlatformFileDialogBase::currentChanged, this, &QPlatformFileDialogHelper::currentChanged); connect(m_dialog, &KDEPlatformFileDialogBase::directoryEntered, this, &QPlatformFileDialogHelper::directoryEntered); connect(m_dialog, &KDEPlatformFileDialogBase::fileSelected, this, &QPlatformFileDialogHelper::fileSelected); connect(m_dialog, &KDEPlatformFileDialogBase::filesSelected, this, &QPlatformFileDialogHelper::filesSelected); connect(m_dialog, &KDEPlatformFileDialogBase::filterSelected, this, &QPlatformFileDialogHelper::filterSelected); connect(m_dialog, &QDialog::accepted, this, &QPlatformDialogHelper::accept); connect(m_dialog, &QDialog::rejected, this, &QPlatformDialogHelper::reject); } KDEPlatformFileDialogHelper::~KDEPlatformFileDialogHelper() { saveSize(); delete m_dialog; } void KDEPlatformFileDialogHelper::initializeDialog() { m_dialogInitialized = true; if (options()->testOption(QFileDialogOptions::ShowDirsOnly) || options()->fileMode() == QFileDialogOptions::Directory || options()->fileMode() == QFileDialogOptions::DirectoryOnly) { m_dialog->deleteLater(); KDirSelectDialog *dialog = new KDirSelectDialog(options()->initialDirectory()); m_dialog = dialog; connect(dialog, &QDialog::accepted, this, &QPlatformDialogHelper::accept); connect(dialog, &QDialog::rejected, this, &QPlatformDialogHelper::reject); if (options()->isLabelExplicitlySet(QFileDialogOptions::Accept)) { // OK button dialog->setOkButtonText(options()->labelText(QFileDialogOptions::Accept)); } else if (options()->isLabelExplicitlySet(QFileDialogOptions::Reject)) { // Cancel button dialog->setCancelButtonText(options()->labelText(QFileDialogOptions::Reject)); } else if (options()->isLabelExplicitlySet(QFileDialogOptions::LookIn)) { // Location label // Not implemented yet. } if (!options()->windowTitle().isEmpty()) m_dialog->setWindowTitle(options()->windowTitle()); } else { // needed for accessing m_fileWidget KDEPlatformFileDialog *dialog = qobject_cast<KDEPlatformFileDialog *>(m_dialog); dialog->m_fileWidget->setOperationMode(options()->acceptMode() == QFileDialogOptions::AcceptOpen ? KFileWidget::Opening : KFileWidget::Saving); if (options()->windowTitle().isEmpty()) { dialog->setWindowTitle(options()->acceptMode() == QFileDialogOptions::AcceptOpen ? i18nc("@title:window", "Open File") : i18nc("@title:window", "Save File")); } else { dialog->setWindowTitle(options()->windowTitle()); } if (!m_directorySet) { setDirectory(options()->initialDirectory()); } // dialog->setViewMode(options()->viewMode()); // don't override our options, fixes remembering the chosen view mode and sizes! dialog->setFileMode(options()->fileMode()); // custom labels if (options()->isLabelExplicitlySet(QFileDialogOptions::Accept)) { // OK button dialog->setCustomLabel(QFileDialogOptions::Accept, options()->labelText(QFileDialogOptions::Accept)); } else if (options()->isLabelExplicitlySet(QFileDialogOptions::Reject)) { // Cancel button dialog->setCustomLabel(QFileDialogOptions::Reject, options()->labelText(QFileDialogOptions::Reject)); } else if (options()->isLabelExplicitlySet(QFileDialogOptions::LookIn)) { // Location label dialog->setCustomLabel(QFileDialogOptions::LookIn, options()->labelText(QFileDialogOptions::LookIn)); } const QStringList mimeFilters = options()->mimeTypeFilters(); const QStringList nameFilters = options()->nameFilters(); if (!mimeFilters.isEmpty()) { QString defaultMimeFilter; if (options()->acceptMode() == QFileDialogOptions::AcceptSave) { defaultMimeFilter = options()->initiallySelectedMimeTypeFilter(); if (defaultMimeFilter.isEmpty()) { defaultMimeFilter = mimeFilters.at(0); } } dialog->m_fileWidget->setFilters(KFileFilter::fromMimeTypes(mimeFilters), KFileFilter::fromMimeType(defaultMimeFilter)); if (mimeFilters.contains(QStringLiteral("inode/directory"))) dialog->m_fileWidget->setMode(dialog->m_fileWidget->mode() | KFile::Directory); } else if (!nameFilters.isEmpty()) { QList<KFileFilter> fileFilters; fileFilters.reserve(nameFilters.size()); for (const QString &nameFilter : nameFilters) { fileFilters << qtFilterToKFileFilter(nameFilter); } dialog->m_fileWidget->setFilters(fileFilters); } if (!options()->initiallySelectedMimeTypeFilter().isEmpty()) { selectMimeTypeFilter(options()->initiallySelectedMimeTypeFilter()); } else if (!options()->initiallySelectedNameFilter().isEmpty()) { selectNameFilter(options()->initiallySelectedNameFilter()); } // overwrite option if (options()->testOption(QFileDialogOptions::FileDialogOption::DontConfirmOverwrite)) { dialog->m_fileWidget->setConfirmOverwrite(false); } else if (options()->acceptMode() == QFileDialogOptions::AcceptSave) { dialog->m_fileWidget->setConfirmOverwrite(true); } const QStringList schemes = options()->supportedSchemes(); dialog->m_fileWidget->setSupportedSchemes(schemes); } } KFileFilter KDEPlatformFileDialogHelper::qtFilterToKFileFilter(const QString &qtFilter) const { QString name = qtFilter.left(qtFilter.lastIndexOf(u'(')).trimmed(); const QStringList extensions = cleanFilterList(qtFilter); if (name.isEmpty()) { name = extensions.join(QLatin1Char(' ')); } return KFileFilter(name, extensions, {}); } void KDEPlatformFileDialogHelper::exec() { restoreSize(); m_dialog->exec(); } void KDEPlatformFileDialogHelper::hide() { m_dialog->hide(); } void KDEPlatformFileDialogHelper::saveSize() { KSharedConfig::Ptr conf = KSharedConfig::openConfig(); KConfigGroup group = conf->group("FileDialogSize"); KWindowConfig::saveWindowSize(m_dialog->windowHandle(), group); } void KDEPlatformFileDialogHelper::restoreSize() { m_dialog->winId(); // ensure there's a window created KSharedConfig::Ptr conf = KSharedConfig::openConfig(); // see the note below m_dialog->windowHandle()->resize(m_dialog->sizeHint()); KWindowConfig::restoreWindowSize(m_dialog->windowHandle(), conf->group("FileDialogSize")); // NOTICE: QWindow::setGeometry() does NOT impact the backing QWidget geometry even if the platform // window was created -> QTBUG-40584. We therefore copy the size here. // TODO: remove once this was resolved in QWidget QPA m_dialog->resize(m_dialog->windowHandle()->size()); } bool KDEPlatformFileDialogHelper::show(Qt::WindowFlags windowFlags, Qt::WindowModality windowModality, QWindow *parent) { initializeDialog(); m_dialog->setWindowFlags(windowFlags); m_dialog->setWindowModality(windowModality); restoreSize(); m_dialog->windowHandle()->setTransientParent(parent); m_dialog->show(); return true; } QVariant KDEPlatformFileDialogHelper::styleHint(StyleHint hint) const { if (hint == DialogIsQtWindow) { return true; } return QPlatformDialogHelper::styleHint(hint); } QList<QUrl> KDEPlatformFileDialogHelper::selectedFiles() const { return m_dialog->selectedFiles(); } QString KDEPlatformFileDialogHelper::selectedMimeTypeFilter() const { return m_dialog->selectedMimeTypeFilter(); } void KDEPlatformFileDialogHelper::selectMimeTypeFilter(const QString &filter) { m_dialog->selectMimeTypeFilter(filter); } QString KDEPlatformFileDialogHelper::selectedNameFilter() const { return m_dialog->selectedNameFilter(); } QUrl KDEPlatformFileDialogHelper::directory() const { return m_dialog->directory(); } void KDEPlatformFileDialogHelper::selectFile(const QUrl &filename) { m_dialog->selectFile(filename); m_fileSelected = true; } void KDEPlatformFileDialogHelper::setDirectory(const QUrl &directory) { if (!directory.isEmpty()) { m_dialog->setDirectory(directory); m_directorySet = true; } } void KDEPlatformFileDialogHelper::selectNameFilter(const QString &filter) { m_dialog->selectNameFilter(qtFilterToKFileFilter(filter)); } void KDEPlatformFileDialogHelper::setFilter() { } bool KDEPlatformFileDialogHelper::defaultNameFilterDisables() const { return false; } #include "moc_kdeplatformfiledialoghelper.cpp" 070701000000DE000081A40000000000000000000000016728A27700000A26000000000000000000000000000000000000006A00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt6/src/platformtheme/kdeplatformfiledialoghelper.h/* This file is part of the KDE libraries SPDX-FileCopyrightText: 2013 Aleix Pol Gonzalez <aleixpol@blue-systems.com> SPDX-License-Identifier: LGPL-2.0-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ #ifndef KDEPLATFORMFILEDIALOGHELPER_H #define KDEPLATFORMFILEDIALOGHELPER_H #include "kdeplatformfiledialogbase_p.h" #include <qpa/qplatformdialoghelper.h> #include <KFileFilter> class KFileWidget; class KDEPlatformFileDialog : public KDEPlatformFileDialogBase { Q_OBJECT public: friend class KDEPlatformFileDialogHelper; explicit KDEPlatformFileDialog(); QUrl directory() override; void selectMimeTypeFilter(const QString &filter) override; void selectNameFilter(const KFileFilter &filter) override; void setDirectory(const QUrl &directory) override; void selectFile(const QUrl &filename) override; void setViewMode(QFileDialogOptions::ViewMode view); void setFileMode(QFileDialogOptions::FileMode mode); void setCustomLabel(QFileDialogOptions::DialogLabel label, const QString &text); QString selectedMimeTypeFilter() override; QString selectedNameFilter() override; QString currentFilterText() override; QList<QUrl> selectedFiles() override; protected: KFileWidget *const m_fileWidget; }; class KDEPlatformFileDialogHelper : public QPlatformFileDialogHelper { Q_OBJECT public: KDEPlatformFileDialogHelper(); ~KDEPlatformFileDialogHelper() override; void initializeDialog(); bool defaultNameFilterDisables() const override; QUrl directory() const override; QList<QUrl> selectedFiles() const override; QString selectedMimeTypeFilter() const override; void selectMimeTypeFilter(const QString &filter) override; QString selectedNameFilter() const override; void selectNameFilter(const QString &filter) override; void selectFile(const QUrl &filename) override; void setFilter() override; void setDirectory(const QUrl &directory) override; bool isSupportedUrl(const QUrl &url) const override; void exec() override; void hide() override; bool show(Qt::WindowFlags windowFlags, Qt::WindowModality windowModality, QWindow *parent) override; QVariant styleHint(StyleHint hint) const override; private Q_SLOTS: void saveSize(); private: void restoreSize(); KFileFilter qtFilterToKFileFilter(const QString &qtFilter) const; KDEPlatformFileDialogBase *m_dialog = nullptr; bool m_directorySet = false; bool m_fileSelected = false; bool m_dialogInitialized = false; }; #endif // KDEPLATFORMFILEDIALOGHELPER_H 070701000000DF000081A40000000000000000000000016728A27700002421000000000000000000000000000000000000006A00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt6/src/platformtheme/kdeplatformsystemtrayicon.cpp/* This file is part of the KDE libraries SPDX-FileCopyrightText: 2014 Martin Gräßlin <mgraesslin@kde.org> SPDX-License-Identifier: LGPL-2.0-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ #include "kdeplatformsystemtrayicon.h" #include <QAction> #include <QActionGroup> #include <QApplication> #include <QIcon> #include <QMenu> #include <QRect> #include <kstatusnotifieritem.h> #include "statusnotifierwatcher_interface.h" SystemTrayMenu::SystemTrayMenu() : QPlatformMenu() , m_enabled(QVariant::Bool) , m_visible(QVariant::Bool) , m_separatorsCollapsible(QVariant::Bool) , m_tag(0) { } SystemTrayMenu::~SystemTrayMenu() { if (m_menu) { m_menu->deleteLater(); } } QPlatformMenuItem *SystemTrayMenu::createMenuItem() const { return new SystemTrayMenuItem(); } QPlatformMenu *SystemTrayMenu::createSubMenu() const { return new SystemTrayMenu(); } void SystemTrayMenu::insertMenuItem(QPlatformMenuItem *menuItem, QPlatformMenuItem *before) { if (SystemTrayMenuItem *ours = qobject_cast<SystemTrayMenuItem *>(menuItem)) { bool inserted = false; if (SystemTrayMenuItem *oursBefore = qobject_cast<SystemTrayMenuItem *>(before)) { for (auto it = m_items.begin(); it != m_items.end(); ++it) { if (*it == oursBefore) { m_items.insert(it, ours); if (m_menu) { m_menu->insertAction(oursBefore->action(), ours->action()); } inserted = true; break; } } } if (!inserted) { m_items.append(ours); if (m_menu) { m_menu->addAction(ours->action()); } } } } QPlatformMenuItem *SystemTrayMenu::menuItemAt(int position) const { if (position < m_items.size()) { return m_items.at(position); } return nullptr; } QPlatformMenuItem *SystemTrayMenu::menuItemForTag(quintptr tag) const { auto it = std::find_if(m_items.constBegin(), m_items.constEnd(), [tag](SystemTrayMenuItem *item) { return item->tag() == tag; }); if (it != m_items.constEnd()) { return *it; } return nullptr; } void SystemTrayMenu::removeMenuItem(QPlatformMenuItem *menuItem) { if (SystemTrayMenuItem *ours = qobject_cast<SystemTrayMenuItem *>(menuItem)) { m_items.removeOne(ours); if (ours->action() && m_menu) { m_menu->removeAction(ours->action()); } } } void SystemTrayMenu::setEnabled(bool enabled) { m_enabled = enabled; if (m_menu) { m_menu->setEnabled(enabled); } } void SystemTrayMenu::setIcon(const QIcon &icon) { m_icon = icon; if (m_menu) { m_menu->setIcon(icon); } } void SystemTrayMenu::setTag(quintptr tag) { m_tag = tag; } void SystemTrayMenu::setText(const QString &text) { m_text = text; if (m_menu) { m_menu->setTitle(text); } } void SystemTrayMenu::setVisible(bool visible) { m_visible = visible; if (m_menu) { m_menu->setVisible(visible); } } void SystemTrayMenu::syncMenuItem(QPlatformMenuItem *menuItem) { Q_UNUSED(menuItem) // nothing to do } void SystemTrayMenu::syncSeparatorsCollapsible(bool enable) { m_separatorsCollapsible = enable; if (m_menu) { m_menu->setSeparatorsCollapsible(enable); } } quintptr SystemTrayMenu::tag() const { return m_tag; } QMenu *SystemTrayMenu::menu() { if (!m_menu) { createMenu(); } return m_menu; } void SystemTrayMenu::createMenu() { m_menu = new QMenu(); connect(m_menu, &QMenu::aboutToShow, this, &QPlatformMenu::aboutToShow); connect(m_menu, &QMenu::aboutToHide, this, &QPlatformMenu::aboutToHide); if (!m_icon.isNull()) { m_menu->setIcon(m_icon); } if (m_menu->title() != m_text) { m_menu->setTitle(m_text); } if (!m_enabled.isNull()) { m_menu->setEnabled(m_enabled.toBool()); } if (!m_visible.isNull()) { m_menu->setVisible(m_visible.toBool()); } if (!m_separatorsCollapsible.isNull()) { m_menu->setSeparatorsCollapsible(m_separatorsCollapsible.toBool()); } for (auto item : std::as_const(m_items)) { m_menu->addAction(item->action()); } } SystemTrayMenuItem::SystemTrayMenuItem() : QPlatformMenuItem() , m_tag(0) , m_action(new QAction(this)) { connect(m_action, &QAction::triggered, this, &QPlatformMenuItem::activated); connect(m_action, &QAction::hovered, this, &QPlatformMenuItem::hovered); } SystemTrayMenuItem::~SystemTrayMenuItem() { } void SystemTrayMenuItem::setCheckable(bool checkable) { m_action->setCheckable(checkable); } void SystemTrayMenuItem::setChecked(bool isChecked) { m_action->setChecked(isChecked); } void SystemTrayMenuItem::setEnabled(bool enabled) { m_action->setEnabled(enabled); } void SystemTrayMenuItem::setFont(const QFont &font) { m_action->setFont(font); } void SystemTrayMenuItem::setIcon(const QIcon &icon) { m_action->setIcon(icon); } void SystemTrayMenuItem::setIsSeparator(bool isSeparator) { m_action->setSeparator(isSeparator); } void SystemTrayMenuItem::setMenu(QPlatformMenu *menu) { if (SystemTrayMenu *ourMenu = qobject_cast<SystemTrayMenu *>(menu)) { m_action->setMenu(ourMenu->menu()); } } void SystemTrayMenuItem::setRole(QPlatformMenuItem::MenuRole role) { Q_UNUSED(role) } void SystemTrayMenuItem::setShortcut(const QKeySequence &shortcut) { m_action->setShortcut(shortcut); } void SystemTrayMenuItem::setTag(quintptr tag) { m_tag = tag; } void SystemTrayMenuItem::setText(const QString &text) { m_action->setText(text); } void SystemTrayMenuItem::setVisible(bool isVisible) { m_action->setVisible(isVisible); } void SystemTrayMenuItem::setIconSize(int size) { Q_UNUSED(size) } void SystemTrayMenuItem::setHasExclusiveGroup(bool hasExclusiveGroup) { if (hasExclusiveGroup) { if (!m_action->actionGroup()) { m_action->setActionGroup(new QActionGroup(m_action)); } } else { QActionGroup *actionGroup = m_action->actionGroup(); if (actionGroup) { m_action->setActionGroup(nullptr); delete actionGroup; } } } quintptr SystemTrayMenuItem::tag() const { return m_tag; } QAction *SystemTrayMenuItem::action() const { return m_action; } KDEPlatformSystemTrayIcon::KDEPlatformSystemTrayIcon() : QPlatformSystemTrayIcon() { } KDEPlatformSystemTrayIcon::~KDEPlatformSystemTrayIcon() { } void KDEPlatformSystemTrayIcon::init() { if (!m_sni) { m_sni = new KStatusNotifierItem(); m_sni->setStandardActionsEnabled(false); m_sni->setTitle(QApplication::applicationDisplayName()); m_sni->setStatus(KStatusNotifierItem::Active); connect(m_sni, &KStatusNotifierItem::activateRequested, [this](bool active, const QPoint &pos) { Q_UNUSED(active) Q_UNUSED(pos) Q_EMIT activated(QPlatformSystemTrayIcon::Trigger); }); connect(m_sni, &KStatusNotifierItem::secondaryActivateRequested, [this](const QPoint &pos) { Q_UNUSED(pos) Q_EMIT activated(QPlatformSystemTrayIcon::MiddleClick); }); } } void KDEPlatformSystemTrayIcon::cleanup() { delete m_sni; m_sni = nullptr; } void KDEPlatformSystemTrayIcon::updateIcon(const QIcon &icon) { if (!m_sni) { return; } if (icon.name().isEmpty()) { m_sni->setIconByPixmap(icon); m_sni->setToolTipIconByPixmap(icon); } else { m_sni->setIconByName(icon.name()); m_sni->setToolTipIconByName(icon.name()); } } void KDEPlatformSystemTrayIcon::updateToolTip(const QString &tooltip) { if (!m_sni) { return; } m_sni->setToolTipTitle(tooltip); } void KDEPlatformSystemTrayIcon::updateMenu(QPlatformMenu *menu) { if (!m_sni) { return; } if (SystemTrayMenu *ourMenu = qobject_cast<SystemTrayMenu *>(menu)) { m_sni->setContextMenu(ourMenu->menu()); } } QPlatformMenu *KDEPlatformSystemTrayIcon::createMenu() const { return new SystemTrayMenu(); } QRect KDEPlatformSystemTrayIcon::geometry() const { // StatusNotifierItem doesn't provide the geometry return QRect(); } void KDEPlatformSystemTrayIcon::showMessage(const QString &title, const QString &msg, const QIcon &icon, MessageIcon iconType, int secs) { Q_UNUSED(iconType) if (!m_sni) { return; } m_sni->showMessage(title, msg, icon.name(), secs); } bool KDEPlatformSystemTrayIcon::isSystemTrayAvailable() const { org::kde::StatusNotifierWatcher systrayHost(QStringLiteral("org.kde.StatusNotifierWatcher"), QStringLiteral("/StatusNotifierWatcher"), QDBusConnection::sessionBus()); if (systrayHost.isValid()) { return systrayHost.isStatusNotifierHostRegistered(); } return false; } bool KDEPlatformSystemTrayIcon::supportsMessages() const { return true; } #include "moc_kdeplatformsystemtrayicon.cpp" 070701000000E0000081A40000000000000000000000016728A27700000CDA000000000000000000000000000000000000006800000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt6/src/platformtheme/kdeplatformsystemtrayicon.h/* This file is part of the KDE libraries SPDX-FileCopyrightText: 2014 Martin Gräßlin <mgraesslin@kde.org> SPDX-License-Identifier: LGPL-2.0-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ #ifndef KDEPLATFORMSYSTEMTRAYICON_H #define KDEPLATFORMSYSTEMTRAYICON_H #include <QVariant> #include <qpa/qplatformmenu.h> #include <qpa/qplatformsystemtrayicon.h> class KStatusNotifierItem; class SystemTrayMenuItem; class QAction; class QMenu; class SystemTrayMenu : public QPlatformMenu { Q_OBJECT public: SystemTrayMenu(); ~SystemTrayMenu() override; void insertMenuItem(QPlatformMenuItem *menuItem, QPlatformMenuItem *before) override; QPlatformMenuItem *menuItemAt(int position) const override; QPlatformMenuItem *menuItemForTag(quintptr tag) const override; void removeMenuItem(QPlatformMenuItem *menuItem) override; void setEnabled(bool enabled) override; void setIcon(const QIcon &icon) override; void setTag(quintptr tag) override; void setText(const QString &text) override; void setVisible(bool visible) override; void syncMenuItem(QPlatformMenuItem *menuItem) override; void syncSeparatorsCollapsible(bool enable) override; quintptr tag() const override; QPlatformMenuItem *createMenuItem() const override; QPlatformMenu *createSubMenu() const override; QMenu *menu(); private: void createMenu(); QString m_text; QIcon m_icon; QVariant m_enabled; QVariant m_visible; QVariant m_separatorsCollapsible; quintptr m_tag; QPointer<QMenu> m_menu; QList<SystemTrayMenuItem *> m_items; }; class SystemTrayMenuItem : public QPlatformMenuItem { Q_OBJECT public: SystemTrayMenuItem(); ~SystemTrayMenuItem() override; void setCheckable(bool checkable) override; void setChecked(bool isChecked) override; void setEnabled(bool enabled) override; void setFont(const QFont &font) override; void setIcon(const QIcon &icon) override; void setIsSeparator(bool isSeparator) override; void setMenu(QPlatformMenu *menu) override; void setRole(MenuRole role) override; void setShortcut(const QKeySequence &shortcut) override; void setTag(quintptr tag) override; void setText(const QString &text) override; void setVisible(bool isVisible) override; quintptr tag() const override; void setIconSize(int size) override; void setHasExclusiveGroup(bool hasExclusiveGroup) override; QAction *action() const; private: quintptr m_tag; QAction *m_action = nullptr; }; class KDEPlatformSystemTrayIcon : public QPlatformSystemTrayIcon { public: KDEPlatformSystemTrayIcon(); ~KDEPlatformSystemTrayIcon() override; void init() override; void cleanup() override; void updateIcon(const QIcon &icon) override; void updateToolTip(const QString &tooltip) override; void updateMenu(QPlatformMenu *menu) override; QRect geometry() const override; void showMessage(const QString &title, const QString &msg, const QIcon &icon, MessageIcon iconType, int secs) override; bool isSystemTrayAvailable() const override; bool supportsMessages() const override; QPlatformMenu *createMenu() const override; private: KStatusNotifierItem *m_sni = nullptr; }; #endif 070701000000E1000081A40000000000000000000000016728A27700004027000000000000000000000000000000000000006100000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt6/src/platformtheme/kdeplatformtheme.cpp/* This file is part of the KDE libraries SPDX-FileCopyrightText: 2013 Kevin Ottens <ervin+bluesystems@kde.org> SPDX-FileCopyrightText: 2013 Aleix Pol Gonzalez <aleixpol@blue-systems.com> SPDX-FileCopyrightText: 2014 Lukáš Tinkl <ltinkl@redhat.com> SPDX-FileCopyrightText: 2022 Harald Sitter <sitter@kde.org> SPDX-License-Identifier: LGPL-2.0-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ #include <config-platformtheme.h> #include "kdeplatformfiledialoghelper.h" #include "kdeplatformsystemtrayicon.h" #include "kdeplatformtheme.h" #include "kfontsettingsdata.h" #include "khintssettings.h" #include "kiodelegate.h" #include "kwaylandintegration.h" #include "qdbusmenubarwrapper.h" #include "x11integration.h" #include <QApplication> #include <QDBusConnection> #include <QDBusConnectionInterface> #include <QDebug> #include <QFont> #include <QLibraryInfo> #include <QPalette> #include <QString> #include <QVariant> #include <QWindow> #include <QtQuickControls2/QQuickStyle> #include <KIO/Global> #include <KLocalizedString> #include <KStandardGuiItem> #include <KWindowSystem> #include <kiconengine.h> #include <kiconloader.h> #include <kstandardshortcut.h> #include "qxdgdesktopportalfiledialog_p.h" #include <KCountryFlagEmojiIconEngine> using namespace Qt::StringLiterals; static const QByteArray s_x11AppMenuServiceNamePropertyName = QByteArrayLiteral("_KDE_NET_WM_APPMENU_SERVICE_NAME"); static const QByteArray s_x11AppMenuObjectPathPropertyName = QByteArrayLiteral("_KDE_NET_WM_APPMENU_OBJECT_PATH"); static bool checkDBusGlobalMenuAvailable() { if (qEnvironmentVariableIsSet("KDE_NO_GLOBAL_MENU")) { return false; } QDBusConnection connection = QDBusConnection::sessionBus(); QString registrarService = QStringLiteral("com.canonical.AppMenu.Registrar"); return connection.interface()->isServiceRegistered(registrarService); } static bool isDBusGlobalMenuAvailable() { static bool dbusGlobalMenuAvailable = checkDBusGlobalMenuAvailable(); return dbusGlobalMenuAvailable; } KdePlatformTheme::KdePlatformTheme() { loadSettings(); // explicitly not KWindowSystem::isPlatformWayland to not include the kwin process if (QGuiApplication::platformName() == QLatin1String("wayland")) { m_kwaylandIntegration.reset(new KWaylandIntegration(this)); } #if HAVE_X11 if (KWindowSystem::isPlatformX11()) { m_x11Integration.reset(new X11Integration(this)); m_x11Integration->init(); } #endif QCoreApplication::setAttribute(Qt::AA_DontUseNativeMenuBar, false); setQtQuickControlsTheme(); static KIOUiFactory factory; KIO::setDefaultJobUiDelegateFactory(&factory); static KIOUiDelegate delegateExtension; KIO::setDefaultJobUiDelegateExtension(&delegateExtension); KCountryFlagEmojiIconEngine::setGlobalDefaultFont(QFont(u"Noto Color Emoji, emoji"_qs)); } KdePlatformTheme::~KdePlatformTheme() { delete m_fontsData; delete m_hints; } QVariant KdePlatformTheme::themeHint(QPlatformTheme::ThemeHint hintType) const { QVariant hint = m_hints->hint(hintType); if (hint.isValid()) { return hint; } else { return QPlatformTheme::themeHint(hintType); } } QIcon KdePlatformTheme::fileIcon(const QFileInfo &fileInfo, QPlatformTheme::IconOptions iconOptions) const { if (iconOptions.testFlag(DontUseCustomDirectoryIcons) && fileInfo.isDir()) { return QIcon::fromTheme(QLatin1String("inode-directory")); } return QIcon::fromTheme(KIO::iconNameForUrl(QUrl::fromLocalFile(fileInfo.absoluteFilePath()))); } const QPalette *KdePlatformTheme::palette(Palette type) const { QPalette *palette = m_hints->palette(type); if (palette) { return palette; } else { return QPlatformTheme::palette(type); } } Qt::ColorScheme KdePlatformTheme::colorScheme() const { return m_hints->colorScheme(); } const QFont *KdePlatformTheme::font(Font type) const { KFontSettingsData::FontTypes fdtype; switch (type) { case SystemFont: fdtype = KFontSettingsData::GeneralFont; break; case MenuFont: case MenuBarFont: case MenuItemFont: fdtype = KFontSettingsData::MenuFont; break; case MessageBoxFont: case LabelFont: case TipLabelFont: case StatusBarFont: case PushButtonFont: case ItemViewFont: case ListViewFont: case HeaderViewFont: case ListBoxFont: case ComboMenuItemFont: case ComboLineEditFont: fdtype = KFontSettingsData::GeneralFont; break; case TitleBarFont: case MdiSubWindowTitleFont: case DockWidgetTitleFont: fdtype = KFontSettingsData::WindowTitleFont; break; case SmallFont: case MiniFont: fdtype = KFontSettingsData::SmallestReadableFont; break; case FixedFont: fdtype = KFontSettingsData::FixedFont; break; case ToolButtonFont: fdtype = KFontSettingsData::ToolbarFont; break; default: fdtype = KFontSettingsData::GeneralFont; break; } return m_fontsData->font(fdtype); } QIconEngine *KdePlatformTheme::createIconEngine(const QString &iconName) const { return new KIconEngine(iconName, KIconLoader::global()); } void KdePlatformTheme::loadSettings() { m_fontsData = new KFontSettingsData; m_hints = new KHintsSettings; } QList<QKeySequence> KdePlatformTheme::keyBindings(QKeySequence::StandardKey key) const { switch (key) { case QKeySequence::HelpContents: return KStandardShortcut::shortcut(KStandardShortcut::Help); case QKeySequence::WhatsThis: return KStandardShortcut::shortcut(KStandardShortcut::WhatsThis); case QKeySequence::Open: return KStandardShortcut::shortcut(KStandardShortcut::Open); case QKeySequence::Close: return KStandardShortcut::shortcut(KStandardShortcut::Close); case QKeySequence::Save: return KStandardShortcut::shortcut(KStandardShortcut::Save); case QKeySequence::New: return KStandardShortcut::shortcut(KStandardShortcut::New); case QKeySequence::Cut: return KStandardShortcut::shortcut(KStandardShortcut::Cut); case QKeySequence::Copy: return KStandardShortcut::shortcut(KStandardShortcut::Copy); case QKeySequence::Paste: return KStandardShortcut::shortcut(KStandardShortcut::Paste); case QKeySequence::Undo: return KStandardShortcut::shortcut(KStandardShortcut::Undo); case QKeySequence::Redo: return KStandardShortcut::shortcut(KStandardShortcut::Redo); case QKeySequence::Back: return KStandardShortcut::shortcut(KStandardShortcut::Back); case QKeySequence::Forward: return KStandardShortcut::shortcut(KStandardShortcut::Forward); case QKeySequence::Refresh: return KStandardShortcut::shortcut(KStandardShortcut::Reload); case QKeySequence::ZoomIn: return KStandardShortcut::shortcut(KStandardShortcut::ZoomIn); case QKeySequence::ZoomOut: return KStandardShortcut::shortcut(KStandardShortcut::ZoomOut); case QKeySequence::Print: return KStandardShortcut::shortcut(KStandardShortcut::Print); case QKeySequence::Find: return KStandardShortcut::shortcut(KStandardShortcut::Find); case QKeySequence::FindNext: return KStandardShortcut::shortcut(KStandardShortcut::FindNext); case QKeySequence::FindPrevious: return KStandardShortcut::shortcut(KStandardShortcut::FindPrev); case QKeySequence::Replace: return KStandardShortcut::shortcut(KStandardShortcut::Replace); case QKeySequence::SelectAll: return KStandardShortcut::shortcut(KStandardShortcut::SelectAll); case QKeySequence::MoveToNextWord: return KStandardShortcut::shortcut(KStandardShortcut::ForwardWord); case QKeySequence::MoveToPreviousWord: return KStandardShortcut::shortcut(KStandardShortcut::BackwardWord); case QKeySequence::MoveToNextPage: return KStandardShortcut::shortcut(KStandardShortcut::Next); case QKeySequence::MoveToPreviousPage: return KStandardShortcut::shortcut(KStandardShortcut::Prior); case QKeySequence::MoveToStartOfLine: return KStandardShortcut::shortcut(KStandardShortcut::BeginningOfLine); case QKeySequence::MoveToEndOfLine: return KStandardShortcut::shortcut(KStandardShortcut::EndOfLine); case QKeySequence::MoveToStartOfDocument: return KStandardShortcut::shortcut(KStandardShortcut::Begin); case QKeySequence::MoveToEndOfDocument: return KStandardShortcut::shortcut(KStandardShortcut::End); case QKeySequence::SaveAs: return KStandardShortcut::shortcut(KStandardShortcut::SaveAs); case QKeySequence::Preferences: return KStandardShortcut::shortcut(KStandardShortcut::Preferences); case QKeySequence::Quit: return KStandardShortcut::shortcut(KStandardShortcut::Quit); case QKeySequence::FullScreen: return KStandardShortcut::shortcut(KStandardShortcut::FullScreen); case QKeySequence::Deselect: return KStandardShortcut::shortcut(KStandardShortcut::Deselect); case QKeySequence::DeleteStartOfWord: return KStandardShortcut::shortcut(KStandardShortcut::DeleteWordBack); case QKeySequence::DeleteEndOfWord: return KStandardShortcut::shortcut(KStandardShortcut::DeleteWordForward); case QKeySequence::NextChild: return KStandardShortcut::shortcut(KStandardShortcut::TabNext); case QKeySequence::PreviousChild: return KStandardShortcut::shortcut(KStandardShortcut::TabPrev); case QKeySequence::Delete: return KStandardShortcut::shortcut(KStandardShortcut::MoveToTrash); default: return QPlatformTheme::keyBindings(key); } } bool KdePlatformTheme::usePlatformNativeDialog(QPlatformTheme::DialogType type) const { return type == QPlatformTheme::FileDialog && qobject_cast<QApplication *>(QCoreApplication::instance()); } QString KdePlatformTheme::standardButtonText(int button) const { switch (static_cast<QPlatformDialogHelper::StandardButton>(button)) { case QPlatformDialogHelper::NoButton: qWarning() << Q_FUNC_INFO << "Unsupported standard button:" << button; return QString(); case QPlatformDialogHelper::Ok: return KStandardGuiItem::ok().text(); case QPlatformDialogHelper::Save: return KStandardGuiItem::save().text(); case QPlatformDialogHelper::SaveAll: return i18nc("@action:button", "Save All"); case QPlatformDialogHelper::Open: return KStandardGuiItem::open().text(); case QPlatformDialogHelper::Yes: return i18nc("@action:button", "&Yes"); case QPlatformDialogHelper::YesToAll: return i18nc("@action:button", "Yes to All"); case QPlatformDialogHelper::No: return i18nc("@action:button", "&No"); case QPlatformDialogHelper::NoToAll: return i18nc("@action:button", "No to All"); case QPlatformDialogHelper::Abort: // FIXME KStandardGuiItem::stop() doesn't seem right here return i18nc("@action:button", "Abort"); case QPlatformDialogHelper::Retry: return i18nc("@action:button", "Retry"); case QPlatformDialogHelper::Ignore: return i18nc("@action:button", "Ignore"); case QPlatformDialogHelper::Close: return KStandardGuiItem::close().text(); case QPlatformDialogHelper::Cancel: return KStandardGuiItem::cancel().text(); case QPlatformDialogHelper::Discard: return KStandardGuiItem::discard().text(); case QPlatformDialogHelper::Help: return KStandardGuiItem::help().text(); case QPlatformDialogHelper::Apply: return KStandardGuiItem::apply().text(); case QPlatformDialogHelper::Reset: return KStandardGuiItem::reset().text(); case QPlatformDialogHelper::RestoreDefaults: return KStandardGuiItem::defaults().text(); default: return QPlatformTheme::defaultStandardButtonText(button); } } QPlatformDialogHelper *KdePlatformTheme::createPlatformDialogHelper(QPlatformTheme::DialogType type) const { switch (type) { case QPlatformTheme::FileDialog: if (useXdgDesktopPortal()) { return new QXdgDesktopPortalFileDialog; } return new KDEPlatformFileDialogHelper; case QPlatformTheme::FontDialog: case QPlatformTheme::ColorDialog: case QPlatformTheme::MessageDialog: default: return nullptr; } } QPlatformSystemTrayIcon *KdePlatformTheme::createPlatformSystemTrayIcon() const { return new KDEPlatformSystemTrayIcon; } QPlatformMenuBar *KdePlatformTheme::createPlatformMenuBar() const { if (isDBusGlobalMenuAvailable()) { auto dbusMenu = QGenericUnixTheme::createPlatformMenuBar(); if (!dbusMenu) { return nullptr; } auto menu = new QDBusMenuBarWrapper(dbusMenu); QObject::connect(menu, &QDBusMenuBarWrapper::windowChanged, menu, [this, menu](QWindow *newWindow, QWindow *oldWindow) { const QString &serviceName = QDBusConnection::sessionBus().baseService(); const QString &objectPath = menu->objectPath(); setMenuBarForWindow(oldWindow, {}, {}); setMenuBarForWindow(newWindow, serviceName, objectPath); }); return menu; } return nullptr; } // Force QtQuickControls to use org.kde.desktop theme for QApplication, // and org.kde.breeze for QGuiApplication unless it's otherwise set. void KdePlatformTheme::setQtQuickControlsTheme() { // if the user is running only a QGuiApplication, use org.kde.breeze style if it's installed. if (!qobject_cast<QApplication *>(qApp)) { // /org/kde/breeze/components is not installed by org.kde.breeze, but the impl folder is if (checkIfThemeExists(QStringLiteral("/org/kde/breeze/impl"))) { QQuickStyle::setStyle(QStringLiteral("org.kde.breeze")); } return; } // if the user has explicitly set something else, don't meddle // Also ignore the default Fusion style if (!QQuickStyle::name().isEmpty() && QQuickStyle::name() != QLatin1String("Fusion")) { return; } if (checkIfThemeExists(QStringLiteral("/org/kde/desktop"))) { QQuickStyle::setStyle(QStringLiteral("org.kde.desktop")); } } bool KdePlatformTheme::useXdgDesktopPortal() { static bool usePortal = qEnvironmentVariableIntValue("PLASMA_INTEGRATION_USE_PORTAL") == 1; return usePortal; } inline bool windowRelevantForGlobalMenu(QWindow *window) { return !(window->type() & Qt::WindowType::Popup); } void KdePlatformTheme::setMenuBarForWindow(QWindow *window, const QString &serviceName, const QString &objectPath) const { if (!window) return; if (m_x11Integration) { m_x11Integration->setWindowProperty(window, s_x11AppMenuServiceNamePropertyName, serviceName.toUtf8()); m_x11Integration->setWindowProperty(window, s_x11AppMenuObjectPathPropertyName, objectPath.toUtf8()); } if (m_kwaylandIntegration) { m_kwaylandIntegration->setAppMenu(window, serviceName, objectPath); } } bool KdePlatformTheme::checkIfThemeExists(const QString &themePath) { // Qt hard-fails if the main style is non-existent, see QTBUG-120194. // The search is manually implemented since you need a QmlEngine to get the default import list. // But the import search list is explicitly documented here: https://doc.qt.io/qt-6/qtqml-syntax-imports.html#qml-import-path QSet<QString> moduleSearchPaths; moduleSearchPaths.insert(QLibraryInfo::path(QLibraryInfo::LibraryPath::QmlImportsPath)); const auto checkEnvironmentVariable = [&moduleSearchPaths](const char *envName) { if (auto qmlImportPath = qEnvironmentVariable(envName); !qmlImportPath.isEmpty()) { for (const auto &entry : qmlImportPath.split(':')) { moduleSearchPaths.insert(entry); } } }; // QML_IMPORT_PATH is the new one, but QML2_IMPORT_PATH is still used checkEnvironmentVariable("QML2_IMPORT_PATH"); checkEnvironmentVariable("QML_IMPORT_PATH"); for (const QString &path : moduleSearchPaths) { if (QDir(path + themePath).exists()) { return true; } } return false; } #include "kdeplatformtheme.moc" 070701000000E2000081A40000000000000000000000016728A27700000813000000000000000000000000000000000000005F00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt6/src/platformtheme/kdeplatformtheme.h/* This file is part of the KDE libraries SPDX-FileCopyrightText: 2013 Kevin Ottens <ervin+bluesystems@kde.org> SPDX-License-Identifier: LGPL-2.0-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ #ifndef KDEPLATFORMTHEME_H #define KDEPLATFORMTHEME_H #include <QHash> #include <QKeySequence> #include <private/qgenericunixthemes_p.h> class KHintsSettings; class KFontSettingsData; class KWaylandIntegration; class X11Integration; class QIconEngine; class QWindow; class KdePlatformTheme : public QGenericUnixTheme { public: KdePlatformTheme(); ~KdePlatformTheme() override; QVariant themeHint(ThemeHint hint) const override; QIcon fileIcon(const QFileInfo &fileInfo, QPlatformTheme::IconOptions iconOptions) const override; const QPalette *palette(Palette type = SystemPalette) const override; Qt::ColorScheme colorScheme() const override; const QFont *font(Font type) const override; QIconEngine *createIconEngine(const QString &iconName) const override; QList<QKeySequence> keyBindings(QKeySequence::StandardKey key) const override; QPlatformDialogHelper *createPlatformDialogHelper(DialogType type) const override; bool usePlatformNativeDialog(DialogType type) const override; QString standardButtonText(int button) const override; QPlatformSystemTrayIcon *createPlatformSystemTrayIcon() const override; QPlatformMenuBar *createPlatformMenuBar() const override; private: void setMenuBarForWindow(QWindow *window, const QString &serviceName, const QString &objectPath) const; void loadSettings(); void setQtQuickControlsTheme(); static void setWindowProperty(QWindow *window, const QByteArray &name, const QByteArray &value); static bool useXdgDesktopPortal(); static bool checkIfThemeExists(const QString &themePath); KHintsSettings *m_hints = nullptr; KFontSettingsData *m_fontsData = nullptr; QScopedPointer<KWaylandIntegration> m_kwaylandIntegration; QScopedPointer<X11Integration> m_x11Integration; }; #endif // KDEPLATFORMTHEME_H 070701000000E3000081A40000000000000000000000016728A2770000001A000000000000000000000000000000000000006200000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt6/src/platformtheme/kdeplatformtheme.json{ "Keys": [ "kde" ] } 070701000000E4000081A40000000000000000000000016728A27700004F74000000000000000000000000000000000000006100000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt6/src/platformtheme/kdirselectdialog.cpp/* SPDX-FileCopyrightText: 2001, 2002 Carsten Pfeiffer <pfeiffer@kde.org> SPDX-FileCopyrightText: 2001 Michael Jarrett <michaelj@corel.com> SPDX-FileCopyrightText: 2009 Shaun Reich <shaun.reich@kdemail.net> SPDX-License-Identifier: LGPL-2.0-only */ #include "kdirselectdialog_p.h" #include <QDebug> #include <QDialogButtonBox> #include <QDir> #include <QFileDialog> #include <QInputDialog> #include <QLayout> #include <QMenu> #include <QPushButton> #include <QSplitter> #include <QStandardPaths> #include <QStringList> #include <QUrl> #include <KActionCollection> #include <KAuthorized> #include <KConfig> #include <KConfigGroup> #include <KFileItemDelegate> #include <KFileUtils> #include <KFileWidget> #include <KHistoryComboBox> #include <KIO/CopyJob> #include <KIO/DeleteJob> #include <KIO/DeleteOrTrashJob> #include <KIO/JobUiDelegate> #include <KIO/MkdirJob> #include <KIO/StatJob> #include <KJobWidgets> #include <KLocalizedString> #include <KMessageBox> #include <KPropertiesDialog> #include <KRecentDirs> #include <KService> #include <KSharedConfig> #include <KStandardShortcut> #include <KToggleAction> #include <KUrlCompletion> #include "kfiletreeview_p.h" #include <KFilePlacesModel> #include <KFilePlacesView> // ### add mutator for treeview! class KDirSelectDialog::Private { public: Private(bool localOnly, KDirSelectDialog *parent) : m_parent(parent) , m_localOnly(localOnly) , m_comboLocked(false) { } void readConfig(const KSharedConfigPtr &config, const QString &group); void saveConfig(KSharedConfigPtr config, const QString &group); void slotMkdir(); void slotCurrentChanged(const QUrl &url); void slotExpand(const QModelIndex &); void slotUrlActivated(const QString &); void slotComboTextChanged(const QString &); void slotContextMenuRequested(const QPoint &); void slotMoveToTrash(); void slotDelete(); void slotProperties(); KDirSelectDialog *const m_parent; bool m_localOnly : 1; bool m_comboLocked : 1; QUrl m_rootUrl; QUrl m_startDir; KFileTreeView *m_treeView = nullptr; QMenu *m_contextMenu = nullptr; KActionCollection *m_actions = nullptr; KFilePlacesView *m_placesView = nullptr; KHistoryComboBox *m_urlCombo = nullptr; QString m_recentDirClass; QUrl m_startURL; QAction *moveToTrash = nullptr; QAction *deleteAction = nullptr; QAction *showHiddenFoldersAction = nullptr; QDialogButtonBox *m_buttons = nullptr; }; void KDirSelectDialog::Private::readConfig(const KSharedConfig::Ptr &config, const QString &group) { m_urlCombo->clear(); KConfigGroup conf(config, group); m_urlCombo->setHistoryItems(conf.readPathEntry("History Items", QStringList())); const QSize size = conf.readEntry("DirSelectDialog Size", QSize()); if (size.isValid()) { m_parent->resize(size); } } void KDirSelectDialog::Private::saveConfig(KSharedConfig::Ptr config, const QString &group) { KConfigGroup conf(config, group); KConfigGroup::WriteConfigFlags flags(KConfigGroup::Persistent | KConfigGroup::Global); conf.writePathEntry("History Items", m_urlCombo->historyItems(), flags); conf.writeEntry("DirSelectDialog Size", m_parent->size(), flags); config->sync(); } void KDirSelectDialog::Private::slotMkdir() { bool ok; QString where = m_parent->url().toDisplayString(QUrl::PreferLocalFile); QString name = i18nc("folder name", "New Folder"); if (m_parent->url().isLocalFile() && QFileInfo::exists(m_parent->url().toLocalFile() + QLatin1Char('/') + name)) { name = KFileUtils::suggestName(m_parent->url(), name); } const QString directory = QInputDialog::getText(m_parent, i18nc("@title:window", "New Folder"), i18nc("@label:textbox", "Create new folder in:\n%1", where), QLineEdit::Normal, name, &ok); if (!ok) { return; } bool writeOk = false; bool exists = false; QUrl folderurl(m_parent->url()); const QStringList dirs = directory.split(QLatin1Char('/'), Qt::SkipEmptyParts); QStringList::ConstIterator it = dirs.begin(); for (; it != dirs.end(); ++it) { folderurl.setPath(folderurl.path() + QLatin1Char('/') + *it); KIO::StatJob *job = KIO::stat(folderurl); KJobWidgets::setWindow(job, m_parent); job->setDetails(KIO::StatNoDetails); // We only want to know if it exists job->setSide(KIO::StatJob::DestinationSide); exists = job->exec(); if (!exists) { KIO::MkdirJob *job = KIO::mkdir(folderurl); KJobWidgets::setWindow(job, m_parent); writeOk = job->exec(); } } if (exists) { // url was already existent QString which = folderurl.toDisplayString(QUrl::PreferLocalFile); KMessageBox::error(m_parent, i18n("A file or folder named %1 already exists.", which)); // Select the existing dir (if a file with that name exists, it won't be selected since // we only show dirs here, this is cheaper than checking if the existing item is a file // or folder). m_parent->setCurrentUrl(folderurl); return; } if (!writeOk) { KMessageBox::error(m_parent, i18n("You do not have permission to create that folder.")); return; } // Select the newly created dir m_parent->setCurrentUrl(folderurl); } void KDirSelectDialog::Private::slotCurrentChanged(const QUrl &url) { if (m_comboLocked) { return; } if (url.isValid()) { m_urlCombo->setEditText(url.toDisplayString(QUrl::PreferLocalFile)); } else { m_urlCombo->setEditText(QString()); } } void KDirSelectDialog::Private::slotUrlActivated(const QString &text) { if (text.isEmpty()) { return; } const QUrl url = QUrl::fromUserInput(text); m_urlCombo->addToHistory(url.toDisplayString()); if (m_parent->localOnly() && !url.isLocalFile()) { return; // FIXME: messagebox for the user } QUrl oldUrl = m_treeView->currentUrl(); if (oldUrl.isEmpty()) { oldUrl = m_startDir; } m_parent->setCurrentUrl(oldUrl); } void KDirSelectDialog::Private::slotComboTextChanged(const QString &text) { m_treeView->blockSignals(true); QUrl url = QUrl::fromUserInput(text); #ifdef Q_OS_WIN QUrl rootUrl(m_treeView->rootUrl()); if (url.isLocalFile() && !rootUrl.isParentOf(url) && !rootUrl.matches(url, QUrl::StripTrailingSlash)) { QUrl tmp = KIO::upUrl(url); while (tmp.path().length() > 1) { url = tmp; tmp = KIO::upUrl(url); } m_treeView->setRootUrl(url); } #endif m_treeView->setCurrentUrl(url); m_treeView->blockSignals(false); } void KDirSelectDialog::Private::slotContextMenuRequested(const QPoint &pos) { m_contextMenu->popup(m_treeView->viewport()->mapToGlobal(pos)); } void KDirSelectDialog::Private::slotExpand(const QModelIndex &index) { m_treeView->setExpanded(index, !m_treeView->isExpanded(index)); } void KDirSelectDialog::Private::slotMoveToTrash() { const QUrl url = m_treeView->selectedUrl(); using Iface = KIO::AskUserActionInterface; auto *trashJob = new KIO::DeleteOrTrashJob({url}, Iface::Trash, Iface::DefaultConfirmation, m_parent); trashJob->start(); } void KDirSelectDialog::Private::slotDelete() { const QUrl url = m_treeView->selectedUrl(); using Iface = KIO::AskUserActionInterface; auto *deleteJob = new KIO::DeleteOrTrashJob({url}, Iface::Delete, Iface::DefaultConfirmation, m_parent); deleteJob->start(); } void KDirSelectDialog::Private::slotProperties() { KPropertiesDialog *dialog = new KPropertiesDialog(m_treeView->selectedUrl(), this->m_parent); dialog->setAttribute(Qt::WA_DeleteOnClose); dialog->show(); } KDirSelectDialog::KDirSelectDialog(const QUrl &startDir, bool localOnly, QWidget *parent) // #ifdef Q_OS_WIN // : QDialog(parent, Qt::WindowMinMaxButtonsHint), // #else // : QDialog(parent), // #endif : d(new Private(localOnly, this)) { setWindowTitle(i18nc("@title:window", "Select Folder")); setMinimumSize({200, 200}); QVBoxLayout *topLayout = new QVBoxLayout; topLayout->setContentsMargins({}); setLayout(topLayout); QPushButton *folderButton = new QPushButton(this); KGuiItem::assign(folderButton, KGuiItem(i18nc("@action:button", "New Folder..."), QStringLiteral("folder-new"))); connect(folderButton, &QPushButton::clicked, this, [this]() { d->slotMkdir(); }); auto splitter = new QSplitter(this); splitter->setChildrenCollapsible(false); splitter->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); topLayout->addWidget(splitter); auto mainWidget = new QWidget(splitter); QVBoxLayout *mainLayout = new QVBoxLayout(mainWidget); mainLayout->setContentsMargins({}); d->m_actions = new KActionCollection(this); d->m_actions->addAssociatedWidget(this); d->m_placesView = new KFilePlacesView(splitter); d->m_placesView->setModel(new KFilePlacesModel(d->m_placesView)); d->m_placesView->setObjectName(QStringLiteral("speedbar")); d->m_placesView->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff); d->m_placesView->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); d->m_placesView->setMinimumSize(250, 200); connect(d->m_placesView, &KFilePlacesView::urlChanged, this, &KDirSelectDialog::setCurrentUrl); splitter->addWidget(d->m_placesView); splitter->addWidget(mainWidget); d->m_treeView = new KFileTreeView(splitter); d->m_treeView->setDirOnlyMode(true); d->m_treeView->setContextMenuPolicy(Qt::CustomContextMenu); d->m_treeView->setProperty("_breeze_borders_sides", QVariant::fromValue(QFlags{Qt::TopEdge | Qt::BottomEdge})); for (int i = 1; i < d->m_treeView->model()->columnCount(); ++i) { d->m_treeView->hideColumn(i); } auto urlComboWrapper = new QWidget(splitter); auto urlComboWrapperLayout = new QVBoxLayout(urlComboWrapper); urlComboWrapperLayout->setContentsMargins(style()->pixelMetric(QStyle::PM_LayoutLeftMargin), 0, style()->pixelMetric(QStyle::PM_LayoutRightMargin), 0); d->m_urlCombo = new KHistoryComboBox(urlComboWrapper); d->m_urlCombo->setContentsMargins({}); d->m_urlCombo->setLayoutDirection(Qt::LeftToRight); d->m_urlCombo->setSizeAdjustPolicy(QComboBox::AdjustToContents); d->m_urlCombo->setTrapReturnKey(true); d->m_urlCombo->setIconProvider([](const QString &name) { return QIcon::fromTheme(KIO::iconNameForUrl(QUrl::fromUserInput(name))); }); KUrlCompletion *comp = new KUrlCompletion(); comp->setMode(KUrlCompletion::DirCompletion); d->m_urlCombo->setCompletionObject(comp, true); d->m_urlCombo->setAutoDeleteCompletionObject(true); d->m_urlCombo->setDuplicatesEnabled(false); urlComboWrapperLayout->addWidget(d->m_urlCombo); d->m_contextMenu = new QMenu(this); QAction *newFolder = new QAction(i18nc("@action:inmenu", "New Folder..."), this); d->m_actions->addAction(newFolder->objectName(), newFolder); newFolder->setIcon(QIcon::fromTheme(QStringLiteral("folder-new"))); newFolder->setShortcuts(KStandardShortcut::createFolder()); connect(newFolder, &QAction::triggered, this, [this]() { d->slotMkdir(); }); d->m_contextMenu->addAction(newFolder); d->moveToTrash = new QAction(i18nc("@action:inmenu", "Move to Trash"), this); d->m_actions->addAction(d->moveToTrash->objectName(), d->moveToTrash); d->moveToTrash->setIcon(QIcon::fromTheme(QStringLiteral("user-trash"))); d->moveToTrash->setShortcut(Qt::Key_Delete); connect(d->moveToTrash, &QAction::triggered, this, [this]() { d->slotMoveToTrash(); }); d->m_contextMenu->addAction(d->moveToTrash); d->deleteAction = new QAction(i18nc("@action:inmenu", "Delete"), this); d->m_actions->addAction(d->deleteAction->objectName(), d->deleteAction); d->deleteAction->setIcon(QIcon::fromTheme(QStringLiteral("edit-delete"))); d->deleteAction->setShortcut(Qt::SHIFT | Qt::Key_Delete); connect(d->deleteAction, &QAction::triggered, this, [this]() { d->slotDelete(); }); d->m_contextMenu->addAction(d->deleteAction); d->m_contextMenu->addSeparator(); d->showHiddenFoldersAction = new KToggleAction(i18nc("@option:check", "Show Hidden Folders"), this); d->m_actions->addAction(d->showHiddenFoldersAction->objectName(), d->showHiddenFoldersAction); d->showHiddenFoldersAction->setShortcuts(KStandardShortcut::showHideHiddenFiles()); connect(d->showHiddenFoldersAction, &QAction::triggered, d->m_treeView, &KFileTreeView::setShowHiddenFiles); d->m_contextMenu->addAction(d->showHiddenFoldersAction); d->m_contextMenu->addSeparator(); QAction *propertiesAction = new QAction(i18nc("@action:inmenu", "Properties"), this); d->m_actions->addAction(propertiesAction->objectName(), propertiesAction); propertiesAction->setIcon(QIcon::fromTheme(QStringLiteral("document-properties"))); propertiesAction->setShortcut(Qt::ALT | Qt::Key_Return); connect(propertiesAction, &QAction::triggered, this, [this]() { d->slotProperties(); }); d->m_contextMenu->addAction(propertiesAction); d->m_startURL = KFileWidget::getStartUrl(startDir, d->m_recentDirClass); if (localOnly && !d->m_startURL.isLocalFile()) { QString docPath = QStandardPaths::writableLocation(QStandardPaths::DocumentsLocation); if (QDir(docPath).exists()) { d->m_startURL = QUrl::fromLocalFile(docPath); } else { d->m_startURL = QUrl::fromLocalFile(QDir::homePath()); } } d->m_startDir = d->m_startURL; d->m_rootUrl = d->m_treeView->rootUrl(); d->readConfig(KSharedConfig::openConfig(), QStringLiteral("DirSelect Dialog")); d->m_buttons = new QDialogButtonBox(mainWidget); d->m_buttons->setContentsMargins(style()->pixelMetric(QStyle::PM_LayoutLeftMargin), 0, style()->pixelMetric(QStyle::PM_LayoutRightMargin), style()->pixelMetric(QStyle::PM_LayoutBottomMargin)); d->m_buttons->addButton(folderButton, QDialogButtonBox::ActionRole); d->m_buttons->setStandardButtons(QDialogButtonBox::Ok | QDialogButtonBox::Cancel); connect(d->m_buttons, &QDialogButtonBox::accepted, this, &QDialog::accept); connect(d->m_buttons, &QDialogButtonBox::rejected, this, &QDialog::reject); mainLayout->addWidget(d->m_treeView, 1); mainLayout->addWidget(urlComboWrapper, 0); mainLayout->addWidget(d->m_buttons); connect(d->m_treeView, &KFileTreeView::currentUrlChanged, this, [this](const QUrl &url) { d->slotCurrentChanged(url); }); connect(d->m_treeView, &QAbstractItemView::activated, this, [this](const QModelIndex &index) { d->slotExpand(index); }); connect(d->m_treeView, &QWidget::customContextMenuRequested, this, [this](const QPoint &pos) { d->slotContextMenuRequested(pos); }); connect(d->m_urlCombo, &QComboBox::editTextChanged, this, [this](const QString &text) { d->slotComboTextChanged(text); }); connect(d->m_urlCombo, &QComboBox::textActivated, this, [this](const QString &text) { d->slotUrlActivated(text); }); connect(d->m_urlCombo, QOverload<const QString &>::of(&KComboBox::returnPressed), this, [this](const QString &text) { d->slotUrlActivated(text); }); setCurrentUrl(d->m_startURL); } KDirSelectDialog::~KDirSelectDialog() { delete d; } QUrl KDirSelectDialog::url() const { QUrl comboUrl = QUrl::fromUserInput(d->m_urlCombo->currentText()); if (comboUrl.isValid()) { KIO::StatJob *statJob = KIO::stat(comboUrl, KIO::HideProgressInfo); KJobWidgets::setWindow(statJob, d->m_parent); const bool ok = statJob->exec(); if (ok && statJob->statResult().isDir()) { return comboUrl; } } // qDebug() << comboUrl.path() << " is not an accessible directory"; return d->m_treeView->currentUrl(); } QUrl KDirSelectDialog::rootUrl() const { return d->m_rootUrl; } QAbstractItemView *KDirSelectDialog::view() const { return d->m_treeView; } bool KDirSelectDialog::localOnly() const { return d->m_localOnly; } QUrl KDirSelectDialog::startDir() const { return d->m_startDir; } void KDirSelectDialog::setCurrentUrl(const QUrl &url) { if (!url.isValid()) { return; } if (url.scheme() != d->m_rootUrl.scheme()) { QUrl u(url); // We need the url to end with / because some code ahead (kdirmodel) is expecting // to find the / separator. It can happen that a valid url like smb: does not have // one so we should add it. if (!u.toString().endsWith(QLatin1Char('/'))) { u.setPath(QStringLiteral("/")); } d->m_treeView->setRootUrl(u); d->m_rootUrl = u; } // Check if url represents a hidden folder and enable showing them QString fileName = url.fileName(); // TODO a better hidden file check? bool isHidden = fileName.length() > 1 && fileName[0] == QLatin1Char('.') && (fileName.length() > 2 ? fileName[1] != QLatin1Char('.') : true); bool showHiddenFiles = isHidden && !d->m_treeView->showHiddenFiles(); if (showHiddenFiles) { d->showHiddenFoldersAction->setChecked(true); d->m_treeView->setShowHiddenFiles(true); } d->m_treeView->setCurrentUrl(url); } void KDirSelectDialog::accept() { QUrl selectedUrl = url(); if (!selectedUrl.isValid()) { return; } if (!d->m_recentDirClass.isEmpty()) { KRecentDirs::add(d->m_recentDirClass, selectedUrl.toString()); } d->m_urlCombo->addToHistory(selectedUrl.toDisplayString()); KFileWidget::setStartDir(url()); QDialog::accept(); } void KDirSelectDialog::hideEvent(QHideEvent *event) { d->saveConfig(KSharedConfig::openConfig(), QStringLiteral("DirSelect Dialog")); QDialog::hideEvent(event); } // static QUrl KDirSelectDialog::selectDirectory(const QUrl &startDir, bool localOnly, QWidget *parent, const QString &caption) { KDirSelectDialog myDialog(startDir, localOnly, parent); if (!caption.isNull()) { myDialog.setWindowTitle(caption); } if (myDialog.exec() == QDialog::Accepted) { QUrl url = myDialog.url(); // Returning the most local url if (url.isLocalFile()) { return url; } KIO::StatJob *job = KIO::stat(url); KJobWidgets::setWindow(job, parent); if (!job->exec()) { return url; } KIO::UDSEntry entry = job->statResult(); const QString path = entry.stringValue(KIO::UDSEntry::UDS_LOCAL_PATH); return path.isEmpty() ? url : QUrl::fromLocalFile(path); } else { return QUrl(); } } QUrl KDirSelectDialog::directory() { return url(); } QList<QUrl> KDirSelectDialog::selectedFiles() { return QList<QUrl>() << url(); } void KDirSelectDialog::setOkButtonText(const QString &text) { d->m_buttons->button(QDialogButtonBox::Ok)->setText(text); } void KDirSelectDialog::setCancelButtonText(const QString &text) { d->m_buttons->button(QDialogButtonBox::Cancel)->setText(text); } void KDirSelectDialog::setDirectory(const QUrl &directory) { setCurrentUrl(directory); } QString KDirSelectDialog::selectedMimeTypeFilter() { return QString(); } QString KDirSelectDialog::selectedNameFilter() { return QString(); } QString KDirSelectDialog::currentFilterText() { return QString(); } void KDirSelectDialog::selectFile(const QUrl &filename) { Q_UNUSED(filename) } void KDirSelectDialog::selectMimeTypeFilter(const QString &filter) { Q_UNUSED(filter) } void KDirSelectDialog::selectNameFilter(const KFileFilter &filter) { Q_UNUSED(filter) } #include "moc_kdirselectdialog_p.cpp" 070701000000E5000081A40000000000000000000000016728A27700000E0C000000000000000000000000000000000000006100000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt6/src/platformtheme/kdirselectdialog_p.h/* SPDX-FileCopyrightText: 2001 Michael Jarrett <michaelj@corel.com> SPDX-FileCopyrightText: 2001 Carsten Pfeiffer <pfeiffer@kde.org> SPDX-FileCopyrightText: 2009 Shaun Reich <shaun.reich@kdemail.net> SPDX-License-Identifier: LGPL-2.0-only */ #ifndef KDIRSELECTDIALOG_H #define KDIRSELECTDIALOG_H #include "kdeplatformfiledialogbase_p.h" #include <QUrl> class QAbstractItemView; /** * A pretty dialog for a KDirSelect control for selecting directories. * @author Michael Jarrett <michaelj@corel.com> */ class KDirSelectDialog : public KDEPlatformFileDialogBase { Q_OBJECT public: /** * Creates a new directory selection dialog. * @internal use the static selectDirectory function * @param startDir the directory, initially shown * @param localOnly unused. You can only select paths below the startDir * @param parent the parent for the dialog, usually 0L */ explicit KDirSelectDialog(const QUrl &startDir = QUrl(), bool localOnly = false, QWidget *parent = nullptr); /** * Destroys the directory selection dialog. */ ~KDirSelectDialog() override; /** * Returns the currently selected URL, or an empty one if no item is selected. * * If the URL entered in the combobox is valid and exists, it is returned. * Otherwise, the URL selected in the treeview is returned instead. */ QUrl url() const; /** * Returns the root url */ QUrl rootUrl() const; /** * Returns a pointer to the view which is used for displaying the directories. */ QAbstractItemView *view() const; /** * Returns whether only local directories can be selected. */ bool localOnly() const; /** * Creates a KDirSelectDialog, and returns the result. * @param startDir the directory, initially shown * The tree will display this directory and subdirectories of it. * @param localOnly unused. You can only select paths below the startDir * @param parent the parent widget to use for the dialog, or NULL to create a parent-less dialog * @param caption the caption to use for the dialog, or QString() for the default caption * @return The URL selected, or an empty URL if the user canceled * or no URL was selected. * * @deprecated since 5.0, use QFileDialog::getExistingDirectory (if localOnly was true) * or QFileDialog::getExistingDirectoryUrl (if localOnly was false) instead. */ static QUrl selectDirectory(const QUrl &startDir = QUrl(), bool localOnly = false, QWidget *parent = nullptr, const QString &caption = QString()); /** * @return The path for the root node */ QUrl startDir() const; QUrl directory() override; void selectMimeTypeFilter(const QString &filter) override; void selectNameFilter(const KFileFilter &filter) override; void setDirectory(const QUrl &directory) override; void selectFile(const QUrl &filename) override; QString selectedMimeTypeFilter() override; QString selectedNameFilter() override; QString currentFilterText() override; QList<QUrl> selectedFiles() override; void setOkButtonText(const QString &text); void setCancelButtonText(const QString &text); public Q_SLOTS: /** * Sets the current @p url in the dialog. */ void setCurrentUrl(const QUrl &url); protected: void accept() override; /** * Reimplemented for saving the dialog geometry. */ void hideEvent(QHideEvent *event) override; private: class Private; Private *const d; }; #endif 070701000000E6000081A40000000000000000000000016728A2770000154A000000000000000000000000000000000000005E00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt6/src/platformtheme/kfiletreeview.cpp/* This file is part of the KDE project SPDX-FileCopyrightText: 2007 Tobias Koenig <tokoe@kde.org> SPDX-License-Identifier: LGPL-2.0-or-later */ #include "kfiletreeview_p.h" #include <QContextMenuEvent> #include <QDir> #include <QMenu> #include <QUrl> #include <kdirlister.h> #include <kdirmodel.h> #include <kdirsortfilterproxymodel.h> #include <kfileitemdelegate.h> #include <klocalizedstring.h> #include <ktoggleaction.h> class KFileTreeView::Private { public: Private(KFileTreeView *parent) : q(parent) { } QUrl urlForProxyIndex(const QModelIndex &index) const; void activated(const QModelIndex &); void currentChanged(const QModelIndex &, const QModelIndex &); void expanded(const QModelIndex &); KFileTreeView *const q; KDirModel *mSourceModel = nullptr; KDirSortFilterProxyModel *mProxyModel = nullptr; }; QUrl KFileTreeView::Private::urlForProxyIndex(const QModelIndex &index) const { const KFileItem item = mSourceModel->itemForIndex(mProxyModel->mapToSource(index)); return !item.isNull() ? item.url() : QUrl(); } void KFileTreeView::Private::activated(const QModelIndex &index) { const QUrl url = urlForProxyIndex(index); if (url.isValid()) { Q_EMIT q->activated(url); } } void KFileTreeView::Private::currentChanged(const QModelIndex ¤tIndex, const QModelIndex &) { const QUrl url = urlForProxyIndex(currentIndex); if (url.isValid()) { Q_EMIT q->currentUrlChanged(url); } } void KFileTreeView::Private::expanded(const QModelIndex &baseIndex) { QModelIndex index = mProxyModel->mapFromSource(baseIndex); q->setExpanded(index, true); q->selectionModel()->clearSelection(); q->selectionModel()->setCurrentIndex(index, QItemSelectionModel::SelectCurrent); q->scrollTo(index); } KFileTreeView::KFileTreeView(QWidget *parent) : QTreeView(parent) , d(new Private(this)) { d->mSourceModel = new KDirModel(this); d->mProxyModel = new KDirSortFilterProxyModel(this); d->mProxyModel->setSourceModel(d->mSourceModel); setModel(d->mProxyModel); setItemDelegate(new KFileItemDelegate(this)); setLayoutDirection(Qt::LeftToRight); d->mSourceModel->dirLister()->openUrl(QUrl::fromLocalFile(QDir::root().absolutePath()), KDirLister::Keep); connect(this, &QAbstractItemView::activated, this, [this](const QModelIndex &index) { d->activated(index); }); connect(selectionModel(), &QItemSelectionModel::currentChanged, this, [this](const QModelIndex ¤t, const QModelIndex &previous) { d->currentChanged(current, previous); }); connect(d->mSourceModel, &KDirModel::expand, this, [this](const QModelIndex &index) { d->expanded(index); }); } KFileTreeView::~KFileTreeView() { delete d; } QUrl KFileTreeView::currentUrl() const { return d->urlForProxyIndex(currentIndex()); } QUrl KFileTreeView::selectedUrl() const { if (!selectionModel()->hasSelection()) { return QUrl(); } const QItemSelection selection = selectionModel()->selection(); const QModelIndex firstIndex = selection.indexes().first(); return d->urlForProxyIndex(firstIndex); } QList<QUrl> KFileTreeView::selectedUrls() const { QList<QUrl> urls; if (!selectionModel()->hasSelection()) { return urls; } const QModelIndexList indexes = selectionModel()->selection().indexes(); foreach (const QModelIndex &index, indexes) { const QUrl url = d->urlForProxyIndex(index); if (url.isValid()) { urls.append(url); } } return urls; } QUrl KFileTreeView::rootUrl() const { return d->mSourceModel->dirLister()->url(); } void KFileTreeView::setDirOnlyMode(bool enabled) { d->mSourceModel->dirLister()->setDirOnlyMode(enabled); d->mSourceModel->dirLister()->openUrl(d->mSourceModel->dirLister()->url()); } void KFileTreeView::setShowHiddenFiles(bool enabled) { QUrl url = currentUrl(); d->mSourceModel->dirLister()->setShowHiddenFiles(enabled); d->mSourceModel->dirLister()->openUrl(d->mSourceModel->dirLister()->url()); setCurrentUrl(url); } void KFileTreeView::setCurrentUrl(const QUrl &url) { const QModelIndex baseIndex = d->mSourceModel->indexForUrl(url); if (!baseIndex.isValid()) { d->mSourceModel->expandToUrl(url); return; } const QModelIndex proxyIndex = d->mProxyModel->mapFromSource(baseIndex); selectionModel()->clearSelection(); selectionModel()->setCurrentIndex(proxyIndex, QItemSelectionModel::SelectCurrent); scrollTo(proxyIndex); } void KFileTreeView::setRootUrl(const QUrl &url) { d->mSourceModel->dirLister()->openUrl(url); } void KFileTreeView::contextMenuEvent(QContextMenuEvent *event) { QMenu menu; KToggleAction *showHiddenAction = new KToggleAction(i18n("Show Hidden Folders"), &menu); showHiddenAction->setChecked(d->mSourceModel->dirLister()->showHiddenFiles()); connect(showHiddenAction, &QAction::toggled, this, &KFileTreeView::setShowHiddenFiles); menu.addAction(showHiddenAction); menu.exec(event->globalPos()); } bool KFileTreeView::showHiddenFiles() const { return d->mSourceModel->dirLister()->showHiddenFiles(); } QSize KFileTreeView::sizeHint() const { // This size makes KDirSelectDialog pop up just under 800x600 by default :-) return QSize(680, 500); } #include "moc_kfiletreeview_p.cpp" 070701000000E7000081A40000000000000000000000016728A27700000854000000000000000000000000000000000000005E00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt6/src/platformtheme/kfiletreeview_p.h/* This file is part of the KDE project SPDX-FileCopyrightText: 2007 Tobias Koenig <tokoe@kde.org> SPDX-License-Identifier: LGPL-2.0-or-later */ #ifndef KFILETREEVIEW_H #define KFILETREEVIEW_H #include <QTreeView> #include <QUrl> /** * The file treeview offers a treeview on the filesystem. */ class KFileTreeView : public QTreeView // exported only for kfiletreeviewtest { Q_OBJECT public: /** * Creates a new file tree view. */ explicit KFileTreeView(QWidget *parent = nullptr); /** * Destroys the file tree view. */ ~KFileTreeView() override; /** * Returns the current url. */ QUrl currentUrl() const; /** * Returns the selected url. */ QUrl selectedUrl() const; /** * Returns all selected urls. */ QList<QUrl> selectedUrls() const; /** * Returns the current root url of the view. */ QUrl rootUrl() const; /** * Returns true if the view is currently showing hidden files * @since 4.3 */ bool showHiddenFiles() const; /** * @reimplemented */ QSize sizeHint() const override; public Q_SLOTS: /** * Sets whether the dir-only mode is @p enabled. * * In dir-only mode, only directories and subdirectories * are listed in the view. */ void setDirOnlyMode(bool enabled); /** * Sets whether hidden files shall be listed. */ void setShowHiddenFiles(bool enabled); /** * Sets the current @p url of the view. */ void setCurrentUrl(const QUrl &url); /** * Sets the root @p url of the view. * * The default is file:///. */ void setRootUrl(const QUrl &url); Q_SIGNALS: /** * This signal is emitted whenever an @p url has been activated. */ void activated(const QUrl &url); /** * This signal is emitted whenever the current @p url has been changed. */ void currentUrlChanged(const QUrl &url); protected: void contextMenuEvent(QContextMenuEvent *) override; private: class Private; Private *const d; }; #endif 070701000000E8000081A40000000000000000000000016728A2770000170A000000000000000000000000000000000000006200000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt6/src/platformtheme/kfontsettingsdata.cpp/* This file is part of the KDE libraries SPDX-FileCopyrightText: 2000, 2006 David Faure <faure@kde.org> SPDX-FileCopyrightText: 2008 Friedrich W. H. Kossebau <kossebau@kde.org> SPDX-FileCopyrightText: 2013 Aleix Pol Gonzalez <aleixpol@blue-systems.com> SPDX-FileCopyrightText: 2022 Harald Sitter <sitter@kde.org> SPDX-License-Identifier: LGPL-2.0-only */ #include "kfontsettingsdata.h" #include <QApplication> #include <QCoreApplication> #include <QDBusConnection> #include <QDBusMessage> #include <QDBusReply> #include <QString> #include <QVariant> #include <qpa/qwindowsysteminterface.h> #include <KSandbox> #include <kconfiggroup.h> KFontSettingsData::KFontSettingsData() : QObject(nullptr) , mUsePortal(KSandbox::isInside()) , mKdeGlobals(KSharedConfig::openConfig()) { QMetaObject::invokeMethod(this, "delayedDBusConnects", Qt::QueuedConnection); for (int i = 0; i < FontTypesCount; ++i) { mFonts[i] = nullptr; } } KFontSettingsData::~KFontSettingsData() { for (int i = 0; i < FontTypesCount; ++i) { delete mFonts[i]; } } // NOTE: keep in sync with plasma-desktop/kcms/fonts/fonts.cpp static const char GeneralId[] = "General"; static const char DefaultFont[] = "Noto Sans"; static const KFontData DefaultFontData[KFontSettingsData::FontTypesCount] = { {GeneralId, "font", DefaultFont, 10, QFont::Normal, QFont::SansSerif, "Regular"}, {GeneralId, "fixed", "Hack", 10, QFont::Normal, QFont::Monospace, "Regular"}, {GeneralId, "toolBarFont", DefaultFont, 10, QFont::Normal, QFont::SansSerif, "Regular"}, {GeneralId, "menuFont", DefaultFont, 10, QFont::Normal, QFont::SansSerif, "Regular"}, {"WM", "activeFont", DefaultFont, 10, QFont::Normal, QFont::SansSerif, "Regular"}, {GeneralId, "taskbarFont", DefaultFont, 10, QFont::Normal, QFont::SansSerif, "Regular"}, {GeneralId, "smallestReadableFont", DefaultFont, 8, QFont::Normal, QFont::SansSerif, "Regular"}, }; QFont *KFontSettingsData::font(FontTypes fontType) { QFont *cachedFont = mFonts[fontType]; if (!cachedFont) { const KFontData &fontData = DefaultFontData[fontType]; cachedFont = new QFont(QLatin1String(fontData.FontName), fontData.Size, fontData.Weight); cachedFont->setStyleHint(fontData.StyleHint); const QString fontInfo = readConfigValue(QLatin1String(fontData.ConfigGroupKey), QLatin1String(fontData.ConfigKey)); // If we have serialized information for this font, restore it // NOTE: We are not using KConfig directly because we can't call QFont::QFont from here if (!fontInfo.isEmpty()) { cachedFont->fromString(fontInfo); } // Don't set default font style names, as it prevents different font weights from being used (the QFont::Normal weight should work) mFonts[fontType] = cachedFont; } return cachedFont; } void KFontSettingsData::dropFontSettingsCache() { mKdeGlobals->reparseConfiguration(); for (int i = 0; i < FontTypesCount; ++i) { delete mFonts[i]; mFonts[i] = nullptr; } QWindowSystemInterface::handleThemeChange(nullptr); if (qobject_cast<QApplication *>(QCoreApplication::instance())) { QApplication::setFont(*font(KFontSettingsData::GeneralFont)); } else { QGuiApplication::setFont(*font(KFontSettingsData::GeneralFont)); } } void KFontSettingsData::delayedDBusConnects() { QDBusConnection::sessionBus().connect(QString(), QStringLiteral("/KDEPlatformTheme"), QStringLiteral("org.kde.KDEPlatformTheme"), QStringLiteral("refreshFonts"), this, SLOT(dropFontSettingsCache())); if (mUsePortal) { QDBusConnection::sessionBus().connect(QString(), QStringLiteral("/org/freedesktop/portal/desktop"), QStringLiteral("org.freedesktop.portal.Settings"), QStringLiteral("SettingChanged"), this, SLOT(slotPortalSettingChanged(QString, QString, QDBusVariant))); } } void KFontSettingsData::slotPortalSettingChanged(const QString &group, const QString &key, const QDBusVariant &value) { Q_UNUSED(value); if (group == QLatin1String("org.kde.kdeglobals.General") && key == QLatin1String("font")) { dropFontSettingsCache(); } } QString KFontSettingsData::readConfigValue(const QString &group, const QString &key, const QString &defaultValue) const { if (mUsePortal) { const QString settingName = QStringLiteral("org.kde.kdeglobals.%1").arg(group); QDBusMessage message = QDBusMessage::createMethodCall(QStringLiteral("org.freedesktop.portal.Desktop"), QStringLiteral("/org/freedesktop/portal/desktop"), QStringLiteral("org.freedesktop.portal.Settings"), QStringLiteral("Read")); message << settingName << key; // FIXME: async? QDBusReply<QVariant> reply = QDBusConnection::sessionBus().call(message); if (reply.isValid()) { QDBusVariant result = qvariant_cast<QDBusVariant>(reply.value()); const QString resultStr = result.variant().toString(); if (!resultStr.isEmpty()) { return resultStr; } } } const KConfigGroup configGroup(mKdeGlobals, group); return configGroup.readEntry(key, defaultValue); } #include "moc_kfontsettingsdata.cpp" 070701000000E9000081A40000000000000000000000016728A2770000064D000000000000000000000000000000000000006000000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt6/src/platformtheme/kfontsettingsdata.h/* This file is part of the KDE libraries SPDX-FileCopyrightText: 2000, 2006 David Faure <faure@kde.org> SPDX-FileCopyrightText: 2008 Friedrich W. H. Kossebau <kossebau@kde.org> SPDX-FileCopyrightText: 2013 Aleix Pol Gonzalez <aleixpol@blue-systems.com> SPDX-License-Identifier: LGPL-2.0-only */ #ifndef KFONTSETTINGSDATA_H #define KFONTSETTINGSDATA_H #include <QDBusVariant> #include <QFont> #include <QObject> #include <ksharedconfig.h> struct KFontData { const char *ConfigGroupKey; const char *ConfigKey; const char *FontName; int Size; int Weight; QFont::StyleHint StyleHint; const char *StyleName; }; class KFontSettingsData : public QObject { Q_OBJECT public: // if adding a new type here also add an entry to DefaultFontData enum FontTypes { GeneralFont = 0, FixedFont, ToolbarFont, MenuFont, WindowTitleFont, TaskbarFont, SmallestReadableFont, FontTypesCount, }; public: KFontSettingsData(); ~KFontSettingsData() override; public Q_SLOTS: void dropFontSettingsCache(); private Q_SLOTS: void delayedDBusConnects(); void slotPortalSettingChanged(const QString &group, const QString &key, const QDBusVariant &value); public: // access, is not const due to caching QFont *font(FontTypes fontType); private: QString readConfigValue(const QString &group, const QString &key, const QString &defaultValue = QString()) const; bool mUsePortal; QFont *mFonts[FontTypesCount]; KSharedConfigPtr mKdeGlobals; }; #endif // KFONTSETTINGSDATA_H 070701000000EA000081A40000000000000000000000016728A27700005516000000000000000000000000000000000000005F00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt6/src/platformtheme/khintssettings.cpp/* This file is part of the KDE libraries SPDX-FileCopyrightText: 2013 Kevin Ottens <ervin+bluesystems@kde.org> SPDX-FileCopyrightText: 2013 Aleix Pol Gonzalez <aleixpol@blue-systems.com> SPDX-FileCopyrightText: 2013 Alejandro Fiestas Olivares <afiestas@kde.org> SPDX-FileCopyrightText: 2022 Harald Sitter <sitter@kde.org> SPDX-License-Identifier: LGPL-2.0-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ #include "khintssettings.h" #include <QApplication> #include <QDebug> #include <QDialogButtonBox> #include <QDir> #include <QFileInfo> #include <QGuiApplication> #include <QMainWindow> #include <QPalette> #include <QScreen> #include <QStandardPaths> #include <QString> #include <QTemporaryFile> #include <QToolBar> #include <QToolButton> #include <QDBusArgument> #include <QDBusConnection> #include <QDBusInterface> #include <qpa/qwindowsysteminterface.h> #include <KSandbox> #include <kcolorscheme.h> #include <kconfiggroup.h> #include <kiconloader.h> #include <config-platformtheme.h> #ifdef UNIT_TEST #undef HAVE_X11 #define HAVE_X11 0 #endif #if HAVE_X11 #include <X11/Xcursor/Xcursor.h> #include <private/qtx11extras_p.h> #endif static const QString defaultLookAndFeelPackage = QStringLiteral("org.kde.breeze.desktop"); const QDBusArgument &operator>>(const QDBusArgument &argument, QMap<QString, QVariantMap> &map) { argument.beginMap(); map.clear(); while (!argument.atEnd()) { QString key; QVariantMap value; argument.beginMapEntry(); argument >> key >> value; argument.endMapEntry(); map.insert(key, value); } argument.endMap(); return argument; } KHintsSettings::KHintsSettings(const KSharedConfig::Ptr &kdeglobals) : QObject(nullptr) , mKdeGlobals(kdeglobals) , mUsePortal(KSandbox::isInside()) { if (!mKdeGlobals) { mKdeGlobals = KSharedConfig::openConfig(); } KConfigGroup cg(mKdeGlobals, "KDE"); if (mUsePortal) { updatePortalSetting(); } const auto cursorBlinkRate = readConfigValue(cg, QStringLiteral("CursorBlinkRate"), 1000).toInt(); m_hints[QPlatformTheme::CursorFlashTime] = cursorBlinkRate > 0 ? qBound(200, cursorBlinkRate, 2000) : 0; // 0 => no blinking m_hints[QPlatformTheme::MouseDoubleClickInterval] = readConfigValue(cg, QStringLiteral("DoubleClickInterval"), 400); m_hints[QPlatformTheme::StartDragDistance] = readConfigValue(cg, QStringLiteral("StartDragDist"), 10); m_hints[QPlatformTheme::StartDragTime] = readConfigValue(cg, QStringLiteral("StartDragTime"), 500); KConfigGroup cgToolbar(mKdeGlobals, "Toolbar style"); m_hints[QPlatformTheme::ToolButtonStyle] = toolButtonStyle(cgToolbar); m_hints[QPlatformTheme::ToolBarIconSize] = KIconLoader::global()->currentSize(KIconLoader::MainToolbar); m_hints[QPlatformTheme::ItemViewActivateItemOnSingleClick] = readConfigValue(cg, QStringLiteral("SingleClick"), false); m_hints[QPlatformTheme::SystemIconThemeName] = readConfigValue(QStringLiteral("Icons"), QStringLiteral("Theme"), QStringLiteral("breeze")); m_hints[QPlatformTheme::SystemIconFallbackThemeName] = QStringLiteral("hicolor"); m_hints[QPlatformTheme::IconThemeSearchPaths] = xdgIconThemePaths(); QStringList styleNames{ QStringLiteral("breeze"), QStringLiteral("oxygen"), QStringLiteral("fusion"), QStringLiteral("windows"), }; const QString configuredStyle = readConfigValue(cg, QStringLiteral("widgetStyle"), QString()).toString(); if (!configuredStyle.isEmpty()) { styleNames.removeOne(configuredStyle); styleNames.prepend(configuredStyle); } const QString lnfStyle = readConfigValue(QStringLiteral("KDE"), QStringLiteral("widgetStyle"), QString()).toString(); if (!lnfStyle.isEmpty()) { styleNames.removeOne(lnfStyle); styleNames.prepend(lnfStyle); } m_hints[QPlatformTheme::StyleNames] = styleNames; m_hints[QPlatformTheme::DialogButtonBoxLayout] = QDialogButtonBox::KdeLayout; m_hints[QPlatformTheme::DialogButtonBoxButtonsHaveIcons] = readConfigValue(cg, QStringLiteral("ShowIconsOnPushButtons"), true); m_hints[QPlatformTheme::UseFullScreenForPopupMenu] = true; m_hints[QPlatformTheme::KeyboardScheme] = QPlatformTheme::KdeKeyboardScheme; int uiEffectsFlags = readConfigValue(cg, QStringLiteral("GraphicEffectsLevel"), 0) != 0 ? QPlatformTheme::GeneralUiEffect : 0; uiEffectsFlags |= QPlatformTheme::HoverEffect; m_hints[QPlatformTheme::UiEffects] = uiEffectsFlags; m_hints[QPlatformTheme::IconPixmapSizes] = QVariant::fromValue(QList<int>() << 512 << 256 << 128 << 64 << 32 << 22 << 16 << 8); m_hints[QPlatformTheme::WheelScrollLines] = readConfigValue(cg, QStringLiteral("WheelScrollLines"), 3); if (qobject_cast<QApplication *>(QCoreApplication::instance())) { QApplication::setWheelScrollLines(readConfigValue(cg, QStringLiteral("WheelScrollLines"), 3).toInt()); } updateShowIconsInMenuItems(cg); m_hints[QPlatformTheme::ShowShortcutsInContextMenus] = true; QMetaObject::invokeMethod(this, "delayedDBusConnects", Qt::QueuedConnection); QMetaObject::invokeMethod(this, "setupIconLoader", Qt::QueuedConnection); loadPalettes(); m_colorScheme = determineColorScheme(); updateCursorTheme(); } KHintsSettings::~KHintsSettings() { qDeleteAll(m_palettes); } QVariant KHintsSettings::readConfigValue(const QString &group, const QString &key, const QVariant &defaultValue) { KConfigGroup userCg(mKdeGlobals, group); return readConfigValue(userCg, key, defaultValue); } QVariant KHintsSettings::readConfigValue(const KConfigGroup &cg, const QString &key, const QVariant &defaultValue) const { if (mUsePortal) { const QString settingName = QStringLiteral("org.kde.kdeglobals.%1").arg(cg.name()); auto groupIt = mKdeGlobalsPortal.constFind(settingName); if (groupIt != mKdeGlobalsPortal.constEnd()) { auto valueIt = groupIt.value().constFind(key); if (valueIt != groupIt.value().constEnd()) { return valueIt.value(); } } } return cg.readEntry(key, defaultValue); } QStringList KHintsSettings::xdgIconThemePaths() const { QStringList paths; // make sure we have ~/.local/share/icons in paths if it exists paths << QStandardPaths::locateAll(QStandardPaths::GenericDataLocation, QStringLiteral("icons"), QStandardPaths::LocateDirectory); const QFileInfo homeIconDir(QDir::homePath() + QStringLiteral("/.icons")); if (homeIconDir.isDir()) { paths << homeIconDir.absoluteFilePath(); } return paths; } void KHintsSettings::delayedDBusConnects() { QDBusConnection::sessionBus() .connect(QString(), QStringLiteral("/KToolBar"), QStringLiteral("org.kde.KToolBar"), QStringLiteral("styleChanged"), this, SLOT(toolbarStyleChanged())); QDBusConnection::sessionBus().connect(QString(), QStringLiteral("/KGlobalSettings"), QStringLiteral("org.kde.KGlobalSettings"), QStringLiteral("notifyChange"), this, SLOT(slotNotifyChange(int, int))); if (mUsePortal) { QDBusConnection::sessionBus().connect(QString(), QStringLiteral("/org/freedesktop/portal/desktop"), QStringLiteral("org.freedesktop.portal.Settings"), QStringLiteral("SettingChanged"), this, SLOT(slotPortalSettingChanged(QString, QString, QDBusVariant))); } } void KHintsSettings::setupIconLoader() { connect(KIconLoader::global(), &KIconLoader::iconChanged, this, &KHintsSettings::iconChanged); } void KHintsSettings::toolbarStyleChanged() { mKdeGlobals->reparseConfiguration(); KConfigGroup cg(mKdeGlobals, "Toolbar style"); m_hints[QPlatformTheme::ToolButtonStyle] = toolButtonStyle(cg); // from gtksymbol.cpp QWidgetList widgets = QApplication::allWidgets(); for (int i = 0; i < widgets.size(); ++i) { QWidget *widget = widgets.at(i); if (qobject_cast<QToolButton *>(widget)) { QEvent event(QEvent::StyleChange); QApplication::sendEvent(widget, &event); } } } void KHintsSettings::slotNotifyChange(int type, int arg) { mKdeGlobals->reparseConfiguration(); KConfigGroup cg(mKdeGlobals, "KDE"); switch (type) { case PaletteChanged: { loadPalettes(); // Don't change the palette if the application has a custom one set if (!qApp->property("KDE_COLOR_SCHEME_PATH").toString().isEmpty()) { break; } // QApplication::setPalette and QGuiApplication::setPalette are different functions // and non virtual. Call the correct one if (qobject_cast<QApplication *>(QCoreApplication::instance())) { QPalette palette = *m_palettes[QPlatformTheme::SystemPalette]; QApplication::setPalette(palette); // QTBUG QGuiApplication::paletteChanged() signal is only emitted by QGuiApplication // so things like SystemPalette QtQuick item that use it won't notice a palette // change when a QApplication which causes e.g. QML System Settings modules to not update Q_EMIT qApp->paletteChanged(palette); } else if (qobject_cast<QGuiApplication *>(QCoreApplication::instance())) { QGuiApplication::setPalette(*m_palettes[QPlatformTheme::SystemPalette]); } Qt::ColorScheme newColorScheme = determineColorScheme(); if (m_colorScheme != newColorScheme) { m_colorScheme = newColorScheme; QWindowSystemInterface::handleThemeChange(); } break; } case SettingsChanged: { SettingsCategory category = static_cast<SettingsCategory>(arg); if (category == SETTINGS_QT || category == SETTINGS_MOUSE) { updateQtSettings(cg); } else if (category == SETTINGS_STYLE) { m_hints[QPlatformTheme::DialogButtonBoxButtonsHaveIcons] = cg.readEntry("ShowIconsOnPushButtons", true); m_hints[QPlatformTheme::UiEffects] = cg.readEntry("GraphicEffectsLevel", 0) != 0 ? QPlatformTheme::GeneralUiEffect : 0; updateShowIconsInMenuItems(cg); } break; } case ToolbarStyleChanged: { toolbarStyleChanged(); break; } case IconChanged: iconChanged(arg); // Once the KCM is ported to use IconChanged, this should not be needed break; case CursorChanged: updateCursorTheme(); updateX11CursorTheme(); break; case StyleChanged: { QApplication *app = qobject_cast<QApplication *>(QCoreApplication::instance()); if (!app) { return; } // HOTFIX here. Hardcoded default value is duplicated and may be inconsistent with the one actually defined in kcm_style kcfg const QString theme = readConfigValue(cg, QStringLiteral("widgetStyle"), QStringLiteral("breeze")).toString(); QStringList styleNames; if (theme != QStringLiteral("breeze")) { styleNames << theme; } styleNames << QStringLiteral("breeze") << QStringLiteral("oxygen") << QStringLiteral("fusion") << QStringLiteral("windows"); const QString lnfStyle = readConfigValue(QStringLiteral("KDE"), QStringLiteral("widgetStyle"), QString()).toString(); if (!lnfStyle.isEmpty() && !styleNames.contains(lnfStyle)) { styleNames.prepend(lnfStyle); } m_hints[QPlatformTheme::StyleNames] = styleNames; app->setStyle(theme); loadPalettes(); break; } default: qWarning() << "Unknown type of change in KGlobalSettings::slotNotifyChange: " << type; } } void KHintsSettings::slotPortalSettingChanged(const QString &group, const QString &key, const QDBusVariant &value) { if (group == QLatin1String("org.kde.kdeglobals.General") && key == QLatin1String("ColorScheme")) { // For colors obtain complete configuration again updatePortalSetting(); slotNotifyChange(PaletteChanged, 0); } else if (group == QLatin1String("org.kde.kdeglobals.KDE") && key == QLatin1String("widgetStyle")) { mKdeGlobalsPortal[group][key] = value.variant().toString(); slotNotifyChange(StyleChanged, 0); } else if (group == QLatin1String("org.kde.kdeglobals.Icons") && key == QLatin1String("Theme")) { mKdeGlobalsPortal[group][key] = value.variant().toString(); // Change icons for each group for (int i = 0; i <= 5; ++i) { iconChanged(i); } } else if (group == QLatin1String("org.kde.kdeglobals.Toolbar style") && key == QLatin1String("ToolButtonStyle")) { mKdeGlobalsPortal[group][key] = value.variant().toString(); toolbarStyleChanged(); } } void KHintsSettings::iconChanged(int group) { KIconLoader::Group iconGroup = (KIconLoader::Group)group; if (iconGroup != KIconLoader::MainToolbar) { m_hints[QPlatformTheme::SystemIconThemeName] = readConfigValue(QStringLiteral("Icons"), QStringLiteral("Theme"), QStringLiteral("breeze")); return; } const int currentSize = KIconLoader::global()->currentSize(KIconLoader::MainToolbar); if (m_hints[QPlatformTheme::ToolBarIconSize] == currentSize) { return; } m_hints[QPlatformTheme::ToolBarIconSize] = currentSize; // If we are not a QApplication, means that we are a QGuiApplication, then we do nothing. if (!qobject_cast<QApplication *>(QCoreApplication::instance())) { return; } const QWidgetList widgets = QApplication::allWidgets(); for (QWidget *widget : widgets) { if (qobject_cast<QToolBar *>(widget) || qobject_cast<QMainWindow *>(widget)) { QEvent event(QEvent::StyleChange); QApplication::sendEvent(widget, &event); } } } void KHintsSettings::updateQtSettings(KConfigGroup &cg) { int flash = qBound(200, cg.readEntry("CursorBlinkRate", 1000), 2000); m_hints[QPlatformTheme::CursorFlashTime] = flash; int doubleClickInterval = cg.readEntry("DoubleClickInterval", 400); m_hints[QPlatformTheme::MouseDoubleClickInterval] = doubleClickInterval; int startDragDistance = cg.readEntry("StartDragDist", 10); m_hints[QPlatformTheme::StartDragDistance] = startDragDistance; int startDragTime = cg.readEntry("StartDragTime", 500); m_hints[QPlatformTheme::StartDragTime] = startDragTime; m_hints[QPlatformTheme::ItemViewActivateItemOnSingleClick] = cg.readEntry("SingleClick", false); updateShowIconsInMenuItems(cg); int wheelScrollLines = cg.readEntry("WheelScrollLines", 3); m_hints[QPlatformTheme::WheelScrollLines] = wheelScrollLines; QApplication *app = qobject_cast<QApplication *>(QCoreApplication::instance()); if (app) { QApplication::setWheelScrollLines(cg.readEntry("WheelScrollLines", 3)); } } void KHintsSettings::updateShowIconsInMenuItems(KConfigGroup &cg) { bool showIcons = readConfigValue(cg, QStringLiteral("ShowIconsInMenuItems"), true).toBool(); QCoreApplication::setAttribute(Qt::AA_DontShowIconsInMenus, !showIcons); } Qt::ToolButtonStyle KHintsSettings::toolButtonStyle(const KConfigGroup &cg) { const QString buttonStyle = readConfigValue(cg, QStringLiteral("ToolButtonStyle"), QStringLiteral("TextBesideIcon")).toString().toLower(); return buttonStyle == QLatin1String("textbesideicon") ? Qt::ToolButtonTextBesideIcon : buttonStyle == QLatin1String("icontextright") ? Qt::ToolButtonTextBesideIcon : buttonStyle == QLatin1String("textundericon") ? Qt::ToolButtonTextUnderIcon : buttonStyle == QLatin1String("icontextbottom") ? Qt::ToolButtonTextUnderIcon : buttonStyle == QLatin1String("textonly") ? Qt::ToolButtonTextOnly : Qt::ToolButtonIconOnly; } void KHintsSettings::loadPalettes() { qDeleteAll(m_palettes); m_palettes.clear(); if (mUsePortal && mKdeGlobalsPortal.contains(QStringLiteral("org.kde.kdeglobals.Colors:View"))) { // Construct a temporary KConfig file containing color setting so we can create a KColorScheme from it QTemporaryFile file; file.open(); KSharedConfigPtr tempConfig = KSharedConfig::openConfig(file.fileName(), KConfig::SimpleConfig); for (auto groupIt = mKdeGlobalsPortal.constBegin(); groupIt != mKdeGlobalsPortal.constEnd(); ++groupIt) { if (groupIt.key().startsWith(QStringLiteral("org.kde.kdeglobals.Colors:"))) { KConfigGroup tempGroup(tempConfig, groupIt.key().right(groupIt.key().length() - QStringLiteral("org.kde.kdeglobals.").length())); for (auto valueIt = groupIt.value().constBegin(); valueIt != groupIt.value().constEnd(); ++valueIt) { tempGroup.writeEntry(valueIt.key(), valueIt.value()); } } } m_palettes[QPlatformTheme::SystemPalette] = new QPalette(KColorScheme::createApplicationPalette(tempConfig)); } else if (mKdeGlobals->hasGroup("Colors:View")) { m_palettes[QPlatformTheme::SystemPalette] = new QPalette(KColorScheme::createApplicationPalette(mKdeGlobals)); } else { KConfigGroup cg(mKdeGlobals, "KDE"); const QString looknfeel = readConfigValue(cg, QStringLiteral("LookAndFeelPackage"), defaultLookAndFeelPackage).toString(); QString path = QStandardPaths::locate(QStandardPaths::GenericDataLocation, QStringLiteral("plasma/look-and-feel/") + looknfeel + QStringLiteral("/contents/colors")); if (!path.isEmpty()) { m_palettes[QPlatformTheme::SystemPalette] = new QPalette(KColorScheme::createApplicationPalette(KSharedConfig::openConfig(path))); return; } const QString scheme = readConfigValue(QStringLiteral("General"), QStringLiteral("ColorScheme"), QStringLiteral("BreezeLight")).toString(); path = QStandardPaths::locate(QStandardPaths::GenericDataLocation, QStringLiteral("color-schemes/") + scheme + QStringLiteral(".colors")); if (path.isEmpty()) { qWarning() << "Could not find color scheme" << scheme << "falling back to BreezeLight"; path = QStandardPaths::locate(QStandardPaths::GenericDataLocation, QStringLiteral("color-schemes/BreezeLight.colors")); } m_palettes[QPlatformTheme::SystemPalette] = new QPalette(KColorScheme::createApplicationPalette(KSharedConfig::openConfig(path))); } } Qt::ColorScheme KHintsSettings::determineColorScheme() const { Qt::ColorScheme colorScheme = Qt::ColorScheme::Unknown; if (auto *systemPalette = m_palettes[QPlatformTheme::SystemPalette]) { // Matches xdg-desktop-portal-kde readFdoColorScheme() const int windowBackgroundGray = qGray(systemPalette->window().color().rgb()); if (windowBackgroundGray < 192) { colorScheme = Qt::ColorScheme::Dark; } else { colorScheme = Qt::ColorScheme::Light; } } return colorScheme; } void KHintsSettings::updateCursorTheme() { KSharedConfig::Ptr inputConfig = KSharedConfig::openConfig(QStringLiteral("kcminputrc")); KConfigGroup mouseConfig(inputConfig, "Mouse"); const QString cursorTheme = readConfigValue(mouseConfig, QStringLiteral("cursorTheme"), QStringLiteral("breeze_cursors")).toString(); const int cursorSize = readConfigValue(mouseConfig, QStringLiteral("cursorSize"), 24).toInt(); m_hints[QPlatformTheme::MouseCursorTheme] = cursorTheme; m_hints[QPlatformTheme::MouseCursorSize] = QSize(cursorSize, cursorSize); } void KHintsSettings::updateX11CursorTheme() { #if HAVE_X11 if (QX11Info::isPlatformX11()) { KConfig config(QStringLiteral("kcminputrc")); KConfigGroup g(&config, "Mouse"); int size = g.readEntry("cursorSize", 24); const QString theme = g.readEntry("cursorTheme", QString()); // Note that in X11R7.1 and earlier, calling XcursorSetTheme() // with a NULL theme would cause Xcursor to use "default", but // in 7.2 and later it will cause it to revert to the theme that // was configured when the application was started. XcursorSetTheme(QX11Info::display(), theme.isNull() ? "default" : QFile::encodeName(theme).constData()); XcursorSetDefaultSize(QX11Info::display(), size); } #endif } void KHintsSettings::updatePortalSetting() { mKdeGlobalsPortal.clear(); QDBusMessage message = QDBusMessage::createMethodCall(QStringLiteral("org.freedesktop.portal.Desktop"), QStringLiteral("/org/freedesktop/portal/desktop"), QStringLiteral("org.freedesktop.portal.Settings"), QStringLiteral("ReadAll")); message << QStringList{QStringLiteral("org.kde.kdeglobals.*")}; // FIXME: async? QDBusMessage resultMessage = QDBusConnection::sessionBus().call(message); if (resultMessage.type() == QDBusMessage::ReplyMessage) { QDBusArgument dbusArgument = resultMessage.arguments().at(0).value<QDBusArgument>(); dbusArgument >> mKdeGlobalsPortal; } } #include "moc_khintssettings.cpp" 070701000000EB000081A40000000000000000000000016728A27700000B2C000000000000000000000000000000000000005D00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt6/src/platformtheme/khintssettings.h/* This file is part of the KDE libraries SPDX-FileCopyrightText: 2013 Alejandro Fiestas Olivares <afiestas@kde.org> SPDX-License-Identifier: LGPL-2.0-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ #ifndef KHINTS_SETTINGS_H #define KHINTS_SETTINGS_H #include <QDBusVariant> #include <QObject> #include <QVariant> #include <ksharedconfig.h> #include <qpa/qplatformtheme.h> class KConfigGroup; class QPalette; class KHintsSettings : public QObject { Q_OBJECT public: /** * An identifier for change signals. * @note Copied from KGlobalSettings */ enum ChangeType { PaletteChanged = 0, FontChanged, StyleChanged, SettingsChanged, IconChanged, CursorChanged, ToolbarStyleChanged, ClipboardConfigChanged, BlockShortcuts, NaturalSortingChanged, }; /** * Valid values for the settingsChanged signal * @note Copied from KGlobalSettings */ enum SettingsCategory { SETTINGS_MOUSE, SETTINGS_COMPLETION, SETTINGS_PATHS, SETTINGS_POPUPMENU, SETTINGS_QT, SETTINGS_SHORTCUTS, SETTINGS_LOCALE, SETTINGS_STYLE, }; explicit KHintsSettings(const KSharedConfig::Ptr &kdeglobals = KSharedConfig::Ptr()); ~KHintsSettings() override; inline QVariant hint(QPlatformTheme::ThemeHint hint) const { return m_hints[hint]; } inline QPalette *palette(QPlatformTheme::Palette type) const { return m_palettes[type]; } QStringList xdgIconThemePaths() const; inline Qt::ColorScheme colorScheme() const { return m_colorScheme; } private Q_SLOTS: void delayedDBusConnects(); void setupIconLoader(); void toolbarStyleChanged(); void slotNotifyChange(int type, int arg); void slotPortalSettingChanged(const QString &group, const QString &key, const QDBusVariant &value); private: QVariant readConfigValue(const QString &group, const QString &key, const QVariant &defaultValue); QVariant readConfigValue(const KConfigGroup &cg, const QString &key, const QVariant &defaultValue) const; void loadPalettes(); Qt::ColorScheme determineColorScheme() const; void iconChanged(int group); void updateQtSettings(KConfigGroup &cg); void updateShowIconsInMenuItems(KConfigGroup &cg); Qt::ToolButtonStyle toolButtonStyle(const KConfigGroup &cg); void updateCursorTheme(); void updateX11CursorTheme(); void updatePortalSetting(); QHash<QPlatformTheme::Palette, QPalette *> m_palettes; QHash<QPlatformTheme::ThemeHint, QVariant> m_hints; KSharedConfigPtr mKdeGlobals; QMap<QString, QVariantMap> mKdeGlobalsPortal; Qt::ColorScheme m_colorScheme = Qt::ColorScheme::Unknown; bool mUsePortal; }; #endif // KHINTS_SETTINGS_H 070701000000EC000081A40000000000000000000000016728A27700000255000000000000000000000000000000000000005C00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt6/src/platformtheme/kiodelegate.cpp// SPDX-License-Identifier: LGPL-2.0-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL // SPDX-FileCopyrightText: 2022 Harald Sitter <sitter@kde.org> #include "kiodelegate.h" #include "kioopenwith.h" KIOUiDelegate::KIOUiDelegate(KJobUiDelegate::Flags flags, QWidget *window) : KIO::JobUiDelegate(flags, window, {new KIOOpenWith(window, nullptr)}) { } KJobUiDelegate *KIOUiFactory::createDelegate() const { return new KIOUiDelegate; } KJobUiDelegate *KIOUiFactory::createDelegate(KJobUiDelegate::Flags flags, QWidget *window) const { return new KIOUiDelegate(flags, window); } 070701000000ED000081A40000000000000000000000016728A277000002DC000000000000000000000000000000000000005A00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt6/src/platformtheme/kiodelegate.h// SPDX-License-Identifier: LGPL-2.0-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL // SPDX-FileCopyrightText: 2022 Harald Sitter <sitter@kde.org> #pragma once #include <KIO/JobUiDelegate> #include <KIO/JobUiDelegateFactory> class KIOUiDelegate : public KIO::JobUiDelegate { public: explicit KIOUiDelegate(KJobUiDelegate::Flags flags = AutoHandlingDisabled, QWidget *window = nullptr); }; class KIOUiFactory : public KIO::JobUiDelegateFactory { public: KIOUiFactory() = default; // JobUiDelegateFactory has a protected ctor, we cannot `using` delegate to it. KJobUiDelegate *createDelegate() const override; KJobUiDelegate *createDelegate(KJobUiDelegate::Flags flags, QWidget *window) const override; }; 070701000000EE000081A40000000000000000000000016728A27700001706000000000000000000000000000000000000005C00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt6/src/platformtheme/kioopenwith.cpp// SPDX-License-Identifier: LGPL-2.0-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL // SPDX-FileCopyrightText: 2022 Harald Sitter <sitter@kde.org> #include "kioopenwith.h" #include <QDBusConnection> #include <QDBusMessage> #include <QDBusPendingCall> #include <QDBusPendingReply> #include <QWidget> #include <private/qgenericunixservices_p.h> #include <private/qguiapplication_p.h> #include <qpa/qplatformintegration.h> #include <KBuildSycocaProgressDialog> #include <KCompletion> #include <KIO/OpenWith> #include <KJob> #include <KJobWidgets> #include <KLocalizedString> #include <KMessageBox> #include <KSharedConfig> namespace { QString desktopPortalService() { return QStringLiteral("org.freedesktop.impl.portal.desktop.kde"); } QString desktopPortalPath() { return QStringLiteral("/org/freedesktop/portal/desktop"); } } // namespace KIOOpenWith::KIOOpenWith(QWidget *parentWidget, QObject *parent) : KIO::OpenWithHandlerInterface(parent) , m_parentWidget(parentWidget) { } void KIOOpenWith::promptUserForApplication(KJob *job, const QList<QUrl> &urls, const QString &mimeType) { Q_UNUSED(mimeType); QWidget *widget = nullptr; if (job) { widget = KJobWidgets::window(job); } if (!widget) { widget = m_parentWidget; } QString windowId; if (widget) { widget->window()->winId(); // ensure we have a handle so we can export a window (without this windowHandle() may be null) auto services = QGuiApplicationPrivate::platformIntegration()->services(); if (auto unixServices = dynamic_cast<QGenericUnixServices *>(services)) { windowId = unixServices->portalWindowIdentifier(widget->window()->windowHandle()); } } QDBusMessage message = QDBusMessage::createMethodCall(desktopPortalService(), desktopPortalPath(), QStringLiteral("org.freedesktop.impl.portal.AppChooser"), QStringLiteral("ChooseApplicationPrivate")); QStringList urlStrings; for (const auto &url : urls) { urlStrings << url.toString(); } KConfigGroup cg(KSharedConfig::openStateConfig(), QStringLiteral("Open-with settings")); // FIXME not used for anything inside the portal const auto completionMode = cg.readEntry("CompletionMode", int(KCompletion::CompletionNone)); const QStringList history = cg.readEntry("History", QStringList()); const QString lastChoice = cg.readEntry("LastChoice", QString()); message << windowId // << urlStrings // << QVariantMap{ {QStringLiteral("ask"), true}, // {QStringLiteral("last_choice"), lastChoice}, // {QStringLiteral("history"), history}, // {QStringLiteral("completionMode"), completionMode}, // }; QDBusPendingCall pendingCall = QDBusConnection::sessionBus().asyncCall(message, std::numeric_limits<int>::max()); auto watcher = new QDBusPendingCallWatcher(pendingCall, this); connect(watcher, &QDBusPendingCallWatcher::finished, this, [this, mimeType, cg, widget](QDBusPendingCallWatcher *watcher) mutable { watcher->deleteLater(); onApplicationChosen(*watcher, cg, mimeType, widget); }); } KService::Ptr KIOOpenWith::makeService(const QVariantMap &resultMap, const QString &mimeType, QWidget *widget) { constexpr auto saveNewApps = false; // NOTE: this isn't actually implemented in any UI const auto typedExec = resultMap.value(QStringLiteral("choice")).toString(); const auto remember = resultMap.value(QStringLiteral("remember")).toBool(); const auto openInTerminal = resultMap.value(QStringLiteral("openInTerminal")).toBool(); const auto lingerTerminal = resultMap.value(QStringLiteral("lingerTerminal")).toBool(); auto service = KService::serviceByDesktopName(typedExec); auto result = KIO::OpenWith::accept(service, typedExec, remember, mimeType, openInTerminal, lingerTerminal, saveNewApps); if (!result.accept) { KMessageBox::error(widget, result.error); return {}; } if (result.rebuildSycoca) { KBuildSycocaProgressDialog::rebuildKSycoca(widget); } return service; } void KIOOpenWith::onApplicationChosen(const QDBusPendingReply<uint, QVariantMap> &reply, KConfigGroup cg, const QString &mimeType, QWidget *widget) { if (reply.isError()) { qWarning() << "Couldn't get reply"; qWarning() << "Error: " << reply.error().message(); Q_EMIT canceled(); return; } if (reply.argumentAt<0>() != 0) { Q_EMIT canceled(); return; } auto resultMap = reply.argumentAt<1>(); const QString choice = resultMap.value(QStringLiteral("choice")).toString(); auto service = makeService(resultMap, mimeType, widget); if (!service) { // Message already displayed by makeService! Q_EMIT canceled(); return; } Q_ASSERT(service); Q_ASSERT(service->isValid()); if (!service || !service->isValid()) { KMessageBox::error(widget, i18n("Failed to launch for unknown reasons. Please try with a pre-existing application.")); Q_EMIT canceled(); return; } Q_EMIT serviceSelected(service); // Save new history QStringList history = cg.readEntry("History", QStringList()); if (history.contains(choice)) { history.removeAll(choice); } history.prepend(choice); constexpr auto arbitraryHistoryMax = 15; while (history.size() > arbitraryHistoryMax) { history.pop_back(); } cg.writeEntry("History", history); if (const auto name = service->desktopEntryName(); !name.isEmpty()) { cg.writeEntry("LastChoice", name); } } 070701000000EF000081A40000000000000000000000016728A27700000367000000000000000000000000000000000000005A00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt6/src/platformtheme/kioopenwith.h// SPDX-License-Identifier: LGPL-2.0-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL // SPDX-FileCopyrightText: 2022 Harald Sitter <sitter@kde.org> #pragma once #include <QDBusPendingReply> #include <QPointer> #include <KConfigGroup> #include <KIO/OpenWithHandlerInterface> class KIOOpenWith : public KIO::OpenWithHandlerInterface { Q_OBJECT public: explicit KIOOpenWith(QWidget *parentWidget, QObject *parent = nullptr); void promptUserForApplication(KJob *job, const QList<QUrl> &urls, const QString &mimeType) override; private Q_SLOTS: void onApplicationChosen(const QDBusPendingReply<uint, QVariantMap> &reply, KConfigGroup cg, const QString &mimeType, QWidget *widget); private: [[nodiscard]] KService::Ptr makeService(const QVariantMap &resultMap, const QString &mimeType, QWidget *widget); QPointer<QWidget> m_parentWidget; }; 070701000000F0000081A40000000000000000000000016728A27700001C0B000000000000000000000000000000000000006400000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt6/src/platformtheme/kwaylandintegration.cpp/* This file is part of the KDE libraries SPDX-FileCopyrightText: 2015 Martin Gräßlin <mgraesslin@kde.org> SPDX-License-Identifier: LGPL-2.0-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ #include "kwaylandintegration.h" #include <QExposeEvent> #include <QGuiApplication> #include <QWindow> #include <qpa/qplatformwindow_p.h> #include "qwayland-appmenu.h" #include "qwayland-server-decoration-palette.h" #include <KWindowEffects> static const QByteArray s_schemePropertyName = QByteArrayLiteral("KDE_COLOR_SCHEME_PATH"); static const QByteArray s_blurBehindPropertyName = QByteArrayLiteral("ENABLE_BLUR_BEHIND_HINT"); class AppMenuManager : public QWaylandClientExtensionTemplate<AppMenuManager>, public QtWayland::org_kde_kwin_appmenu_manager { Q_OBJECT public: AppMenuManager() : QWaylandClientExtensionTemplate<AppMenuManager>(2) { initialize(); } ~AppMenuManager() { if (isActive() && QWaylandClientExtension::version() >= ORG_KDE_KWIN_APPMENU_MANAGER_RELEASE_SINCE_VERSION) { release(); } } }; class AppMenu : public QtWayland::org_kde_kwin_appmenu { public: using org_kde_kwin_appmenu::org_kde_kwin_appmenu; ~AppMenu() { release(); } }; class ServerSideDecorationPaletteManager : public QWaylandClientExtensionTemplate<ServerSideDecorationPaletteManager>, public QtWayland::org_kde_kwin_server_decoration_palette_manager { Q_OBJECT public: ServerSideDecorationPaletteManager() : QWaylandClientExtensionTemplate<ServerSideDecorationPaletteManager>(1) { initialize(); } ~ServerSideDecorationPaletteManager() override { if (isActive()) { org_kde_kwin_server_decoration_palette_manager_destroy(object()); } } }; class ServerSideDecorationPalette : public QtWayland::org_kde_kwin_server_decoration_palette { public: using org_kde_kwin_server_decoration_palette::org_kde_kwin_server_decoration_palette; ~ServerSideDecorationPalette() override { release(); } }; Q_DECLARE_METATYPE(AppMenu *); Q_DECLARE_METATYPE(ServerSideDecorationPalette *); KWaylandIntegration::KWaylandIntegration(KdePlatformTheme *platformTheme) : QObject() , m_platformTheme(platformTheme) { QCoreApplication::instance()->installEventFilter(this); } KWaylandIntegration::~KWaylandIntegration() = default; bool KWaylandIntegration::isRelevantTopLevel(QWindow *w) { if (!w || w->parent()) { return false; } // ignore windows that map to XdgPopup if (w->type() == Qt::ToolTip || w->type() == Qt::Popup) { return false; } return true; } bool KWaylandIntegration::eventFilter(QObject *watched, QEvent *event) { if (event->type() == QEvent::ApplicationPaletteChange) { if (watched != QGuiApplication::instance()) { return false; } const auto topLevelWindows = QGuiApplication::topLevelWindows(); for (QWindow *w : topLevelWindows) { if (isRelevantTopLevel(w)) { installColorScheme(w); } } } else if (event->type() == QEvent::PlatformSurface) { QWindow *w = qobject_cast<QWindow *>(watched); QPlatformSurfaceEvent *pe = static_cast<QPlatformSurfaceEvent *>(event); if (w && !w->flags().testFlag(Qt::ForeignWindow) && pe->surfaceEventType() == QPlatformSurfaceEvent::SurfaceCreated) { if (auto waylandWindow = w->nativeInterface<QNativeInterface::Private::QWaylandWindow>()) { connect(waylandWindow, &QNativeInterface::Private::QWaylandWindow::surfaceCreated, this, [this, w] { shellSurfaceCreated(w); }); connect(waylandWindow, &QNativeInterface::Private::QWaylandWindow::surfaceDestroyed, this, [this, w] { shellSurfaceDestroyed(w); }); if (waylandWindow->surface()) { shellSurfaceCreated(w); } } } } return false; } void KWaylandIntegration::shellSurfaceCreated(QWindow *w) { if (!isRelevantTopLevel(w)) { return; } // set colorscheme hint if (qApp->property(s_schemePropertyName.constData()).isValid()) { installColorScheme(w); } const auto blurBehindProperty = w->property(s_blurBehindPropertyName.constData()); if (blurBehindProperty.isValid()) { KWindowEffects::enableBlurBehind(w, blurBehindProperty.toBool()); } // create deco wl_surface *s = surfaceFromWindow(w); if (!s) { return; } if (!m_appMenuManager) { m_appMenuManager.reset(new AppMenuManager()); } if (m_appMenuManager->isActive()) { auto menu = new AppMenu(m_appMenuManager->create(s)); w->setProperty("org.kde.plasma.integration.appmenu", QVariant::fromValue(menu)); if (auto it = m_dbusMenuInfos.constFind(w); it != m_dbusMenuInfos.cend()) { menu->set_address(it->serviceName, it->objectPath); } } } void KWaylandIntegration::shellSurfaceDestroyed(QWindow *w) { auto appMenu = w->property("org.kde.plasma.integration.appmenu").value<AppMenu *>(); if (appMenu) { delete appMenu; } w->setProperty("org.kde.plasma.integration.appmenu", QVariant()); auto decoPallete = w->property("org.kde.plasma.integration.palette").value<ServerSideDecorationPalette *>(); if (decoPallete) { delete decoPallete; } w->setProperty("org.kde.plasma.integration.palette", QVariant()); } void KWaylandIntegration::installColorScheme(QWindow *w) { if (!m_paletteManager) { m_paletteManager.reset(new ServerSideDecorationPaletteManager()); } if (!m_paletteManager->isActive()) { return; } auto palette = w->property("org.kde.plasma.integration.palette").value<ServerSideDecorationPalette *>(); if (!palette) { auto s = surfaceFromWindow(w); if (!s) { return; } palette = new ServerSideDecorationPalette(m_paletteManager->create(s)); w->setProperty("org.kde.plasma.integration.palette", QVariant::fromValue(palette)); } if (palette) { palette->set_palette(qApp->property(s_schemePropertyName.constData()).toString()); } } void KWaylandIntegration::setAppMenu(QWindow *window, const QString &serviceName, const QString &objectPath) { auto menu = window->property("org.kde.plasma.integration.appmenu").value<AppMenu *>(); if (menu) { menu->set_address(serviceName, objectPath); } m_dbusMenuInfos.insert(window, {serviceName, objectPath}); connect(window, &QWindow::destroyed, this, [this, window] { m_dbusMenuInfos.remove(window); }); } wl_surface *KWaylandIntegration::surfaceFromWindow(QWindow *window) { auto waylandWindow = window->nativeInterface<QNativeInterface::Private::QWaylandWindow>(); if (!waylandWindow) { return nullptr; } return waylandWindow->surface(); } #include "kwaylandintegration.moc" #include "moc_kwaylandintegration.cpp" 070701000000F1000081A40000000000000000000000016728A2770000059F000000000000000000000000000000000000006200000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt6/src/platformtheme/kwaylandintegration.h/* This file is part of the KDE libraries SPDX-FileCopyrightText: 2015 Martin Gräßlin <mgraesslin@kde.org> SPDX-License-Identifier: LGPL-2.0-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ #ifndef KWAYLANDINTEGRATION_H #define KWAYLANDINTEGRATION_H #include "kdeplatformtheme.h" #include <QHash> #include <QObject> #include <QtWaylandClient/QWaylandClientExtensionTemplate> class QWindow; class AppMenuManager; class ServerSideDecorationPaletteManager; class KWaylandIntegration : public QObject { Q_OBJECT public: explicit KWaylandIntegration(KdePlatformTheme *platformTheme); ~KWaylandIntegration() override; void setAppMenu(QWindow *window, const QString &serviceName, const QString &objectPath); void setPalette(QWindow *window, const QString &paletteName); bool eventFilter(QObject *watched, QEvent *event) override; private: static bool isRelevantTopLevel(QWindow *w); static struct wl_surface *surfaceFromWindow(QWindow *w); void shellSurfaceCreated(QWindow *w); void shellSurfaceDestroyed(QWindow *w); void installColorScheme(QWindow *w); QScopedPointer<AppMenuManager> m_appMenuManager; QScopedPointer<ServerSideDecorationPaletteManager> m_paletteManager; struct DBusMenuInfo { QString serviceName; QString objectPath; }; QHash<QWindow *, DBusMenuInfo> m_dbusMenuInfos; KdePlatformTheme *m_platformTheme; }; #endif 070701000000F2000081A40000000000000000000000016728A2770000031C000000000000000000000000000000000000005500000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt6/src/platformtheme/main.cpp/* This file is part of the KDE libraries SPDX-FileCopyrightText: 2013 Kevin Ottens <ervin+bluesystems@kde.org> SPDX-License-Identifier: LGPL-2.0-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ #include <qpa/qplatformthemeplugin.h> #include "kdeplatformtheme.h" class KdePlatformThemePlugin : public QPlatformThemePlugin { Q_OBJECT Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QPA.QPlatformThemeFactoryInterface.5.1" FILE "kdeplatformtheme.json") public: KdePlatformThemePlugin(QObject *parent = nullptr) : QPlatformThemePlugin(parent) { } QPlatformTheme *create(const QString &key, const QStringList ¶mList) override { Q_UNUSED(key) Q_UNUSED(paramList) return new KdePlatformTheme; } }; #include "main.moc" 070701000000F3000081A40000000000000000000000016728A2770000047F000000000000000000000000000000000000006E00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt6/src/platformtheme/org.kde.StatusNotifierWatcher.xml<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd"> <node> <interface name="org.kde.StatusNotifierWatcher"> <!-- methods --> <method name="RegisterStatusNotifierItem"> <arg name="service" type="s" direction="in"/> </method> <method name="RegisterStatusNotifierHost"> <arg name="service" type="s" direction="in"/> </method> <!-- properties --> <property name="RegisteredStatusNotifierItems" type="as" access="read"> <annotation name="org.qtproject.QtDBus.QtTypeName.Out0" value="QStringList"/> </property> <property name="IsStatusNotifierHostRegistered" type="b" access="read"/> <property name="ProtocolVersion" type="i" access="read"/> <!-- signals --> <signal name="StatusNotifierItemRegistered"> <arg type="s"/> </signal> <signal name="StatusNotifierItemUnregistered"> <arg type="s"/> </signal> <signal name="StatusNotifierHostRegistered"> </signal> <signal name="StatusNotifierHostUnregistered"> </signal> </interface> </node> 070701000000F4000081A40000000000000000000000016728A27700000697000000000000000000000000000000000000006200000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt6/src/platformtheme/qdbusmenubarwrapper.h/* SPDX-FileCopyrightText: 2023 David Redondo <kde@david-redondo.de> SPDX-License-Identifier: LGPL-2.0-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ #ifndef QDBUSMENUBARWRAPPER_H #define QDBUSMENUBARWRAPPER_H #include <QString> #include <qpa/qplatformmenu.h> #include <memory> class QDBusMenuBarWrapper : public QPlatformMenuBar { Q_OBJECT public: QDBusMenuBarWrapper(QPlatformMenuBar *wrap) : wrap{wrap} { } ~QDBusMenuBarWrapper() { } QPlatformMenu *createMenu() const override { return wrap->createMenu(); } void insertMenu(QPlatformMenu *menu, QPlatformMenu *before) override { wrap->insertMenu(menu, before); } void removeMenu(QPlatformMenu *menu) override { wrap->removeMenu(menu); } void syncMenu(QPlatformMenu *menuItem) override { wrap->syncMenu(menuItem); } QPlatformMenu *menuForTag(quintptr tag) const override { return wrap->menuForTag(tag); } void handleReparent(QWindow *newParentWindow) override { wrap->handleReparent(newParentWindow); // matching QDBusMenuBar, it increments the id everytime it gets a new valid parent if (newParentWindow) { ++menuBarId; } window = newParentWindow; Q_EMIT windowChanged(newParentWindow, window); } QString objectPath() { return QStringLiteral("/MenuBar/%1").arg(menuBarId); } Q_SIGNAL void windowChanged(QWindow *newWindow, QWindow *oldWindow); QWindow *window = nullptr; private: static inline uint menuBarId = 0; std::unique_ptr<QPlatformMenuBar> wrap; }; #endif 070701000000F5000081A40000000000000000000000016728A27700000AB7000000000000000000000000000000000000006800000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt6/src/platformtheme/qtquickrenderersettings.cpp/* SPDX-FileCopyrightText: 2016 David Edmundson <davidedmundson@kde.org> SPDX-FileCopyrightText: 2020 Piotr Henryk Dabrowski <phd@phd.re> SPDX-FileCopyrightText: 2021 David Redondo <kde@david-redondo.de> SPDX-License-Identifier: LGPL-2.0-or-later */ #include "renderersettings.h" #include <QGuiApplication> #include <QLibraryInfo> #include <QOffscreenSurface> #include <QOpenGLContext> #include <QOpenGLFunctions> #include <QQuickWindow> #include <QSurfaceFormat> #include <QVersionNumber> /** * If QtQuick is configured (QQuickWindow::sceneGraphBackend()) to use the OpenGL backend, * check if it is supported or otherwise reconfigure QtQuick to fallback to software mode. * This function is called by init(). * * @returns true if the selected backend is supported, false on fallback to software mode. */ static bool checkBackend(QOpenGLContext &checkContext) { if (!QQuickWindow::sceneGraphBackend().isEmpty()) { return true; // QtQuick is not configured to use the OpenGL backend } // kwin wayland has it's own QPA, it is unable to create a GL context at this point. // KF6 TODO, drop this . The issue will be resolved in future kwin releases. QString platformName = qApp->platformName(); if (platformName == QLatin1String("wayland-org.kde.kwin.qpa")) { return true; } #ifdef QT_NO_OPENGL bool ok = false; #else bool ok = checkContext.create(); #endif return ok; } void initializeRendererSessions() { PlasmaQtQuickSettings::RendererSettings s; QSGRendererInterface::GraphicsApi graphicsApi = QSGRendererInterface::Unknown; switch (s.sceneGraphBackend()) { case PlasmaQtQuickSettings::RendererSettings::software: graphicsApi = QSGRendererInterface::Software; break; case PlasmaQtQuickSettings::RendererSettings::opengl: graphicsApi = QSGRendererInterface::OpenGL; break; case PlasmaQtQuickSettings::RendererSettings::vulkan: graphicsApi = QSGRendererInterface::Vulkan; break; default: QOpenGLContext checkContext; if (!checkBackend(checkContext)) { qWarning("Warning: fallback to QtQuick software backend."); graphicsApi = QSGRendererInterface::Software; } } if (graphicsApi != QSGRendererInterface::Unknown) { QQuickWindow::setGraphicsApi(graphicsApi); } if (!qEnvironmentVariableIsSet("QSG_RENDER_LOOP")) { if (s.renderLoop() == PlasmaQtQuickSettings::RendererSettings::basic) { qputenv("QSG_RENDER_LOOP", "basic"); } } } // Because this file gets loaded in the platform plugin, the QGuiApplication already exists Q_COREAPP_STARTUP_FUNCTION(initializeRendererSessions) 070701000000F6000081A40000000000000000000000016728A277000031E9000000000000000000000000000000000000006C00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt6/src/platformtheme/qxdgdesktopportalfiledialog.cpp/* SPDX-FileCopyrightText: 2017-2018 Red Hat Inc Contact: https://www.qt.io/licensing/ This file is part of the plugins of the Qt Toolkit. SPDX-License-Identifier: LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KFQF-Accepted-GPL OR LicenseRef-Qt-Commercial */ #include "qxdgdesktopportalfiledialog_p.h" #include <QDBusConnection> #include <QDBusMessage> #include <QDBusMetaType> #include <QDBusPendingCall> #include <QDBusPendingCallWatcher> #include <QDBusPendingReply> #include <QEventLoop> #include <QRegularExpression> #include <QFile> #include <QMetaType> #include <QMimeDatabase> #include <QMimeType> #include <QRandomGenerator> #include <QWindow> QT_BEGIN_NAMESPACE QDBusArgument &operator<<(QDBusArgument &arg, const QXdgDesktopPortalFileDialog::FilterCondition &filterCondition) { arg.beginStructure(); arg << filterCondition.type << filterCondition.pattern; arg.endStructure(); return arg; } const QDBusArgument &operator>>(const QDBusArgument &arg, QXdgDesktopPortalFileDialog::FilterCondition &filterCondition) { uint type; QString filterPattern; arg.beginStructure(); arg >> type >> filterPattern; filterCondition.type = (QXdgDesktopPortalFileDialog::ConditionType)type; filterCondition.pattern = filterPattern; arg.endStructure(); return arg; } QDBusArgument &operator<<(QDBusArgument &arg, const QXdgDesktopPortalFileDialog::Filter filter) { arg.beginStructure(); arg << filter.name << filter.filterConditions; arg.endStructure(); return arg; } const QDBusArgument &operator>>(const QDBusArgument &arg, QXdgDesktopPortalFileDialog::Filter &filter) { QString name; QXdgDesktopPortalFileDialog::FilterConditionList filterConditions; arg.beginStructure(); arg >> name >> filterConditions; filter.name = name; filter.filterConditions = filterConditions; arg.endStructure(); return arg; } class QXdgDesktopPortalFileDialogPrivate { public: QXdgDesktopPortalFileDialogPrivate(QPlatformFileDialogHelper *nativeFileDialog) : nativeFileDialog(nativeFileDialog) { } WId winId = 0; bool modal = false; bool multipleFiles = false; bool selectDirectory = false; bool saveFile = false; QString acceptLabel; QUrl directory; QString title; QStringList nameFilters; QStringList mimeTypesFilters; QList<QUrl> selectedFiles; QPlatformFileDialogHelper *nativeFileDialog = nullptr; }; QXdgDesktopPortalFileDialog::QXdgDesktopPortalFileDialog(QPlatformFileDialogHelper *nativeFileDialog) : QPlatformFileDialogHelper() , d_ptr(new QXdgDesktopPortalFileDialogPrivate(nativeFileDialog)) { Q_D(QXdgDesktopPortalFileDialog); if (d->nativeFileDialog) { connect(d->nativeFileDialog, SIGNAL(accept()), this, SIGNAL(accept())); connect(d->nativeFileDialog, SIGNAL(reject()), this, SIGNAL(reject())); } } QXdgDesktopPortalFileDialog::~QXdgDesktopPortalFileDialog() { } void QXdgDesktopPortalFileDialog::initializeDialog() { Q_D(QXdgDesktopPortalFileDialog); if (d->nativeFileDialog) d->nativeFileDialog->setOptions(options()); if (options()->fileMode() == QFileDialogOptions::ExistingFiles) d->multipleFiles = true; if (options()->fileMode() == QFileDialogOptions::Directory || options()->fileMode() == QFileDialogOptions::DirectoryOnly) { d->selectDirectory = true; } if (options()->isLabelExplicitlySet(QFileDialogOptions::Accept)) d->acceptLabel = options()->labelText(QFileDialogOptions::Accept); if (!options()->windowTitle().isEmpty()) d->title = options()->windowTitle(); if (options()->acceptMode() == QFileDialogOptions::AcceptSave) d->saveFile = true; if (!options()->nameFilters().isEmpty()) d->nameFilters = options()->nameFilters(); if (!options()->mimeTypeFilters().isEmpty()) d->mimeTypesFilters = options()->mimeTypeFilters(); setDirectory(options()->initialDirectory()); } void QXdgDesktopPortalFileDialog::openPortal() { Q_D(const QXdgDesktopPortalFileDialog); QDBusMessage message = QDBusMessage::createMethodCall(QStringLiteral("org.freedesktop.portal.Desktop"), QStringLiteral("/org/freedesktop/portal/desktop"), QStringLiteral("org.freedesktop.portal.FileChooser"), d->saveFile ? QStringLiteral("SaveFile") : QStringLiteral("OpenFile")); QString parentWindowId = QStringLiteral("x11:") + QString::number(d->winId, 16); QVariantMap options; if (!d->acceptLabel.isEmpty()) options.insert(QStringLiteral("accept_label"), d->acceptLabel); options.insert(QStringLiteral("modal"), d->modal); options.insert(QStringLiteral("multiple"), d->multipleFiles); options.insert(QStringLiteral("directory"), d->selectDirectory); if (d->saveFile) { if (!d->directory.isEmpty()) options.insert(QStringLiteral("current_folder"), QFile::encodeName(d->directory.toLocalFile()).append('\0')); if (!d->selectedFiles.isEmpty()) options.insert(QStringLiteral("current_file"), QFile::encodeName(d->selectedFiles.first().toLocalFile()).append('\0')); } // Insert filters qDBusRegisterMetaType<FilterCondition>(); qDBusRegisterMetaType<FilterConditionList>(); qDBusRegisterMetaType<Filter>(); qDBusRegisterMetaType<FilterList>(); FilterList filterList; if (!d->mimeTypesFilters.isEmpty()) { for (const QString &mimeTypefilter : d->mimeTypesFilters) { QMimeDatabase mimeDatabase; QMimeType mimeType = mimeDatabase.mimeTypeForName(mimeTypefilter); // Creates e.g. (1, "image/png") FilterCondition filterCondition; filterCondition.type = MimeType; filterCondition.pattern = mimeTypefilter; // Creates e.g. [((1, "image/png"))] FilterConditionList filterConditions; filterConditions << filterCondition; // Creates e.g. [("Images", [((1, "image/png"))])] Filter filter; filter.name = mimeType.comment(); filter.filterConditions = filterConditions; filterList << filter; } } else if (!d->nameFilters.isEmpty()) { for (const QString &filter : d->nameFilters) { // Do parsing: // Supported format is ("Images (*.png *.jpg)") QRegularExpression regexp(QString::fromLatin1(QPlatformFileDialogHelper::filterRegExp)); QRegularExpressionMatch match = regexp.match(filter); if (match.hasMatch()) { QString userVisibleName = match.captured(1); QStringList filterStrings = match.captured(2).split(QLatin1Char(' '), Qt::SkipEmptyParts); FilterConditionList filterConditions; for (const QString &filterString : std::as_const(filterStrings)) { FilterCondition filterCondition; filterCondition.type = GlobalPattern; filterCondition.pattern = filterString; filterConditions << filterCondition; } Filter filter; filter.name = userVisibleName; filter.filterConditions = filterConditions; filterList << filter; } } } if (!filterList.isEmpty()) options.insert(QStringLiteral("filters"), QVariant::fromValue(filterList)); options.insert(QStringLiteral("handle_token"), QStringLiteral("qt%1").arg(QRandomGenerator::global()->generate())); // TODO choices a(ssa(ss)s) // List of serialized combo boxes to add to the file chooser. message << parentWindowId << d->title << options; QDBusPendingCall pendingCall = QDBusConnection::sessionBus().asyncCall(message); QDBusPendingCallWatcher *watcher = new QDBusPendingCallWatcher(pendingCall); connect(watcher, &QDBusPendingCallWatcher::finished, this, [this](QDBusPendingCallWatcher *watcher) { QDBusPendingReply<QDBusObjectPath> reply = *watcher; if (reply.isError()) { Q_EMIT reject(); } else { QDBusConnection::sessionBus().connect({}, reply.value().path(), QStringLiteral("org.freedesktop.portal.Request"), QStringLiteral("Response"), this, SLOT(gotResponse(uint, QVariantMap))); } }); } bool QXdgDesktopPortalFileDialog::defaultNameFilterDisables() const { return false; } void QXdgDesktopPortalFileDialog::setDirectory(const QUrl &directory) { Q_D(QXdgDesktopPortalFileDialog); if (d->nativeFileDialog) { d->nativeFileDialog->setOptions(options()); d->nativeFileDialog->setDirectory(directory); } d->directory = directory; } QUrl QXdgDesktopPortalFileDialog::directory() const { Q_D(const QXdgDesktopPortalFileDialog); if (d->nativeFileDialog && (options()->fileMode() == QFileDialogOptions::Directory || options()->fileMode() == QFileDialogOptions::DirectoryOnly)) return d->nativeFileDialog->directory(); return d->directory; } void QXdgDesktopPortalFileDialog::selectFile(const QUrl &filename) { Q_D(QXdgDesktopPortalFileDialog); if (d->nativeFileDialog) { d->nativeFileDialog->setOptions(options()); d->nativeFileDialog->selectFile(filename); } d->selectedFiles << filename; } QList<QUrl> QXdgDesktopPortalFileDialog::selectedFiles() const { Q_D(const QXdgDesktopPortalFileDialog); if (d->nativeFileDialog && (options()->fileMode() == QFileDialogOptions::Directory || options()->fileMode() == QFileDialogOptions::DirectoryOnly)) return d->nativeFileDialog->selectedFiles(); return d->selectedFiles; } void QXdgDesktopPortalFileDialog::setFilter() { Q_D(QXdgDesktopPortalFileDialog); if (d->nativeFileDialog) { d->nativeFileDialog->setOptions(options()); d->nativeFileDialog->setFilter(); } } void QXdgDesktopPortalFileDialog::selectNameFilter(const QString &filter) { Q_D(QXdgDesktopPortalFileDialog); if (d->nativeFileDialog) { d->nativeFileDialog->setOptions(options()); d->nativeFileDialog->selectNameFilter(filter); } } QString QXdgDesktopPortalFileDialog::selectedNameFilter() const { // TODO return QString(); } void QXdgDesktopPortalFileDialog::exec() { Q_D(QXdgDesktopPortalFileDialog); if (d->nativeFileDialog && (options()->fileMode() == QFileDialogOptions::Directory || options()->fileMode() == QFileDialogOptions::DirectoryOnly)) { d->nativeFileDialog->exec(); return; } // HACK we have to avoid returning until we emit that the dialog was accepted or rejected QEventLoop loop; QObject::connect(this, &QXdgDesktopPortalFileDialog::accept, &loop, &QEventLoop::quit); QObject::connect(this, &QXdgDesktopPortalFileDialog::reject, &loop, &QEventLoop::quit); loop.exec(); } void QXdgDesktopPortalFileDialog::hide() { Q_D(QXdgDesktopPortalFileDialog); if (d->nativeFileDialog) d->nativeFileDialog->hide(); } bool QXdgDesktopPortalFileDialog::show(Qt::WindowFlags windowFlags, Qt::WindowModality windowModality, QWindow *parent) { Q_D(QXdgDesktopPortalFileDialog); initializeDialog(); d->modal = windowModality != Qt::NonModal; d->winId = parent ? parent->winId() : 0; if (d->nativeFileDialog && (options()->fileMode() == QFileDialogOptions::Directory || options()->fileMode() == QFileDialogOptions::DirectoryOnly)) return d->nativeFileDialog->show(windowFlags, windowModality, parent); openPortal(); return true; } void QXdgDesktopPortalFileDialog::gotResponse(uint response, const QVariantMap &results) { Q_D(QXdgDesktopPortalFileDialog); if (!response) { if (results.contains(QStringLiteral("uris"))) { const QStringList uris = results.value(QStringLiteral("uris")).toStringList(); d->selectedFiles.clear(); d->selectedFiles.reserve(uris.size()); for (const QString &uri : uris) { // uris are expected to have proper "file:" scheme set d->selectedFiles.append(QUrl(uri)); } } Q_EMIT accept(); } else { Q_EMIT reject(); } } QT_END_NAMESPACE #include "moc_qxdgdesktopportalfiledialog_p.cpp" 070701000000F7000081A40000000000000000000000016728A2770000097E000000000000000000000000000000000000006C00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt6/src/platformtheme/qxdgdesktopportalfiledialog_p.h/* SPDX-FileCopyrightText: 2017-2018 Red Hat Inc Contact: https://www.qt.io/licensing/ This file is part of the plugins of the Qt Toolkit. SPDX-License-Identifier: LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KFQF-Accepted-GPL OR LicenseRef-Qt-Commercial */ #ifndef QXDGDESKTOPPORTALFILEDIALOG_P_H #define QXDGDESKTOPPORTALFILEDIALOG_P_H #include <QVector> #include <qpa/qplatformdialoghelper.h> QT_BEGIN_NAMESPACE class QXdgDesktopPortalFileDialogPrivate; class QXdgDesktopPortalFileDialog : public QPlatformFileDialogHelper { Q_OBJECT Q_DECLARE_PRIVATE(QXdgDesktopPortalFileDialog) public: enum ConditionType : uint { GlobalPattern = 0, MimeType = 1, }; // Filters a(sa(us)) // Example: [('Images', [(0, '*.ico'), (1, 'image/png')]), ('Text', [(0, '*.txt')])] struct FilterCondition { ConditionType type; QString pattern; // E.g. '*ico' or 'image/png' }; typedef QVector<FilterCondition> FilterConditionList; struct Filter { QString name; // E.g. 'Images' or 'Text FilterConditionList filterConditions; // E.g. [(0, '*.ico'), (1, 'image/png')] or [(0, '*.txt')] }; typedef QVector<Filter> FilterList; QXdgDesktopPortalFileDialog(QPlatformFileDialogHelper *nativeFileDialog = nullptr); ~QXdgDesktopPortalFileDialog(); bool defaultNameFilterDisables() const override; QUrl directory() const override; void setDirectory(const QUrl &directory) override; void selectFile(const QUrl &filename) override; QList<QUrl> selectedFiles() const override; void setFilter() override; void selectNameFilter(const QString &filter) override; QString selectedNameFilter() const override; void exec() override; bool show(Qt::WindowFlags windowFlags, Qt::WindowModality windowModality, QWindow *parent) override; void hide() override; private Q_SLOTS: void gotResponse(uint response, const QVariantMap &results); private: void initializeDialog(); void openPortal(); QScopedPointer<QXdgDesktopPortalFileDialogPrivate> d_ptr; }; QT_END_NAMESPACE Q_DECLARE_METATYPE(QXdgDesktopPortalFileDialog::FilterCondition) Q_DECLARE_METATYPE(QXdgDesktopPortalFileDialog::FilterConditionList) Q_DECLARE_METATYPE(QXdgDesktopPortalFileDialog::Filter) Q_DECLARE_METATYPE(QXdgDesktopPortalFileDialog::FilterList) #endif // QXDGDESKTOPPORTALFILEDIALOG_P_H 070701000000F8000081A40000000000000000000000016728A2770000048E000000000000000000000000000000000000005A00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt6/src/platformtheme/renderer.kcfg<?xml version="1.0" encoding="UTF-8" ?> <kcfg xmlns="http://www.kde.org/standards/kcfg/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.kde.org/standards/kcfg/1.0 http://www.kde.org/standards/kcfg/1.0/kcfg.xsd" > <kcfgfile arg="true" /> <group name="QtQuickRendererSettings"> <entry name="RenderLoop" type="Enum"> <choices name="RenderLoopType"> <choice name="automaticloop" /> <choice name="basic" /> <choice name="threaded" /> </choices> <default>automaticloop</default> </entry> <entry name="SceneGraphBackend" type="Enum"> <choices name="SceneGraphBackendType"> <choice name="automaticbackend" /> <choice name="opengl" /> <choice name="software" /> <choice name="vulkan" /> </choices> <default>automaticbackend</default> </entry> <entry name="ForceGlCoreProfile" type="Bool"> <default>false</default> </entry> </group> </kcfg> 070701000000F9000081A40000000000000000000000016728A2770000006E000000000000000000000000000000000000006300000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt6/src/platformtheme/renderersettings.kcfgcFile=renderer.kcfg NameSpace=PlasmaQtQuickSettings ClassName=RendererSettings UseEnumTypes=true Mutators=true 070701000000FA000081A40000000000000000000000016728A27700001829000000000000000000000000000000000000005F00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt6/src/platformtheme/x11integration.cpp/* This file is part of the KDE libraries SPDX-FileCopyrightText: 2015 Martin Gräßlin <mgraesslin@kde.org> SPDX-FileCopyrightText: 2016 Marco Martin <mart@kde.org> SPDX-License-Identifier: LGPL-2.0-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ #include "x11integration.h" #include <NETWM> #include <QCoreApplication> #include <QGuiApplication> #include <QPlatformSurfaceEvent> #include <QWindow> #include <private/qtx11extras_p.h> #include <KWindowEffects> static const char s_schemePropertyName[] = "KDE_COLOR_SCHEME_PATH"; static const QByteArray s_blurBehindPropertyName = QByteArrayLiteral("ENABLE_BLUR_BEHIND_HINT"); X11Integration::X11Integration(KdePlatformTheme *platformTheme) : QObject() , m_platformTheme(platformTheme) { } X11Integration::~X11Integration() = default; void X11Integration::init() { QCoreApplication::instance()->installEventFilter(this); } bool X11Integration::eventFilter(QObject *watched, QEvent *event) { // the drag and drop window should NOT be a tooltip // https://bugreports.qt.io/browse/QTBUG-52560 if (event->type() == QEvent::Show && watched->inherits("QShapedPixmapWindow")) { // static cast should be safe there QWindow *w = static_cast<QWindow *>(watched); NETWinInfo info(QX11Info::connection(), w->winId(), QX11Info::appRootWindow(), NET::WMWindowType, NET::Properties2()); info.setWindowType(NET::DNDIcon); // TODO: does this flash the xcb connection? } if (event->type() == QEvent::PlatformSurface) { if (QWindow *w = qobject_cast<QWindow *>(watched)) { QPlatformSurfaceEvent *pe = static_cast<QPlatformSurfaceEvent *>(event); if (!w->flags().testFlag(Qt::ForeignWindow)) { if (pe->surfaceEventType() == QPlatformSurfaceEvent::SurfaceCreated) { auto flags = w->flags(); // A recent KWin change means it now follows WindowButtonHints on X11 // Some KDE applications use QDialogs for their main window, // which means the KWin now surfaces those windows having the wrong hints. // To avoid clients changing, we adjust flags here. // This is documented as being only available on some platforms, // so altering is relatively safe. if (flags.testFlag(Qt::Dialog) && !flags.testFlag(Qt::CustomizeWindowHint)) { if (!w->transientParent()) { flags.setFlag(Qt::WindowCloseButtonHint); flags.setFlag(Qt::WindowMinMaxButtonsHint); } w->setFlags(flags); } if (qApp->property(s_schemePropertyName).isValid()) { installColorScheme(w); } const auto blurBehindProperty = w->property(s_blurBehindPropertyName.constData()); if (blurBehindProperty.isValid()) { KWindowEffects::enableBlurBehind(w, blurBehindProperty.toBool()); } installDesktopFileName(w); } } } } if (event->type() == QEvent::ApplicationPaletteChange) { const auto topLevelWindows = QGuiApplication::topLevelWindows(); for (QWindow *w : topLevelWindows) { installColorScheme(w); } } return false; } void X11Integration::installColorScheme(QWindow *w) { if (!w->isTopLevel() || !w->handle() /* e.g. WebEngine's QQuickWindow */) { return; } static xcb_atom_t atom = XCB_ATOM_NONE; xcb_connection_t *c = QX11Info::connection(); if (atom == XCB_ATOM_NONE) { const QByteArray name = QByteArrayLiteral("_KDE_NET_WM_COLOR_SCHEME"); const xcb_intern_atom_cookie_t cookie = xcb_intern_atom(c, false, name.length(), name.constData()); QScopedPointer<xcb_intern_atom_reply_t, QScopedPointerPodDeleter> reply(xcb_intern_atom_reply(c, cookie, nullptr)); if (!reply.isNull()) { atom = reply->atom; } else { // no point in continuing, we don't have the atom return; } } const QString path = qApp->property(s_schemePropertyName).toString(); if (path.isEmpty()) { xcb_delete_property(c, w->winId(), atom); } else { xcb_change_property(c, XCB_PROP_MODE_REPLACE, w->winId(), atom, XCB_ATOM_STRING, 8, path.size(), qPrintable(path)); } } void X11Integration::installDesktopFileName(QWindow *w) { if (!w->isTopLevel()) { return; } QString desktopFileName = QGuiApplication::desktopFileName(); if (desktopFileName.isEmpty()) { return; } // handle apps which set the desktopFileName property with filename suffix, // due to unclear API dox (https://bugreports.qt.io/browse/QTBUG-75521) if (desktopFileName.endsWith(QLatin1String(".desktop"))) { desktopFileName.chop(8); } NETWinInfo info(QX11Info::connection(), w->winId(), QX11Info::appRootWindow(), NET::Properties(), NET::Properties2()); info.setDesktopFileName(desktopFileName.toUtf8().constData()); } void X11Integration::setWindowProperty(QWindow *window, const QByteArray &name, const QByteArray &value) { auto *c = QX11Info::connection(); xcb_atom_t atom; auto it = m_atoms.find(name); if (it == m_atoms.end()) { const xcb_intern_atom_cookie_t cookie = xcb_intern_atom(c, false, name.length(), name.constData()); QScopedPointer<xcb_intern_atom_reply_t, QScopedPointerPodDeleter> reply(xcb_intern_atom_reply(c, cookie, nullptr)); if (!reply.isNull()) { atom = reply->atom; m_atoms[name] = atom; } else { return; } } else { atom = *it; } if (value.isEmpty()) { xcb_delete_property(c, window->winId(), atom); } else { xcb_change_property(c, XCB_PROP_MODE_REPLACE, window->winId(), atom, XCB_ATOM_STRING, 8, value.length(), value.constData()); } } #include "moc_x11integration.cpp" 070701000000FB000081A40000000000000000000000016728A277000003B3000000000000000000000000000000000000005D00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt6/src/platformtheme/x11integration.h/* This file is part of the KDE libraries SPDX-FileCopyrightText: 2015 Martin Gräßlin <mgraesslin@kde.org> SPDX-FileCopyrightText: 2016 Marco Martin <mart@kde.org> SPDX-License-Identifier: LGPL-2.0-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ #ifndef X11INTEGRATION_H #define X11INTEGRATION_H #include "kdeplatformtheme.h" #include <QHash> #include <QObject> #include <xcb/xcb.h> class QWindow; class X11Integration : public QObject { Q_OBJECT public: explicit X11Integration(KdePlatformTheme *platformTheme); ~X11Integration() override; void init(); void setWindowProperty(QWindow *window, const QByteArray &name, const QByteArray &value); bool eventFilter(QObject *watched, QEvent *event) override; private: void installColorScheme(QWindow *w); void installDesktopFileName(QWindow *w); QHash<QByteArray, xcb_atom_t> m_atoms; KdePlatformTheme *m_platformTheme; }; #endif 070701000000FC000041ED0000000000000000000000026728A27700000000000000000000000000000000000000000000004000000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt6/tests070701000000FD000081A40000000000000000000000016728A27700000119000000000000000000000000000000000000004F00000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt6/tests/CMakeLists.txtadd_executable(qfiledialogtest6 qfiledialogtest.cpp) target_link_libraries(qfiledialogtest6 Qt6::Core Qt6::Widgets) add_executable(systraymenuexclusiveactionstest6 systraymenuexclusiveactionstest.cpp) target_link_libraries(systraymenuexclusiveactionstest6 Qt6::Core Qt6::Widgets) 070701000000FE000081A40000000000000000000000016728A27700000511000000000000000000000000000000000000005400000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt6/tests/HoverEffectTest.qml/* SPDX-FileCopyrightText: 2020 Noah Davis <noahadvs@gmail.com> SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick import QtQuick.Templates as T T.ApplicationWindow { width: control.implicitWidth + gridUnit*4 height: control.implicitHeight + gridUnit*4 color: "white" visible: true property int gridUnit: fontMetrics.height FontMetrics { id: fontMetrics } T.Button { id: control implicitWidth: Math.round(Math.max(implicitContentWidth + leftPadding + rightPadding)) implicitHeight: Math.round(Math.max(implicitContentHeight + topPadding + bottomPadding)) anchors.centerIn: parent padding: 8 // This is the default behavior, I'm just making it explicit. hoverEnabled: Qt.styleHints.useHoverEffects text: "There should be a red outline hover effect on this button" contentItem: T.Label { text: control.text font: control.font color: "white" } background: Rectangle { radius: 3 color: "black" border.color: "red" // When the useHoverEffects style hint is true, the hover effect should work border.width: control.hovered ? 4 : 0 } } } 070701000000FF000081A40000000000000000000000016728A27700001E17000000000000000000000000000000000000005400000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt6/tests/qfiledialogtest.cpp/* This file is part of the KDE libraries SPDX-FileCopyrightText: 2013 Aleix Pol Gonzalez <aleixpol@blue-systems.com> SPDX-License-Identifier: LGPL-2.0-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ #include <QApplication> #include <QCommandLineParser> #include <QDebug> #include <QFileDialog> #include <QMetaEnum> int main(int argc, char **argv) { QApplication app(argc, argv); app.setApplicationName(QStringLiteral("QFileDialogTest")); QCommandLineParser parser; parser.addHelpOption(); parser.addOption(QCommandLineOption(QStringList(QStringLiteral("staticFunction")), QStringLiteral("Test one of the static convenience function: 'getOpenFileUrl', 'getExistingDirectory'"), QStringLiteral("function name"))); parser.addOption(QCommandLineOption(QStringList(QStringLiteral("acceptMode")), QStringLiteral("File dialog acceptMode: 'open' or 'save'"), QStringLiteral("type"), QStringLiteral("open"))); parser.addOption(QCommandLineOption(QStringList(QStringLiteral("confirmOverwrite")), QStringLiteral("Test overwrite option: 'on' or 'off'"), QStringLiteral("option"), QStringLiteral("on"))); parser.addOption(QCommandLineOption(QStringList(QStringLiteral("nativeDialog")), QStringLiteral("Use the platform native dialog: 'on' or 'off'"), QStringLiteral("option"), QStringLiteral("on"))); parser.addOption(QCommandLineOption(QStringList(QStringLiteral("fileMode")), QStringLiteral("File dialog fileMode: 'AnyFile' or 'ExistingFile' or 'Directory' or 'ExistingFiles'"), QStringLiteral("type"))); parser.addOption(QCommandLineOption(QStringList(QStringLiteral("nameFilter")), QStringLiteral("Dialog nameFilter, e. g. 'cppfiles (*.cpp *.h *.hpp)', can be specified multiple times"), QStringLiteral("nameFilter"), QStringLiteral("Everything (*)"))); parser.addOption(QCommandLineOption(QStringList(QStringLiteral("mimeTypeFilter")), QStringLiteral("Dialog mimeTypeFilter, e. g. 'application/json', can be specified multiple times"), QStringLiteral("mimeTypeFilter"))); parser.addOption(QCommandLineOption(QStringList(QStringLiteral("selectNameFilter")), QStringLiteral("Initially selected nameFilter"), QStringLiteral("selectNameFilter"))); parser.addOption(QCommandLineOption(QStringList(QStringLiteral("selectMimeTypeFilter")), QStringLiteral("Initially selected mimeTypeFilter"), QStringLiteral("selectMimeTypeFilter"))); parser.addOption(QCommandLineOption(QStringList(QStringLiteral("selectFile")), QStringLiteral("Initially selected file"), QStringLiteral("filename"))); parser.addOption( QCommandLineOption(QStringList(QStringLiteral("selectDirectory")), QStringLiteral("Initially selected directory"), QStringLiteral("dirname"))); parser.addOption( QCommandLineOption(QStringList(QStringLiteral("modal")), QStringLiteral("Test modal dialog"), QStringLiteral("modality"), QStringLiteral("on"))); parser.addOption(QCommandLineOption(QStringList(QStringLiteral("options")), QStringLiteral("See QFileDialog::Options"), QStringLiteral("option"))); parser.process(app); const QString staticFunction = parser.value(QStringLiteral("staticFunction")); if (staticFunction == QLatin1String("getExistingDirectory")) { QString dir = QFileDialog::getExistingDirectory(nullptr, QStringLiteral("getExistingDirectory test"), QStringLiteral("/tmp")); qDebug() << dir; return 0; } else if (staticFunction == QLatin1String("getOpenFileUrl")) { qDebug() << QFileDialog::getOpenFileUrl(nullptr, QStringLiteral("getOpenFileUrl test"), QUrl::fromLocalFile(QDir::homePath())); return 0; } QFileDialog dialog; dialog.setAcceptMode(parser.value(QStringLiteral("acceptMode")) == QStringLiteral("open") ? QFileDialog::AcceptOpen : QFileDialog::AcceptSave); QString fileModeValue = parser.value(QStringLiteral("fileMode")); if (fileModeValue == QLatin1String("AnyFile")) { dialog.setFileMode(QFileDialog::AnyFile); } else if (fileModeValue == QLatin1String("ExistingFile")) { dialog.setFileMode(QFileDialog::ExistingFile); } else if (fileModeValue == QLatin1String("ExistingFiles")) { dialog.setFileMode(QFileDialog::ExistingFiles); } else if (fileModeValue == QLatin1String("Directory")) { dialog.setFileMode(QFileDialog::Directory); } else if (!fileModeValue.isEmpty()) { qDebug() << "Not implemented or not valid:" << fileModeValue; exit(0); } QStringList nameFilterList = parser.values(QStringLiteral("nameFilter")); if (nameFilterList.size() == 1) { dialog.setNameFilter(nameFilterList.first()); } else { dialog.setNameFilters(nameFilterList); } if (parser.isSet(QStringLiteral("options"))) { auto optStrings = parser.values(QStringLiteral("options")); QFileDialog::Options options = {}; const auto mo = QFileDialog::staticMetaObject; const auto enumerator = mo.indexOfEnumerator("Options"); for (const auto &optString : std::as_const(optStrings)) { options |= QFileDialog::Option(mo.enumerator(enumerator).keyToValue(optString.toLatin1().constData())); } dialog.setOptions(options); } const auto mimeFilterList = parser.values(QStringLiteral("mimeTypeFilter")); if (!mimeFilterList.isEmpty()) { dialog.setMimeTypeFilters(mimeFilterList); } QString selectNameFilter = parser.value(QStringLiteral("selectNameFilter")); QString selectMimeTypeFilter = parser.value(QStringLiteral("selectMimeTypeFilter")); if (!selectNameFilter.isEmpty()) { dialog.selectNameFilter(selectNameFilter); } else if (!selectMimeTypeFilter.isEmpty()) { dialog.selectMimeTypeFilter(selectMimeTypeFilter); } if (parser.value(QStringLiteral("confirmOverwrite")) == QStringLiteral("off")) { dialog.setOption(QFileDialog::DontConfirmOverwrite, true); } if (parser.value(QStringLiteral("nativeDialog")) == QStringLiteral("off")) { dialog.setOption(QFileDialog::DontUseNativeDialog, true); } dialog.setDirectoryUrl(QUrl::fromUserInput(parser.value(QStringLiteral("selectDirectory")), {}, QUrl::AssumeLocalFile)); dialog.selectFile(parser.value(QStringLiteral("selectFile"))); int ret; if (parser.value(QStringLiteral("modal")) == QStringLiteral("off")) { dialog.show(); ret = app.exec(); } else { ret = dialog.exec(); } if (dialog.result() == QDialog::Accepted) { qDebug() << "selected files" << dialog.selectedFiles(); qDebug() << "selected urls" << dialog.selectedUrls(); qDebug() << "selected mime type filter" << dialog.selectedMimeTypeFilter(); } qDebug() << "mime type filter(s):" << dialog.mimeTypeFilters(); return ret; } 07070100000100000081A40000000000000000000000016728A277000003F0000000000000000000000000000000000000006400000000plasma-integration-VERSIONgit.20241104T103119~78b2d0c/qt6/tests/systraymenuexclusiveactionstest.cpp#include <QAction> #include <QActionGroup> #include <QApplication> #include <QMenu> #include <QSystemTrayIcon> int main(int argc, char *argv[]) { QApplication app(argc, argv); QSystemTrayIcon trayIcon(QIcon::fromTheme(QStringLiteral("application-exit"))); QMenu contextMenu; QAction *action1 = contextMenu.addAction(QStringLiteral("Exclusive Item 1")); QAction *action2 = contextMenu.addAction(QStringLiteral("Exclusive Item 2")); action1->setCheckable(true); action1->setChecked(true); action2->setCheckable(true); QActionGroup *actionGroup = new QActionGroup(&contextMenu); actionGroup->addAction(action1); actionGroup->addAction(action2); QAction quitAction(QIcon::fromTheme(QStringLiteral("application-exit")), QStringLiteral("Quit")); QObject::connect(&quitAction, &QAction::triggered, &app, &QApplication::quit); contextMenu.addAction(&quitAction); trayIcon.setContextMenu(&contextMenu); trayIcon.show(); return app.exec(); } 07070100000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000B00000000TRAILER!!!1754 blocks
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor