Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37704439
en ru br
ALT Linux repositórios
S:5.27.8-alt1

Group :: Sistema/Configurações/Pacotes
RPM: plasma5-discover

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: alt-hide-reviews.patch
Download


--- a/discover/qml/ReviewDialog.qml
+++ b/discover/qml/ReviewDialog.qml
@@ -50,6 +50,7 @@ Kirigami.PromptDialog
                 Kirigami.FormData.label: i18n("Title:")
                 Layout.fillWidth: true
                 validator: RegularExpressionValidator { regularExpression: /.{3,70}/ }
+                visible: false
             }
         }
 
@@ -58,6 +59,7 @@ Kirigami.PromptDialog
             readonly property bool acceptableInput: length > 15 && length < 3000
             Layout.fillWidth: true
             Layout.minimumHeight: Kirigami.Units.gridUnit * 8
+            visible: false
         }
 
         QQC2.Label {
@@ -65,16 +67,18 @@ Kirigami.PromptDialog
             Layout.fillWidth: true
             text: {
                 if (rating < 2) return i18n("Enter a rating");
+            if( false ) {
                 if (! titleInput.acceptableInput) return i18n("Write the title");
                 if (reviewInput.length === 0) return i18n("Write the review");
                 if (reviewInput.length < 15) return i18n("Keep writing…");
                 if (reviewInput.length > 3000) return i18n("Too long!");
+            }
                 if (nameInput.visible && nameInput.length < 1) return i18nc("@info:usagetip", "Insert a name");
                 return "";
             }
             wrapMode: Text.WordWrap
             opacity: 0.6
-            visible: text.length > 0
+            visible: true
         }
     }
 }
--- a/discover/qml/ReviewDelegate.qml
+++ b/discover/qml/ReviewDelegate.qml
@@ -59,7 +59,7 @@ Kirigami.AbstractCard {
 
                 elide: Text.ElideRight
                 readonly property string author: reviewer ? reviewer : i18n("unknown reviewer")
-                text: summary ? i18n("<b>%1</b> by %2", summary, author) : i18n("Comment by %1", author)
+                text: false ? i18n("<b>%1</b> by %2", summary, author) : i18n("Comment by %1", author)
             }
 
             // Review text
@@ -71,6 +71,7 @@ Kirigami.AbstractCard {
 
                 text: display
                 wrapMode: Text.Wrap
+                visible: false
             }
 
             Label {
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009