Commit bc23a94b authored by Black Hat's avatar Black Hat

Remove useless contact page.

parent ed5afdfc
package db package db
import (
"github.com/jinzhu/gorm"
_ "github.com/jinzhu/gorm/dialects/sqlite"
)
type Controller struct { type Controller struct {
db *gorm.DB
} }
import QtQuick 2.10
import QtQuick.Controls 2.3
import QtQuick.Layouts 1.3
import "qrc:/qml/form"
Page {
property var contactListModel
id: page
RowLayout {
anchors.fill: parent
spacing: 0
ListForm {
id: roomListForm
Layout.fillHeight: true
Layout.preferredWidth: {
if (page.width > 560) {
return page.width * 0.4;
} else {
return 80;
}
}
Layout.maximumWidth: 360
listModel: contactListModel
}
DetailForm {
id: detailForm
Layout.fillWidth: true
Layout.fillHeight: true
}
}
}
...@@ -17,7 +17,7 @@ Item { ...@@ -17,7 +17,7 @@ Item {
visible: currentRoom == null visible: currentRoom == null
Rectangle { Rectangle {
anchors.fill: parent anchors.fill: parent
color: "#eaeaea" color: "white"
} }
Text { Text {
......
...@@ -96,10 +96,6 @@ ApplicationWindow { ...@@ -96,10 +96,6 @@ ApplicationWindow {
Login { controller: matriqueController } Login { controller: matriqueController }
} }
Contact {
id: contactPage
}
Room { Room {
id: roomPage id: roomPage
controller: matriqueController controller: matriqueController
...@@ -135,12 +131,6 @@ ApplicationWindow { ...@@ -135,12 +131,6 @@ ApplicationWindow {
Layout.fillHeight: true Layout.fillHeight: true
} }
SideNavButton {
contentItem: MaterialIcon { icon: "\ue5d2" }
page: contactPage
}
SideNavButton { SideNavButton {
contentItem: MaterialIcon { icon: "\ue8b8" } contentItem: MaterialIcon { icon: "\ue8b8" }
......
...@@ -5,13 +5,6 @@ import ( ...@@ -5,13 +5,6 @@ import (
"log" "log"
) )
const (
ID = int(core.Qt__UserRole) + 1<<iota
Name
Topic
Avatar
)
type RoomListModel struct { type RoomListModel struct {
core.QAbstractListModel core.QAbstractListModel
......
package ui package ui
import "github.com/therecipe/qt/core"
const (
ID = int(core.Qt__UserRole) + 1<<iota
Name
Topic
Avatar
)
func checkErr(err error) { func checkErr(err error) {
if err != nil { if err != nil {
panic(err) panic(err)
......
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