]> gitweb.stoutner.com Git - PrivacyBrowserPC.git/blobdiff - src/widgets/DraggableTreeView.h
Make dropping a bookmark under an open folder place it inside the folder. https...
[PrivacyBrowserPC.git] / src / widgets / DraggableTreeView.h
index 983ff1c2924c5875dac86a72c0a50f996359efe3..961d2fa227f9e5c542b82ba048f7a87a301c0340 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2023 Soren Stoutner <soren@stoutner.com>.
+ * Copyright 2023-2024 Soren Stoutner <soren@stoutner.com>.
  *
  * This file is part of Privacy Browser PC <https://www.stoutner.com/privacy-browser-pc>.
  *
@@ -40,6 +40,9 @@ protected:
     void dropEvent(QDropEvent *event) override;
 
 private:
+    // The private functions
     QList<int>* getRootSelectedDatabaseIds(QList<int> *selectedDatabaseIdsPointer) const;
+    void moveToBeginningOfFolder(const QModelIndex &dropModelIndex, QList<int> *selectedDatabaseIdsListPointer, QList<int> *rootSelectedDatabaseIdsListPointer,
+                                 std::list<double> *previousParentFolderIdListPointer) const;
 };
 #endif