diff options
Diffstat (limited to 'archiveview.h')
-rw-r--r-- | archiveview.h | 25 |
1 files changed, 21 insertions, 4 deletions
diff --git a/archiveview.h b/archiveview.h index 1359e88..36c3eb4 100644 --- a/archiveview.h +++ b/archiveview.h @@ -133,10 +133,13 @@ class FileTypeDelegate : public QStyledItemDelegate { QHash<int, QString> mFiletypeMap; }; -class MappingEditor : public QDialog { +/* separate widget since we need it in NewMovieWizard + * and editing genres, actors in the new ArchiveView */ + +class MappingEditorWidget : public QWidget { Q_OBJECT public: - explicit MappingEditor(const QString &caption, QWidget *parent = 0, Qt::WindowFlags f = 0); + explicit MappingEditorWidget(const QString &caption, QWidget *parent = 0); void fillCompleter(const QStringList &completions); void setCurrentItems(const QStringList &items); QStringList items() const; @@ -151,13 +154,27 @@ class MappingEditor : public QDialog { SmTreeView *mView; QPushButton *mAdd; QPushButton *mRemove; - QPushButton *mAccept; - QPushButton *mCancel; QLineEdit *mEditor; QCompleter *mCompleter; QStringListModel *mCompleterModel; }; +/* dialog putting MappingEditorWidget and + * Cancel, Accept buttons together. Used when editing + * ArchiveView */ + +class MappingEditor : public QDialog { + Q_OBJECT + public: + explicit MappingEditor(const QString &caption, QWidget *parent = 0, Qt::WindowFlags f = 0); + MappingEditorWidget *widget() { return mWidget; } + + private: + QPushButton *mAccept; + QPushButton *mCancel; + MappingEditorWidget *mWidget; +}; + class MetadataEditor : public QDialog { Q_OBJECT public: |