| 
    qTox
    Version: nightly | Commit: bc751c8e1cac455f9690654fcfe0f560d2d7dfdd
    
   | 
 
#include <chatline.h>


Public Types | |
| using | Ptr = std::shared_ptr< ChatLine > | 
Public Member Functions | |
| ChatLine () | |
| virtual | ~ChatLine () | 
| QRectF | sceneBoundingRect () const | 
| void | replaceContent (int col, ChatLineContent *lineContent) | 
| void | layout (qreal width, QPointF scenePos) | 
| void | moveBy (qreal deltaY) | 
| void | removeFromScene () | 
| void | addToScene (QGraphicsScene *scene) | 
| void | setVisible (bool visible) | 
| void | selectionCleared () | 
| void | selectionFocusChanged (bool focusIn) | 
| void | fontChanged (const QFont &font) | 
| void | reloadTheme () | 
| int | getColumnCount () | 
| ChatLineContent * | getContent (int col) const | 
| ChatLineContent * | getContent (QPointF scenePos) const | 
| bool | isOverSelection (QPointF scenePos) | 
Static Public Member Functions | |
| static bool | lessThanBSRectTop (const ChatLine::Ptr &lhs, const qreal &rhs) | 
| static bool | lessThanBSRectBottom (const ChatLine::Ptr &lhs, const qreal &rhs) | 
Protected Member Functions | |
| QPointF | mapToContent (ChatLineContent *c, QPointF pos) | 
| void | addColumn (ChatLineContent *item, ColumnFormat fmt) | 
| void | updateBBox () | 
| void | visibilityChanged (bool visible) | 
Private Attributes | |
| int | row = -1 | 
| QVector< ChatLineContent * > | content | 
| QVector< ColumnFormat > | format | 
| qreal | width = 100.0 | 
| qreal | columnSpacing = 15.0 | 
| QRectF | bbox | 
| bool | isVisible = false | 
Friends | |
| class | ChatWidget | 
Definition at line 65 of file chatline.h.
| using ChatLine::Ptr = std::shared_ptr<ChatLine> | 
Definition at line 68 of file chatline.h.
| ChatLine::ChatLine | ( | ) | 
Definition at line 26 of file chatline.cpp.
      
  | 
  virtual | 
Definition at line 30 of file chatline.cpp.
      
  | 
  protected | 
| void ChatLine::addToScene | ( | QGraphicsScene * | scene | ) | 
Definition at line 76 of file chatline.cpp.
| void ChatLine::fontChanged | ( | const QFont & | font | ) | 
Definition at line 103 of file chatline.cpp.
| int ChatLine::getColumnCount | ( | ) | 
Definition at line 116 of file chatline.cpp.
| ChatLineContent * ChatLine::getContent | ( | int | col | ) | const | 
| ChatLineContent * ChatLine::getContent | ( | QPointF | scenePos | ) | const | 
Definition at line 58 of file chatline.cpp.
| bool ChatLine::isOverSelection | ( | QPointF | scenePos | ) | 
| void ChatLine::layout | ( | qreal | width, | 
| QPointF | scenePos | ||
| ) | 
Definition at line 164 of file chatline.cpp.


      
  | 
  static | 
      
  | 
  static | 
      
  | 
  protected | 
| void ChatLine::moveBy | ( | qreal | deltaY | ) | 
Definition at line 235 of file chatline.cpp.
| void ChatLine::reloadTheme | ( | ) | 
Definition at line 109 of file chatline.cpp.
| void ChatLine::removeFromScene | ( | ) | 
Definition at line 68 of file chatline.cpp.
| void ChatLine::replaceContent | ( | int | col, | 
| ChatLineContent * | lineContent | ||
| ) | 
Definition at line 146 of file chatline.cpp.


| QRectF ChatLine::sceneBoundingRect | ( | ) | const | 
| void ChatLine::selectionCleared | ( | ) | 
Definition at line 91 of file chatline.cpp.
| void ChatLine::selectionFocusChanged | ( | bool | focusIn | ) | 
Definition at line 97 of file chatline.cpp.
| void ChatLine::setVisible | ( | bool | visible | ) | 
Definition at line 85 of file chatline.cpp.
      
  | 
  protected | 
      
  | 
  protected | 
Definition at line 40 of file chatline.cpp.
      
  | 
  friend | 
Definition at line 98 of file chatline.h.
      
  | 
  private | 
Definition at line 112 of file chatline.h.
      
  | 
  private | 
Definition at line 111 of file chatline.h.
      
  | 
  private | 
Definition at line 108 of file chatline.h.
      
  | 
  private | 
Definition at line 109 of file chatline.h.
      
  | 
  private | 
Definition at line 113 of file chatline.h.
      
  | 
  private | 
Definition at line 107 of file chatline.h.
      
  | 
  private | 
Definition at line 110 of file chatline.h.
 1.8.17