added icon to directory in qtreeview
This commit is contained in:
parent
85dc65fc9e
commit
d326e63a2f
@ -335,66 +335,66 @@ Voulez-vous vraiment sortir ?</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="615"/>
|
||||
<location filename="mainwindow.cpp" line="635"/>
|
||||
<location filename="mainwindow.cpp" line="637"/>
|
||||
<source>Dir</source>
|
||||
<translation>dossier</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="619"/>
|
||||
<location filename="mainwindow.cpp" line="639"/>
|
||||
<location filename="mainwindow.cpp" line="740"/>
|
||||
<location filename="mainwindow.cpp" line="620"/>
|
||||
<location filename="mainwindow.cpp" line="642"/>
|
||||
<location filename="mainwindow.cpp" line="743"/>
|
||||
<source>File</source>
|
||||
<translation>Doc</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="768"/>
|
||||
<location filename="mainwindow.cpp" line="771"/>
|
||||
<source>File is partially downloaded. Do you want to resume download ? if no, the file will be deleted from destination directory</source>
|
||||
<translation>Le document est déjà partiellement téléchargé. Voulez vous continuer le téléchargemnt ? Si non, il sera supprimer du dossier de destination</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="785"/>
|
||||
<location filename="mainwindow.cpp" line="788"/>
|
||||
<source>File is already downloaded. Do you want to reload it ? The old file will be deleted</source>
|
||||
<translation>Le document est déjà téléchargé. Voulez-vous le télécharger à nouveau ? L'ancien fichier sera effacé</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="822"/>
|
||||
<location filename="mainwindow.cpp" line="825"/>
|
||||
<source>File is already downloading</source>
|
||||
<translation>Le document est déjà en téléchargement</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="847"/>
|
||||
<location filename="mainwindow.cpp" line="850"/>
|
||||
<source>Starting downloading
|
||||
</source>
|
||||
<translation>Démarrage du téléchargement
|
||||
</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="862"/>
|
||||
<location filename="mainwindow.cpp" line="865"/>
|
||||
<source>finished</source>
|
||||
<translation>Terminé</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="870"/>
|
||||
<location filename="mainwindow.cpp" line="873"/>
|
||||
<source>Rsync process crashed</source>
|
||||
<translation>Le processus rsync à planté</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="882"/>
|
||||
<location filename="mainwindow.cpp" line="885"/>
|
||||
<source>stopped by user</source>
|
||||
<translation>stoppé par l'utilisateur</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="888"/>
|
||||
<location filename="mainwindow.cpp" line="891"/>
|
||||
<source>Download </source>
|
||||
<translation>Téléchargement </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1237"/>
|
||||
<location filename="mainwindow.cpp" line="1240"/>
|
||||
<source>RsyncUI Request</source>
|
||||
<translation>Requête RsyncUI</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1238"/>
|
||||
<location filename="mainwindow.cpp" line="1241"/>
|
||||
<source>Hidden service name</source>
|
||||
<translation>Nom du servcice caché</translation>
|
||||
</message>
|
||||
@ -429,22 +429,22 @@ Voulez-vous vraiment sortir ?</translation>
|
||||
<translation>Code source</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1053"/>
|
||||
<location filename="mainwindow.cpp" line="1056"/>
|
||||
<source>Since the save path is linked to service, you need to select a service before you can select a folder</source>
|
||||
<translation>Vous devez sélectionnez un service pour pouvoir sélectionnez un dossier par défaut</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="1058"/>
|
||||
<location filename="mainwindow.cpp" line="1061"/>
|
||||
<source>Choose folder where to save file</source>
|
||||
<translation>Choisissez un dossier où enregistrer le document</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="949"/>
|
||||
<location filename="mainwindow.cpp" line="952"/>
|
||||
<source>Do you want to stop downloading and delete this file from download queue ?</source>
|
||||
<translation>Voulez-vous arrêter le téléchargement et enlever ce fichier de la file de téléchargement ?</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="mainwindow.cpp" line="963"/>
|
||||
<location filename="mainwindow.cpp" line="966"/>
|
||||
<source>Do you want to delete this file from download queue ?</source>
|
||||
<translation>Voulez-vous enlever ce fichier de la file de téléchargement ?</translation>
|
||||
</message>
|
||||
|
@ -613,10 +613,12 @@ QTreeWidgetItem * MainWindow::addTreeRoot(QString name, QString fileSize, bool i
|
||||
{
|
||||
// item is a dir
|
||||
treeItem->setText(1, tr("Dir"));
|
||||
treeItem->setIcon(0, QIcon::fromTheme("folder"));
|
||||
}else
|
||||
{
|
||||
// item is a file
|
||||
treeItem->setText(1,tr("File"));
|
||||
//treeItem->setIcon(0, QIcon::fromTheme("document"));
|
||||
}
|
||||
treeItem->setText(0, name);
|
||||
treeItem->setText(2, fileSize);
|
||||
@ -633,6 +635,7 @@ QTreeWidgetItem * MainWindow::addTreeChild(QTreeWidgetItem *parent, QString name
|
||||
{
|
||||
// item is a dir
|
||||
treeItem->setText(1, tr("Dir"));
|
||||
treeItem->setIcon(0, QIcon::fromTheme("folder"));
|
||||
}else
|
||||
{
|
||||
// item is a file
|
||||
|
Loading…
Reference in New Issue
Block a user