Make QuasselTopia run on the Greenphone! \o/
[quassel.git] / src / qtopia / chatwidget.cpp
index 6a5ba02..e60083b 100644 (file)
@@ -24,6 +24,7 @@
 
 ChatWidget::ChatWidget(QWidget *parent) : QTextEdit(parent) {
   setStyleSheet("background-color: rgba(255, 255, 255, 60%)");
+  setTextInteractionFlags(Qt::TextBrowserInteraction);
 }
 
 void ChatWidget::setContents(QList<ChatLine *> lines) {
@@ -33,13 +34,13 @@ void ChatWidget::setContents(QList<ChatLine *> lines) {
 }
 
 void ChatWidget::prependMsg(AbstractUiMsg *msg) {
-  ChatLine *line = dynamic_cast<ChatLine*>(msg);
+  ChatLine *line = static_cast<ChatLine*>(msg);
   Q_ASSERT(line);
   prependChatLine(line);
 }
 
 void ChatWidget::appendMsg(AbstractUiMsg *msg) {
-  ChatLine *line = dynamic_cast<ChatLine*>(msg);
+  ChatLine *line = static_cast<ChatLine*>(msg);
   Q_ASSERT(line);
   appendChatLine(line);
 }