X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fqt4%2FGuiLog.cpp;h=2ddadc9226af3b684354f14dc0578ebfe8d489c5;hb=e029b216b7e56ce3a41ef0b853045c37c7d155d8;hp=713544a02c5e25f81d2dafbcf6120018db354dd5;hpb=9abb7db46800e554f57e865a3e768602ffd9d6f1;p=lyx.git diff --git a/src/frontends/qt4/GuiLog.cpp b/src/frontends/qt4/GuiLog.cpp index 713544a02c..2ddadc9226 100644 --- a/src/frontends/qt4/GuiLog.cpp +++ b/src/frontends/qt4/GuiLog.cpp @@ -15,10 +15,11 @@ #include "GuiApplication.h" #include "qt_helpers.h" -#include "support/gettext.h" #include "Lexer.h" -#include +#include "support/docstring.h" +#include "support/gettext.h" + #include #include #include @@ -99,7 +100,7 @@ void LogHighlighter::highlightBlock(QString const & text) ///////////////////////////////////////////////////////////////////// GuiLog::GuiLog(GuiView & lv) - : GuiDialog(lv, "log"), type_(LatexLog) + : GuiDialog(lv, "log", qt_("LaTeX Log")), type_(LatexLog) { setupUi(this); @@ -120,16 +121,9 @@ GuiLog::GuiLog(GuiView & lv) } -void GuiLog::closeEvent(QCloseEvent * e) -{ - slotClose(); - e->accept(); -} - - void GuiLog::updateContents() { - setViewTitle(title()); + setTitle(toqstr(title())); ostringstream ss; getContents(ss); @@ -141,7 +135,7 @@ void GuiLog::updateContents() bool GuiLog::initialiseParams(string const & data) { istringstream is(data); - Lexer lex(0,0); + Lexer lex; lex.setStream(is); string logtype, logfile; @@ -166,6 +160,9 @@ bool GuiLog::initialiseParams(string const & data) return false; logfile_ = FileName(logfile); + + updateContents(); + return true; } @@ -239,4 +236,4 @@ Dialog * createGuiLog(GuiView & lv) { return new GuiLog(lv); } } // namespace frontend } // namespace lyx -#include "GuiLog_moc.cpp" +#include "moc_GuiLog.cpp"