summaryrefslogtreecommitdiffabout
path: root/korganizer/kowhatsnextview.cpp
authorzautrix <zautrix>2004-10-27 00:49:03 (UTC)
committer zautrix <zautrix>2004-10-27 00:49:03 (UTC)
commitba3d660ed4f856362d2b914ed744874c235b4001 (patch) (side-by-side diff)
treed70423c6bf3a6342a6ae2277dda70f15736086a9 /korganizer/kowhatsnextview.cpp
parent00d623c9391a9bdaeb142f443f1dd09861317608 (diff)
downloadkdepimpi-ba3d660ed4f856362d2b914ed744874c235b4001.zip
kdepimpi-ba3d660ed4f856362d2b914ed744874c235b4001.tar.gz
kdepimpi-ba3d660ed4f856362d2b914ed744874c235b4001.tar.bz2
fixed some whantsnext view kayout
Diffstat (limited to 'korganizer/kowhatsnextview.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/kowhatsnextview.cpp19
1 files changed, 15 insertions, 4 deletions
diff --git a/korganizer/kowhatsnextview.cpp b/korganizer/kowhatsnextview.cpp
index 0fea9be..59b864c 100644
--- a/korganizer/kowhatsnextview.cpp
+++ b/korganizer/kowhatsnextview.cpp
@@ -39,7 +39,7 @@
#include "koglobals.h"
#include "koprefs.h"
#include "koeventviewerdialog.h"
-
+#include <qstylesheet.h>
#include "kowhatsnextview.h"
using namespace KOrg;
@@ -68,7 +68,17 @@ KOWhatsNextView::KOWhatsNextView(Calendar *calendar, QWidget *parent,
setFont( KOPrefs::instance()->mWhatsNextFont );
mView = new WhatsNextTextBrowser(this);
connect(mView,SIGNAL(showIncidence(const QString &)),SLOT(showIncidence(const QString &)));
-
+ QStyleSheet* stsh = mView->styleSheet();
+ QStyleSheetItem * style ;
+
+ style = stsh->item ("h2" );
+ if ( style ) {
+ style->setMargin(QStyleSheetItem::MarginAll,0);
+ }
+ style = stsh->item ("table" );
+ if ( style ) {
+ style->setMargin(QStyleSheetItem::MarginAll,0);
+ }
mEventViewer = 0;
QBoxLayout *topLayout = new QVBoxLayout(this);
@@ -144,7 +154,7 @@ void KOWhatsNextView::updateView()
QString ipath;// = new QString();
// kil.loadIcon("korganizer",KIcon::NoGroup,32,KIcon::DefaultState,&ipath);
//<big><big><strong>" + date + "</strong></big></big>\n";
- mText = "<table width=\"100%\">\n";
+ mText = "<qt><table width=\"100%\">\n";
//mText += "<tr bgcolor=\"#3679AD\"><td><h2>";
#ifdef DESKTOP_VERSION
mText += "<tr bgcolor=\"#5699CD\"><td align=\"center\"><h1>";
@@ -326,7 +336,7 @@ void KOWhatsNextView::updateView()
if (replys > 0 ) mText += "</table>\n";
- mText += "</td></tr>\n</table>\n";
+ mText += "</td></tr>\n</table></qt>\n";
mView->setText(mText);
mView->setFocus();
@@ -340,6 +350,7 @@ void KOWhatsNextView::updateView()
// test->show();
// mView->setBackgroundMode(FixedPixmap );
// mView->setBackgroundPixmap ( bPix );
+ qDebug("%s ",mText.latin1());
}
void KOWhatsNextView::appendDay( int i, QDate eventDate )