projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Closing BR #126
[quassel.git]
/
src
/
qtopia
/
chatwidget.cpp
diff --git
a/src/qtopia/chatwidget.cpp
b/src/qtopia/chatwidget.cpp
index
3123686
..
43758d3
100644
(file)
--- a/
src/qtopia/chatwidget.cpp
+++ b/
src/qtopia/chatwidget.cpp
@@
-1,5
+1,5
@@
/***************************************************************************
/***************************************************************************
- * Copyright (C) 2005-0
7 by the Quassel IRC Team
*
+ * Copyright (C) 2005-0
8 by the Quassel Project
*
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
@@
-27,25
+27,25
@@
ChatWidget::ChatWidget(QWidget *parent) : QTextEdit(parent) {
setTextInteractionFlags(Qt::TextBrowserInteraction);
}
setTextInteractionFlags(Qt::TextBrowserInteraction);
}
-void ChatWidget::setContents(QList<ChatLine *> lines) {
+void ChatWidget::setContents(QList<ChatLine
Old
*> lines) {
clear();
appendChatLines(lines);
}
void ChatWidget::prependMsg(AbstractUiMsg *msg) {
clear();
appendChatLines(lines);
}
void ChatWidget::prependMsg(AbstractUiMsg *msg) {
- ChatLine
*line = static_cast<ChatLine
*>(msg);
+ ChatLine
Old *line = static_cast<ChatLineOld
*>(msg);
Q_ASSERT(line);
prependChatLine(line);
}
void ChatWidget::appendMsg(AbstractUiMsg *msg) {
Q_ASSERT(line);
prependChatLine(line);
}
void ChatWidget::appendMsg(AbstractUiMsg *msg) {
- ChatLine
*line = static_cast<ChatLine
*>(msg);
+ ChatLine
Old *line = static_cast<ChatLineOld
*>(msg);
Q_ASSERT(line);
appendChatLine(line);
}
Q_ASSERT(line);
appendChatLine(line);
}
-void ChatWidget::appendChatLine(ChatLine *line) {
+void ChatWidget::appendChatLine(ChatLine
Old
*line) {
QTextCursor cursor = textCursor();
moveCursor(QTextCursor::End);
if(!document()->isEmpty()) insertPlainText("\n");
QTextCursor cursor = textCursor();
moveCursor(QTextCursor::End);
if(!document()->isEmpty()) insertPlainText("\n");
@@
-55,13
+55,13
@@
void ChatWidget::appendChatLine(ChatLine *line) {
setTextCursor(cursor);
}
setTextCursor(cursor);
}
-void ChatWidget::appendChatLines(QList<ChatLine *> list) {
- foreach(ChatLine *line, list) {
+void ChatWidget::appendChatLines(QList<ChatLine
Old
*> list) {
+ foreach(ChatLine
Old
*line, list) {
appendChatLine(line);
}
}
appendChatLine(line);
}
}
-void ChatWidget::prependChatLine(ChatLine *line) {
+void ChatWidget::prependChatLine(ChatLine
Old
*line) {
QTextCursor cursor = textCursor();
moveCursor(QTextCursor::Start);
bool flg = document()->isEmpty();
QTextCursor cursor = textCursor();
moveCursor(QTextCursor::Start);
bool flg = document()->isEmpty();
@@
-72,13
+72,13
@@
void ChatWidget::prependChatLine(ChatLine *line) {
setTextCursor(cursor);
}
setTextCursor(cursor);
}
-void ChatWidget::prependChatLines(QList<ChatLine *> list) {
- foreach(ChatLine *line, list) {
+void ChatWidget::prependChatLines(QList<ChatLine
Old
*> list) {
+ foreach(ChatLine
Old
*line, list) {
prependChatLine(line);
}
}
prependChatLine(line);
}
}
-void ChatWidget::insertChatLine(ChatLine *line) {
+void ChatWidget::insertChatLine(ChatLine
Old
*line) {
if(!document()->isEmpty()) insertPlainText("\n");
insertStyledText(line->styledSender());
insertPlainText(" ");
if(!document()->isEmpty()) insertPlainText("\n");
insertStyledText(line->styledSender());
insertPlainText(" ");