And where do you store events once you start scheduling stuff in the calendar? What's the purpose of the model in the calendar of yours?
And where do you store events once you start scheduling stuff in the calendar? What's the purpose of the model in the calendar of yours?
J-P Nurmi
Appointments are stored in textfiles. When you double click a date you get a little editor which stores it's stuff on disk when ready. It only needs to know the date for the filename. I have functions to convert between QDate and QModelIndex.
The paint() checks if a file exists and colors the cell accordingly.
The model's only purpose is to make that tableview work, I don't actualy need the QStandardItems in it. I just need the display and the events like currentchanged() and activated().
Am I that crazy?
Last edited by JeanC; 11th February 2008 at 16:28.
Bookmarks