svn path=/trunk/KDE/kdebase/apps/; revision=926845
this, SLOT(setNameFilter(const QString&)));
connect(m_filterBar, SIGNAL(closeRequest()),
this, SLOT(closeFilterBar()));
+ connect(m_view, SIGNAL(urlChanged(const KUrl&)),
+ m_filterBar, SLOT(clear()));
m_topLayout->addWidget(m_urlNavigator);
m_topLayout->addWidget(m_view);
{
QWidget::keyReleaseEvent(event);
if ((event->key() == Qt::Key_Escape)) {
- emit closeRequest();
+ if (m_filterInput->text().isEmpty()) {
+ emit closeRequest();
+ } else {
+ m_filterInput->clear();
+ }
}
}
public:
FilterBar(QWidget* parent = 0);
virtual ~FilterBar();
-
+
+public slots:
/** Clears the input field. */
void clear();
-
+
signals:
/**
* Signal that reports the name filter has been