]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiShowFile.cpp
Use <cstdint> instead of <boost/cstdint.hpp>
[lyx.git] / src / frontends / qt4 / GuiShowFile.cpp
index 9cde4ba22ef0f22c7faf2132dc2843e3f0ec7ab7..4126045410b36c3895585162fa69235d2f26b3f0 100644 (file)
@@ -31,16 +31,17 @@ GuiShowFile::GuiShowFile(GuiView & lv)
 {
        setupUi(this);
 
-       connect(closePB, SIGNAL(clicked()), this, SLOT(slotClose()));
+       connect(buttonBox, SIGNAL(clicked(QAbstractButton *)),
+               this, SLOT(slotButtonBox(QAbstractButton *)));
 
        bc().setPolicy(ButtonPolicy::OkCancelPolicy);
-       bc().setCancel(closePB);
+       bc().setCancel(buttonBox->button(QDialogButtonBox::Cancel));
 }
 
 
 void GuiShowFile::updateContents()
 {
-       setWindowTitle(toqstr(onlyFilename(filename_.absFilename())));
+       setWindowTitle(onlyFileName(toqstr(filename_.absFileName())));
 
        QString contents = toqstr(filename_.fileContents("UTF-8"));
        if (contents.isEmpty())
@@ -50,9 +51,9 @@ void GuiShowFile::updateContents()
 }
 
 
-bool GuiShowFile::initialiseParams(string const & data)
+bool GuiShowFile::initialiseParams(string const & sdata)
 {
-       filename_ = FileName(data);
+       filename_ = FileName(sdata);
        return true;
 }
 
@@ -69,4 +70,4 @@ Dialog * createGuiShowFile(GuiView & lv) { return new GuiShowFile(lv); }
 } // namespace frontend
 } // namespace lyx
 
-#include "GuiShowFile_moc.cpp"
+#include "moc_GuiShowFile.cpp"