Gui: fix build failure with C++20

This commit is contained in:
wmayer
2021-12-01 21:50:00 +01:00
parent be88e838c1
commit 58f33f350d
2 changed files with 6 additions and 5 deletions

View File

@@ -56,8 +56,8 @@ View::View(QWidget* parentIn): QGraphicsView(parentIn)
{
this->setRenderHint(QPainter::Antialiasing, true);
this->setRenderHint(QPainter::TextAntialiasing, true);
Application::Instance->signalActiveDocument.connect(boost::bind(&View::slotActiveDocument, this, bp::_1));
Application::Instance->signalDeleteDocument.connect(boost::bind(&View::slotDeleteDocument, this, bp::_1));
conActive = Application::Instance->signalActiveDocument.connect(boost::bind(&View::slotActiveDocument, this, bp::_1));
conDelete = Application::Instance->signalDeleteDocument.connect(boost::bind(&View::slotDeleteDocument, this, bp::_1));
//just update the dagview when the gui process is idle.
connect(QAbstractEventDispatcher::instance(), SIGNAL(awake()), this, SLOT(awakeSlot()));
@@ -65,8 +65,6 @@ View::View(QWidget* parentIn): QGraphicsView(parentIn)
View::~View()
{
Application::Instance->signalActiveDocument.disconnect(boost::bind(&View::slotActiveDocument, this, bp::_1));
Application::Instance->signalDeleteDocument.disconnect(boost::bind(&View::slotDeleteDocument, this, bp::_1));
}
void View::slotActiveDocument(const Document &documentIn)

View File

@@ -26,6 +26,7 @@
#include <memory>
#include <QGraphicsView>
#include <boost_signals2.hpp>
#include <Gui/DockWindow.h>
#include <Gui/Document.h>
@@ -56,6 +57,8 @@ namespace Gui
typedef std::map<const Gui::Document*, std::shared_ptr<Model> > ModelMap;
ModelMap modelMap;
boost::signals2::scoped_connection conActive;
boost::signals2::scoped_connection conDelete;
};
//! @brief dock window for DAG viewer
@@ -64,7 +67,7 @@ namespace Gui
Q_OBJECT
public:
DockWindow(Gui::Document* gDocumentIn = 0, QWidget *parent = 0);
~DockWindow(){};
~DockWindow(){}
private:
View *dagView;