From f15ede6534cb9645a91309e7cb9bfe271c9c0cf9 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Mon, 9 Jun 2008 14:09:27 +0000 Subject: [PATCH] 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 --- src/frontends/qt4/DockView.h | 1 + src/frontends/qt4/GuiToc.cpp | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontends/qt4/DockView.h b/src/frontends/qt4/DockView.h index 5b2cdd7a96..f79803463d 100644 --- a/src/frontends/qt4/DockView.h +++ b/src/frontends/qt4/DockView.h @@ -38,6 +38,7 @@ public: ) : QDockWidget(&parent, flags), Dialog(parent, name, title) { + setObjectName(name); if (flags & Qt::Drawer) setFeatures(QDockWidget::NoDockWidgetFeatures); parent.addDockWidget(area, this); diff --git a/src/frontends/qt4/GuiToc.cpp b/src/frontends/qt4/GuiToc.cpp index 4b30e572ec..268f373313 100644 --- a/src/frontends/qt4/GuiToc.cpp +++ b/src/frontends/qt4/GuiToc.cpp @@ -35,7 +35,6 @@ namespace frontend { GuiToc::GuiToc(GuiView & parent, Qt::DockWidgetArea area, Qt::WindowFlags flags) : DockView(parent, "toc", qt_("Outline"), area, flags) { - setObjectName("toc"); widget_ = new TocWidget(parent, this); setWidget(widget_); }