From 2206db1406266871607d448700274d1c39f654bf Mon Sep 17 00:00:00 2001 From: krepa098 Date: Sat, 31 Jan 2015 17:50:35 +0100 Subject: [PATCH] comparators should be public --- src/chatlog/chatline.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/chatlog/chatline.h b/src/chatlog/chatline.h index 69a3ceb65..6499ffc02 100644 --- a/src/chatlog/chatline.h +++ b/src/chatlog/chatline.h @@ -80,6 +80,11 @@ public: bool isOverSelection(QPointF scenePos); + //comparators + static bool lessThanBSRectTop(const ChatLine::Ptr lhs, const qreal rhs); + static bool lessThanBSRectBottom(const ChatLine::Ptr lhs, const qreal rhs); + static bool lessThanRowIndex(const ChatLine::Ptr lhs, const ChatLine::Ptr rhs); + protected: friend class ChatLog; @@ -90,11 +95,6 @@ protected: void setRow(int idx); void visibilityChanged(bool visible); - //comparators - static bool lessThanBSRectTop(const ChatLine::Ptr lhs, const qreal rhs); - static bool lessThanBSRectBottom(const ChatLine::Ptr lhs, const qreal rhs); - static bool lessThanRowIndex(const ChatLine::Ptr lhs, const ChatLine::Ptr rhs); - private: int row = -1; std::vector content;