summaryrefslogtreecommitdiffabout
Unidiff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--bin/kdepim/WhatsNew.txt4
-rw-r--r--kabc/addresseedialog.cpp13
-rw-r--r--korganizer/searchdialog.cpp8
3 files changed, 19 insertions, 6 deletions
diff --git a/bin/kdepim/WhatsNew.txt b/bin/kdepim/WhatsNew.txt
index c4557ef..2aac9ff 100644
--- a/bin/kdepim/WhatsNew.txt
+++ b/bin/kdepim/WhatsNew.txt
@@ -1,8 +1,12 @@
1Info about the changes in new versions of KDE-Pim/Pi 1Info about the changes in new versions of KDE-Pim/Pi
2 2
3********** VERSION 2.1.9 ************
4
5KO/Pi:
6Fixed some problems of the new search options in the search dialog.
3 7
4********** VERSION 2.1.8 ************ 8********** VERSION 2.1.8 ************
5 9
6KO/Pi: 10KO/Pi:
7Added info about the completion state of a todo in the ListView/Searchdialog. 11Added info about the completion state of a todo in the ListView/Searchdialog.
8If in TodoView is selected "do not show compledted todos" then completed todos are not shown in the ListView as well. 12If in TodoView is selected "do not show compledted todos" then completed todos are not shown in the ListView as well.
diff --git a/kabc/addresseedialog.cpp b/kabc/addresseedialog.cpp
index 3e7b72c..9197850 100644
--- a/kabc/addresseedialog.cpp
+++ b/kabc/addresseedialog.cpp
@@ -72,34 +72,37 @@ AddresseeDialog::AddresseeDialog( QWidget *parent, bool multiple ) :
72 mMiniSplitter->setMinimizeDirection ( KDGanttMinimizeSplitter::Right ); 72 mMiniSplitter->setMinimizeDirection ( KDGanttMinimizeSplitter::Right );
73 73
74 topLayout->addWidget(mMiniSplitter ); 74 topLayout->addWidget(mMiniSplitter );
75 75
76 QWidget *listWidget = new QWidget( mMiniSplitter ); 76 QWidget *listWidget = new QWidget( mMiniSplitter );
77 77
78 QBoxLayout *listLayout = new QVBoxLayout (listWidget) ; 78 QVBoxLayout *listLayout = new QVBoxLayout (listWidget) ;
79 //topLayout->addLayout( listLayout ); 79 //topLayout->addLayout( listLayout );
80 80
81 mAddresseeList = new KListView( listWidget ); 81 mAddresseeList = new KListView( listWidget );
82 mAddresseeList->addColumn( i18n("Name") ); 82 mAddresseeList->addColumn( i18n("Name") );
83 mAddresseeList->addColumn( i18n("Email") ); 83 mAddresseeList->addColumn( i18n("Email") );
84 mAddresseeList->addColumn( i18n("Category") ); 84 mAddresseeList->addColumn( i18n("Category") );
85 mAddresseeList->setAllColumnsShowFocus( true ); 85 mAddresseeList->setAllColumnsShowFocus( true );
86 mAddresseeList->setFullWidth( true ); 86 mAddresseeList->setFullWidth( true );
87 listLayout->addWidget( mAddresseeList ); 87 listLayout->addWidget( mAddresseeList );
88 connect( mAddresseeList, SIGNAL( doubleClicked( QListViewItem * ) ), 88 connect( mAddresseeList, SIGNAL( doubleClicked( QListViewItem * ) ),
89 SLOT( slotOk() ) ); 89 SLOT( slotOk() ) );
90 90
91 QHBox* searchBox = new QHBox ( listWidget ); 91 //QHBox* searchBox = new QHBox ( listWidget );
92 mAddresseeEdit = new QLineEdit( searchBox ); 92 mAddresseeEdit = new QLineEdit( listWidget );
93 connect( mAddresseeEdit, SIGNAL( returnPressed() ), 93 connect( mAddresseeEdit, SIGNAL( returnPressed() ),
94 SLOT( loadAddressBook() ) ); 94 SLOT( loadAddressBook() ) );
95 mAddresseeEdit->setFocus(); 95 mAddresseeEdit->setFocus();
96 QPushButton *searchButton = new QPushButton( i18n("Search!"), searchBox ); 96 QPushButton *searchButton = new QPushButton( i18n("Search!"), listWidget );
97 connect ( searchButton, SIGNAL( clicked() ), SLOT( loadAddressBook() ) ); 97 connect ( searchButton, SIGNAL( clicked() ), SLOT( loadAddressBook() ) );
98 98
99 listLayout->addWidget( searchBox ); 99 QHBoxLayout *searchLayout = new QHBoxLayout (listLayout) ;
100 searchLayout->addWidget( mAddresseeEdit );
101 searchLayout->addWidget( searchButton );
102 //listLayout->addWidget( searchBox );
100 103
101 if ( mMultiple ) { 104 if ( mMultiple ) {
102 //QBoxLayout *selectedLayout = new QVBoxLayout; 105 //QBoxLayout *selectedLayout = new QVBoxLayout;
103 //topLayout->addLayout( selectedLayout ); 106 //topLayout->addLayout( selectedLayout );
104 //topLayout->setSpacing( spacingHint() ); 107 //topLayout->setSpacing( spacingHint() );
105 108
diff --git a/korganizer/searchdialog.cpp b/korganizer/searchdialog.cpp
index a8de297..0713980 100644
--- a/korganizer/searchdialog.cpp
+++ b/korganizer/searchdialog.cpp
@@ -558,13 +558,19 @@ void SearchDialog::search(const QRegExp &re)
558 mMatchedJournals.append(journ); 558 mMatchedJournals.append(journ);
559 continue; 559 continue;
560 } 560 }
561 } 561 }
562 } 562 }
563 } 563 }
564 564 if ( mMatchedEvents.count() + mMatchedJournals.count() + mMatchedTodos.count() < 1 ) {
565 qDebug("count %d ", mMatchedEvents.count() + mMatchedJournals.count() + mMatchedTodos.count() );
566 if ( mRefineItems->isChecked() )
567 mRefineItems->setChecked( false );
568 else if ( mSubItems->isChecked() )
569 mSubItems->setChecked( false );
570 }
565} 571}
566 572
567void SearchDialog::keyPressEvent ( QKeyEvent *e) 573void SearchDialog::keyPressEvent ( QKeyEvent *e)
568{ 574{
569 switch ( e->key() ) { 575 switch ( e->key() ) {
570 case Qt::Key_Escape: 576 case Qt::Key_Escape: