From 046503ba7830427fcd055da569326f0ac814b979 Mon Sep 17 00:00:00 2001 From: Arno Date: Fri, 5 Apr 2013 21:23:45 +0200 Subject: New Class: SmTreeView Code reusage: all 3 tabs had the same funtions: readHeaderConfig, writeHeaderConfig and toggleHeader, so turn it into a class derived from QTreeView. Unfortunately mATree didn't do things as later added Views, so it took some time to find the culprit in SheMov::readSettings :( Hopefully I didn't break too much... --- shemov.pro | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'shemov.pro') diff --git a/shemov.pro b/shemov.pro index d62cd41..3b81463 100644 --- a/shemov.pro +++ b/shemov.pro @@ -42,7 +42,8 @@ SOURCES = main.cpp \ picfilesmodel.cpp \ smdirwatcher.cpp \ smdirmodel.cpp \ - framecache.cpp + framecache.cpp \ + smtreeview.cpp HEADERS = \ filesystemdirproxy.h \ filesystemwidget.h \ @@ -80,6 +81,7 @@ HEADERS = \ picfilesmodel.h \ smdirwatcher.h \ smdirmodel.h \ - framecache.h + framecache.h \ + smtreeview.h LIBS += -lmagic -lXfixes -lX11 RESOURCES = shemov.qrc -- cgit v1.2.3-70-g09d2