summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qwidget.h
diff options
context:
space:
mode:
authorminiak <milan.burda@gmail.com>2010-08-03 16:33:07 (GMT)
committerOlivier Goffart <olivier.goffart@nokia.com>2010-08-03 16:35:26 (GMT)
commit8435ba93fad9eb799764eb3b66a8a9838db3fea3 (patch)
treef69cbdba60b3a43344e9a518eeddb557606c8186 /src/gui/kernel/qwidget.h
parent794c7c77f28bb530db017cc25a5e33e00933253b (diff)
downloadQt-8435ba93fad9eb799764eb3b66a8a9838db3fea3.zip
Qt-8435ba93fad9eb799764eb3b66a8a9838db3fea3.tar.gz
Qt-8435ba93fad9eb799764eb3b66a8a9838db3fea3.tar.bz2
Remove obsolete code & workarounds for unsupported versions of MS Visual C++
The minimum supported version of MS Visual C++ 2003, which is _MSC_VER 1310. Merge-request: 756 Reviewed-by: Olivier Goffart <olivier.goffart@nokia.com>
Diffstat (limited to 'src/gui/kernel/qwidget.h')
-rw-r--r--src/gui/kernel/qwidget.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/gui/kernel/qwidget.h b/src/gui/kernel/qwidget.h
index 941bd68..980f40f 100644
--- a/src/gui/kernel/qwidget.h
+++ b/src/gui/kernel/qwidget.h
@@ -898,13 +898,6 @@ protected:
Q_DECLARE_OPERATORS_FOR_FLAGS(QWidget::RenderFlags)
-#if defined Q_CC_MSVC && _MSC_VER < 1300
-template <> inline QWidget *qobject_cast_helper<QWidget*>(QObject *o, QWidget *)
-{
- if (!o || !o->isWidgetType()) return 0;
- return (QWidget*)(o);
-}
-#else
template <> inline QWidget *qobject_cast<QWidget*>(QObject *o)
{
if (!o || !o->isWidgetType()) return 0;
@@ -915,7 +908,6 @@ template <> inline const QWidget *qobject_cast<const QWidget*>(const QObject *o)
if (!o || !o->isWidgetType()) return 0;
return static_cast<const QWidget*>(o);
}
-#endif
inline QWidget *QWidget::childAt(int ax, int ay) const
{ return childAt(QPoint(ax, ay)); }