1
0
mirror of https://invent.kde.org/system/dolphin synced 2024-07-04 17:30:55 +00:00

Fixed issue that the filterbar and the menu state have not been synchronized (a not existing signal name has been used)

svn path=/trunk/playground/utils/dolphin/; revision=631709
This commit is contained in:
Peter Penz 2007-02-08 20:33:49 +00:00
parent abf8f1917d
commit ee4e21530b
3 changed files with 7 additions and 7 deletions

View File

@ -116,7 +116,7 @@ DolphinView::DolphinView(DolphinMainWindow* mainWindow,
m_filterBar->hide();
connect(m_filterBar, SIGNAL(filterChanged(const QString&)),
this, SLOT(changeNameFilter(const QString&)));
connect(m_filterBar, SIGNAL(closed()),
connect(m_filterBar, SIGNAL(closeRequest()),
this, SLOT(closeFilterBar()));
m_topLayout->addWidget(m_urlNavigator);

View File

@ -60,7 +60,7 @@ FilterBar::FilterBar(QWidget* parent) :
connect(m_filterInput, SIGNAL(textChanged(const QString&)),
this, SIGNAL(filterChanged(const QString&)));
connect(m_close, SIGNAL(clicked()), this, SLOT(emitClose()));
connect(m_close, SIGNAL(clicked()), this, SLOT(emitCloseRequest()));
}
FilterBar::~FilterBar()
@ -86,13 +86,13 @@ void FilterBar::keyReleaseEvent(QKeyEvent* event)
{
QWidget::keyReleaseEvent(event);
if ((event->key() == Qt::Key_Escape)) {
emitClose();
emitCloseRequest();
}
}
void FilterBar::emitClose()
void FilterBar::emitCloseRequest()
{
emit close();
emit closeRequest();
}
#include "filterbar.moc"

View File

@ -51,7 +51,7 @@ signals:
/**
* Emitted as soon as the filterbar should get closed.
*/
void closed();
void closeRequest();
protected:
virtual void hideEvent(QHideEvent* event);
@ -59,7 +59,7 @@ protected:
virtual void keyReleaseEvent(QKeyEvent* event);
private slots:
void emitClose();
void emitCloseRequest();
private:
QLabel* m_filter;