set the object name for all DockView based dialog (fix http://bugzilla.lyx.org/show_bug.cgi?id=4922)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25209 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2008-06-09 14:09:27 +00:00
parent 33258e1197
commit f15ede6534
2 changed files with 1 additions and 1 deletions

View File

@ -38,6 +38,7 @@ public:
) )
: QDockWidget(&parent, flags), Dialog(parent, name, title) : QDockWidget(&parent, flags), Dialog(parent, name, title)
{ {
setObjectName(name);
if (flags & Qt::Drawer) if (flags & Qt::Drawer)
setFeatures(QDockWidget::NoDockWidgetFeatures); setFeatures(QDockWidget::NoDockWidgetFeatures);
parent.addDockWidget(area, this); parent.addDockWidget(area, this);

View File

@ -35,7 +35,6 @@ namespace frontend {
GuiToc::GuiToc(GuiView & parent, Qt::DockWidgetArea area, Qt::WindowFlags flags) GuiToc::GuiToc(GuiView & parent, Qt::DockWidgetArea area, Qt::WindowFlags flags)
: DockView(parent, "toc", qt_("Outline"), area, flags) : DockView(parent, "toc", qt_("Outline"), area, flags)
{ {
setObjectName("toc");
widget_ = new TocWidget(parent, this); widget_ = new TocWidget(parent, this);
setWidget(widget_); setWidget(widget_);
} }