Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit b3efcae6 authored by Scott Wheeler's avatar Scott Wheeler

For pmax, with love.

Add a clear button to the search line a la KMail.

svn path=/trunk/kdemultimedia/juk/; revision=300208
parent add680a2
......@@ -199,11 +199,15 @@ void SearchWidget::setupLayout()
{
boxLayout()->setSpacing(5);
QToolButton *clearSearchButton = new QToolButton(this);
clearSearchButton->setTextLabel(i18n("Clear Search"), true);
clearSearchButton->setIconSet(SmallIconSet("locationbar_erase"));
new QLabel(i18n("Search:"), this, "kde toolbar widget");
m_searchLine = new SearchLine(this, true, "kde toolbar widget");
connect(m_searchLine, SIGNAL(signalQueryChanged()), this, SIGNAL(signalQueryChanged()));
connect(clearSearchButton, SIGNAL(pressed()), m_searchLine, SLOT(clear()));
setStretchableWidget(m_searchLine);
QToolButton *b = new QToolButton(this);
......
......@@ -44,6 +44,8 @@ public:
void setSearchComponent(const PlaylistSearch::Component &component);
void updateColumns();
public slots:
void clear();
signals:
......
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