@ -236,17 +236,17 @@ void SQ_GLWidget::slotProperties()
// save tab->current image parameters and some additioanl information
// in list
list < < tab - > quickImageInfo
< < TQString : : fromLatin1 ( " %1x%2 " ) . tq arg( tab - > finfo . image [ tab - > current ] . w ) . tq arg( tab - > finfo . image [ tab - > current ] . h )
< < TQString : : fromLatin1 ( " %1 " ) . tq arg( tab - > finfo . image [ tab - > current ] . bpp )
< < TQString : : fromLatin1 ( " %1x%2 " ) . arg( tab - > finfo . image [ tab - > current ] . w ) . arg( tab - > finfo . image [ tab - > current ] . h )
< < TQString : : fromLatin1 ( " %1 " ) . arg( tab - > finfo . image [ tab - > current ] . bpp )
< < tab - > finfo . image [ tab - > current ] . colorspace
< < tab - > finfo . image [ tab - > current ] . compression
< < sz
< < TQString : : fromLatin1 ( " %1 " ) . tq arg( ( double ) real_size / tab - > fmt_size , 0 , ' f ' , 2 )
< < TQString : : fromLatin1 ( " %1 " ) . arg( ( double ) real_size / tab - > fmt_size , 0 , ' f ' , 2 )
< < ( ( tab - > finfo . image [ tab - > current ] . interlaced ) ? i18n ( " yes " ) : i18n ( " no " ) )
< < TQString : : fromLatin1 ( " %1 " ) . tq arg( errors )
< < TQString : : fromLatin1 ( " %1 " ) . tq arg( tab - > finfo . image . size ( ) )
< < TQString : : fromLatin1 ( " #%1 " ) . tq arg( tab - > current + 1 )
< < TQString : : fromLatin1 ( " %1 " ) . tq arg( tab - > finfo . image [ tab - > current ] . delay ) ;
< < TQString : : fromLatin1 ( " %1 " ) . arg( errors )
< < TQString : : fromLatin1 ( " %1 " ) . arg( tab - > finfo . image . size ( ) )
< < TQString : : fromLatin1 ( " #%1 " ) . arg( tab - > current + 1 )
< < TQString : : fromLatin1 ( " %1 " ) . arg( tab - > finfo . image [ tab - > current ] . delay ) ;
// create dialog and setup it
SQ_ImageProperties prop ( this ) ;
@ -493,7 +493,7 @@ void SQ_GLWidget::saveAs()
if ( ! wlib | | ! wlib - > writestatic )
{
KMessageBox : : error ( this , i18n ( " Sorry, could not perform write operation \n for codec \" %1 \" " ) . tq arg( d . nameFilter ( ) ) ) ;
KMessageBox : : error ( this , i18n ( " Sorry, could not perform write operation \n for codec \" %1 \" " ) . arg( d . nameFilter ( ) ) ) ;
return ;
}
@ -867,7 +867,7 @@ void SQ_GLWidget::initAccelsAndMenu()
menu - > insertItem ( i18n ( " Image " ) , menuImage ) ;
# define SQ_ADD_KACTION(b) \
( new KAction ( TQString ( ) , b , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotAccelActivated ( ) ) , ac , TQString : : fromLatin1 ( " action_%1 " ) . tq arg( b ) ) )
( new KAction ( TQString ( ) , b , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotAccelActivated ( ) ) , ac , TQString : : fromLatin1 ( " action_%1 " ) . arg( b ) ) )
id_saveas = menuFile - > insertItem ( SQ_IconLoader : : instance ( ) - > loadIcon ( " filesaveas " , KIcon : : Desktop , KIcon : : SizeSmall ) , i18n ( " Save As... " ) + " \t S " , SQ_ADD_KACTION ( TQt : : Key_S ) , TQT_SLOT ( activate ( ) ) ) ;
@ -1224,7 +1224,7 @@ void SQ_GLWidget::crop()
{
KMessageBox : : error ( this ,
i18n ( " Memory allocation failed for %1 of memory " )
. tq arg( KIO : : convertSize ( pp . realw * pp . realh * sizeof ( RGBA ) ) ) ) ;
. arg( KIO : : convertSize ( pp . realw * pp . realh * sizeof ( RGBA ) ) ) ) ;
return ;
}
@ -1312,7 +1312,7 @@ void SQ_GLWidget::slotChangeTab(int id)
for ( ; it ! = itEnd ; + + it , + + i )
{
mid = images - > insertItem ( TQString : : fromLatin1 ( " #%1 [%2x%3@%4] " ) . tq arg( i + 1 ) . tq arg( ( * it ) . w ) . tq arg( ( * it ) . h ) . tq arg( ( * it ) . bpp ) ) ;
mid = images - > insertItem ( TQString : : fromLatin1 ( " #%1 [%2x%3@%4] " ) . arg( i + 1 ) . arg( ( * it ) . w ) . arg( ( * it ) . h ) . arg( ( * it ) . bpp ) ) ;
images - > setItemParameter ( mid , i ) ;
if ( i = = tab - > current )
@ -1624,9 +1624,9 @@ void SQ_GLWidget::createMarks()
void SQ_GLWidget : : updateCurrentFileInfo ( )
{
TQString status = TQString : : fromLatin1 ( " %1x%2@%3 " )
. tq arg( tab - > finfo . image [ tab - > current ] . w )
. tq arg( tab - > finfo . image [ tab - > current ] . h )
. tq arg( tab - > finfo . image [ tab - > current ] . bpp ) ;
. arg( tab - > finfo . image [ tab - > current ] . w )
. arg( tab - > finfo . image [ tab - > current ] . h )
. arg( tab - > finfo . image [ tab - > current ] . bpp ) ;
# ifndef KSQUIRREL_PART
SQ_GLView : : window ( ) - > sbarWidget ( " SBDecoded " ) - > setText ( status ) ;
@ -1667,7 +1667,7 @@ void SQ_GLWidget::calcFrameLabelWidth()
# ifndef KSQUIRREL_PART
SQ_GLView : : window ( ) - > sbarWidget ( " SBFrame " ) - > setFixedWidth (
SQ_GLView : : window ( ) - > sbarWidget ( " SBFrame " ) - > fontMetrics ( )
. boundingRect ( TQString : : fromLatin1 ( " 0%1/0%2 " ) . tq arg( tab - > total ) . tq arg( tab - > total ) ) . width ( ) ) ;
. boundingRect ( TQString : : fromLatin1 ( " 0%1/0%2 " ) . arg( tab - > total ) . arg( tab - > total ) ) . width ( ) ) ;
# endif
}
@ -1680,9 +1680,9 @@ void SQ_GLWidget::calcFrameLabelWidth()
void SQ_GLWidget : : frameChanged ( )
{
# ifndef KSQUIRREL_PART
SQ_GLView : : window ( ) - > sbarWidget ( " SBFrame " ) - > setText ( TQString : : fromLatin1 ( " %1/%2 " ) . tq arg( tab - > current + 1 ) . tq arg( tab - > total ) ) ;
SQ_GLView : : window ( ) - > sbarWidget ( " SBFrame " ) - > setText ( TQString : : fromLatin1 ( " %1/%2 " ) . arg( tab - > current + 1 ) . arg( tab - > total ) ) ;
# else
t_glv . sbarWidget ( " SBFrame " ) - > setText ( TQString : : fromLatin1 ( " %1/%2 " ) . tq arg( tab - > current + 1 ) . tq arg( tab - > total ) ) ;
t_glv . sbarWidget ( " SBFrame " ) - > setText ( TQString : : fromLatin1 ( " %1/%2 " ) . arg( tab - > current + 1 ) . arg( tab - > total ) ) ;
# endif
}
@ -1755,7 +1755,7 @@ void SQ_GLWidget::slotPrint()
TQSize sz ( img . width ( ) , img . height ( ) ) ;
if ( img . width ( ) > mt . width ( ) | | img . height ( ) > mt . height ( ) )
sz . tq scale( mt . width ( ) , mt . height ( ) , TQSize : : ScaleMin ) ;
sz . scale( mt . width ( ) , mt . height ( ) , TQSize : : ScaleMin ) ;
int cp = printer . numCopies ( ) ;