summaryrefslogtreecommitdiff
path: root/core/pim/osearch/doclnksearch.cpp
Unidiff
Diffstat (limited to 'core/pim/osearch/doclnksearch.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/osearch/doclnksearch.cpp18
1 files changed, 11 insertions, 7 deletions
diff --git a/core/pim/osearch/doclnksearch.cpp b/core/pim/osearch/doclnksearch.cpp
index b03dbd8..c73dcbf 100644
--- a/core/pim/osearch/doclnksearch.cpp
+++ b/core/pim/osearch/doclnksearch.cpp
@@ -1,50 +1,54 @@
1// 1//
2// 2//
3// C++ Implementation: $MODULE$ 3// C++ Implementation: $MODULE$
4// 4//
5// Description: 5// Description:
6// 6//
7// 7//
8// Author: Patrick S. Vogt <tille@handhelds.org>, (C) 2003 8// Author: Patrick S. Vogt <tille@handhelds.org>, (C) 2003
9// 9//
10// Copyright: See COPYING file that comes with this distribution 10// Copyright: See COPYING file that comes with this distribution
11// 11//
12// 12//
13 13
14
15#include "doclnkitem.h"
16#include "doclnksearch.h"
17
18#include <opie2/owait.h>
19
20#include <qpe/applnk.h>
21#include <qpe/config.h>
22#include <qpe/resource.h>
23#include <qpe/qpeapplication.h>
24
14#include <qaction.h> 25#include <qaction.h>
15#include <qfile.h> 26#include <qfile.h>
16#include <qiconset.h> 27#include <qiconset.h>
17#include <qpopupmenu.h> 28#include <qpopupmenu.h>
18#include <qtextstream.h> 29#include <qtextstream.h>
19#include <qpe/applnk.h>
20#include <qpe/config.h>
21#include <qpe/resource.h>
22#include <qpe/qpeapplication.h>
23#include <opie/owait.h>
24 30
25#include "doclnkitem.h"
26#include "doclnksearch.h"
27 31
28DocLnkSearch::DocLnkSearch(QListView* parent, QString name) 32DocLnkSearch::DocLnkSearch(QListView* parent, QString name)
29: AppLnkSearch(parent, name), _popupMenu(0) 33: AppLnkSearch(parent, name), _popupMenu(0)
30{ 34{
31 QIconSet is = Resource::loadIconSet( "osearch/documentsSmall" ); 35 QIconSet is = Resource::loadIconSet( "osearch/documentsSmall" );
32 setPixmap( 0, is.pixmap( QIconSet::Automatic, true ) ); 36 setPixmap( 0, is.pixmap( QIconSet::Automatic, true ) );
33 37
34 actionSearchInFiles = new QAction( QObject::tr("search content"),QString::null, 0, 0, 0, true ); 38 actionSearchInFiles = new QAction( QObject::tr("search content"),QString::null, 0, 0, 0, true );
35 Config cfg( "osearch", Config::User ); 39 Config cfg( "osearch", Config::User );
36 cfg.setGroup( "doclnk_settings" ); 40 cfg.setGroup( "doclnk_settings" );
37 actionSearchInFiles->setOn( cfg.readBoolEntry( "search_content", false ) ); 41 actionSearchInFiles->setOn( cfg.readBoolEntry( "search_content", false ) );
38} 42}
39 43
40 44
41DocLnkSearch::~DocLnkSearch() 45DocLnkSearch::~DocLnkSearch()
42{ 46{
43 Config cfg( "osearch", Config::User ); 47 Config cfg( "osearch", Config::User );
44 cfg.setGroup( "doclnk_settings" ); 48 cfg.setGroup( "doclnk_settings" );
45 cfg.writeEntry( "search_content", actionSearchInFiles->isOn() ); 49 cfg.writeEntry( "search_content", actionSearchInFiles->isOn() );
46} 50}
47 51
48void DocLnkSearch::load() 52void DocLnkSearch::load()
49{ 53{
50 _apps = new DocLnkSet(QPEApplication::documentDir()); 54 _apps = new DocLnkSet(QPEApplication::documentDir());