3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
8 * Full author contact details are available in file CREDITS.
13 #include "QTocDialog.h"
15 #include "qt_helpers.h"
17 #include <qlistview.h>
18 #include <qpushbutton.h>
23 QTocDialog::QTocDialog(QToc * form)
24 : QTocDialogBase(0, 0, false, 0),
28 tocLV->setSorting(-1);
30 // hide the pointless QHeader
31 QWidget * w = static_cast<QWidget*>(tocLV->child("list view header"));
35 connect(closePB, SIGNAL(clicked()),
36 form, SLOT(slotClose()));
40 QTocDialog::~QTocDialog()
45 void QTocDialog::activate_adaptor(int)
47 form_->updateToc(form_->depth_);
51 void QTocDialog::depth_adaptor(int depth)
53 form_->set_depth(depth);
57 void QTocDialog::select_adaptor(QListViewItem * item)
59 form_->select(fromqstr(item->text(0)));
63 void QTocDialog::update_adaptor()
69 void QTocDialog::closeEvent(QCloseEvent * e)
75 } // namespace frontend