Mercurial > octave
diff libgui/src/m-editor/file-editor.cc @ 25042:ba5af45bbfc4 stable
documentation widget based on qt help engine (bug #53006)
author | Torsten <mttl@mailbox.org> |
---|---|
date | Wed, 28 Mar 2018 21:46:11 +0200 |
parents | a01472d4a170 |
children | 6652d3823428 |
line wrap: on
line diff
--- a/libgui/src/m-editor/file-editor.cc Wed Mar 28 13:41:48 2018 -0700 +++ b/libgui/src/m-editor/file-editor.cc Wed Mar 28 21:46:11 2018 +0200 @@ -37,6 +37,7 @@ #include <QMessageBox> #include <QMimeData> #include <QProcess> +#include <QPushButton> #include <QStyle> #include <QTabBar> #include <QTextStream> @@ -987,15 +988,15 @@ m_tool_bar->setIconSize (QSize (icon_size,icon_size)); int tab_width_min = settings->value ("editor/notebook_tab_width_min", 160) - .toInt (); + .toInt (); int tab_width_max = settings->value ("editor/notebook_tab_width_max", 300) - .toInt (); + .toInt (); if (settings->value ("editor/longWindowTitle", false).toBool ()) { QString style_sheet = QString ("QTabBar::tab " "{min-width: %1px; max-width: %2px;}") - .arg (tab_width_min).arg (tab_width_max); + .arg (tab_width_min).arg (tab_width_max); m_tab_widget->setElideMode (Qt::ElideLeft); m_tab_widget->setStyleSheet (style_sheet); } @@ -1516,7 +1517,7 @@ QSettings *settings = resource_manager::get_settings (); m_mru_files = settings->value ("editor/mru_file_list").toStringList (); m_mru_files_encodings = settings->value ("editor/mru_file_encodings") - .toStringList (); + .toStringList (); if (m_mru_files_encodings.count () != m_mru_files.count ()) {