protected:
virtual void resizeEvent(QResizeEvent * event);
+ virtual void keyPressEvent(QKeyEvent *e);
+ virtual QSize sizeHint() const;
private:
/** @brief Updates the displayed X/Y coordinates. */
void updateCoordinates(QGraphicsItem *i);
- /** @brief Updates the displayed width/height values. */
+ /** @brief Updates the displayed width/height/zindex values. */
void updateDimension(QGraphicsItem *i);
/** @brief Updates the displayed rotation/zoom values. Changes values of rotation/zoom GUI elements. */
void selectItems(int itemType);
/** @brief Appends the shortcut of a QAction to a tooltip text */
- QString getTooltipWithShortcut(const QString text, QAction *button);
+ QString getTooltipWithShortcut(const QString& text, QAction *button);
public slots:
void slotNewText(QGraphicsTextItem *tt);