summaryrefslogtreecommitdiff
authortille <tille>2003-05-16 17:30:46 (UTC)
committer tille <tille>2003-05-16 17:30:46 (UTC)
commit23e56debf8c8b219c974137daad07e01f873fcad (patch) (side-by-side diff)
tree003514e0135ca24e1778641df3b251df4e652d44
parent076926e6c7fe5bfd52f9f42879a216885ccc2cd3 (diff)
downloadopie-23e56debf8c8b219c974137daad07e01f873fcad.zip
opie-23e56debf8c8b219c974137daad07e01f873fcad.tar.gz
opie-23e56debf8c8b219c974137daad07e01f873fcad.tar.bz2
tr
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--core/pim/osearch/doclnkitem.cpp6
-rw-r--r--core/pim/osearch/mainwindow.cpp7
2 files changed, 3 insertions, 10 deletions
diff --git a/core/pim/osearch/doclnkitem.cpp b/core/pim/osearch/doclnkitem.cpp
index a1d0384..56eb26a 100644
--- a/core/pim/osearch/doclnkitem.cpp
+++ b/core/pim/osearch/doclnkitem.cpp
@@ -34,11 +34,11 @@ QString DocLnkItem::toRichText()
{
QString text;
text += "<b><h3>" + _doc->name() + "</b></h3><br>";
text += _doc->comment() + "<br>";
- text += "File: " + _doc->file() + "<br>";
- text += "Link: " + _doc->linkFile() + "<br>";
- text += "Mimetype: " + _doc->type() + "<br>";
+ text += QObject::tr("File: ") + _doc->file() + "<br>";
+ text += QObject::tr("Link: ") + _doc->linkFile() + "<br>";
+ text += QObject::tr("Mimetype: ") + _doc->type() + "<br>";
if ( _doc->type().contains( "text" ) ){
text += "<br><br><hr><br>";
QFile f(_doc->file());
if ( f.open(IO_ReadOnly) ) {
diff --git a/core/pim/osearch/mainwindow.cpp b/core/pim/osearch/mainwindow.cpp
index adce926..2936b17 100644
--- a/core/pim/osearch/mainwindow.cpp
+++ b/core/pim/osearch/mainwindow.cpp
@@ -125,11 +125,9 @@ void MainWindow::makeMenu()
QPopupMenu *pop;
for (SearchGroup *s = searches.first(); s != 0; s = searches.next() ){
pop = s->popupMenu();
if (pop){
- qDebug("inserting settings menu for %s",s->text(0).latin1());
cfgMenu->insertItem( s->text(0), pop );
- //connect( pop, SIGNAL( activated(int) ), SLOT( optionChanged(int) ) );
}
}
@@ -138,9 +136,8 @@ void MainWindow::makeMenu()
SearchAllAction->setIconSet( Resource::loadIconSet( "find" ) );
connect( SearchAllAction, SIGNAL(activated()), this, SLOT(searchAll()) );
SearchAllAction->addTo( searchMenu );
searchMenu->insertItem( tr( "Options" ), searchOptions );
- //connect( searchOptions, SIGNAL( activated(int) ), SLOT( optionChanged(int) ) );
//SEARCH OPTIONS
//actionWholeWordsOnly = new QAction( tr("Whole words only"),QString::null, 0, this, 0, true );
//actionWholeWordsOnly->addTo( searchOptions );
@@ -182,20 +179,17 @@ void MainWindow::setCurrent(QListViewItem *item)
QIntDict<QString> acts = res->actions();
QButton *button;
for (uint i = 0; i < acts.count(); i++){
button = buttonGroupActions->find( i );
- qDebug("action %i >%s<",i,acts[i]->latin1());
if (!button) {
- qDebug("BUTTON");
button = new QPushButton( detailsFrame );
buttonLayout->addWidget( button, 0 );
buttonGroupActions->insert( button, i);
}
button->setText( *acts[i] );
button->show();
}
for (uint i = acts.count(); i < _buttonCount; i++){
- qDebug("remove button %i of %i",i, _buttonCount);
button = buttonGroupActions->find( i );
if (button) button->hide();
}
_buttonCount = acts.count();
@@ -263,7 +257,6 @@ void MainWindow::slotAction( int act )
}
void MainWindow::optionChanged(int i)
{
- qDebug("optionChanged(%i)",i);
searchStringChanged();
}