diff --git a/src/lang/qbittorrent_bg.ts b/src/lang/qbittorrent_bg.ts index 8ec5162fe..7b19f5df6 100644 --- a/src/lang/qbittorrent_bg.ts +++ b/src/lang/qbittorrent_bg.ts @@ -4278,22 +4278,22 @@ Changelog: TorrentFilesModel - + Name Име - + Size Размер - + Progress Изпълнение - + Priority Предимство diff --git a/src/lang/qbittorrent_ca.ts b/src/lang/qbittorrent_ca.ts index 7aaff5405..de3cd0155 100644 --- a/src/lang/qbittorrent_ca.ts +++ b/src/lang/qbittorrent_ca.ts @@ -3653,22 +3653,22 @@ Log: TorrentFilesModel - + Name Nom - + Size Mida - + Progress Progrès - + Priority diff --git a/src/lang/qbittorrent_cs.ts b/src/lang/qbittorrent_cs.ts index 1fef22401..89784429e 100644 --- a/src/lang/qbittorrent_cs.ts +++ b/src/lang/qbittorrent_cs.ts @@ -3126,22 +3126,22 @@ p, li { white-space: pre-wrap; } TorrentFilesModel - + Name Název - + Size Velikost - + Progress Průběh - + Priority Priorita diff --git a/src/lang/qbittorrent_da.ts b/src/lang/qbittorrent_da.ts index b311cd21d..fb38c85e4 100644 --- a/src/lang/qbittorrent_da.ts +++ b/src/lang/qbittorrent_da.ts @@ -3317,22 +3317,22 @@ Changelog: TorrentFilesModel - + Name Navn - + Size Størrelse - + Progress Hentet - + Priority diff --git a/src/lang/qbittorrent_de.ts b/src/lang/qbittorrent_de.ts index d607f02e2..2cffea459 100644 --- a/src/lang/qbittorrent_de.ts +++ b/src/lang/qbittorrent_de.ts @@ -4249,22 +4249,22 @@ Changelog: TorrentFilesModel - + Name - + Size - + Progress - + Priority Priorität diff --git a/src/lang/qbittorrent_el.ts b/src/lang/qbittorrent_el.ts index 216d2206f..a165cef1c 100644 --- a/src/lang/qbittorrent_el.ts +++ b/src/lang/qbittorrent_el.ts @@ -4368,22 +4368,22 @@ Changelog: TorrentFilesModel - + Name - + Size Μέγεθος - + Progress Πρόοδος - + Priority Προτεραιότητα diff --git a/src/lang/qbittorrent_en.ts b/src/lang/qbittorrent_en.ts index f99da8628..21fa85b69 100644 --- a/src/lang/qbittorrent_en.ts +++ b/src/lang/qbittorrent_en.ts @@ -2426,22 +2426,22 @@ p, li { white-space: pre-wrap; } TorrentFilesModel - + Name - + Size - + Progress - + Priority diff --git a/src/lang/qbittorrent_es.ts b/src/lang/qbittorrent_es.ts index 2cf450e57..296d6f7ef 100644 --- a/src/lang/qbittorrent_es.ts +++ b/src/lang/qbittorrent_es.ts @@ -4196,22 +4196,22 @@ Log: TorrentFilesModel - + Name Nombre - + Size Tamaño - + Progress Progreso - + Priority Prioridad diff --git a/src/lang/qbittorrent_fi.ts b/src/lang/qbittorrent_fi.ts index fea6ee6bd..de58165e5 100644 --- a/src/lang/qbittorrent_fi.ts +++ b/src/lang/qbittorrent_fi.ts @@ -3853,22 +3853,22 @@ Muutoshistoria: TorrentFilesModel - + Name Nimi - + Size Koko - + Progress Edistyminen - + Priority Prioriteetti diff --git a/src/lang/qbittorrent_fr.ts b/src/lang/qbittorrent_fr.ts index 8ca2d5c54..150fe8afb 100644 --- a/src/lang/qbittorrent_fr.ts +++ b/src/lang/qbittorrent_fr.ts @@ -4456,22 +4456,22 @@ Changements: TorrentFilesModel - + Name Nom - + Size Taille - + Progress Progression - + Priority Priorité diff --git a/src/lang/qbittorrent_hu.ts b/src/lang/qbittorrent_hu.ts index fb47fe697..a241ebdc1 100644 --- a/src/lang/qbittorrent_hu.ts +++ b/src/lang/qbittorrent_hu.ts @@ -3678,22 +3678,22 @@ Changelog: TorrentFilesModel - + Name Név - + Size Méret - + Progress Folyamat - + Priority diff --git a/src/lang/qbittorrent_it.ts b/src/lang/qbittorrent_it.ts index cb5872dd1..ccd247d78 100644 --- a/src/lang/qbittorrent_it.ts +++ b/src/lang/qbittorrent_it.ts @@ -4053,22 +4053,22 @@ Changelog: TorrentFilesModel - + Name Nome - + Size Dimensione - + Progress - + Priority Priorità diff --git a/src/lang/qbittorrent_ja.ts b/src/lang/qbittorrent_ja.ts index 10b64bb93..39166058c 100644 --- a/src/lang/qbittorrent_ja.ts +++ b/src/lang/qbittorrent_ja.ts @@ -3620,22 +3620,22 @@ Changelog: TorrentFilesModel - + Name 名前 - + Size サイズ - + Progress 進行状況 - + Priority 優先度 diff --git a/src/lang/qbittorrent_ko.ts b/src/lang/qbittorrent_ko.ts index 57e9628be..a43baf5e6 100644 --- a/src/lang/qbittorrent_ko.ts +++ b/src/lang/qbittorrent_ko.ts @@ -4270,22 +4270,22 @@ Changelog: TorrentFilesModel - + Name - + Size 크기 - + Progress - + Priority 우선순위 diff --git a/src/lang/qbittorrent_nb.ts b/src/lang/qbittorrent_nb.ts index 72db1bf1c..084a49af7 100644 --- a/src/lang/qbittorrent_nb.ts +++ b/src/lang/qbittorrent_nb.ts @@ -3522,22 +3522,22 @@ Endringer: TorrentFilesModel - + Name Navn - + Size Størrelse - + Progress - + Priority diff --git a/src/torrentfilesmodel.h b/src/torrentfilesmodel.h index 3e50a58df..c73621f25 100644 --- a/src/torrentfilesmodel.h +++ b/src/torrentfilesmodel.h @@ -37,6 +37,9 @@ #include #include #include +#include "proplistdelegate.h" +#include "misc.h" +using namespace libtorrent; enum TreeItemType {TFILE, FOLDER, ROOT}; @@ -49,7 +52,7 @@ private: public: // File Construction - TreeItem(file_entry const& f, TreeItem *parent) { + TreeItem(file_entry f, TreeItem *parent) { Q_ASSERT(parent); parentItem = parent; type = TFILE; @@ -247,6 +250,8 @@ public: class TorrentFilesModel: public QAbstractItemModel { + Q_OBJECT + private: TreeItem *rootItem; TreeItem **files_index;