Eventdialog: make sure the same colours as everywhere are used.
authorgregor herrmann <gregoa@debian.org>
Thu, 30 May 2013 13:13:11 +0000 (13:13 +0000)
committergregor herrmann <gregoa@debian.org>
Thu, 30 May 2013 13:13:11 +0000 (13:13 +0000)
Additionally adjust font size on maemo.

This should allow to close #48.

src/gui/eventdialog.cpp

index 28e5914..eb006ce 100644 (file)
@@ -66,6 +66,15 @@ EventDialog::EventDialog(int conferenceId, int eventId, QWidget *parent): QDialo
     info += QString("</ul>\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()));