fixed compiling

This commit is contained in:
fourtf
2018-01-15 04:08:48 +01:00
parent d045f6963a
commit 6701c3d0b2
5 changed files with 70 additions and 80 deletions
@@ -4,6 +4,7 @@
#include <vector>
#include <QPoint>
#include <QRect>
class QPainter;
@@ -67,6 +68,9 @@ public:
void paintAnimatedElements(QPainter &painter, int yOffset);
void paintSelection(QPainter &painter, int messageIndex, Selection &selection);
// selection
int getSelectionIndex(QPoint point);
private:
// helpers
void _addElement(MessageLayoutElement *element);
@@ -79,6 +83,13 @@ private:
int lineHeight = 0;
int spaceWidth = 4;
std::vector<std::unique_ptr<MessageLayoutElement>> elements;
struct Line {
int startIndex;
QRect rect;
};
std::vector<Line> lines;
};
} // namespace layouts
} // namespace messages