Sidebar summary honor color changes

.. was not being redrawn when the color preferences changed.
This commit is contained in:
Mark Liversedge
2014-06-19 13:17:05 +01:00
parent c94b7a5bb2
commit d7e8a23794
2 changed files with 10 additions and 4 deletions

View File

@@ -125,8 +125,11 @@ DiarySidebar::configChanged()
.arg(fgColor.name()).arg(bgColor.name())); // clear any shit left behind from parents (Larkin ?)
// now apply
refresh();
multiCalendar->refresh();
// and summary .. forgetting what we already prepared
from = to = QDate();
setSummary();
}
void

View File

@@ -238,9 +238,6 @@ LTMSidebar::LTMSidebar(Context *context) : QWidget(context->mainWindow), context
connect(context, SIGNAL(presetsChanged()), this, SLOT(presetsChanged()));
connect(chartTree,SIGNAL(itemSelectionChanged()), this, SLOT(presetTreeWidgetSelectionChanged()));
// let everyone know what date range we are starting with
dateRangeTreeWidgetSelectionChanged();
// setup colors
configChanged();
}
@@ -287,6 +284,12 @@ LTMSidebar::configChanged()
// set or reset the autofilter widgets
autoFilterChanged();
// forget what we just used...
from = to = QDate();
// let everyone know what date range we are starting with
dateRangeTreeWidgetSelectionChanged();
}
/*----------------------------------------------------------------------