From 055231b5798627828bfe2e311ddbaeff713b2582 Mon Sep 17 00:00:00 2001 From: gregor herrmann Date: Thu, 30 May 2013 13:13:11 +0000 Subject: [PATCH] Eventdialog: make sure the same colours as everywhere are used. Additionally adjust font size on maemo. This should allow to close #48. --- src/gui/eventdialog.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/gui/eventdialog.cpp b/src/gui/eventdialog.cpp index 28e5914..eb006ce 100644 --- a/src/gui/eventdialog.cpp +++ b/src/gui/eventdialog.cpp @@ -66,6 +66,15 @@ EventDialog::EventDialog(int conferenceId, int eventId, QWidget *parent): QDialo info += QString("\n"); eventInfoTextBrowser->setHtml(info); + // make sure colours are the same as usual + eventInfoTextBrowser->setPalette(qApp->palette()); + // reduce font size, on maemo +#ifdef MAEMO + QFont font = eventInfoTextBrowser->font(); + font.setPointSizeF(font.pointSizeF()*0.8); + eventInfoTextBrowser->setFont(font); +#endif + connect(favouriteButton, SIGNAL(clicked()), SLOT(favouriteClicked())); connect(alarmButton, SIGNAL(clicked()), SLOT(alarmClicked())); -- 2.39.5