]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/DialogView.h
Complete the removal of the embedding stuff. Maybe. It's hard to be sure we got every...
[lyx.git] / src / frontends / qt4 / DialogView.h
index 84747ad738ec744743cb1ddf0010b20fa20feaf1..d34b83dff28f375f41060e88402a3ce4cd6545c9 100644 (file)
@@ -13,6 +13,7 @@
 #define DIALOGVIEW_H
 
 #include "Dialog.h"
+#include "GuiView.h"
 
 #include <QDialog>
 
@@ -24,14 +25,14 @@ namespace frontend {
  */
 class DialogView : public QDialog, public Dialog
 {
-       Q_OBJECT
-
 public:
        /// \param lv is the access point for the dialog to the LyX kernel.
        /// \param name is the identifier given to the dialog by its parent
        /// container.
-       explicit DialogView(GuiView & lv, std::string const & name);
-       virtual ~DialogView() {}
+       /// \param title is the window title used for decoration.
+       DialogView(GuiView & lv, QString const & name, QString const & title)
+               : QDialog(&lv), Dialog(lv, name, "LyX: " + title)
+       {}
 
        virtual QWidget * asQWidget() { return this; }
        virtual QWidget const * asQWidget() const { return this; }