#include "controllers/ControlChanges.h"
-#include <qpushbutton.h>
-#include <q3textview.h>
+#include <QPushButton>
+#include <QTextBrowser>
using lyx::support::bformat;
QChanges::QChanges(Dialog & parent)
- : base_class(parent, _("Merge Changes"))
+ : base_class(parent, lyx::to_utf8(_("Merge Changes")))
{
}
{
controller().find();
- string text;
- string author(controller().getChangeAuthor());
- string date(controller().getChangeDate());
+ docstring text;
+ docstring author = lyx::from_utf8(controller().getChangeAuthor());
+ docstring date = lyx::from_utf8(controller().getChangeDate());
if (!author.empty())
text += bformat(_("Change by %1$s\n\n"), author);
if (!date.empty())
text += bformat(_("Change made at %1$s\n"), date);
- dialog_->changeTV->setText(toqstr(text));
+ dialog_->changeTB->setPlainText(toqstr(text));
}