From ad322157891cec53a7b660629d7c244e75df81d5 Mon Sep 17 00:00:00 2001 From: Arno Date: Sat, 24 Jul 2010 17:15:00 +0200 Subject: Act on doubleClick in FileTreeWidget When doubleclicking a picture in FileTreeWidget the pictureViewer is shown. Doubleclicking a movie file launches the default movie player. Since PictureViewer is now used in FileSystemWidget and ArchiveTreeView a global instance is needed. The appropriate place for this is a singleton. Since we already had a singleton for QAbstractItemModels I renamed it to SmGlobals and added a function to return a PictureViewer object. Renaming it was quite easy thanks to QtCreator's ability to rename variable names. --- TODOS | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'TODOS') diff --git a/TODOS b/TODOS index 947679a..efd3ac9 100644 --- a/TODOS +++ b/TODOS @@ -22,12 +22,12 @@ SheMov (MainWindow) TODOS: -updateSelectionCount for TreeView --tabChanged for TreeView +-tabChanged for TreeView (done) -File properties for TreeView --Fix database access for good! +-Fix database access for good! (done) -Fix statistics menu! --rename "Tree" --act on doubleclick in TreeView +-rename "Tree" (done) +-act on doubleclick in TreeView (done) -Finish this file -Fix Unable to free statement on exit -- cgit v1.2.3-70-g09d2