diff options
author | Arno <am@disconnect.de> | 2010-11-28 11:58:57 +0100 |
---|---|---|
committer | Arno <am@disconnect.de> | 2010-11-28 11:58:57 +0100 |
commit | d1837c9c92c9f38a464f0473001db4e9a57d44e7 (patch) | |
tree | 9d815a4c1e1c550871565c92d7e0c8f312f05f72 /archivetreeview.h | |
parent | eb4139c5c525c03d4c75c0a47acc92157008ca06 (diff) | |
download | SheMov-d1837c9c92c9f38a464f0473001db4e9a57d44e7.tar.gz SheMov-d1837c9c92c9f38a464f0473001db4e9a57d44e7.tar.bz2 SheMov-d1837c9c92c9f38a464f0473001db4e9a57d44e7.zip |
Added action to copy file path to clipboard
4 new actions to copy the file path to clipboard. It's either the unix
full path, the unix dir, the windows full path or the windows dir. For
the latter '/' is replaced with '\' and a drive letter is prepended.
The drive letter is configurable in the ConfigurationDialog. While at it
I revamped it and added another tab to make it more user friendly.
Diffstat (limited to 'archivetreeview.h')
-rw-r--r-- | archivetreeview.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/archivetreeview.h b/archivetreeview.h index a9d2266..7b0cd47 100644 --- a/archivetreeview.h +++ b/archivetreeview.h @@ -34,6 +34,7 @@ class ArchiveTreeView : public QWidget { Q_OBJECT public: + enum CopyType { WindowsDir, WindowsFullPath, UnixDir, UnixFullPath }; explicit ArchiveTreeView(QWidget *parent = 0); SeriesTreeWidget *seriesWidget() { return mSeriesWidget; } FilesTreeWidget *filesWidget() { return mFilesWidget; } @@ -47,6 +48,7 @@ class ArchiveTreeView : public QWidget void cleanDatabase(const QString &table); void showNoCoverDialog(); void selectMovie(const QModelIndex &idx); + void copyPath(int type); private slots: void currentChanged(const QItemSelection &selected, const QItemSelection &deselected); @@ -56,6 +58,7 @@ class ArchiveTreeView : public QWidget private: //functions void constructWindowTitle(); + const QString createWindowsPath(const QString &path) const; //widgets SeriesTreeWidget *mSeriesWidget; |