[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [spacebar] app/package/contents/ui: [app] Replace the send message TextField with TextArea
From:       Martin Klapetek <mklapetek () kde ! org>
Date:       2016-05-14 18:35:25
Message-ID: E1b1ePN-0005D3-6d () scm ! kde ! org
[Download RAW message or body]

Git commit e160df96e3f9cb8e0e9c3a082176107c9e3471e3 by Martin Klapetek.
Committed on 14/05/2016 at 18:28.
Pushed by mklapetek into branch 'master'.

[app] Replace the send message TextField with TextArea

M  +5    -2    app/package/contents/ui/ConversationPage.qml

http://commits.kde.org/spacebar/e160df96e3f9cb8e0e9c3a082176107c9e3471e3

diff --git a/app/package/contents/ui/ConversationPage.qml b/app/package/contents/ui/ConversationPage.qml
index e4f9e01..6299ea2 100644
--- a/app/package/contents/ui/ConversationPage.qml
+++ b/app/package/contents/ui/ConversationPage.qml
@@ -17,7 +17,7 @@
  *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 
-import QtQuick 2.3
+import QtQuick 2.5
 import QtQuick.Controls 1.4
 import QtQuick.Layouts 1.1
 import org.kde.plasma.core 2.0 as PlasmaCore
@@ -195,10 +195,13 @@ Kirigami.Page {
 
             RowLayout {
 
-                TextField {
+                TextArea {
                     id: messageTextField
                     Layout.fillWidth: true
 
+                    verticalScrollBarPolicy: Qt.ScrollBarAlwaysOff
+                    horizontalScrollBarPolicy: Qt.ScrollBarAlwaysOff
+
                     Keys.onReturnPressed: {
                         view.model.sendNewMessage(text);
                         text = "";

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic