return new GuiShowFile(gv);
if (name == "findreplace")
return new GuiSearch(gv);
- if (name == "findreplaceadv") {
- FindAndReplace * gui = new FindAndReplace(gv, Qt::RightDockWidgetArea);
-#ifdef Q_OS_MAC
- // On Mac show and floating
- gui->setFloating(true);
-#endif
- return gui;
- }
+ if (name == "findreplaceadv")
+ return new FindAndReplace(gv);
if (name == "graphics")
return new GuiGraphics(gv);
if (name == "include")
return new GuiRef(gv);
if (name == "sendto")
return new GuiSendTo(gv);
- if (name == "spellchecker") {
- GuiSpellchecker * gui = new GuiSpellchecker(gv, Qt::RightDockWidgetArea);
-#ifdef Q_OS_MAC
- // On Mac show and floating
- gui->setFloating(true);
-#endif
- return gui;
- }
+ if (name == "spellchecker")
+ return new GuiSpellchecker(gv);
if (name == "symbols")
return new GuiSymbols(gv);
if (name == "tabularcreate")
if (name == "wrap")
return new GuiWrap(gv);
if (name == "progress")
- return new GuiProgressView(gv, Qt::BottomDockWidgetArea);
+ return new GuiProgressView(gv);
return nullptr;
}
widget_ = new FindAndReplaceWidget(parent);
setWidget(widget_);
setFocusProxy(widget_);
+#ifdef Q_OS_MAC
+ // On Mac show and floating
+ setFloating(true);
+#endif
connect(this, SIGNAL(dockLocationChanged(Qt::DockWidgetArea)),
widget_, SLOT(dockLocationChanged(Qt::DockWidgetArea)));
public:
GuiProgressView(
GuiView & parent, ///< the main window where to dock.
- Qt::DockWidgetArea area, ///< Position of the dock (and also drawer)
+ Qt::DockWidgetArea area = Qt::BottomDockWidgetArea, ///< Position of the dock (and also drawer)
Qt::WindowFlags flags = 0);
~GuiProgressView();