From b276dd42a5b00d5682a4fc43e605aeda72271db5 Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Wed, 4 Sep 2019 04:27:37 +0200 Subject: [PATCH] Update to be compatible with latest Qt bindings --- attachmentmodel.go | 4 ++-- messagemodel.go | 56 +++++++++++++++++++++++----------------------- panemodel.go | 4 ++-- 3 files changed, 32 insertions(+), 32 deletions(-) diff --git a/attachmentmodel.go b/attachmentmodel.go index c4a8dc9..57c384f 100644 --- a/attachmentmodel.go +++ b/attachmentmodel.go @@ -72,11 +72,11 @@ func (m *AttachmentModel) data(index *core.QModelIndex, role int) *core.QVariant switch role { case AttachmentID: { - return core.NewQVariant14(p.ID) + return core.NewQVariant1(p.ID) } case AttachmentPreview: { - return core.NewQVariant14(p.Preview) + return core.NewQVariant1(p.Preview) } default: diff --git a/messagemodel.go b/messagemodel.go index 9d030ba..7fa52de 100644 --- a/messagemodel.go +++ b/messagemodel.go @@ -141,115 +141,115 @@ func (m *MessageModel) data(index *core.QModelIndex, role int) *core.QVariant { switch role { case Name: { - return core.NewQVariant14(p.Name) + return core.NewQVariant1(p.Name) } case MessageID: { - return core.NewQVariant14(p.MessageID) + return core.NewQVariant1(p.MessageID) } case PostURL: { - return core.NewQVariant14(p.PostURL) + return core.NewQVariant1(p.PostURL) } case Author: { - return core.NewQVariant14(p.Author) + return core.NewQVariant1(p.Author) } case AuthorURL: { - return core.NewQVariant14(p.AuthorURL) + return core.NewQVariant1(p.AuthorURL) } case AuthorID: { - return core.NewQVariant14(p.AuthorID) + return core.NewQVariant1(p.AuthorID) } case Avatar: { - return core.NewQVariant14(p.Avatar) + return core.NewQVariant1(p.Avatar) } case Body: { - return core.NewQVariant14(p.Body) + return core.NewQVariant1(p.Body) } case Sensitive: { - return core.NewQVariant11(p.Sensitive) + return core.NewQVariant1(p.Sensitive) } case Warning: { - return core.NewQVariant14(p.Warning) + return core.NewQVariant1(p.Warning) } case CreatedAt: { - return core.NewQVariant14(humanize.Time(p.CreatedAt)) + return core.NewQVariant1(humanize.Time(p.CreatedAt)) } case Actor: { - return core.NewQVariant14(p.Actor) + return core.NewQVariant1(p.Actor) } case ActorName: { - return core.NewQVariant14(p.ActorName) + return core.NewQVariant1(p.ActorName) } case ActorID: { - return core.NewQVariant14(p.ActorID) + return core.NewQVariant1(p.ActorID) } case Reply: { - return core.NewQVariant11(p.Reply) + return core.NewQVariant1(p.Reply) } case ReplyToID: { - return core.NewQVariant14(p.ReplyToID) + return core.NewQVariant1(p.ReplyToID) } case ReplyToAuthor: { - return core.NewQVariant14(p.ReplyToAuthor) + return core.NewQVariant1(p.ReplyToAuthor) } case Forward: { - return core.NewQVariant11(p.Forward) + return core.NewQVariant1(p.Forward) } case Mention: { - return core.NewQVariant11(p.Mention) + return core.NewQVariant1(p.Mention) } case Like: { - return core.NewQVariant11(p.Like) + return core.NewQVariant1(p.Like) } case Followed: { - return core.NewQVariant11(p.Followed) + return core.NewQVariant1(p.Followed) } case Following: { - return core.NewQVariant11(p.Following) + return core.NewQVariant1(p.Following) } case FollowedBy: { - return core.NewQVariant11(p.FollowedBy) + return core.NewQVariant1(p.FollowedBy) } case MediaPreview: { - return core.NewQVariant19(p.MediaPreview) + return core.NewQVariant1(p.MediaPreview) } case MediaURL: { - return core.NewQVariant19(p.MediaURL) + return core.NewQVariant1(p.MediaURL) } case Editing: { - return core.NewQVariant11(p.Editing) + return core.NewQVariant1(p.Editing) } case Liked: { - return core.NewQVariant11(p.Liked) + return core.NewQVariant1(p.Liked) } case Shared: { - return core.NewQVariant11(p.Shared) + return core.NewQVariant1(p.Shared) } default: diff --git a/panemodel.go b/panemodel.go index fef1c36..1835bf4 100644 --- a/panemodel.go +++ b/panemodel.go @@ -75,11 +75,11 @@ func (m *PaneModel) data(index *core.QModelIndex, role int) *core.QVariant { switch role { case PaneName: { - return core.NewQVariant14(p.Name) + return core.NewQVariant1(p.Name) } case PaneSticky: { - return core.NewQVariant11(p.Sticky) + return core.NewQVariant1(p.Sticky) } case MsgModel: {