Get rid of non-existent slot warning after removal of Close button.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33237 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Tommaso Cucinotta 2010-01-27 18:38:43 +00:00
parent a4e03846cd
commit e6fbc8bc72
2 changed files with 5 additions and 4 deletions

View File

@ -89,7 +89,7 @@ bool FindAndReplaceWidget::eventFilter(QObject *obj, QEvent *event)
QKeyEvent *e = static_cast<QKeyEvent *> (event); QKeyEvent *e = static_cast<QKeyEvent *> (event);
if (e->key() == Qt::Key_Escape if (e->key() == Qt::Key_Escape
&& e->modifiers() == Qt::NoModifier) { && e->modifiers() == Qt::NoModifier) {
on_closePB_clicked(); hideDialog();
return true; return true;
} else if (e->key() == Qt::Key_Enter } else if (e->key() == Qt::Key_Enter
|| e->key() == Qt::Key_Return) { || e->key() == Qt::Key_Return) {
@ -112,7 +112,7 @@ bool FindAndReplaceWidget::eventFilter(QObject *obj, QEvent *event)
QKeyEvent *e = static_cast<QKeyEvent *> (event); QKeyEvent *e = static_cast<QKeyEvent *> (event);
if (e->key() == Qt::Key_Escape if (e->key() == Qt::Key_Escape
&& e->modifiers() == Qt::NoModifier) { && e->modifiers() == Qt::NoModifier) {
on_closePB_clicked(); hideDialog();
return true; return true;
} else if (e->key() == Qt::Key_Enter } else if (e->key() == Qt::Key_Enter
|| e->key() == Qt::Key_Return) { || e->key() == Qt::Key_Return) {
@ -519,7 +519,7 @@ void FindAndReplaceWidget::insertRegexp(QAction * action)
} }
void FindAndReplaceWidget::on_closePB_clicked() void FindAndReplaceWidget::hideDialog()
{ {
dispatch(FuncRequest(LFUN_DIALOG_TOGGLE, "findreplaceadv")); dispatch(FuncRequest(LFUN_DIALOG_TOGGLE, "findreplaceadv"));
} }

View File

@ -64,13 +64,14 @@ private:
void virtual showEvent(QShowEvent *ev); void virtual showEvent(QShowEvent *ev);
void virtual hideEvent(QHideEvent *ev); void virtual hideEvent(QHideEvent *ev);
void hideDialog();
protected Q_SLOTS: protected Q_SLOTS:
void on_findNextPB_clicked(); void on_findNextPB_clicked();
void on_findPrevPB_clicked(); void on_findPrevPB_clicked();
void on_replaceNextPB_clicked(); void on_replaceNextPB_clicked();
void on_replacePrevPB_clicked(); void on_replacePrevPB_clicked();
void on_replaceallPB_clicked(); void on_replaceallPB_clicked();
void on_closePB_clicked();
void insertRegexp(QAction *); void insertRegexp(QAction *);
}; };