Группа :: Система/Настройка/Пакеты
Пакет: plasma5-discover
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: alt-hide-reviews.patch
Скачать
Скачать
--- 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 {