summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/tabmanager/tabmanager.cpp27
1 files changed, 17 insertions, 10 deletions
diff --git a/noncore/settings/tabmanager/tabmanager.cpp b/noncore/settings/tabmanager/tabmanager.cpp
index db65d26..af76251 100644
--- a/noncore/settings/tabmanager/tabmanager.cpp
+++ b/noncore/settings/tabmanager/tabmanager.cpp
@@ -60,7 +60,9 @@ TabManager::TabManager( QWidget* parent, const char* name):TabManagerBase(parent
// Connect the signals and slots
- connect(tabList, SIGNAL(doubleClicked(QListViewItem *)), this, SLOT(editItem(QListViewItem*)));
+ connect(tabList, SIGNAL(doubleClicked(QListViewItem *)),
+ this, SLOT(editItem(QListViewItem*)));
(tabList->header())->hide();
- connect(tabList, SIGNAL(moveItem(QListViewItem *, QListViewItem *)), this, SLOT(moveApplication(QListViewItem *, QListViewItem *)));
+ connect(tabList, SIGNAL(moveItem(QListViewItem *, QListViewItem *)),
+ this, SLOT(moveApplication(QListViewItem *, QListViewItem *)));
}
@@ -71,5 +73,5 @@ TabManager::TabManager( QWidget* parent, const char* name):TabManagerBase(parent
TabManager::~TabManager(){
if(changed){
- //QMessageBox::critical(this, "Message", "Please restart Qtopia to see all new changes.",QString("Ok") );
+ //QMessageBox::critical(this, tr("Message"), tr("Please restart Qtopia to see all new changes."),tr("Ok") );
//filename = fn;
QCopEnvelope e("QPE/System", "linkChanged(QString)");
@@ -204,10 +206,12 @@ void TabManager::removeItem(){
return;
if(item->childCount() > 0){
- QMessageBox::critical(this, "Message", "Can't remove with applications\nstill in the group.",QString("Ok") );
+ QMessageBox::critical(this, tr("Message"), tr("Can't remove with applications\nstill in the group."),
+ tr("Ok") );
return;
}
// Prompt.
- int answer = QMessageBox::warning(this, "Message", "Are you sure you want to delete?","Yes", "Cancel", 0, 1 );
+ int answer = QMessageBox::warning(this, tr("Message"), tr("Are you sure you want to delete?"),
+ tr("Yes"), tr("Cancel"), 0, 1 );
if (answer)
return;
@@ -231,5 +235,6 @@ void TabManager::removeItem(){
if(!removeSuccessfull){
qDebug((QString("removeItem: ") + location).latin1());
- QMessageBox::critical(this, "Message", "Can't remove.",QString("Ok") );
+ QMessageBox::critical(this, tr("Message"), tr("Can't remove."),
+ tr("Ok") );
return;
}
@@ -271,5 +276,5 @@ void TabManager::editItem( QListViewItem * item){
}
- AppEdit application(this, "Application edit", true);
+ AppEdit application(this, tr("Application edit"), true);
application.nameLineEdit->setText(app.name());
application.iconLineEdit->setText(app.pixmapString());
@@ -280,5 +285,5 @@ void TabManager::editItem( QListViewItem * item){
application.execLineEdit->setEnabled(false);
application.TextLabel3->setEnabled(false);
- application.setCaption("Tab");
+ application.setCaption(tr("Tab"));
}
@@ -301,5 +306,6 @@ void TabManager::editItem( QListViewItem * item){
app.setExec(application.execLineEdit->text());
if(!app.writeLink()){
- QMessageBox::critical(this, "Message", "Can't save.",QString("Ok") );
+ QMessageBox::critical(this, tr("Message"), tr("Can't save."),
+ tr("Ok") );
return;
}
@@ -365,5 +371,6 @@ void TabManager::moveApplication(QListViewItem *item, QListViewItem *newGroup){
QDir r;
if(!r.rename(itemList[item], newFolder)){
- QMessageBox::critical(this, "Message", "Can't move application.",QString("Ok") );
+ QMessageBox::critical(this, tr("Message"), tr("Can't move application."),
+ tr("Ok") );
return;
}