aboutsummaryrefslogtreecommitdiff
path: root/qdeduper/utilities.hpp
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2022-09-30 23:58:46 -0400
committerGravatar Chris Xiong <chirs241097@gmail.com> 2022-09-30 23:59:21 -0400
commite25c84c0463f5a43d3b2bb836850f5c5963a2846 (patch)
tree504c65782410c5ead34b0941449a9abaa9c23001 /qdeduper/utilities.hpp
parentb6c8082dfc854b58cae798a6150681f7b9a343d3 (diff)
downloaddeduper-e25c84c0463f5a43d3b2bb836850f5c5963a2846.tar.xz
Add context menu for the image view.
Shortcuts are currently broken. Will be fixed in future commits.
Diffstat (limited to 'qdeduper/utilities.hpp')
-rw-r--r--qdeduper/utilities.hpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/qdeduper/utilities.hpp b/qdeduper/utilities.hpp
new file mode 100644
index 0000000..a4f4f61
--- /dev/null
+++ b/qdeduper/utilities.hpp
@@ -0,0 +1,18 @@
+#ifndef UTILITIES_HPP
+#define UTILITIES_HPP
+
+#include <filesystem>
+
+#include <QString>
+
+namespace fs = std::filesystem;
+
+namespace utilities
+{
+ void open_containing_folder(const fs::path &path);
+ QString fspath_to_qstring(const fs::path &p);
+ QString fsstr_to_qstring(const fs::path::string_type &s);
+ fs::path qstring_to_path(const QString &s);
+};
+
+#endif