various menu improvements

This commit is contained in:
itsmattkc
2018-12-30 20:58:51 +11:00
parent 34fc8b81d2
commit f347c8eabe
9 changed files with 160 additions and 127 deletions
+1 -1
View File
@@ -352,7 +352,7 @@ Media *Project::item_to_media(const QModelIndex &index) {
// return static_cast<Media*>(index.internalPointer());
}
void Project::get_all_media_from_table(QList<Media*> items, QList<Media*>& list, int search_type) {
void Project::get_all_media_from_table(QList<Media*>& items, QList<Media*>& list, int search_type) {
for (int i=0;i<items.size();i++) {
Media* item = items.at(i);
if (item->get_type() == MEDIA_TYPE_FOLDER) {
+1 -1
View File
@@ -76,6 +76,7 @@ public:
QModelIndexList get_current_selected();
void start_preview_generator(Media* item, bool replacing);
void get_all_media_from_table(QList<Media *> &items, QList<Media *> &list, int type = -1);
public slots:
void import_dialog();
void delete_selected_media();
@@ -89,7 +90,6 @@ private:
int folder_id;
int media_id;
int sequence_id;
void get_all_media_from_table(QList<Media *> items, QList<Media *> &list, int type);
void list_all_sequences_worker(QVector<Media *> *list, Media* parent);
QString get_file_name_from_path(const QString &path);
QDir proj_dir;