summaryrefslogtreecommitdiffabout
path: root/korganizer/kowhatsnextview.cpp
Side-by-side diff
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
@@ -41,3 +41,3 @@
#include "koeventviewerdialog.h"
-
+#include <qstylesheet.h>
#include "kowhatsnextview.h"
@@ -70,3 +70,13 @@ KOWhatsNextView::KOWhatsNextView(Calendar *calendar, QWidget *parent,
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;
@@ -146,3 +156,3 @@ void KOWhatsNextView::updateView()
//<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>";
@@ -328,3 +338,3 @@ void KOWhatsNextView::updateView()
- mText += "</td></tr>\n</table>\n";
+ mText += "</td></tr>\n</table></qt>\n";
@@ -342,2 +352,3 @@ void KOWhatsNextView::updateView()
// mView->setBackgroundPixmap ( bPix );
+ qDebug("%s ",mText.latin1());
}