summaryrefslogtreecommitdiff
authorgroucho <groucho>2003-01-29 14:55:41 (UTC)
committer groucho <groucho>2003-01-29 14:55:41 (UTC)
commit7f31c266fbd10e41c206e68bdf59ab39bca32067 (patch) (side-by-side diff)
treed4f171a53313713651e87edeb90a55d68be56ac4
parent59a67d792570e231d2de14cee78ff75fa79453ec (diff)
downloadopie-7f31c266fbd10e41c206e68bdf59ab39bca32067.zip
opie-7f31c266fbd10e41c206e68bdf59ab39bca32067.tar.gz
opie-7f31c266fbd10e41c206e68bdf59ab39bca32067.tar.bz2
Changed some code to make all strings translatable
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/todo/mainwindow.cpp100
-rw-r--r--core/pim/todo/tableview.cpp8
-rw-r--r--core/pim/todo/taskeditoroverview.cpp2
-rw-r--r--core/pim/todo/templateeditor.cpp2
4 files changed, 56 insertions, 56 deletions
diff --git a/core/pim/todo/mainwindow.cpp b/core/pim/todo/mainwindow.cpp
index d16d1ac..c90166b 100644
--- a/core/pim/todo/mainwindow.cpp
+++ b/core/pim/todo/mainwindow.cpp
@@ -90,6 +90,6 @@ void MainWindow::initActions() {
// Data menu
- m_edit->insertItem(tr("New from template"), m_template,
+ m_edit->insertItem(QWidget::tr("New from template"), m_template,
-1, 0 );
- QAction* a = new QAction( tr("New Task" ), Resource::loadPixmap( "new" ),
+ QAction* a = new QAction( QWidget::tr("New Task" ), Resource::loadPixmap( "new" ),
QString::null, 0, this, 0 );
@@ -97,3 +97,3 @@ void MainWindow::initActions() {
this, SLOT( slotNew() ) );
- a->setWhatsThis( tr( "Click here to create a new task." ) );
+ a->setWhatsThis( QWidget::tr( "Click here to create a new task." ) );
a->addTo(m_tool );
@@ -101,3 +101,3 @@ void MainWindow::initActions() {
- a = new QAction( tr("Edit Task"), Resource::loadIconSet( "edit" ),
+ a = new QAction( QWidget::tr("Edit Task"), Resource::loadIconSet( "edit" ),
QString::null, 0, this, 0 );
@@ -105,3 +105,3 @@ void MainWindow::initActions() {
this, SLOT( slotEdit() ) );
- a->setWhatsThis( tr( "Click here to modify the current task." ) );
+ a->setWhatsThis( QWidget::tr( "Click here to modify the current task." ) );
a->addTo( m_tool );
@@ -110,3 +110,3 @@ void MainWindow::initActions() {
- a = new QAction( QString::null, tr("View Task"), 0, this, 0 );
+ a = new QAction( QString::null, QWidget::tr("View Task"), 0, this, 0 );
connect(a, SIGNAL( activated() ),
@@ -117,3 +117,3 @@ void MainWindow::initActions() {
- a = new QAction( tr("Delete..."), Resource::loadIconSet( "trash" ),
+ a = new QAction( QWidget::tr("Delete..."), Resource::loadIconSet( "trash" ),
QString::null, 0, this, 0 );
@@ -121,3 +121,3 @@ void MainWindow::initActions() {
this, SLOT(slotDelete() ) );
- a->setWhatsThis( tr( "Click here to remove the current task." ) );
+ a->setWhatsThis( QWidget::tr( "Click here to remove the current task." ) );
a->addTo( m_tool );
@@ -126,3 +126,3 @@ void MainWindow::initActions() {
- a = new QAction( QString::null, tr("Delete all..."), 0, this, 0 );
+ a = new QAction( QString::null, QWidget::tr("Delete all..."), 0, this, 0 );
connect(a, SIGNAL( activated() ),
@@ -132,3 +132,3 @@ void MainWindow::initActions() {
- a = new QAction( QString::null, tr("Delete completed"),
+ a = new QAction( QString::null, QWidget::tr("Delete completed"),
0, this, 0 );
@@ -142,3 +142,3 @@ void MainWindow::initActions() {
- a = new QAction( QString::null, tr("Duplicate"), 0, this, 0 );
+ a = new QAction( QString::null, QWidget::tr("Duplicate"), 0, this, 0 );
connect(a, SIGNAL( activated() ),
@@ -151,5 +151,5 @@ void MainWindow::initActions() {
if ( Ir::supported() ) {
- a = new QAction( tr( "Beam" ), Resource::loadPixmap( "beam" ), QString::null, 0, this, 0 );
+ a = new QAction( QWidget::tr( "Beam" ), Resource::loadPixmap( "beam" ), QString::null, 0, this, 0 );
connect( a, SIGNAL( activated() ), this, SLOT( slotBeam() ) );
- a->setWhatsThis( tr( "Click here to send the current task to another device." ) );
+ a->setWhatsThis( QWidget::tr( "Click here to send the current task to another device." ) );
a->addTo( m_edit );
@@ -159,3 +159,3 @@ void MainWindow::initActions() {
// Options menu
- a = new QAction( tr("Find"), Resource::loadIconSet( "mag" ),
+ a = new QAction( QWidget::tr("Find"), Resource::loadIconSet( "mag" ),
QString::null, 0, this, 0 );
@@ -167,3 +167,3 @@ void MainWindow::initActions() {
- m_completedAction = new QAction( QString::null, tr("Show completed tasks"),
+ m_completedAction = new QAction( QString::null, QWidget::tr("Show completed tasks"),
0, this, 0, TRUE );
@@ -173,3 +173,3 @@ void MainWindow::initActions() {
- a = new QAction( QString::null, tr("Show only over-due tasks"),
+ a = new QAction( QString::null, QWidget::tr("Show only over-due tasks"),
0, this, 0, TRUE );
@@ -179,3 +179,3 @@ void MainWindow::initActions() {
- m_showDeadLineAction = new QAction( QString::null, tr("Show task deadlines"),
+ m_showDeadLineAction = new QAction( QString::null, QWidget::tr("Show task deadlines"),
0, this, 0, TRUE );
@@ -185,3 +185,3 @@ void MainWindow::initActions() {
- m_showQuickTaskAction = new QAction( QString::null, tr("Show quick task bar"),
+ m_showQuickTaskAction = new QAction( QString::null, QWidget::tr("Show quick task bar"),
0, this, 0, TRUE );
@@ -193,8 +193,8 @@ void MainWindow::initActions() {
- m_bar->insertItem( tr("Data") ,m_edit );
- m_bar->insertItem( tr("Category"), m_catMenu );
- m_bar->insertItem( tr("Options"), m_options );
+ m_bar->insertItem( QWidget::tr("Data") ,m_edit );
+ m_bar->insertItem( QWidget::tr("Category"), m_catMenu );
+ m_bar->insertItem( QWidget::tr("Options"), m_options );
m_curQuick = new QuickEditImpl( this, m_quicktask );
- addToolBar( (QPEToolBar *)m_curQuick->widget(), tr( "QuickEdit" ), QMainWindow::Top, TRUE );
+ addToolBar( (QPEToolBar *)m_curQuick->widget(), QWidget::tr( "QuickEdit" ), QMainWindow::Top, TRUE );
m_curQuick->signal()->connect( this, SLOT(slotQuickEntered() ) );
@@ -239,3 +239,3 @@ void MainWindow::initViews() {
TableView* tableView = new TableView( this, m_stack );
- QWhatsThis::add( tableView, tr( "This is a listing of all current tasks.\n\nThe list displays the following information:\n1. Completed - A green checkmark indicates task is completed. Click here to complete a task.\n2. Priority - a graphical representation of task priority. Double-click here to modify.\n3. Description - description of task. Click here to select the task.\n4. Deadline - shows when task is due. This column can be shown or hidden by selecting Options->'Show task deadlines' from the menu above." ) );
+ QWhatsThis::add( tableView, QWidget::tr( "This is a listing of all current tasks.\n\nThe list displays the following information:\n1. Completed - A green checkmark indicates task is completed. Click here to complete a task.\n2. Priority - a graphical representation of task priority. Double-click here to modify.\n3. Description - description of task. Click here to select the task.\n4. Deadline - shows when task is due. This column can be shown or hidden by selecting Options->'Show task deadlines' from the menu above." ) );
m_stack->addWidget( tableView, m_counter++ );
@@ -297,3 +297,3 @@ OTodoAccess::List MainWindow::sorted( bool asc, int sortOrder ) {
int cat = 0;
- if ( m_curCat != tr("All Categories") )
+ if ( m_curCat != QWidget::tr("All Categories") )
cat = currentCatId();
@@ -311,3 +311,3 @@ OTodoAccess::List MainWindow::sorted( bool asc, int sortOrder, int addFilter) {
int cat = 0;
- if ( m_curCat != tr("All Categories") )
+ if ( m_curCat != QWidget::tr("All Categories") )
cat = currentCatId();
@@ -355,4 +355,4 @@ void MainWindow::closeEvent( QCloseEvent* e ) {
}else {
- if ( QMessageBox::critical( this, tr("Out of space"),
- tr("Todo was unable\n"
+ if ( QMessageBox::critical( this, QWidget::tr("Out of space"),
+ QWidget::tr("Todo was unable\n"
"to save your changes.\n"
@@ -423,4 +423,4 @@ void MainWindow::slotDuplicate() {
if(m_syncing) {
- QMessageBox::warning(this, tr("Todo"),
- tr("Can not edit data, currently syncing"));
+ QMessageBox::warning(this, QWidget::tr("Todo"),
+ QWidget::tr("Can not edit data, currently syncing"));
return;
@@ -440,4 +440,4 @@ void MainWindow::slotDelete() {
if(m_syncing) {
- QMessageBox::warning(this, tr("Todo"),
- tr("Can not edit data, currently syncing"));
+ QMessageBox::warning(this, QWidget::tr("Todo"),
+ QWidget::tr("Can not edit data, currently syncing"));
return;
@@ -445,3 +445,3 @@ void MainWindow::slotDelete() {
QString strName = currentView()->currentRepresentation();
- if (!QPEMessageBox::confirmDelete(this, tr("Todo"), strName ) )
+ if (!QPEMessageBox::confirmDelete(this, QWidget::tr("Todo"), strName ) )
return;
@@ -454,4 +454,4 @@ void MainWindow::slotDeleteAll() {
if(m_syncing) {
- QMessageBox::warning(this, tr("Todo"),
- tr("Can not edit data, currently syncing"));
+ QMessageBox::warning(this, QWidget::tr("Todo"),
+ QWidget::tr("Can not edit data, currently syncing"));
return;
@@ -460,3 +460,3 @@ void MainWindow::slotDeleteAll() {
- if ( !QPEMessageBox::confirmDelete( this, tr( "Todo" ), tr("all tasks?") ) )
+ if ( !QPEMessageBox::confirmDelete( this, QWidget::tr( "Todo" ), QWidget::tr("all tasks?") ) )
return;
@@ -470,4 +470,4 @@ void MainWindow::slotDeleteCompleted() {
if(m_syncing) {
- QMessageBox::warning(this, tr("Todo"),
- tr("Can not edit data, currently syncing"));
+ QMessageBox::warning(this, QWidget::tr("Todo"),
+ QWidget::tr("Can not edit data, currently syncing"));
return;
@@ -475,3 +475,3 @@ void MainWindow::slotDeleteCompleted() {
- if ( !QPEMessageBox::confirmDelete( this, tr( "Todo" ), tr("all completed tasks?") ) )
+ if ( !QPEMessageBox::confirmDelete( this, QWidget::tr( "Todo" ), QWidget::tr("all completed tasks?") ) )
return;
@@ -501,10 +501,10 @@ void MainWindow::setCategory( int c) {
m_curCat = QString::null;
- setCaption( tr("Todo") + " - " + tr("All Categories" ) );
+ setCaption( QWidget::tr("Todo") + " - " + QWidget::tr("All Categories" ) );
}else if ( c == (int)m_catMenu->count() - 1 ) {
- m_curCat = tr("Unfiled");
- setCaption( tr("Todo") + " - " + tr("Unfiled") );
+ m_curCat = QWidget::tr("Unfiled");
+ setCaption( QWidget::tr("Todo") + " - " + QWidget::tr("Unfiled") );
}else {
m_curCat = m_todoMgr.categories()[c-2];
- setCaption( tr("Todo") + " - " + m_curCat );
+ setCaption( QWidget::tr("Todo") + " - " + m_curCat );
}
@@ -555,5 +555,5 @@ void MainWindow::receiveFile( const QString& filename ) {
- QString message = tr("<P>%1 new tasks arrived.<p>Would you like to add them to your Todolist?").arg(list.count() );
+ QString message = QWidget::tr("<P>%1 new tasks arrived.<p>Would you like to add them to your Todolist?").arg(list.count() );
- if ( QMessageBox::information(this, tr("New Tasks"),
+ if ( QMessageBox::information(this, QWidget::tr("New Tasks"),
message, QMessageBox::Ok,
@@ -587,6 +587,6 @@ void MainWindow::populateCategories() {
- m_catMenu->insertItem( tr( "All Categories" ), id++ );
+ m_catMenu->insertItem( QWidget::tr( "All Categories" ), id++ );
m_catMenu->insertSeparator();
QStringList categories = m_todoMgr.categories();
- categories.append( tr( "Unfiled" ) );
+ categories.append( QWidget::tr( "Unfiled" ) );
for ( QStringList::Iterator it = categories.begin();
@@ -633,4 +633,4 @@ void MainWindow::slotEdit( int uid ) {
if(m_syncing) {
- QMessageBox::warning(this, tr("Todo"),
- tr("Can not edit data, currently syncing"));
+ QMessageBox::warning(this, QWidget::tr("Todo"),
+ QWidget::tr("Can not edit data, currently syncing"));
return;
@@ -751,4 +751,4 @@ int MainWindow::create() {
if(m_syncing) {
- QMessageBox::warning(this, tr("Todo"),
- tr("Can not edit data, currently syncing"));
+ QMessageBox::warning(this, QWidget::tr("Todo"),
+ QWidget::tr("Can not edit data, currently syncing"));
return uid;
diff --git a/core/pim/todo/tableview.cpp b/core/pim/todo/tableview.cpp
index 48b4dcc..61d1edd 100644
--- a/core/pim/todo/tableview.cpp
+++ b/core/pim/todo/tableview.cpp
@@ -79,6 +79,6 @@ TableView::TableView( MainWindow* window, QWidget* wid )
- horizontalHeader()->setLabel( 0, tr("C.") );
- horizontalHeader()->setLabel( 1, tr("Priority") );
- horizontalHeader()->setLabel( 2, tr("Description" ) );
- horizontalHeader()->setLabel( 3, tr("Deadline") );
+ horizontalHeader()->setLabel( 0, QWidget::tr("C.") );
+ horizontalHeader()->setLabel( 1, QWidget::tr("Priority") );
+ horizontalHeader()->setLabel( 2, QWidget::tr("Description" ) );
+ horizontalHeader()->setLabel( 3, QWidget::tr("Deadline") );
diff --git a/core/pim/todo/taskeditoroverview.cpp b/core/pim/todo/taskeditoroverview.cpp
index 5e2b026..92408ba 100644
--- a/core/pim/todo/taskeditoroverview.cpp
+++ b/core/pim/todo/taskeditoroverview.cpp
@@ -89,3 +89,3 @@ TaskEditorOverView::TaskEditorOverView( QWidget* parent, const char* name, WFla
// Priority
- label = new QLabel( tr( "Priority:" ), container );
+ label = new QLabel( QWidget::tr( "Priority:" ), container );
layout->addWidget( label, 2, 0 );
diff --git a/core/pim/todo/templateeditor.cpp b/core/pim/todo/templateeditor.cpp
index 1b52d4f..3930428 100644
--- a/core/pim/todo/templateeditor.cpp
+++ b/core/pim/todo/templateeditor.cpp
@@ -23,3 +23,3 @@ TemplateEditor::~TemplateEditor() {
void TemplateEditor::init() {
- QAction* a = new QAction( QString::null, tr("Configure Templates"),
+ QAction* a = new QAction( QString::null, QWidget::tr("Configure Templates"),
0, this, 0, FALSE );