3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
6 * \author Angus Leeming
8 * Full author contact details are available in file CREDITS.
13 #include "DialogView.h"
16 #include "qt_helpers.h"
18 #include <QCloseEvent>
26 DialogView::DialogView(GuiView & lv, std::string const & name)
27 : QDialog(&lv), Dialog(lv, name)
31 void DialogView::setViewTitle(docstring const & title)
33 setWindowTitle("LyX: " + toqstr(title));
37 void DialogView::showEvent(QShowEvent * e)
40 QString key = toqstr(name()) + "/geometry";
41 restoreGeometry(settings.value(key).toByteArray());
42 QDialog::showEvent(e);
46 void DialogView::closeEvent(QCloseEvent * e)
49 QString key = toqstr(name()) + "/geometry";
50 settings.setValue(key, saveGeometry());
51 QDialog::closeEvent(e);
54 } // namespace frontend
57 #include "DialogView_moc.cpp"