From 65fec2cecdf8345c7b6b6e8ad5b83d6b5a6dad80 Mon Sep 17 00:00:00 2001 From: Arno Date: Sat, 22 Feb 2025 12:32:10 +0100 Subject: Guess actors from filename Continuing to use the filename pattern: use the first capture group split by '&' as possible actors. --- newmoviewizard.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'newmoviewizard.h') diff --git a/newmoviewizard.h b/newmoviewizard.h index aef50f5..a8f4908 100644 --- a/newmoviewizard.h +++ b/newmoviewizard.h @@ -20,6 +20,8 @@ class NewMovieWizard : public QWizard { explicit NewMovieWizard(QWidget *parent = nullptr); virtual void accept(); virtual void reject(); + void setPossibleActors(const QStringList &list) { mPossibleActors = list; }; + const QStringList &getPossibleActors() { return mPossibleActors; }; MovieInfoPage *infoPage() { return mInfoPage; } MovieMappingPage *actorPage() { return mActorPage; } MovieMappingPage *genrePage() { return mGenrePage; } @@ -30,6 +32,7 @@ class NewMovieWizard : public QWizard { MovieMappingPage *mActorPage; MovieMappingPage *mGenrePage; MovieMetadataPage *mMetadataPage; + QStringList mPossibleActors; }; #endif -- cgit v1.2.3-70-g09d2