"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "zuluCrypt-gui/utility.cpp" between
zuluCrypt-5.7.0.tar.xz and zuluCrypt-5.7.1.tar.xz

About: zuluCrypt is a simple but feature rich solution for hard drives encryption. It can manage PLAIN dm-crypt, LUKS, TrueCrypt and VeraCrypt encrypted volumes.

utility.cpp  (zuluCrypt-5.7.0.tar.xz):utility.cpp  (zuluCrypt-5.7.1.tar.xz)
skipping to change at line 703 skipping to change at line 703
e = dir.entryList() ; e = dir.entryList() ;
e.removeOne( "zuluCrypt-testKey" ) ; e.removeOne( "zuluCrypt-testKey" ) ;
e.removeOne( "." ) ; e.removeOne( "." ) ;
e.removeOne( ".." ) ; e.removeOne( ".." ) ;
e.removeOne( "keyring" ) ; e.removeOne( "keyring" ) ;
e.removeOne( "kwallet" ) ; e.removeOne( "kwallet" ) ;
} }
e.append( "network" ) ; //e.append( "network" ) ;
} }
menu->clear() ; menu->clear() ;
auto _add_actions = [ menu ]( const QStringList& r ){ auto _add_actions = [ menu ]( const QStringList& r ){
for( const auto& it : r ){ for( const auto& it : r ){
menu->addAction( it ) ; menu->addAction( it ) ;
} }
skipping to change at line 3034 skipping to change at line 3034
this->update_progress( quint64( size ),quint64( offset ) ) ; this->update_progress( quint64( size ),quint64( offset ) ) ;
} ; } ;
} }
QString utility::progress::time( double s ) QString utility::progress::time( double s )
{ {
int milliseconds = int( s ) * 1000 ; int milliseconds = int( s ) * 1000 ;
int seconds = milliseconds / 1000; int seconds = milliseconds / 1000;
milliseconds = milliseconds % 1000; milliseconds = milliseconds % 1000;
int minutes = seconds / 60; int minutes = seconds / 60 ;
seconds = seconds % 60; seconds = seconds % 60 ;
int hours = minutes / 60; int hours = minutes / 60 ;
minutes = minutes % 60; minutes = minutes % 60 ;
QTime time; QTime time ;
time.setHMS( hours,minutes,seconds,milliseconds ) ; time.setHMS( hours,minutes,seconds,milliseconds ) ;
return time.toString( "hh:mm:ss" ) ; return time.toString( "hh:mm:ss" ) ;
} }
QString utility::progress::speed( double size,double time ) QString utility::progress::speed( double size,double time )
{ {
QString s ; QString s ;
if( size < 1024 ){ if( size < 1024 ){
 End of changes. 3 change blocks. 
6 lines changed or deleted 6 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)