mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-09-22 16:04:07 +00:00
45 lines
642 B
C++
45 lines
642 B
C++
|
/**
|
||
|
* \file QIndexDialog.C
|
||
|
* Copyright 2001 the LyX Team
|
||
|
* Read the file COPYING
|
||
|
*
|
||
|
* \author John Levon <moz@compsoc.man.ac.uk>
|
||
|
*/
|
||
|
|
||
|
#include "QIndexDialog.h"
|
||
|
#include "Dialogs.h"
|
||
|
#include "QIndex.h"
|
||
|
|
||
|
QIndexDialog::QIndexDialog(QIndex * form, QWidget * parent, const char * name, bool modal, WFlags fl)
|
||
|
: QIndexDialogBase(parent, name, modal, fl),
|
||
|
form_(form)
|
||
|
{
|
||
|
}
|
||
|
|
||
|
|
||
|
QIndexDialog::~QIndexDialog()
|
||
|
{
|
||
|
}
|
||
|
|
||
|
|
||
|
void QIndexDialog::apply_adaptor()
|
||
|
{
|
||
|
form_->apply();
|
||
|
form_->close();
|
||
|
hide();
|
||
|
}
|
||
|
|
||
|
|
||
|
void QIndexDialog::close_adaptor()
|
||
|
{
|
||
|
form_->close();
|
||
|
hide();
|
||
|
}
|
||
|
|
||
|
|
||
|
void QIndexDialog::closeEvent(QCloseEvent *e)
|
||
|
{
|
||
|
form_->close();
|
||
|
e->accept();
|
||
|
}
|