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"
20 DialogView::DialogView(GuiView & lv, QString const & name, QString const & title)
21 : QDialog(&lv), Dialog(lv, name, "LyX: " + title)
23 connect(&lv, SIGNAL(bufferViewChanged()),
24 this, SLOT(onBufferViewChanged()));
26 // remove question marks from Windows dialogs
27 setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
31 void DialogView::closeEvent(QCloseEvent * ev)
39 void DialogView::hideEvent(QHideEvent * ev)
41 if (!ev->spontaneous()) {
48 } // namespace frontend
51 #include "moc_DialogView.cpp"