Commit df6d0246 authored by LNJ's avatar LNJ 💬

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 {
placeholderText: qsTr("user@example.org")
Layout.fillWidth: true
selectByMouse: true
inputMethodHints: Qt.ImhEmailCharactersOnly
}
// Password field
......
......@@ -28,7 +28,7 @@
* 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.Controls 2.0 as Controls
import org.kde.kirigami 2.0 as Kirigami
......@@ -64,7 +64,6 @@ Kirigami.ScrollablePage {
ListView {
verticalLayoutDirection: ListView.TopToBottom
focus: true
model: kaidan.rosterModel
delegate: RosterListItem {
id: rosterItem
......@@ -76,7 +75,7 @@ Kirigami.ScrollablePage {
unreadMessages: model.unreadMessages
avatarImagePath: kaidan.avatarStorage.getAvatarUrl(model.jid)
backgroundColor: {
if (!Kirigami.Settings.isMobile && kaidan.chatPartner == model.jid) {
if (!Kirigami.Settings.isMobile && kaidan.chatPartner === model.jid) {
Kirigami.Theme.highlightColor
} else {
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