Commit 84bf3811 authored by Rémi Duraffort's avatar Rémi Duraffort

qt4_bookmarks: use ::number instead of %1

parent 33179cc3
...@@ -127,7 +127,7 @@ void BookmarksDialog::update() ...@@ -127,7 +127,7 @@ void BookmarksDialog::update()
// List with the differents elements of the row // List with the differents elements of the row
QStringList row; QStringList row;
row << QString( qfu( pp_bookmarks[i]->psz_name ) ); row << QString( qfu( pp_bookmarks[i]->psz_name ) );
row << QString( "%1" ).arg( pp_bookmarks[i]->i_byte_offset ); row << QString::number( pp_bookmarks[i]->i_byte_offset );
int total = pp_bookmarks[i]->i_time_offset/ 1000000; int total = pp_bookmarks[i]->i_time_offset/ 1000000;
int hour = total / (60*60); int hour = total / (60*60);
int min = (total - hour*60*60) / 60; int min = (total - hour*60*60) / 60;
...@@ -153,7 +153,7 @@ void BookmarksDialog::add() ...@@ -153,7 +153,7 @@ void BookmarksDialog::add()
if( !input_Control( p_input, INPUT_GET_BOOKMARK, &bookmark ) ) if( !input_Control( p_input, INPUT_GET_BOOKMARK, &bookmark ) )
{ {
bookmark.psz_name = const_cast<char *>qtu( THEMIM->getIM()->getName() + bookmark.psz_name = const_cast<char *>qtu( THEMIM->getIM()->getName() +
QString("_%1" ).arg( bookmarksList->topLevelItemCount() ) ); QString::number( bookmarksList->topLevelItemCount() ) );
input_Control( p_input, INPUT_ADD_BOOKMARK, &bookmark ); input_Control( p_input, INPUT_ADD_BOOKMARK, &bookmark );
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment