URL:
  <https://savannah.gnu.org/patch/?9978>

                 Summary: Quick fix for unified tool bar under GNU/Linux
                 Project: GNU TeXmacs
            Submitted by: sadhen
            Submitted on: Sun 11 Oct 2020 05:03:37 PM CST
                Category: User Interface
                  Action: None
                 Privacy: Public
             Assigned to: vdhoeven
        Originator Email: 
             Open/Closed: Open
                 Release: 
         Discussion Lock: Any
           Fixed Release: 
                  Stable: 

    _______________________________________________________

Details:

This patch fixes a bug introduced by
https://github.com/texmacs/texmacs/commit/8f1c7a56f2735131df3fdb6f4da1c943dd9993c5


/home/sadhen/github/texmacs/texmacs/src/Plugins/Qt/QTMStyle.cpp: In member
function ‘virtual void QTMStyle::drawControl(QStyle::ControlElement, const
QStyleOption*, QPainter*, const QWidget*) const’:
/home/sadhen/github/texmacs/texmacs/src/Plugins/Qt/QTMStyle.cpp:469:9: error:
‘use_unified_toolbar’ was not declared in this scope
  469 |     if (use_unified_toolbar &&
      |         ^~~~~~~~~~~~~~~~~~~
make[2]: *** [src/CMakeFiles/texmacs_body.dir/build.make:6907:
src/CMakeFiles/texmacs_body.dir/Plugins/Qt/QTMStyle.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/home/sadhen/github/texmacs/texmacs/src/Plugins/Qt/QTMWidget.cpp: In member
function ‘virtual void QTMWidget::paintEvent(QPaintEvent*)’:
/home/sadhen/github/texmacs/texmacs/src/Plugins/Qt/QTMWidget.cpp:240:48:
warning: ‘QVector<QRect> QRegion::rects() const’ is deprecated: Use
begin()/end() instead [-Wdeprecated-declarations]
  240 |   QVector<QRect> rects = event->region().rects();
      |                                                ^
In file included from /usr/include/x86_64-linux-gnu/qt5/QtGui/qmatrix.h:45,
                 from /usr/include/x86_64-linux-gnu/qt5/QtGui/qbrush.h:49,
                 from /usr/include/x86_64-linux-gnu/qt5/QtGui/qpalette.h:46,
                 from
/usr/include/x86_64-linux-gnu/qt5/QtWidgets/qwidget.h:48,
                 from
/usr/include/x86_64-linux-gnu/qt5/QtWidgets/qframe.h:44,
                 from
/usr/include/x86_64-linux-gnu/qt5/QtWidgets/qabstractscrollarea.h:44,
                 from
/usr/include/x86_64-linux-gnu/qt5/QtWidgets/QAbstractScrollArea:1,
                 from
/home/sadhen/github/texmacs/texmacs/src/Plugins/Qt/QTMScrollView.hpp:15,
                 from
/home/sadhen/github/texmacs/texmacs/src/Plugins/Qt/QTMWidget.hpp:16,
                 from
/home/sadhen/github/texmacs/texmacs/src/Plugins/Qt/QTMWidget.cpp:12:
/usr/include/x86_64-linux-gnu/qt5/QtGui/qregion.h:125:20: note: declared here
  125 |     QVector<QRect> rects() const;
      |                    ^~~~~
make[1]: *** [CMakeFiles/Makefile2:1242: src/CMakeFiles/texmacs_body.dir/all]
Error 2
make: *** [Makefile:160: all] Error 2




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Sun 11 Oct 2020 05:03:37 PM CST  Name: unified_tool_bar.diff  Size: 812B
  By: sadhen

<http://savannah.gnu.org/patch/download.php?file_id=49962>

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/patch/?9978>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/


_______________________________________________
Texmacs-patch mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/texmacs-patch

Reply via email to