removed unused signal

preferencesAboutTextFull
Claudio Valerio 12 years ago
parent feb346f644
commit b2c05d49e4
  1. 11
      src/board/UBBoardView.cpp
  2. 19
      src/board/UBBoardView.h
  3. 3
      src/tools/UBAbstractDrawRuler.h
  4. 2
      src/tools/UBGraphicsCompass.cpp
  5. 4
      src/tools/UBGraphicsCompass.h
  6. 1
      src/tools/UBGraphicsProtractor.cpp
  7. 1
      src/tools/UBGraphicsRuler.cpp
  8. 1
      src/tools/UBGraphicsTriangle.cpp

@ -176,17 +176,6 @@ UBGraphicsScene* UBBoardView::scene ()
return qobject_cast<UBGraphicsScene*> (QGraphicsView::scene ());
}
void UBBoardView::hideEvent (QHideEvent * event)
{
Q_UNUSED (event);
emit hidden ();
}
void UBBoardView::showEvent (QShowEvent * event)
{
Q_UNUSED (event);
emit shown ();
}
void UBBoardView::keyPressEvent (QKeyEvent *event)
{

@ -36,7 +36,7 @@ class UBBoardView : public QGraphicsView
{
Q_OBJECT
public:
public:
UBBoardView(UBBoardController* pController, QWidget* pParent = 0, bool isControl = false, bool isDesktop = false);
UBBoardView(UBBoardController* pController, int pStartLayer, int pEndLayer, QWidget* pParent = 0, bool isControl = false, bool isDesktop = false);
@ -53,19 +53,18 @@ class UBBoardView : public QGraphicsView
void setMultiselection(bool enable);
bool isMultipleSelectionEnabled() { return mMultipleSelectionIsEnabled; }
// work around for handling tablet events on MAC OS with Qt 4.8.0 and above
// work around for handling tablet events on MAC OS with Qt 4.8.0 and above
#if defined(Q_WS_MACX)
bool directTabletEvent(QEvent *event);
QWidget *widgetForTabletEvent(QWidget *w, const QPoint &pos);
#endif
signals:
signals:
void resized(QResizeEvent* event);
void hidden();
void shown();
void clickOnBoard();
protected:
protected:
bool itemIsLocked(QGraphicsItem *item);
bool isUBItem(QGraphicsItem *item); // we should to determine items who is not UB and use general scene behavior for them.
@ -98,7 +97,6 @@ class UBBoardView : public QGraphicsView
QGraphicsItem *items[],
const QStyleOptionGraphicsItem options[]);
// virtual void dragEnterEvent(QDragEnterEvent * event);
virtual void dropEvent(QDropEvent *event);
virtual void dragMoveEvent(QDragMoveEvent *event);
@ -106,10 +104,7 @@ class UBBoardView : public QGraphicsView
virtual void drawBackground(QPainter *painter, const QRectF &rect);
virtual void showEvent(QShowEvent * event);
virtual void hideEvent(QHideEvent * event);
private:
private:
void init();
@ -171,11 +166,11 @@ class UBBoardView : public QGraphicsView
static bool hasSelectedParents(QGraphicsItem * item);
private slots:
private slots:
void settingChanged(QVariant newValue);
public slots:
public slots:
void virtualKeyboardActivated(bool b);
void longPressEvent();

@ -44,9 +44,6 @@ public:
virtual void DrawLine(const QPointF& position, qreal width);
virtual void EndLine();
signals:
void hidden();
protected:
void paint();

@ -299,8 +299,6 @@ void UBGraphicsCompass::mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
else if (closeButtonRect().contains(event->pos()))
{
hide();
emit hidden();
event->accept();
}
else

@ -51,10 +51,6 @@ class UBGraphicsCompass: public QObject, public QGraphicsRectItem, public UBItem
virtual void copyItemParameters(UBItem *copy) const;
signals:
void hidden();
protected:
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *styleOption, QWidget *widget);
virtual QVariant itemChange(GraphicsItemChange change, const QVariant &value);

@ -240,7 +240,6 @@ void UBGraphicsProtractor::mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
case Close :
hide();
emit hidden();
break;
case MoveMarker :

@ -371,7 +371,6 @@ void UBGraphicsRuler::mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
else if (closeButtonRect().contains(event->pos()))
{
hide();
emit hidden();
event->accept();
}
else

@ -716,7 +716,6 @@ void UBGraphicsTriangle::mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
else if (closeButtonRect().contains(event->pos()))
{
hide();
emit hidden();
event->accept();
}
else if (hFlipRect().contains(event->pos()))

Loading…
Cancel
Save