Berthold Stoeger
135ea00d88
implify recent file handling in mainwindow.cpp
...
The old code used to be unnecessarily complex: the recent files list
was extended for each file and shrunk if a load failed.
By adding a file to the recent file list only if the load succeeded, a
whole method could be removed.
Other changes: keep track of the recent files using a QStringList and
clearly separate the actions:
- Read recent files from settings [loadRecentFiles()]
- Write recent files to settings [updateRecentFiles()]
- Update the recent files actions in the menu [updateRecentFilesMenu()]
- Add a file to the list of recent files [addRecentFile()]
With this reorganization the code hopefully became more clear.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2017-11-30 16:52:22 +01:00
..
2015-10-30 10:36:49 -07:00
2017-11-29 14:05:07 -08:00
2017-11-29 14:05:07 -08:00
2017-04-29 13:32:55 -07:00
2017-11-29 14:05:07 -08:00
2017-04-29 13:32:55 -07:00
2017-04-29 13:32:55 -07:00
2017-11-29 14:05:07 -08:00
2017-11-16 14:26:51 +01:00
2017-11-13 20:48:17 -08:00
2017-11-16 14:26:51 +01:00
2017-11-05 14:48:56 -08:00
2017-11-24 16:58:55 -08:00
2017-06-21 18:43:15 -07:00
2017-11-29 14:05:07 -08:00
2017-11-29 14:05:07 -08:00
2017-04-29 13:32:55 -07:00
2017-04-29 13:32:55 -07:00
2017-11-29 14:05:07 -08:00
2017-10-26 15:53:47 +02:00
2017-10-03 15:43:03 -07:00
2017-11-04 14:27:00 +01:00
2017-04-29 13:32:55 -07:00
2017-11-29 14:05:07 -08:00
2017-09-11 07:21:43 -07:00
2017-04-29 13:32:55 -07:00
2017-11-29 14:05:07 -08:00
2017-05-06 11:12:28 -07:00
2017-04-29 13:32:55 -07:00
2017-11-25 20:17:35 +01:00
2017-11-04 14:51:02 +01:00
2016-04-04 22:33:58 -07:00
2017-04-29 13:32:55 -07:00
2017-05-27 11:07:20 -07:00
2015-10-30 10:36:49 -07:00
2017-11-13 20:48:17 -08:00
2017-11-11 21:01:42 +01:00
2017-11-29 14:05:07 -08:00
2017-11-29 14:05:07 -08:00
2017-04-29 13:32:55 -07:00
2017-04-29 13:32:55 -07:00
2017-04-29 13:32:55 -07:00
2017-04-29 13:32:55 -07:00
2015-10-30 10:36:49 -07:00
2017-11-29 14:05:07 -08:00
2017-11-27 22:59:22 +01:00
2017-11-29 14:05:07 -08:00
2017-11-30 16:52:22 +01:00
2017-11-30 16:52:22 +01:00
2017-11-29 14:05:07 -08:00
2017-11-09 12:40:25 -08:00
2017-11-09 12:40:25 -08:00
2017-09-04 07:46:35 -07:00
2017-04-29 13:32:55 -07:00
2017-04-29 13:32:55 -07:00
2017-04-29 13:32:55 -07:00
2017-02-24 01:06:09 -08:00
2017-11-13 11:53:55 +01:00
2017-04-29 13:32:55 -07:00
2017-04-29 13:32:55 -07:00
2017-04-29 13:32:55 -07:00
2017-04-29 13:32:55 -07:00
2017-11-28 11:36:19 +02:00
2017-11-24 21:50:16 +02:00
2015-10-30 10:36:49 -07:00
2015-10-30 10:36:49 -07:00
2015-10-30 10:36:49 -07:00
2017-11-29 14:05:07 -08:00
2017-11-29 14:05:07 -08:00
2017-11-29 14:05:07 -08:00
2017-11-29 14:05:07 -08:00
2017-11-29 14:05:07 -08:00
2017-11-29 14:05:07 -08:00
2017-05-01 21:23:42 -07:00
2017-11-29 14:05:07 -08:00
2017-04-29 13:32:55 -07:00
2017-10-26 15:55:49 +02:00
2017-11-26 23:17:23 +01:00
2017-11-29 14:05:07 -08:00
2017-04-29 13:32:55 -07:00
2015-10-30 10:36:49 -07:00
2017-11-17 09:19:03 +01:00
2017-04-29 13:32:55 -07:00
2017-04-29 13:32:55 -07:00
2017-04-29 13:32:55 -07:00
2017-03-12 09:19:03 -07:00
2017-11-24 23:06:52 +02:00
2017-11-24 23:06:52 +02:00
2017-04-29 13:32:55 -07:00
2017-04-29 13:32:55 -07:00
2017-11-29 14:05:07 -08:00
2017-04-29 13:32:55 -07:00
2017-01-12 14:06:54 -08:00
2017-11-29 14:05:07 -08:00
2017-04-29 13:32:55 -07:00
2017-11-29 14:05:07 -08:00
2017-04-29 13:32:55 -07:00
2017-03-06 06:40:00 -08:00
2017-11-29 14:05:07 -08:00