Syncing my state before starting to reorganize the UI parts of the source...
authorManuel Nickschas <sputnick@quassel-irc.org>
Sat, 20 Oct 2007 15:11:58 +0000 (15:11 +0000)
committerManuel Nickschas <sputnick@quassel-irc.org>
Sat, 20 Oct 2007 15:11:58 +0000 (15:11 +0000)
src/client/client.cpp
src/qtopia/chatline.cpp
src/qtopia/chatwidget.cpp
src/qtui/coreconnectdlg.cpp

index 95748cb..73316ca 100644 (file)
@@ -199,7 +199,6 @@ bool Client::isConnected() {
 void Client::connectToCore(const QVariantMap &conn) {
   // TODO implement SSL
   coreConnectionInfo = conn;
 void Client::connectToCore(const QVariantMap &conn) {
   // TODO implement SSL
   coreConnectionInfo = conn;
-  
   if(isConnected()) {
     emit coreConnectionError(tr("Already connected to Core!"));
     return;
   if(isConnected()) {
     emit coreConnectionError(tr("Already connected to Core!"));
     return;
index eff324b..531fe28 100644 (file)
@@ -68,6 +68,6 @@ QString ChatLine::htmlTimeStamp() const {
 
 
 QString ChatLine::formattedToHtml(const QString &f) {
 
 
 QString ChatLine::formattedToHtml(const QString &f) {
-  
+   
   return f;
 }
   return f;
 }
index f7eaed2..b492fd3 100644 (file)
@@ -19,6 +19,7 @@
  ***************************************************************************/
 
 #include <QDebug>
  ***************************************************************************/
 
 #include <QDebug>
+#include <QtGui>
 #include "chatwidget.h"
 
 ChatWidget::ChatWidget(QWidget *parent) : QTextEdit(parent) {
 #include "chatwidget.h"
 
 ChatWidget::ChatWidget(QWidget *parent) : QTextEdit(parent) {
@@ -58,6 +59,16 @@ void ChatWidget::prependChatLine(ChatLine *line) {
   moveCursor(QTextCursor::Start);
   insertHtml(line->text());
   setTextCursor(cursor);
   moveCursor(QTextCursor::Start);
   insertHtml(line->text());
   setTextCursor(cursor);
+  QTextCharFormat fmt;
+  fmt.setForeground(QBrush("#eeff33"));
+  QFont font("Courier", 8);
+  font.setFixedPitch(true); qDebug() << font.family();
+  fmt.setFont(font);
+  //fmt.setBackground(QBrush("#112233"));
+  QTextCursor crsor(document());
+  crsor.movePosition(QTextCursor::End, QTextCursor::KeepAnchor);
+  crsor.select(QTextCursor::Document);
+  crsor.setCharFormat(fmt);
 }
 
 void ChatWidget::prependChatLines(QList<ChatLine *> list) {
 }
 
 void ChatWidget::prependChatLines(QList<ChatLine *> list) {
index 4d0740c..d2c8d06 100644 (file)
@@ -208,7 +208,6 @@ void CoreConnectDlg::doAutoConnect() {
 
 void CoreConnectDlg::doConnect() {
   accountChanged(); // save current account info
 
 void CoreConnectDlg::doConnect() {
   accountChanged(); // save current account info
-
   QVariantMap conninfo;
   ui.stackedWidget->setCurrentIndex(1);
   if(ui.internalCore->isChecked()) {
   QVariantMap conninfo;
   ui.stackedWidget->setCurrentIndex(1);
   if(ui.internalCore->isChecked()) {