Browse Source

comparators should be public

pull/974/head
krepa098 11 years ago
parent
commit
2206db1406
  1. 10
      src/chatlog/chatline.h

10
src/chatlog/chatline.h

@ -80,6 +80,11 @@ public:
bool isOverSelection(QPointF scenePos); 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: protected:
friend class ChatLog; friend class ChatLog;
@ -90,11 +95,6 @@ protected:
void setRow(int idx); void setRow(int idx);
void visibilityChanged(bool visible); 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: private:
int row = -1; int row = -1;
std::vector<ChatLineContent*> content; std::vector<ChatLineContent*> content;

Loading…
Cancel
Save