4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Abdelrazak Younes
9 * Full author contact details are available in file CREDITS.
14 #include "DialogView.h"
17 #include <QCloseEvent>
23 DialogView::DialogView(GuiView & lv, QString const & name, QString const & title)
24 : QDialog(&lv), Dialog(lv, name, title)
26 connect(&lv, SIGNAL(bufferViewChanged()),
27 this, SLOT(onBufferViewChanged()));
28 connect(&lv, SIGNAL(closing(int)),
29 this, SLOT(onClosing(int)));
31 // remove question marks from Windows dialogs
32 setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
36 void DialogView::closeEvent(QCloseEvent * ev)
44 void DialogView::hideEvent(QHideEvent * ev)
46 if (!ev->spontaneous()) {
53 } // namespace frontend
56 #include "moc_DialogView.cpp"