Skip to content

Commit

Permalink
Trying to fix OSX build.
Browse files Browse the repository at this point in the history
  • Loading branch information
lellisls committed Jul 22, 2018
1 parent 16e59f1 commit fe33024
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 6 deletions.
1 change: 0 additions & 1 deletion app/element/ledgrid.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#include "ledgrid.h"
#include <array>
#include <qneconnection.h>
#include <QDebug>
#include <QPainter>
Expand Down
3 changes: 2 additions & 1 deletion app/element/ledgrid.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#define LEDGRID_H


#include <array>
#include <graphicelement.h>


Expand All @@ -23,7 +24,7 @@ class LedGrid : public GraphicElement {
virtual void refresh( ) override;
void updatePorts( ) override;

void paint( QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget );
void paint( QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget ) override;
QString genericProperties( ) override;

void save( QDataStream &ds ) const override;
Expand Down
12 changes: 10 additions & 2 deletions app/graphicelement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,19 @@ QVector< QNEOutputPort* > GraphicElement::outputs( ) const {
return( m_outputs );
}

QNEInputPort* GraphicElement::input( int pos ) const {
const QNEInputPort* GraphicElement::input( int pos ) const {
return( m_inputs.at( pos ) );
}

QNEOutputPort* GraphicElement::output( int pos ) const {
const QNEOutputPort* GraphicElement::output( int pos ) const {
return( m_outputs.at( pos ) );
}

QNEInputPort* GraphicElement::input( int pos ) {
return( m_inputs.at( pos ) );
}

QNEOutputPort* GraphicElement::output( int pos ) {
return( m_outputs.at( pos ) );
}

Expand Down
7 changes: 5 additions & 2 deletions app/graphicelement.h
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,11 @@ class GraphicElement : public QGraphicsObject, public ItemWithId {

QVector< QNEOutputPort* > outputs( ) const;

QNEInputPort* input( int pos = 0 ) const;
QNEOutputPort* output( int pos = 0 ) const;
const QNEInputPort* input( int pos = 0 ) const;
const QNEOutputPort* output( int pos = 0 ) const;

QNEInputPort* input( int pos = 0 );
QNEOutputPort* output( int pos = 0 );

void setOutputs( const QVector< QNEOutputPort* > &outputs );

Expand Down

0 comments on commit fe33024

Please sign in to comment.