Closed N3Roaster closed 10 years ago
While 9d84ef6 does technically satisfy this issue, the daterange branch should not be merged to development until the reports which currently use two separate date selectors have been modified to take advantage of the new control. I would also like to see additional features provided for better control of range selection from scripts and support for an XML defined default selection.
Reports in Typica commonly operate on a range of dates. Presently this is handled with a pair of QDateEdit widgets for selecting the starting and ending dates. This has the side effect that when one side of the range is altered, Typica immediately regenerates the report with the new date range. Some reports can take some time to produce and this is annoying if the other side of the date range also must be updated. The solution is a control that allows both sides of the range to be manipulated at once. One of the more elegant approaches that I've seen to this is on the YouTube analytics web pages.
There is no reason that something similar could not be created with Qt. Key elements here are the combo box that allows quick selection of commonly interesting ranges. One item in this list is Custom, selecting which has the same effect as clicking the calendar button next to the combo box, of popping up a composite widget with two calendar widgets and controls for either accepting or cancelling the change in date range. Rather than the word custom, the combo box would display the newly selected range in such a case. The pop up will be hidden most of the time and does not use space in the primary layout so this is both more usable and more space efficient.