Commit bc23a94b authored by Black Hat's avatar Black Hat

Remove useless contact page.

parent ed5afdfc
package db
import (
"github.com/jinzhu/gorm"
_ "github.com/jinzhu/gorm/dialects/sqlite"
)
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 {
visible: currentRoom == null
Rectangle {
anchors.fill: parent
color: "#eaeaea"
color: "white"
}
Text {
......
......@@ -96,10 +96,6 @@ ApplicationWindow {
Login { controller: matriqueController }
}
Contact {
id: contactPage
}
Room {
id: roomPage
controller: matriqueController
......@@ -135,12 +131,6 @@ ApplicationWindow {
Layout.fillHeight: true
}
SideNavButton {
contentItem: MaterialIcon { icon: "\ue5d2" }
page: contactPage
}
SideNavButton {
contentItem: MaterialIcon { icon: "\ue8b8" }
......
......@@ -5,13 +5,6 @@ import (
"log"
)
const (
ID = int(core.Qt__UserRole) + 1<<iota
Name
Topic
Avatar
)
type RoomListModel struct {
core.QAbstractListModel
......
package ui
import "github.com/therecipe/qt/core"
const (
ID = int(core.Qt__UserRole) + 1<<iota
Name
Topic
Avatar
)
func checkErr(err error) {
if err != nil {
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