View Single Post
pichlo's Avatar
Posts: 6,453 | Thanked: 20,983 times | Joined on Sep 2012 @ UK
#109
Originally Posted by sixwheeledbeast View Post
Or instead of removing the label, you could make the label display a true example; instead of repeating the lineEdit.

So if lineEdit is "Recording %Y%m%d-%H%M%S"
Label is "Recording 20140325-214200"
Not sure how easy that is to implement
That would not be too difficult but it might be a bit misleading. The format string is resolved at the time of starting the recording. Doing the above would resolve it at a wrong time and show the wrong result. I suppose I could make it a "Validate" button and pop up a messagebox with the result instead of updating the label, making it clear that the result is just a sample and the actual file name may be different.

BTW, another thing I was considering was having an option to use the start or the end time of the recording for the file name generation. That is a bit trickier but not insurmountable.

If you go with above it could also be useful to add a clear button to load the current QSettings back to the lineEdit. Incase you mess up and want to revert back.
That could work too but aesthetically there is not enough room for two buttons. So it's either "Validate" or "Clear", take your pick.
__________________
Русский военный корабль, иди нахуй!
 

The Following 2 Users Say Thank You to pichlo For This Useful Post: