Implement the ChatLine element in C++
authorManuel Nickschas <sputnick@quassel-irc.org>
Sat, 13 Aug 2011 00:44:54 +0000 (02:44 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Sat, 13 Aug 2011 00:44:54 +0000 (02:44 +0200)
commitaebd09e08b2afb4e21fa0f5a0044be6d80e8f52e
tree5f3990c12330a3e7d11d3785dd9e7c1fbb17536a
parent4edfaf18f20d60f27c0f1d72d0ebdb217f3b352e
Implement the ChatLine element in C++

Now that I get my brain wrapped around QML a bit, let's take things
more seriously. Turns out, while Text elements seem to be efficient enough,
TextEdit elements (needed for selection and mousehandling) are not, so resizing
is sluggish.

Thus, instead of using any of the stock elements, we're now implementing this ourselves
in C++, and will probably do much the same as we did for the QGV-based ChatView (minus
some of the hackery, if we're lucky). This means layouting and drawing the text ourselves.
On the upside, we can just keep using the old styleengine for now...

Here's hoping that things will turn out to be more efficient anyway, because ListView seems
to be creating and discarding its items as needed; so there shouldn't be a scene with thousands
of items involved to manage...
src/qmlui/CMakeLists.txt
src/qmlui/qml/ChatLine.qml [deleted file]
src/qmlui/qml/ChatView.qml
src/qmlui/qml/qml.qrc
src/qmlui/qmlchatline.cpp [new file with mode: 0644]
src/qmlui/qmlchatline.h [new file with mode: 0644]
src/qmlui/qmlmessagemodel.cpp
src/qmlui/qmlmessagemodel.h
src/qmlui/qmlmessagemodelitem.cpp
src/qmlui/qmlmessagemodelitem.h