Commit 170ef1d0 authored by Jan Möbius's avatar Jan Möbius

Fixed warning

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@10633 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 3ee719e0
...@@ -83,7 +83,7 @@ class Type { ...@@ -83,7 +83,7 @@ class Type {
virtual bool hasWidget () { return false; }; virtual bool hasWidget () { return false; };
/// Returns the configuration widget /// Returns the configuration widget
virtual TypeWidget *widget (QMap<QString, QString> /*_hints*/, QString /*_typeName*/, QWidget */*_parent*/ = NULL) { return 0; }; virtual TypeWidget *widget (QMap<QString, QString> /*_hints*/, QString /*_typeName*/, QWidget * /*_parent*/ = NULL) { return 0; };
protected: protected:
QStringList types_; QStringList types_;
......
...@@ -94,7 +94,7 @@ Button::~Button () ...@@ -94,7 +94,7 @@ Button::~Button ()
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// glow on mouse enter // glow on mouse enter
void Button::hoverEnterEvent (QGraphicsSceneHoverEvent */*_event*/) void Button::hoverEnterEvent (QGraphicsSceneHoverEvent * /*_event*/)
{ {
glow_ = true; glow_ = true;
update (); update ();
...@@ -108,7 +108,7 @@ void Button::hoverEnterEvent (QGraphicsSceneHoverEvent */*_event*/) ...@@ -108,7 +108,7 @@ void Button::hoverEnterEvent (QGraphicsSceneHoverEvent */*_event*/)
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// stop glowing on mouse leave // stop glowing on mouse leave
void Button::hoverLeaveEvent (QGraphicsSceneHoverEvent */*_event*/) void Button::hoverLeaveEvent (QGraphicsSceneHoverEvent * /*_event*/)
{ {
glow_ = false; glow_ = false;
update (); update ();
......
...@@ -186,7 +186,7 @@ void ConnectionPoint::setState(State _state) ...@@ -186,7 +186,7 @@ void ConnectionPoint::setState(State _state)
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// highlight connection if mouse over // highlight connection if mouse over
void ConnectionPoint::hoverEnterEvent (QGraphicsSceneHoverEvent */*_event*/) void ConnectionPoint::hoverEnterEvent (QGraphicsSceneHoverEvent * /*_event*/)
{ {
foreach (Connection *c, inout_->connections ()) foreach (Connection *c, inout_->connections ())
{ {
...@@ -205,7 +205,7 @@ void ConnectionPoint::hoverEnterEvent (QGraphicsSceneHoverEvent */*_event*/) ...@@ -205,7 +205,7 @@ void ConnectionPoint::hoverEnterEvent (QGraphicsSceneHoverEvent */*_event*/)
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// remove highlight // remove highlight
void ConnectionPoint::hoverLeaveEvent (QGraphicsSceneHoverEvent */*_event*/) void ConnectionPoint::hoverLeaveEvent (QGraphicsSceneHoverEvent * /*_event*/)
{ {
foreach (Connection *c, inout_->connections ()) foreach (Connection *c, inout_->connections ())
{ {
......
...@@ -84,7 +84,7 @@ class ElementArea : public QObject, public QGraphicsItem ...@@ -84,7 +84,7 @@ class ElementArea : public QObject, public QGraphicsItem
const QList<SceneElement *>& elements () const; const QList<SceneElement *>& elements () const;
/// for QGraphicsItem /// for QGraphicsItem
void paint (QPainter */*_painter*/, const QStyleOptionGraphicsItem */*_option*/, QWidget */*_widget*/ = 0) {}; void paint (QPainter */*_painter*/, const QStyleOptionGraphicsItem * /*_option*/, QWidget * /*_widget*/ = 0) {};
private: private:
GraphicsScene *scene_; GraphicsScene *scene_;
......
...@@ -84,7 +84,7 @@ Trash::~Trash () ...@@ -84,7 +84,7 @@ Trash::~Trash ()
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// make the trash opaque if mouse is over and we have selected elements // make the trash opaque if mouse is over and we have selected elements
void Trash::hoverEnterEvent (QGraphicsSceneHoverEvent */*_event*/) void Trash::hoverEnterEvent (QGraphicsSceneHoverEvent * /*_event*/)
{ {
if (!scene_->selectedItems ().isEmpty ()) if (!scene_->selectedItems ().isEmpty ())
setOpacity (1.0); setOpacity (1.0);
...@@ -93,7 +93,7 @@ void Trash::hoverEnterEvent (QGraphicsSceneHoverEvent */*_event*/) ...@@ -93,7 +93,7 @@ void Trash::hoverEnterEvent (QGraphicsSceneHoverEvent */*_event*/)
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// make trash transparent on mouse leave // make trash transparent on mouse leave
void Trash::hoverLeaveEvent (QGraphicsSceneHoverEvent */*_event*/) void Trash::hoverLeaveEvent (QGraphicsSceneHoverEvent * /*_event*/)
{ {
setOpacity (0.4); setOpacity (0.4);
} }
...@@ -101,7 +101,7 @@ void Trash::hoverLeaveEvent (QGraphicsSceneHoverEvent */*_event*/) ...@@ -101,7 +101,7 @@ void Trash::hoverLeaveEvent (QGraphicsSceneHoverEvent */*_event*/)
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// delete selected elements on mouse press // delete selected elements on mouse press
void Trash::mousePressEvent (QGraphicsSceneMouseEvent */*_event*/) void Trash::mousePressEvent (QGraphicsSceneMouseEvent * /*_event*/)
{ {
if (!scene_->selectedItems ().isEmpty ()) if (!scene_->selectedItems ().isEmpty ())
foreach (QGraphicsItem *e, scene_->selectedItems ()) foreach (QGraphicsItem *e, scene_->selectedItems ())
......
...@@ -102,7 +102,7 @@ ToolBoxElement::~ToolBoxElement () ...@@ -102,7 +102,7 @@ ToolBoxElement::~ToolBoxElement ()
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// Paint a rounded rect as background // Paint a rounded rect as background
void ToolBoxElement::paintEvent(QPaintEvent */*_event*/) void ToolBoxElement::paintEvent(QPaintEvent * /*_event*/)
{ {
QPainter p (this); QPainter p (this);
p.setRenderHint(QPainter::Antialiasing); p.setRenderHint(QPainter::Antialiasing);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment