summaryrefslogtreecommitdiff
path: root/core/pim/osearch/mainwindow.cpp
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 /core/pim/osearch/mainwindow.cpp
parent076926e6c7fe5bfd52f9f42879a216885ccc2cd3 (diff)
downloadopie-23e56debf8c8b219c974137daad07e01f873fcad.zip
opie-23e56debf8c8b219c974137daad07e01f873fcad.tar.gz
opie-23e56debf8c8b219c974137daad07e01f873fcad.tar.bz2
tr
Diffstat (limited to 'core/pim/osearch/mainwindow.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/osearch/mainwindow.cpp7
1 files changed, 0 insertions, 7 deletions
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
@@ -123,26 +123,23 @@ void MainWindow::makeMenu()
//SETTINGS MENU
cfgMenu->insertItem( tr( "Search" ), searchOptions );
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) ) );
}
}
//SEARCH
SearchAllAction = new QAction( tr("Search all"),QString::null, 0, this, 0 );
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 );
actionCaseSensitiv = new QAction( tr("Case sensitiv"),QString::null, 0, this, 0, true );
actionCaseSensitiv->addTo( searchOptions );
@@ -180,24 +177,21 @@ void MainWindow::setCurrent(QListViewItem *item)
// ResultItem *res = dynamic_cast<ResultItem*>(item);
richEdit->setText( res->toRichText() );
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();
detailsFrame->show();
}else detailsFrame->hide();
@@ -261,9 +255,8 @@ void MainWindow::slotAction( int act )
res->action(act);
}
}
void MainWindow::optionChanged(int i)
{
- qDebug("optionChanged(%i)",i);
searchStringChanged();
}