removed dead code, and added check for incorrect file names when saving

This commit is contained in:
csoler 2024-03-28 21:26:09 +01:00
parent 20f4b51bb7
commit 8366cbca59
5 changed files with 44 additions and 1203 deletions

View file

@ -64,18 +64,8 @@ private slots:
void chooseDestinationDirectory();
void setDestinationDirectory();
void openDestinationDirectoryMenu();
#ifdef TO_REMOVE
void processItem(QMap<QString, QString> &dirToAdd
, int &index
, ColFileInfo &parent
) ;
#endif
void makeDir() ;
void fileHashingFinished(QList<HashedFile> hashedFiles) ;
#ifdef TO_REMOVE
void itemChanged(QTreeWidgetItem* item,int col) ;
#endif
void updateRemoveDuplicate(bool checked);
void cancel() ;
void download() ;
void save() ;
@ -85,21 +75,9 @@ signals:
private:
void processSettings(bool bLoad) ;
bool updateList();
#ifdef TO_REMOVE
QTreeWidgetItem* getRootItem();
bool addChild(QTreeWidgetItem *parent, const std::vector<ColFileInfo> &child);
bool removeItem(QTreeWidgetItem *item, bool &removeOnlyFile) ;
void saveChild(QTreeWidgetItem *parentItem, ColFileInfo *parentInfo = NULL);
bool addAllChild(QFileInfo &fileInfoParent
, QMap<QString, QString > &dirToAdd
, QStringList &fileToHash
, int &count);
#endif
void addSelection(bool recursive) ;
Ui::RsCollectionDialog ui;
QString _fileName ;
RsCollectionDialogMode _mode;