From 5dd4fe05df7619fb68356613b698fb373f4fccee Mon Sep 17 00:00:00 2001 From: Arno Date: Sun, 4 Jul 2010 10:13:17 +0200 Subject: Fix MovieInfoPage The first page of NewMovieWizard gave me quite a headache. It crashed with a segmentation fault because of exposing mDvdNo via registerField() without actually assigning a QCheckBox to it. The backtrace isn't very helpful in such a case. I also fixed some bugs on the way: 1. use SmTreeItem::setData in SmTreeModel::addRow instead of deleting the old item and creating a new one. This way I don't need to take care of the parent. 2. get data of old item in SmTreeModel::reparent before calling removeRows. This call deletes the item. 3. Fix column alignments in WizardTreeModel for size column --- shemov.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'shemov.h') diff --git a/shemov.h b/shemov.h index c397378..18381a4 100644 --- a/shemov.h +++ b/shemov.h @@ -27,6 +27,7 @@ class ArchiveViewWidget; class EditArchiveItemDialog; class ArchiveItemEditDialog; class ArchiveTreeView; +class NewMovieWizard; class SheMov : public QMainWindow { Q_OBJECT @@ -47,6 +48,7 @@ class SheMov : public QMainWindow { void setFsFree(); void aboutShemov(); void showStatistics(); + void newMovieWizard(); private: void createStatusbar(); @@ -102,6 +104,7 @@ class SheMov : public QMainWindow { QAction *mExpandAllSeriesA; QAction *mCollapseAllSeriesA; QAction *mExpandCurrentA; + QAction *mNewMovieWizardA; QActionGroup *mOpenWithGroupFS; QActionGroup *mOpenWithGroupAV; @@ -129,6 +132,7 @@ class SheMov : public QMainWindow { MovieModel *mMovieModel; ListModel *mGenreModel; ListModel *mActorModel; + NewMovieWizard *mNewMovieWizard; }; #endif -- cgit v1.2.3-70-g09d2