]> git.lyx.org Git - features.git/blobdiff - src/frontends/qt/GuiChanges.cpp
Avoid deprecation warnings
[features.git] / src / frontends / qt / GuiChanges.cpp
index 812888f635c91306c96eb2dcecd2023303059084..eda161d0d54fc67ee0c82e2cb249239d5ceb106f 100644 (file)
@@ -70,8 +70,9 @@ void GuiChanges::updateContents()
                        text += inserted ? qt_("Inserted by %1").arg(author)
                                         : qt_("Deleted by %1").arg(author);
 
-               QString const date = QDateTime::fromTime_t(c.changetime)
-                                        .toString(Qt::DefaultLocaleLongDate);
+               QString const date =
+                       QLocale().toString(QDateTime::fromTime_t(c.changetime),
+                                       QLocale::LongFormat);
                if (!date.isEmpty()) {
                        if (!author.isEmpty())
                                text += qt_(" on[[date]] %1").arg(date);
@@ -123,9 +124,6 @@ void GuiChanges::rejectChange()
 }
 
 
-Dialog * createGuiChanges(GuiView & lv) { return new GuiChanges(lv); }
-
-
 } // namespace frontend
 } // namespace lyx