26#if defined (HAVE_CONFIG_H)
30#include <QDesktopWidget>
34#include <QTextBrowser>
48 :
QWidget (nullptr), m_browser (nullptr),
49 m_release_notes_icon (
":/actions/icons/logo.png")
56 +
"ReleaseWidget.png";
66 if (file->open (QFile::ReadOnly))
68 QTextStream *
stream =
new QTextStream (file);
70 if (! news.isEmpty ())
73 news.replace (
"<",
"<");
74 news.replace (
">",
">");
76 news.prepend (
"<pre>");
77 news.append (
"</pre>");
80 news = (tr (
"The release notes file '%1' is empty.")
84 news = (tr (
"The release notes file '%1' cannot be read.")
91 QVBoxLayout *vlayout =
new QVBoxLayout;
95 setWindowTitle (tr (
"Octave Release Notes"));
102 resize (win_x*2/5, win_y*2/3);
110 else if (isMinimized ())
124 QRect screen_geometry = QApplication::desktop ()->availableGeometry (
this);
126 width = screen_geometry.width ();
127 height = screen_geometry.height ();
void get_screen_geometry(int &width, int &height)
QString m_release_notes_icon
const struct @23 dw_icon_set_names[]
std::string oct_etc_dir(void)
QString fromStdString(const std::string &s)