qTox  Version: nightly | Commit: bc751c8e1cac455f9690654fcfe0f560d2d7dfdd
chatlinecontent.cpp
Go to the documentation of this file.
1 /*
2  Copyright © 2014-2019 by The qTox Project Contributors
3 
4  This file is part of qTox, a Qt-based graphical interface for Tox.
5 
6  qTox is libre software: you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation, either version 3 of the License, or
9  (at your option) any later version.
10 
11  qTox is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU General Public License for more details.
15 
16  You should have received a copy of the GNU General Public License
17  along with qTox. If not, see <http://www.gnu.org/licenses/>.
18 */
19 
20 #include "chatlinecontent.h"
21 
22 void ChatLineContent::setIndex(int r, int c)
23 {
24  row = r;
25  col = c;
26 }
27 
29 {
30  return col;
31 }
32 
34 {
35  return GraphicsItemType::ChatLineContentType;
36 }
37 
39 {
40 }
41 
43 {
44 }
45 
47 {
48 }
49 
51 {
52 }
53 
55 {
56 }
57 
59 {
60 }
61 
63 {
64  return false;
65 }
66 
68 {
69  return QString();
70 }
71 
72 void ChatLineContent::fontChanged(const QFont& font)
73 {
74  Q_UNUSED(font)
75 }
76 
78 {
79  return 0.0;
80 }
81 
83 {
84 }
85 
87 {
88 }
89 
90 QString ChatLineContent::getText() const
91 {
92  return QString();
93 }
ChatLineContent::selectionFocusChanged
virtual void selectionFocusChanged(bool focusIn)
Definition: chatlinecontent.cpp:58
ChatLineContent::row
int row
Definition: chatlinecontent.h:67
ChatLineContent::getAscent
virtual qreal getAscent() const
Definition: chatlinecontent.cpp:77
ChatLineContent::getColumn
int getColumn() const
Definition: chatlinecontent.cpp:28
ChatLineContent::col
int col
Definition: chatlinecontent.h:68
ChatLineContent::isOverSelection
virtual bool isOverSelection(QPointF scenePos) const
Definition: chatlinecontent.cpp:62
ChatLineContent::getSelectedText
virtual QString getSelectedText() const
Definition: chatlinecontent.cpp:67
chatlinecontent.h
ChatLineContent::selectionTripleClick
virtual void selectionTripleClick(QPointF scenePos)
Definition: chatlinecontent.cpp:54
ChatLineContent::type
int type() const final
Definition: chatlinecontent.cpp:33
ChatLineContent::selectionMouseMove
virtual void selectionMouseMove(QPointF scenePos)
Definition: chatlinecontent.cpp:38
ChatLineContent::selectionStarted
virtual void selectionStarted(QPointF scenePos)
Definition: chatlinecontent.cpp:42
ChatLineContent::fontChanged
virtual void fontChanged(const QFont &font)
Definition: chatlinecontent.cpp:72
ChatLineContent::getText
virtual QString getText() const
Definition: chatlinecontent.cpp:90
ChatLineContent::setIndex
void setIndex(int row, int col)
Definition: chatlinecontent.cpp:22
ChatLineContent::selectionDoubleClick
virtual void selectionDoubleClick(QPointF scenePos)
Definition: chatlinecontent.cpp:50
ChatLineContent::selectionCleared
virtual void selectionCleared()
Definition: chatlinecontent.cpp:46
ChatLineContent::reloadTheme
virtual void reloadTheme()
Definition: chatlinecontent.cpp:86
ChatLineContent::visibilityChanged
virtual void visibilityChanged(bool visible)
Definition: chatlinecontent.cpp:82