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