summaryrefslogtreecommitdiffstats
path: root/doc/src
diff options
context:
space:
mode:
authorJason McDonald <jason.mcdonald@nokia.com>2009-04-16 10:06:15 (GMT)
committerJason McDonald <jason.mcdonald@nokia.com>2009-04-16 10:06:15 (GMT)
commitc2f89fd0d9d13a0da1ecc33414860795721261a7 (patch)
tree3485ec81e3a789639809919a5e0aa5aed378702c /doc/src
parent5427eb07a1a87861fd321378710e77d96e92ccbd (diff)
downloadQt-c2f89fd0d9d13a0da1ecc33414860795721261a7.zip
Qt-c2f89fd0d9d13a0da1ecc33414860795721261a7.tar.gz
Qt-c2f89fd0d9d13a0da1ecc33414860795721261a7.tar.bz2
Remove obsolete code.
Remove the last few unnecessary directives using obsolete values of QT_VERSION. There are a few references to old QT_VERSION's left, but they are legitimate and should not be removed. Reviewed-by: Trust Me
Diffstat (limited to 'doc/src')
-rw-r--r--doc/src/snippets/alphachannel.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/doc/src/snippets/alphachannel.cpp b/doc/src/snippets/alphachannel.cpp
index 7783271..ad0885a 100644
--- a/doc/src/snippets/alphachannel.cpp
+++ b/doc/src/snippets/alphachannel.cpp
@@ -47,11 +47,8 @@
#include <qfile.h>
#include <qdir.h>
#include <qfileinfo.h>
-
-#if (QT_VERSION) >= 0x040000
#include <QtGui>
#include <QtCore>
-#endif
class MyClass : public QWidget
{
@@ -95,12 +92,10 @@ protected:
//! [0]
}
- QPixmap channelImage, pixmap;
+ QPixmap channelImage, pixmap;
QSize sizeHint() const { return QSize(500, 500); }
};
-
-
int main(int argc, char **argv)
{
QApplication app(argc, argv);