qTox
Version: nightly | Commit: bc751c8e1cac455f9690654fcfe0f560d2d7dfdd
|
#include <chatlinecontentproxy.h>
Public Types | |
enum | ChatLineContentProxyType { GenericType, FileTransferWidgetType = 0 } |
Type tag to avoid dynamic_cast of contained QWidget*. More... | |
![]() | |
enum | GraphicsItemType { ChatLineContentType = QGraphicsItem::UserType + 1 } |
Public Member Functions | |
ChatLineContentProxy (QWidget *widget, int minWidth, float widthInPercent=1.0f) | |
ChatLineContentProxy (FileTransferWidget *widget, int minWidth, float widthInPercent=1.0f) | |
QRectF | boundingRect () const override |
void | setWidth (qreal width) override |
void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override |
qreal | getAscent () const override |
QWidget * | getWidget () const |
ChatLineContentProxyType | getWidgetType () const |
![]() | |
int | getColumn () const |
int | type () const final |
virtual void | selectionMouseMove (QPointF scenePos) |
virtual void | selectionStarted (QPointF scenePos) |
virtual void | selectionCleared () |
virtual void | selectionDoubleClick (QPointF scenePos) |
virtual void | selectionTripleClick (QPointF scenePos) |
virtual void | selectionFocusChanged (bool focusIn) |
virtual bool | isOverSelection (QPointF scenePos) const |
virtual QString | getSelectedText () const |
virtual void | fontChanged (const QFont &font) |
virtual QString | getText () const |
virtual void | visibilityChanged (bool visible) |
virtual void | reloadTheme () |
Protected Member Functions | |
ChatLineContentProxy (QWidget *widget, ChatLineContentProxyType type, int minWidth, float widthInPercent) | |
Private Attributes | |
QGraphicsProxyWidget * | proxy |
float | widthPercent |
int | widthMin |
const ChatLineContentProxyType | widgetType |
Definition at line 27 of file chatlinecontentproxy.h.
Type tag to avoid dynamic_cast of contained QWidget*.
@value GenericType @value FileTransferWidgetType = 0
Enumerator | |
---|---|
GenericType | |
FileTransferWidgetType |
Definition at line 32 of file chatlinecontentproxy.h.
ChatLineContentProxy::ChatLineContentProxy | ( | QWidget * | widget, |
int | minWidth, | ||
float | widthInPercent = 1.0f |
||
) |
Definition at line 45 of file chatlinecontentproxy.cpp.
ChatLineContentProxy::ChatLineContentProxy | ( | FileTransferWidget * | widget, |
int | minWidth, | ||
float | widthInPercent = 1.0f |
||
) |
Definition at line 50 of file chatlinecontentproxy.cpp.
|
protected |
|
overridevirtual |
Implements ChatLineContent.
Definition at line 55 of file chatlinecontentproxy.cpp.
|
overridevirtual |
Reimplemented from ChatLineContent.
Definition at line 69 of file chatlinecontentproxy.cpp.
QWidget * ChatLineContentProxy::getWidget | ( | ) | const |
ChatLineContentProxy::ChatLineContentProxyType ChatLineContentProxy::getWidgetType | ( | ) | const |
Definition at line 85 of file chatlinecontentproxy.cpp.
|
overridevirtual |
Implements ChatLineContent.
Definition at line 62 of file chatlinecontentproxy.cpp.
|
overridevirtual |
Implements ChatLineContent.
Definition at line 79 of file chatlinecontentproxy.cpp.
|
private |
Definition at line 55 of file chatlinecontentproxy.h.
|
private |
Definition at line 58 of file chatlinecontentproxy.h.
|
private |
Definition at line 57 of file chatlinecontentproxy.h.
|
private |
Definition at line 56 of file chatlinecontentproxy.h.