From ee157cde96772d4d18bf8f6364c491c8c6df21f1 Mon Sep 17 00:00:00 2001 From: Bill Somerville Date: Thu, 25 Jun 2020 12:57:12 +0100 Subject: [PATCH] Avoid overriding style sheet for astronomical data dialog background --- widgets/astro.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/widgets/astro.cpp b/widgets/astro.cpp index 122b86eff..b190d4a40 100644 --- a/widgets/astro.cpp +++ b/widgets/astro.cpp @@ -46,7 +46,8 @@ Astro::Astro(QSettings * settings, Configuration const * configuration, QWidget { ui_->setupUi (this); setWindowTitle (QApplication::applicationName () + " - " + tr ("Astronomical Data")); - setStyleSheet ("QWidget {background: white;}"); + setBackgroundRole (QPalette::Base); + setAutoFillBackground (true); connect (ui_->cbDopplerTracking, &QAbstractButton::toggled, ui_->doppler_widget, &QWidget::setVisible); read_settings (); ui_->text_label->clear ();