diff options
author | Arno <am@disconnect.de> | 2010-07-04 10:13:17 +0200 |
---|---|---|
committer | Arno <am@disconnect.de> | 2010-07-04 10:13:17 +0200 |
commit | 5dd4fe05df7619fb68356613b698fb373f4fccee (patch) | |
tree | d74adce3b2a1c56448e9dea08a23c51f83decedb /shemov.h | |
parent | 8c6051a16b12f265d7a30b4b24da10b3ba63edae (diff) | |
download | SheMov-5dd4fe05df7619fb68356613b698fb373f4fccee.tar.gz SheMov-5dd4fe05df7619fb68356613b698fb373f4fccee.tar.bz2 SheMov-5dd4fe05df7619fb68356613b698fb373f4fccee.zip |
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
Diffstat (limited to 'shemov.h')
-rw-r--r-- | shemov.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 |