-rw-r--r-- | core/pim/osearch/doclnkitem.cpp | 6 | ||||
-rw-r--r-- | core/pim/osearch/mainwindow.cpp | 7 |
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 @@ -36,7 +36,7 @@ QString DocLnkItem::toRichText() 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>"; 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 @@ -127,7 +127,5 @@ void MainWindow::makeMenu() 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) ) ); } } @@ -140,5 +138,4 @@ void MainWindow::makeMenu() SearchAllAction->addTo( searchMenu ); searchMenu->insertItem( tr( "Options" ), searchOptions ); - //connect( searchOptions, SIGNAL( activated(int) ), SLOT( optionChanged(int) ) ); //SEARCH OPTIONS @@ -184,7 +181,5 @@ void MainWindow::setCurrent(QListViewItem *item) 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 ); @@ -195,5 +190,4 @@ void MainWindow::setCurrent(QListViewItem *item) } for (uint i = acts.count(); i < _buttonCount; i++){ - qDebug("remove button %i of %i",i, _buttonCount); button = buttonGroupActions->find( i ); if (button) button->hide(); @@ -265,5 +259,4 @@ void MainWindow::slotAction( int act ) void MainWindow::optionChanged(int i) { - qDebug("optionChanged(%i)",i); searchStringChanged(); } |