diff options
author | Adriano Rezende <adriano.1.rezende@nokia.com> | 2012-07-05 15:42:19 +0200 |
---|---|---|
committer | Gabriel de Dietrich <gabriel.dietrich-de@nokia.com> | 2012-07-05 16:46:36 +0200 |
commit | dfa5bf62b2a9e2ce202e863042bbde2927c1b1ed (patch) | |
tree | ea2bdada9d3fbfcdc3260c3b20cd0730313dfaa4 | |
parent | 3223758463acf2917b695f9a878936dbc1fd4151 (diff) | |
download | qtquickcontrols-dfa5bf62b2a9e2ce202e863042bbde2927c1b1ed.tar.gz |
Remove dead code from StyleItem
Change-Id: I11c4e84931ee1ce9980a636c95ad398e9920ed34
Reviewed-by: Gabriel de Dietrich <gabriel.dietrich-de@nokia.com>
-rw-r--r-- | src/qstyleitem.cpp | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/src/qstyleitem.cpp b/src/qstyleitem.cpp index f9344cb9..1fe68aa1 100644 --- a/src/qstyleitem.cpp +++ b/src/qstyleitem.cpp @@ -88,7 +88,6 @@ QStyleItem::QStyleItem(QQuickPaintedItem *parent) { setFlag(QQuickItem::ItemHasContents, true); setSmooth(false); - //setCacheMode(QGraphicsItem::DeviceCoordinateCache); connect(this, SIGNAL(enabledChanged()), this, SLOT(updateItem())); connect(this, SIGNAL(infoChanged()), this, SLOT(updateItem())); @@ -696,31 +695,6 @@ QVariant QStyleItem::styleHint(const QString &metric) return 0; } -#if 0 -void QStyleItem::setCursor(const QString &str) -{ - if (m_cursor != str) { - m_cursor = str; -/* if (m_cursor == "sizehorcursor") - QQuickItem::setCursor(Qt::SizeHorCursor); - else if (m_cursor == "sizevercursor") - QQuickItem::setCursor(Qt::SizeVerCursor); - else if (m_cursor == "sizeallcursor") - QQuickItem::setCursor(Qt::SizeAllCursor); - else if (m_cursor == "splithcursor") - QQuickItem::setCursor(Qt::SplitHCursor); - else if (m_cursor == "splitvcursor") - QQuickItem::setCursor(Qt::SplitVCursor); - else if (m_cursor == "wait") - QQuickItem::setCursor(Qt::WaitCursor); - */ - //else if (m_cursor == "pointinghandcursor") - // QQuickItem::setCursor(Qt::PointingHandCursor); - emit cursorChanged(); - } -} -#endif - void QStyleItem::setElementType(const QString &str) { if (m_type == str) @@ -902,31 +876,6 @@ bool QStyleItem::eventFilter(QObject *o, QEvent *e) { return QObject::eventFilter(o, e); } -#if 0 -void QStyleItem::showToolTip(const QString &str) -{ -// QPointF scene = mapToScene(width() - 20, 0); -// QPoint global = qApp->focusWidget()->mapToGlobal(scene.toPoint()); -// QToolTip::showText(QPoint(global.x(), global.y()), str); - - - -// QPoint global; -// QPointF scenePos = mapToScene(QPointF(width() - 20, 0)); -// QGraphicsScene *scene = QGraphicsItem::scene(); -// QObject *parent = scene->parent(); -// if (parent) { -// QGraphicsView *view = qobject_cast<QGraphicsView*>(parent); -// if (view) { -// QPoint p = view->mapFromScene(scenePos); -// global = view->mapToGlobal(p); -// } -// } - - //QToolTip::showText(QPoint(global.x(),global.y()), str); -} -#endif - QRectF QStyleItem::subControlRect(const QString &subcontrolString) { QStyle::SubControl subcontrol = QStyle::SC_None; |