26 #if defined (HAVE_CONFIG_H)
30 #include <QApplication>
35 #include <QTextBrowser>
36 #include <QTextStream>
51 :
QWidget (
nullptr), m_browser (
nullptr)
59 if (icon_set !=
"NONE")
61 +
"ReleaseWidget.png";
70 if (file->open (QFile::ReadOnly))
72 QTextStream *
stream =
new QTextStream (file);
74 if (! news.isEmpty ())
77 news.replace (
"<",
"<");
78 news.replace (
">",
">");
80 news.prepend (
"<pre>");
81 news.append (
"</pre>");
84 news = (tr (
"The release notes file '%1' is empty.")
88 news = (tr (
"The release notes file '%1' cannot be read.")
92 m_browser->setText (news);
94 QVBoxLayout *vlayout =
new QVBoxLayout;
95 vlayout->addWidget (m_browser);
98 setWindowTitle (tr (
"Octave Release Notes"));
100 m_browser->document ()->adjustSize ();
105 resize (win_x*2/5, win_y*2/3);
113 else if (isMinimized ())
Base class for Octave interfaces that use Qt.
QString m_release_notes_icon
gui_settings * get_settings(void) const
OCTAVE_BEGIN_NAMESPACE(octave) static octave_value daspk_fcn
std::string oct_etc_dir(void)
const QHash< QString, QString > dw_icon_set_names
const gui_pref dw_icon_set("DockWidgets/widget_icon_set", QVariant("NONE"))
OCTGUI_API void get_screen_geometry(int &width, int &height)
QString fromStdString(const std::string &s)