1Here is a list of user-visible changes in Qt from 1.1 to 1.2. As 2usual, we fixed some bugs, made some more speedups, and improved the 3documentation. 4 5 6**************************************************************************** 7* Changes that might affect runtime behavior * 8**************************************************************************** 9 10QGridLayout::addWidget() and addMultiCellWidget(): The align parameter 11is now interpreted correctly. (Previously up/down and right/left were 12reversed.) If you have worked around this bug, your widgets may now be 13incorrectly aligned. 14 15QWidget: Every widget is now guaranteed move and resize events. The 16event is deferred until the first show(). This may cause problems in 17rare cases involving event filters. 18 19**************************************************************************** 20* Changes that might generate compile errors * 21* when compiling old code * 22**************************************************************************** 23 24none 25 26**************************************************************************** 27* Type changes that might generate warnings: * 28**************************************************************************** 29 30none 31 32**************************************************************************** 33* Deprecated functions * 34**************************************************************************** 35 36QApplication::setColorMode() and colorMode() will be obsoleted. Use 37setColorSpec() and colorSpec() instead. 38 39qchecksum() will be obsoleted. Please use qChecksum() instead. 40 41**************************************************************************** 42* New classes * 43**************************************************************************** 44 45QSlider is a widget to input values from a range. If you have been 46using a standalone QScrollBar, you will probably want to switch to a 47QSlider. 48 49OpenGL/Mesa support: QGLWidget, QGLContext and QGLFormat. To use these 50classes you need to build the Qt/OpenGL library (qgl) in qt/opengl/src. 51 52**************************************************************************** 53* Other changes from 1.1 to 1.2 * 54**************************************************************************** 55 56QApplication::setColorSpec() can specify private colormaps or 57non-default visuals 58 59New function QButton::setAutoRepeat(). 60 61QComboBox: New function currentText(), two new insertion policies: 62AfterCurrent and BeforeCurrent. 63 64QCursor: added new global cursor blankCursor. 65 66QFont::key(), new function for caching. 67 68QFontMetrics::QFontMetrics( const QFont& ) new constructor gives 69fontmetrics directly for a font. This is much faster than using 70QWidget::fontMetrics() or QPainter::fontmetrics(). 71 72QImage: image load/save functions: 73 QImage( const char *filename ) 74 imageFormat(), load(), loadFromData(), save() 75 operator>>(), operator<<() 76 XPM support, QImage( const *xpm[] ) 77 Alpha channel support: 78 hasAlphaBuffer(), setAlphaBuffer() 79 createAlphaMask(), 80 Automatic mask generaton: createHeuristicMask() 81 Filling the entire image: fill() 82 83QLCDNumber now supports filled segments: 84 setSegmentStyle(), segmentStyle() 85 86QLabel now supports accellerated labels: 87 setBuddy(), buddy() and a new constructor. 88 89QLineEdit new functions: 90 show/hide frame: setFrame(), frame() 91 password entry mode: setEchoMode(), echoMode() 92 93QMouseEvent: x() and y() convenience functions. 94 95QPainter: new constructor QPainter( const QPaintDevice* ) does automatic 96begin() and end(). New function flush(). 97 98QPixmap new functions: 99 serialNumber() for caching purposes. 100 selfMask() QPixmap( const char *xpm[] ) 101 createHeuristicMask() 102 103QPopupMenu: Added functions to enable checkmarks: 104 setCheckable(), isCheckable() 105 106QScrollBar: sizeHint() implemented. 107 108QTabBar now supports keyboard input. New function currentTab(). 109 110QTabDialog: new function setOKButton(). 111 112Added support for XFree86 on OS/2. 113 114New examples: 115 examples/tooltip demonstrates dynamic tooltips 116 examples/table demonstrates QTableView 117 examples/hello is a different program 118 119examples/xshape has been removed. 120