projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Say hello (again) to CMake!
[quassel.git]
/
src
/
qtui
/
chatitem.cpp
diff --git
a/src/qtui/chatitem.cpp
b/src/qtui/chatitem.cpp
index
c518c5f
..
63d92e6
100644
(file)
--- a/
src/qtui/chatitem.cpp
+++ b/
src/qtui/chatitem.cpp
@@
-28,7
+28,7
@@
#include "chatitem.h"
ChatItem::ChatItem(const QPersistentModelIndex &index_, QGraphicsItem *parent) : QGraphicsItem(parent), _index(index_) {
#include "chatitem.h"
ChatItem::ChatItem(const QPersistentModelIndex &index_, QGraphicsItem *parent) : QGraphicsItem(parent), _index(index_) {
- _width = _height = 0;
+
}
ChatItem::~ChatItem() {
}
ChatItem::~ChatItem() {
@@
-43,9
+43,11
@@
QVariant ChatItem::data(int role) const {
return _index.data(role);
}
return _index.data(role);
}
+/*
QRectF ChatItem::boundingRect() const {
return QRectF(0, 0, _width, _height);
}
QRectF ChatItem::boundingRect() const {
return QRectF(0, 0, _width, _height);
}
+*/
void ChatItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) {
Q_UNUSED(option); Q_UNUSED(widget);
void ChatItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) {
Q_UNUSED(option); Q_UNUSED(widget);
@@
-58,9
+60,9
@@
void ChatItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option,
int ChatItem::setWidth(int w) {
int ChatItem::setWidth(int w) {
- _
width = w
;
- _
height = 20
; // FIXME
- return
_height
;
+ _
boundingRect.setWidth(w)
;
+ _
boundingRect.setHeight(20)
; // FIXME
+ return
20
;
}
/*
}
/*