summaryrefslogtreecommitdiff
authorcniehaus <cniehaus>2002-04-13 17:15:16 (UTC)
committer cniehaus <cniehaus>2002-04-13 17:15:16 (UTC)
commit74ca4fc34f8634c39b12a60ae97df88a612c12b1 (patch) (unidiff)
tree86b511b649da8d7ef52fdc27c5b5642f9ef749d9
parent1eb54898047fab3963debe51fa3e570b361a1215 (diff)
downloadopie-74ca4fc34f8634c39b12a60ae97df88a612c12b1.zip
opie-74ca4fc34f8634c39b12a60ae97df88a612c12b1.tar.gz
opie-74ca4fc34f8634c39b12a60ae97df88a612c12b1.tar.bz2
added tr("") for 3 strings
Diffstat (more/less context) (ignore 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,
188 ); 188 );
189 } 189 }
190 190
191 abList = new AbTable( &orderedFields, this, "table" ); 191 abList = new AbTable( &orderedFields, this, "table" );
192 abList->setHScrollBarMode( QScrollView::AlwaysOff ); 192 abList->setHScrollBarMode( QScrollView::AlwaysOff );
193 connect( abList, SIGNAL( empty( bool ) ), 193 connect( abList, SIGNAL( empty( bool ) ),
194 this, SLOT( listIsEmpty( bool ) ) ); 194 this, SLOT( listIsEmpty( bool ) ) );
195 connect( abList, SIGNAL( details() ), 195 connect( abList, SIGNAL( details() ),
196 this, SLOT( slotListView() ) ); 196 this, SLOT( slotListView() ) );
197 connect( abList, SIGNAL(currentChanged(int,int)), 197 connect( abList, SIGNAL(currentChanged(int,int)),
198 this, SLOT(slotUpdateToolbar()) ); 198 this, SLOT(slotUpdateToolbar()) );
199 199
200 mView = 0; 200 mView = 0;
201 201
202 abList->load( addressbookXMLFilename() ); 202 abList->load( addressbookXMLFilename() );
203 if ( QFile::exists(addressbookOldXMLFilename()) ) { 203 if ( QFile::exists(addressbookOldXMLFilename()) ) {
204 abList->load( addressbookOldXMLFilename() ); 204 abList->load( addressbookOldXMLFilename() );
205 QFile::remove(addressbookOldXMLFilename()); 205 QFile::remove(addressbookOldXMLFilename());
206 } 206 }
207 207
208 catMenu = new QPopupMenu( this ); 208 catMenu = new QPopupMenu( this );
209 catMenu->setCheckable( TRUE ); 209 catMenu->setCheckable( TRUE );
210 connect( catMenu, SIGNAL(activated(int)), this, SLOT(slotSetCategory(int)) ); 210 connect( catMenu, SIGNAL(activated(int)), this, SLOT(slotSetCategory(int)) );
211 populateCategories(); 211 populateCategories();
212 212
213 mbList->insertItem( tr("View"), catMenu ); 213 mbList->insertItem( tr("View"), catMenu );
214 setCentralWidget( abList ); 214 setCentralWidget( abList );
215 215
216 fontMenu = new QPopupMenu(this); 216 fontMenu = new QPopupMenu(this);
217 fontMenu->setCheckable( true ); 217 fontMenu->setCheckable( true );
218 connect( fontMenu, SIGNAL(activated(int)), this, SLOT(slotSetFont(int))); 218 connect( fontMenu, SIGNAL(activated(int)), this, SLOT(slotSetFont(int)));
219 219
220 fontMenu->insertItem("Small", 0); 220 fontMenu->insertItem(tr( "Small" ), 0);
221 fontMenu->insertItem("Normal", 1); 221 fontMenu->insertItem(tr( "Normal" ), 1);
222 fontMenu->insertItem("Large", 2); 222 fontMenu->insertItem(tr( "Large" ), 2);
223 223
224 defaultFont = new QFont( abList->font() ); 224 defaultFont = new QFont( abList->font() );
225 225
226 slotSetFont(startFontSize); 226 slotSetFont(startFontSize);
227 227
228 mbList->insertItem( tr("Font"), fontMenu); 228 mbList->insertItem( tr("Font"), fontMenu);
229 setCentralWidget(abList); 229 setCentralWidget(abList);
230 230
231 // qDebug("adressbook contrsuction: t=%d", t.elapsed() ); 231 // qDebug("adressbook contrsuction: t=%d", t.elapsed() );
232} 232}
233void AddressbookWindow::slotSetFont( int size ) { 233void AddressbookWindow::slotSetFont( int size ) {
234 234
235 if (size > 2 || size < 0) 235 if (size > 2 || size < 0)
236 size = 1; 236 size = 1;
237 237
238 startFontSize = size; 238 startFontSize = size;
239 239
240 QFont *currentFont; 240 QFont *currentFont;
241 241
242 switch (size) { 242 switch (size) {
243 case 0: 243 case 0:
244 fontMenu->setItemChecked(0, true); 244 fontMenu->setItemChecked(0, true);
245 fontMenu->setItemChecked(1, false); 245 fontMenu->setItemChecked(1, false);
246 fontMenu->setItemChecked(2, false); 246 fontMenu->setItemChecked(2, false);
247 abList->setFont( QFont( defaultFont->family(), defaultFont->pointSize() - 2 ) ); 247 abList->setFont( QFont( defaultFont->family(), defaultFont->pointSize() - 2 ) );
248 currentFont = new QFont (abList->font()); 248 currentFont = new QFont (abList->font());
249 abList->resizeRows(currentFont->pixelSize() + 7); 249 abList->resizeRows(currentFont->pixelSize() + 7);
250 break; 250 break;
251 case 1: 251 case 1:
252 fontMenu->setItemChecked(0, false); 252 fontMenu->setItemChecked(0, false);
253 fontMenu->setItemChecked(1, true); 253 fontMenu->setItemChecked(1, true);
254 fontMenu->setItemChecked(2, false); 254 fontMenu->setItemChecked(2, false);