Commit 37c87806 authored by Scott Wheeler's avatar Scott Wheeler

Don't duplicate code from SearchLine, which was just created so that it could

be reused here.

svn path=/trunk/kdemultimedia/juk/; revision=240321
parent 3922d9aa
......@@ -28,6 +28,7 @@
#include <qlayout.h>
#include "advancedsearchdialog.h"
#include "searchwidget.h"
AdvancedSearchDialog::AdvancedSearchDialog(QWidget *parent, const char *name) :
KDialogBase(parent, name, true, i18n("Create Search Playlist"), Ok|Cancel)
......@@ -48,8 +49,8 @@ AdvancedSearchDialog::AdvancedSearchDialog(QWidget *parent, const char *name) :
m_criteria = new QVBox(criteriaGroupBox);
searchLine();
searchLine();
new SearchLine(m_criteria);
new SearchLine(m_criteria);
QWidget *buttons = new QWidget(criteriaGroupBox);
QBoxLayout *l = new QHBoxLayout(buttons, 0, 5);
......@@ -66,24 +67,3 @@ AdvancedSearchDialog::~AdvancedSearchDialog()
{
}
////////////////////////////////////////////////////////////////////////////////
// private members
////////////////////////////////////////////////////////////////////////////////
QWidget *AdvancedSearchDialog::searchLine()
{
QHBox *box = new QHBox(m_criteria);
box->setSpacing(5);
new KComboBox(box);
new KLineEdit(box);
KComboBox *caseSensitive = new KComboBox(box);
caseSensitive->insertItem(i18n("Normal Matching"), 0);
caseSensitive->insertItem(i18n("Case Sensitive"), 1);
caseSensitive->insertItem(i18n("Pattern Matching"), 2);
return box;
}
......@@ -29,8 +29,6 @@ public:
virtual ~AdvancedSearchDialog();
private:
QWidget *searchLine();
QWidget *m_criteria;
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment