summaryrefslogtreecommitdiff
path: root/core/pim/osearch/mainwindow.cpp
Unidiff
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
@@ -126,9 +126,7 @@ void MainWindow::makeMenu()
126 for (SearchGroup *s = searches.first(); s != 0; s = searches.next() ){ 126 for (SearchGroup *s = searches.first(); s != 0; s = searches.next() ){
127 pop = s->popupMenu(); 127 pop = s->popupMenu();
128 if (pop){ 128 if (pop){
129 qDebug("inserting settings menu for %s",s->text(0).latin1());
130 cfgMenu->insertItem( s->text(0), pop ); 129 cfgMenu->insertItem( s->text(0), pop );
131 //connect( pop, SIGNAL( activated(int) ), SLOT( optionChanged(int) ) );
132 } 130 }
133 } 131 }
134 132
@@ -139,7 +137,6 @@ void MainWindow::makeMenu()
139 connect( SearchAllAction, SIGNAL(activated()), this, SLOT(searchAll()) ); 137 connect( SearchAllAction, SIGNAL(activated()), this, SLOT(searchAll()) );
140 SearchAllAction->addTo( searchMenu ); 138 SearchAllAction->addTo( searchMenu );
141 searchMenu->insertItem( tr( "Options" ), searchOptions ); 139 searchMenu->insertItem( tr( "Options" ), searchOptions );
142 //connect( searchOptions, SIGNAL( activated(int) ), SLOT( optionChanged(int) ) );
143 140
144 //SEARCH OPTIONS 141 //SEARCH OPTIONS
145 //actionWholeWordsOnly = new QAction( tr("Whole words only"),QString::null, 0, this, 0, true ); 142 //actionWholeWordsOnly = new QAction( tr("Whole words only"),QString::null, 0, this, 0, true );
@@ -183,9 +180,7 @@ void MainWindow::setCurrent(QListViewItem *item)
183 QButton *button; 180 QButton *button;
184 for (uint i = 0; i < acts.count(); i++){ 181 for (uint i = 0; i < acts.count(); i++){
185 button = buttonGroupActions->find( i ); 182 button = buttonGroupActions->find( i );
186 qDebug("action %i >%s<",i,acts[i]->latin1());
187 if (!button) { 183 if (!button) {
188 qDebug("BUTTON");
189 button = new QPushButton( detailsFrame ); 184 button = new QPushButton( detailsFrame );
190 buttonLayout->addWidget( button, 0 ); 185 buttonLayout->addWidget( button, 0 );
191 buttonGroupActions->insert( button, i); 186 buttonGroupActions->insert( button, i);
@@ -194,7 +189,6 @@ void MainWindow::setCurrent(QListViewItem *item)
194 button->show(); 189 button->show();
195 } 190 }
196 for (uint i = acts.count(); i < _buttonCount; i++){ 191 for (uint i = acts.count(); i < _buttonCount; i++){
197 qDebug("remove button %i of %i",i, _buttonCount);
198 button = buttonGroupActions->find( i ); 192 button = buttonGroupActions->find( i );
199 if (button) button->hide(); 193 if (button) button->hide();
200 } 194 }
@@ -264,6 +258,5 @@ void MainWindow::slotAction( int act )
264 258
265void MainWindow::optionChanged(int i) 259void MainWindow::optionChanged(int i)
266{ 260{
267 qDebug("optionChanged(%i)",i);
268 searchStringChanged(); 261 searchStringChanged();
269} 262}