summaryrefslogtreecommitdiffstats
path: root/smglobals.h
Commit message (Collapse)AuthorAgeFilesLines
* Created general purpose HoverWidgetArno2010-10-161-0/+2
| | | | | | This commit outsources the HoverWindow to a seperate file and makes it possible to set a pixmap to the window. Also the cursor offset is only calculated once in SmGlobals.
* Act on doubleClick in FileTreeWidgetArno2010-07-241-0/+33
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.