mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-15 17:40:35 -04:00
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:
parent
4a286f751b
commit
0be24268f7
18 changed files with 188 additions and 212 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue