Verified Commit df6d0246 authored by Linus Jahn's avatar Linus Jahn

LoginPage: Use email-like-keyboard for JID input

This is only useful on Android and on other platforms supporting this on
the virtual keyboard.
parent a6570557
...@@ -68,6 +68,7 @@ Kirigami.Page { ...@@ -68,6 +68,7 @@ Kirigami.Page {
placeholderText: qsTr("user@example.org") placeholderText: qsTr("user@example.org")
Layout.fillWidth: true Layout.fillWidth: true
selectByMouse: true selectByMouse: true
inputMethodHints: Qt.ImhEmailCharactersOnly
} }
// Password field // Password field
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
* along with Kaidan. If not, see <http://www.gnu.org/licenses/>. * along with Kaidan. If not, see <http://www.gnu.org/licenses/>.
*/ */
import QtQuick 2.0 import QtQuick 2.7
import QtQuick.Layouts 1.3 import QtQuick.Layouts 1.3
import QtQuick.Controls 2.0 as Controls import QtQuick.Controls 2.0 as Controls
import org.kde.kirigami 2.0 as Kirigami import org.kde.kirigami 2.0 as Kirigami
...@@ -64,7 +64,6 @@ Kirigami.ScrollablePage { ...@@ -64,7 +64,6 @@ Kirigami.ScrollablePage {
ListView { ListView {
verticalLayoutDirection: ListView.TopToBottom verticalLayoutDirection: ListView.TopToBottom
focus: true
model: kaidan.rosterModel model: kaidan.rosterModel
delegate: RosterListItem { delegate: RosterListItem {
id: rosterItem id: rosterItem
...@@ -76,7 +75,7 @@ Kirigami.ScrollablePage { ...@@ -76,7 +75,7 @@ Kirigami.ScrollablePage {
unreadMessages: model.unreadMessages unreadMessages: model.unreadMessages
avatarImagePath: kaidan.avatarStorage.getAvatarUrl(model.jid) avatarImagePath: kaidan.avatarStorage.getAvatarUrl(model.jid)
backgroundColor: { backgroundColor: {
if (!Kirigami.Settings.isMobile && kaidan.chatPartner == model.jid) { if (!Kirigami.Settings.isMobile && kaidan.chatPartner === model.jid) {
Kirigami.Theme.highlightColor Kirigami.Theme.highlightColor
} else { } else {
Kirigami.Theme.backgroundColor Kirigami.Theme.backgroundColor
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment