Fixed resizing of the MainWindow when hashing files with long names.

Moved the hash strings of notifyHashingInfo from the librs to the GUI for translating.
Fixed german translation.

Recompile of GUI needed.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3659 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2010-10-09 18:35:34 +00:00
parent 4a286f751b
commit 0be24268f7
18 changed files with 188 additions and 212 deletions

View file

@ -155,9 +155,25 @@ void NotifyQt::notifyTurtleSearchResult(uint32_t search_id,const std::list<Turtl
}
}
void NotifyQt::notifyHashingInfo(std::string fileinfo)
void NotifyQt::notifyHashingInfo(uint32_t type, const std::string& fileinfo)
{
emit hashingInfoChanged(QString::fromUtf8(fileinfo.c_str())) ;
QString info;
switch (type) {
case NOTIFY_HASHTYPE_EXAMINING_FILES:
info = tr("Examining shared files...");
break;
case NOTIFY_HASHTYPE_FINISH:
break;
case NOTIFY_HASHTYPE_HASH_FILE:
info = tr("Hashing file") + " " + QString::fromUtf8(fileinfo.c_str());
break;
case NOTIFY_HASHTYPE_SAVE_FILE_INDEX:
info = tr("Saving file index...");
break;
}
emit hashingInfoChanged(info);
}
//void NotifyQt::notifyChat()