From 9833de356989d06c2fdc9c0d407712e07048be61 Mon Sep 17 00:00:00 2001 From: Arno Date: Tue, 26 Dec 2017 19:01:42 +0100 Subject: Get rid of the headerMapper QSignalMapper This one was a bit harder, because I made a function return the QSignalMapper, but I could reuse it with a signature change. Just provide the view, too, so we can make the connection inside the function, which now returns void. --- shemov.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'shemov.h') diff --git a/shemov.h b/shemov.h index e8126ac..4f59379 100644 --- a/shemov.h +++ b/shemov.h @@ -19,6 +19,7 @@ class QActionGroup; class NewMovieWizard; class PicturesWidget; class SmTreeModel; +class SmTreeView; class NewPicsDialog; class ArchiveView; class ArchiveBrowser; @@ -65,7 +66,7 @@ class SheMov : public QMainWindow { private: QAction *createSeparator(); - QSignalMapper* createHeaderMapper(SmTreeModel *model, QActionGroup *group); + void createHeaderMapper(SmTreeModel *model, SmTreeView *view, QActionGroup *group); void createStatusbar(); void createActions(); void createMenus(); -- cgit v1.2.3-70-g09d2