mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 19:25:39 +00:00
* src/frontends/qt4/QTocDialog.C: Hide the pointless QHeader
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13688 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
9d8aadcc64
commit
a90ee19486
@ -19,6 +19,7 @@
|
||||
|
||||
#include "debug.h"
|
||||
|
||||
#include <QHeaderView>
|
||||
#include <QTreeWidget>
|
||||
#include <QTreeWidgetItem>
|
||||
#include <QPushButton>
|
||||
@ -50,9 +51,9 @@ QTocDialog::QTocDialog(QToc * form)
|
||||
tocTW->setColumnCount(1);
|
||||
|
||||
// hide the pointless QHeader
|
||||
// QWidget * w = static_cast<QWidget*>(tocTW->child("list view header"));
|
||||
// if (w)
|
||||
// w->hide();
|
||||
QHeaderView * w = static_cast<QHeaderView*>(tocTW->header());
|
||||
if (w)
|
||||
w->hide();
|
||||
|
||||
// connect(closePB, SIGNAL(clicked()),
|
||||
// form, SLOT(slotClose()));
|
||||
@ -65,7 +66,7 @@ QTocDialog::~QTocDialog()
|
||||
}
|
||||
|
||||
void QTocDialog::on_tocTW_currentItemChanged(QTreeWidgetItem * current,
|
||||
QTreeWidgetItem * previous)
|
||||
QTreeWidgetItem * previous)
|
||||
{
|
||||
form_->select(fromqstr(current->text(0)));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user