summaryrefslogtreecommitdiff
authorcniehaus <cniehaus>2002-04-13 17:15:16 (UTC)
committer cniehaus <cniehaus>2002-04-13 17:15:16 (UTC)
commit74ca4fc34f8634c39b12a60ae97df88a612c12b1 (patch) (side-by-side diff)
tree86b511b649da8d7ef52fdc27c5b5642f9ef749d9
parent1eb54898047fab3963debe51fa3e570b361a1215 (diff)
downloadopie-74ca4fc34f8634c39b12a60ae97df88a612c12b1.zip
opie-74ca4fc34f8634c39b12a60ae97df88a612c12b1.tar.gz
opie-74ca4fc34f8634c39b12a60ae97df88a612c12b1.tar.bz2
added tr("") for 3 strings
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--core/pim/addressbook/addressbook.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/pim/addressbook/addressbook.cpp b/core/pim/addressbook/addressbook.cpp
index 95a8521..360aa7e 100644
--- a/core/pim/addressbook/addressbook.cpp
+++ b/core/pim/addressbook/addressbook.cpp
@@ -188,67 +188,67 @@ AddressbookWindow::AddressbookWindow( QWidget *parent, const char *name,
);
}
abList = new AbTable( &orderedFields, this, "table" );
abList->setHScrollBarMode( QScrollView::AlwaysOff );
connect( abList, SIGNAL( empty( bool ) ),
this, SLOT( listIsEmpty( bool ) ) );
connect( abList, SIGNAL( details() ),
this, SLOT( slotListView() ) );
connect( abList, SIGNAL(currentChanged(int,int)),
this, SLOT(slotUpdateToolbar()) );
mView = 0;
abList->load( addressbookXMLFilename() );
if ( QFile::exists(addressbookOldXMLFilename()) ) {
abList->load( addressbookOldXMLFilename() );
QFile::remove(addressbookOldXMLFilename());
}
catMenu = new QPopupMenu( this );
catMenu->setCheckable( TRUE );
connect( catMenu, SIGNAL(activated(int)), this, SLOT(slotSetCategory(int)) );
populateCategories();
mbList->insertItem( tr("View"), catMenu );
setCentralWidget( abList );
fontMenu = new QPopupMenu(this);
fontMenu->setCheckable( true );
connect( fontMenu, SIGNAL(activated(int)), this, SLOT(slotSetFont(int)));
- fontMenu->insertItem("Small", 0);
- fontMenu->insertItem("Normal", 1);
- fontMenu->insertItem("Large", 2);
+ fontMenu->insertItem(tr( "Small" ), 0);
+ fontMenu->insertItem(tr( "Normal" ), 1);
+ fontMenu->insertItem(tr( "Large" ), 2);
defaultFont = new QFont( abList->font() );
slotSetFont(startFontSize);
mbList->insertItem( tr("Font"), fontMenu);
setCentralWidget(abList);
// qDebug("adressbook contrsuction: t=%d", t.elapsed() );
}
void AddressbookWindow::slotSetFont( int size ) {
if (size > 2 || size < 0)
size = 1;
startFontSize = size;
QFont *currentFont;
switch (size) {
case 0:
fontMenu->setItemChecked(0, true);
fontMenu->setItemChecked(1, false);
fontMenu->setItemChecked(2, false);
abList->setFont( QFont( defaultFont->family(), defaultFont->pointSize() - 2 ) );
currentFont = new QFont (abList->font());
abList->resizeRows(currentFont->pixelSize() + 7);
break;
case 1:
fontMenu->setItemChecked(0, false);
fontMenu->setItemChecked(1, true);
fontMenu->setItemChecked(2, false);