]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiShowFile.cpp
Complete the removal of the embedding stuff. Maybe. It's hard to be sure we got every...
[lyx.git] / src / frontends / qt4 / GuiShowFile.cpp
index 95db41b06b516293d7f7395d4535241ff2dd554b..43d519610a5b4de56ffcfb544d8cdda1c208a48c 100644 (file)
@@ -18,7 +18,6 @@
 
 #include <QTextBrowser>
 #include <QPushButton>
-#include <QCloseEvent>
 
 using namespace std;
 using namespace lyx::support;
@@ -39,16 +38,9 @@ GuiShowFile::GuiShowFile(GuiView & lv)
 }
 
 
-void GuiShowFile::closeEvent(QCloseEvent * e)
-{
-       slotClose();
-       e->accept();
-}
-
-
 void GuiShowFile::updateContents()
 {
-       setWindowTitle(toqstr(onlyFilename(filename_.absFilename())));
+       setWindowTitle(onlyFilename(toqstr(filename_.absFilename())));
 
        QString contents = toqstr(filename_.fileContents("UTF-8"));
        if (contents.isEmpty())