summaryrefslogtreecommitdiffabout
path: root/kmicromail
authorzautrix <zautrix>2005-02-24 11:19:48 (UTC)
committer zautrix <zautrix>2005-02-24 11:19:48 (UTC)
commitff8a2f593fae5ffe82f889ab70d32bf02a45f4fb (patch) (side-by-side diff)
treeb3b4c6ee66b7ae39fad43622a2badacdbe9ed4e1 /kmicromail
parent66ea8a0023a2a58e7887a41c265f2a7112b6b625 (diff)
downloadkdepimpi-ff8a2f593fae5ffe82f889ab70d32bf02a45f4fb.zip
kdepimpi-ff8a2f593fae5ffe82f889ab70d32bf02a45f4fb.tar.gz
kdepimpi-ff8a2f593fae5ffe82f889ab70d32bf02a45f4fb.tar.bz2
ompi html fixes
Diffstat (limited to 'kmicromail') (more/less context) (show whitespace changes)
-rw-r--r--kmicromail/viewmail.cpp23
-rw-r--r--kmicromail/viewmail.h2
2 files changed, 22 insertions, 3 deletions
diff --git a/kmicromail/viewmail.cpp b/kmicromail/viewmail.cpp
index 726f540..685b4e4 100644
--- a/kmicromail/viewmail.cpp
+++ b/kmicromail/viewmail.cpp
@@ -99,6 +99,18 @@ void ViewMail::setBody(const RecBodyP&body )
m_body = body;
m_mail[2] = body->Bodytext();
+ m_showHtml = KOPrefs::instance()->mViewAsHtml;
+ if ( m_showHtml ) {
+ if ( m_mail[2].find ("<html>",0,false ) > -1 ) {
+ qDebug("html mail ");
+ } else {
+ qDebug("no html mail ");
+ m_showHtml = false;
+ }
+ }
+ showHtml->blockSignals( true );
+ showHtml->setOn( m_showHtml );
+ showHtml->blockSignals( false );
// qDebug("********text %s ",m_mail[2].latin1() );
attachbutton->setEnabled(body->Parts().count()>0);
attachments->setEnabled(body->Parts().count()>0);
@@ -331,7 +343,14 @@ void ViewMail::setMail(const RecMailP&mail )
setText();
}
-
+void ViewMail::slotNextMail()
+{
+ nextMail->blockSignals( true );
+ setCaption(i18n("Displaying next mail...please wait!"));
+ qApp->processEvents();
+ emit showNextMail(this);
+ nextMail->blockSignals( false );
+}
ViewMail::ViewMail( QWidget *parent, const char *name, WFlags fl)
: ViewMailBase(parent, name, fl), _inLoop(false)
@@ -339,6 +358,7 @@ ViewMail::ViewMail( QWidget *parent, const char *name, WFlags fl)
m_gotBody = false;
deleted = false;
sourceOn = false;
+ readConfig();
connect( reply, SIGNAL(activated()), SLOT(slotReply()));
connect( forward, SIGNAL(activated()), SLOT(slotForward()));
connect( deleteMail, SIGNAL( activated() ), SLOT( slotDeleteMail() ) );
@@ -351,7 +371,6 @@ ViewMail::ViewMail( QWidget *parent, const char *name, WFlags fl)
attachments->setEnabled(m_gotBody);
connect( attachments, SIGNAL( clicked(QListViewItem*,const QPoint&, int) ), SLOT( slotItemClicked(QListViewItem*,const QPoint&, int) ) );
- readConfig();
attachments->setSorting(-1);
}
diff --git a/kmicromail/viewmail.h b/kmicromail/viewmail.h
index fc5edcf..bb5b685 100644
--- a/kmicromail/viewmail.h
+++ b/kmicromail/viewmail.h
@@ -54,7 +54,7 @@ protected:
AttachItem* lastChild(AttachItem*parent);
protected slots:
- void slotNextMail() { setCaption(i18n("Displaying next mail...please wait!")); qApp->processEvents();emit showNextMail(this); };
+ void slotNextMail();
void slotReply();
void slotForward();
void setText();