diff options
| author | Peter Penz <[email protected]> | 2009-11-10 22:18:45 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2009-11-10 22:18:45 +0000 |
| commit | 0d448fc6f31503731ec1bc57f65750263ccc4da5 (patch) | |
| tree | ecebdc997b57895816db1c13fb527e9f9767b4c8 /src/search/dolphinsearchoptionsconfigurator.cpp | |
| parent | d9e3139e505857e1a590f324fc7516ca589169aa (diff) | |
Added some default search criterions. A lot of fine tuning of the UI has to be made ASAP, but all in all I think it is more efficient to have some default criterions already instead of the need to press the (+) icon for each option.
svn path=/trunk/KDE/kdebase/apps/; revision=1047298
Diffstat (limited to 'src/search/dolphinsearchoptionsconfigurator.cpp')
| -rw-r--r-- | src/search/dolphinsearchoptionsconfigurator.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/search/dolphinsearchoptionsconfigurator.cpp b/src/search/dolphinsearchoptionsconfigurator.cpp index cebf71cdb..6f4d83460 100644 --- a/src/search/dolphinsearchoptionsconfigurator.cpp +++ b/src/search/dolphinsearchoptionsconfigurator.cpp @@ -92,8 +92,17 @@ DolphinSearchOptionsConfigurator::DolphinSearchOptionsConfigurator(QWidget* pare hBoxLayout->addWidget(closeButton); hBoxLayout->addWidget(m_addSelectorButton); + // add default search criterions + SearchCriterionSelector* dateCriterion = new SearchCriterionSelector(SearchCriterionSelector::Date, this); + connect(dateCriterion, SIGNAL(removeCriterion()), this, SLOT(removeCriterion())); + + SearchCriterionSelector* fileSizeCriterion = new SearchCriterionSelector(SearchCriterionSelector::FileSize, this); + connect(fileSizeCriterion, SIGNAL(removeCriterion()), this, SLOT(removeCriterion())); + m_vBoxLayout->addWidget(new KSeparator(this)); m_vBoxLayout->addLayout(hBoxLayout); + m_vBoxLayout->addWidget(dateCriterion); + m_vBoxLayout->addWidget(fileSizeCriterion); m_vBoxLayout->addWidget(new KSeparator(this)); } @@ -103,7 +112,7 @@ DolphinSearchOptionsConfigurator::~DolphinSearchOptionsConfigurator() void DolphinSearchOptionsConfigurator::addSelector() { - SearchCriterionSelector* selector = new SearchCriterionSelector(this); + SearchCriterionSelector* selector = new SearchCriterionSelector(SearchCriterionSelector::Undefined, this); connect(selector, SIGNAL(removeCriterion()), this, SLOT(removeCriterion())); // insert the new selector before the KSeparator at the bottom |
