/dist/changes-4.2.0

https://bitbucket.org/ultra_iter/qt-vtl · Unknown · 2506 lines · 1477 code · 1029 blank · 0 comment · 0 complexity · 85fb797ec00de09b2627407e46a576fb MD5 · raw file

Large files are truncated click here to view the full file

  1. Qt 4.2 introduces many new features as well as many improvements and
  2. bugfixes over the 4.1.x series. For more details, see the online
  3. documentation which is included in this distribution. The
  4. documentation is also available at http://qt.nokia.com/doc/
  5. The Qt version 4.2 series is binary compatible with the 4.1.x series.
  6. Applications compiled for 4.1 will continue to run with 4.2.
  7. The Qtopia Core version 4.2 series is binary compatible with the 4.1.x
  8. series except for some parts of the device handling API, as detailed
  9. in Platform Specific Changes below.
  10. ****************************************************************************
  11. * General *
  12. ****************************************************************************
  13. New features
  14. ------------
  15. - QCalendarWidget provides a standard monthly calendar widget with date
  16. selection features.
  17. - QCleanlooksStyle provides the new Cleanlooks style, a clone of the GNOME
  18. ClearLooks style, giving Qt applications a native look on GNOME desktops.
  19. - QCompleter provides facilities for auto completion in text entry widgets.
  20. - QDataWidgetMapper can be used to make widgets data-aware by mapping them
  21. to sections of an item model.
  22. - QDesktopServices provides desktop integration features, such as support
  23. for opening URLs using system services.
  24. - QDialogButtonBox is used in dialogs to ensure that buttons are placed
  25. according to platform-specific style guidelines.
  26. - QFileSystemWatcher enables applications to monitor files and directories
  27. for changes.
  28. - QFontComboBox provides a standard font selection widget for document
  29. processing applications.
  30. - QGraphicsView and related classes provide the Graphics View framework, a
  31. replacement for Qt 3's canvas module that provides an improved API, enhanced
  32. rendering, and more responsive handling of large numbers of canvas items.
  33. - QGLFramebufferObject encapsulates OpenGL framebuffer objects.
  34. - QMacPasteboardMime handles Pasteboard access on Qt/Mac. This obsoletes
  35. QMacMime as the underlying system has changed to support Apple's new
  36. Pasteboard Manager. Any old QMacMime objects will not be used.
  37. - QNetworkInterface represents a network interface, providing information
  38. about the host's IP addresses and network interfaces.
  39. - QResource provides static functions that control resource lookup and
  40. provides a way to navigate resources directly without levels of
  41. indirection through QFile/QFileEngine.
  42. - QSystemTrayIcon allows applications to provide their own icon in the
  43. system tray.
  44. - QTimeLine gives developers access to a standard time line class with which
  45. to create widget animations.
  46. - The QtDBus module provides inter-process communication on platforms
  47. that support the D-BUS protocol.
  48. - The QUndo* classes in Qt's Undo framework provide undo/redo functionality
  49. for applications.
  50. - Support for the Glib event loop to enable integration between Qt and non-Qt
  51. applications on the GNOME desktop environment.
  52. - Improved Accessibility for item-based views and QTextEdit.
  53. - Support for main window animations and tabbed dock widgets.
  54. - Added an SVG icon engine to enable SVG drawings to be used by QIcon.
  55. - Widgets can now be styled according to rules specified in a style sheet,
  56. using a syntax familiar to users of Cascading Style Sheets (CSS). Style
  57. sheets are set using the QWidget::styleSheet property.
  58. - Introduced a new key mapper system which improves the shortcut system by
  59. only testing the real possible shortcuts, such as Ctrl+Shift+= and Ctrl++
  60. on an English keyboard.
  61. - Improved and enhanced QMessageBox to support native look and feel on many
  62. common platforms.
  63. - Experimental support for Qt usage reporting ("metered licenses") on Linux,
  64. Windows and Mac OS X. Reporting is disabled by default.
  65. - A screen magnification utility, pixeltool, is provided. It is designed to help
  66. with the process of fine-tuning styles and user interface features.
  67. - New qrand() and qsrand() functions to provide thread safe equivalents to
  68. rand() and srand().
  69. General improvements
  70. --------------------
  71. - Item views
  72. * Selections are maintained when the layout of the model changes
  73. (e.g., due to sorting).
  74. * Convenience views can perform dynamic sorting of items when the data
  75. in items changes.
  76. * QStandardItem provides an item-based API for use with
  77. QStandardItemModel and the model/view item view classes.
  78. * QStandardItemModel API provides a classic item-based approach to
  79. working with models.
  80. * Single selection item views on Mac OS X cannot change their current
  81. item without changing the current selection when using keyboard
  82. navigation.
  83. - Plastique style has improved support for palettes, and now requires
  84. XRender support on X11 for alpha transparency.
  85. - Tulip containers
  86. * Added typedefs for STL compatability.
  87. * Added function overloads to make the API easier to use.
  88. - Added the Q3TextStream class for compatiblity with Qt 3 and to assist with
  89. porting projects.
  90. - OpenGL paint engine
  91. * Added support for all composition modes of QPainter natively using
  92. OpenGL.
  93. * Fixed a case where very large polygons failed to render correctly.
  94. * Ensured that glClear() is only called in begin() if the
  95. QGLWidget::autoFillBackground() property is true.
  96. * Ensured that a buffer swap is only performed in end() if
  97. QGLWidget::autoBufferSwap() is true.
  98. * Improved text drawing speed and quality.
  99. - Raster paint engine
  100. * Fixed blending of 8 bit indexed images with alpha values.
  101. * Fixed drawing onto QImages that were wider than 2048 pixels.
  102. * Fixed alpha-blending and anti-aliasing on ARGB32 images.
  103. * Improved point drawing performance.
  104. * Fixed issue where lines were drawn between coordinates that were
  105. rounded instead of truncated.
  106. * Ensured that setClipRegion(QRegion()) clips away all painting
  107. operations as originally intended.
  108. Third party components
  109. ----------------------
  110. - Dropped support for MySQL version 3.
  111. - Updated Qt's SQLite version to 3.3.6.
  112. - Updated Qt's FreeType version to 2.2.1.
  113. - Updated Qt's libpng version to 1.2.10.
  114. Build System
  115. ------------
  116. - Auto-detect PostgreSQL and MySQL using pg_config and mysql_config on UNIX
  117. based systems in the configure script
  118. - Added "-system-sqlite" option to configure to use the system's SQLite
  119. library instead of Qt's SQLite version.
  120. - Added QT_ASCII_CAST_WARNINGS define that will output a warning on implicit
  121. ascii to Unicode conversion when set. Only works if the compiler supports
  122. deprecated API warnings.
  123. - Added Q_REQUIRED_RESULT to some functions. This macro triggers a warning
  124. if the result of a function is discarded. Currently only supported by gcc.
  125. - Qt/X11, Qt/Mac and Qtopia Core only:
  126. * Added all QT_NO_* defines to the build key.
  127. - Qt/X11 and Qtopia Core only:
  128. * As in Qt 3, the configure script enables the -release option by
  129. default, causing the Qt libraries to be built with optimizations. If
  130. configured with the -debug option, the debug builds no longer result
  131. in libraries with the _debug suffix.
  132. On modern systems, flags are added to the Qt build to also
  133. generate debugging information, which is then stored in a
  134. separate .debug file. The additional debug information does not
  135. affect the performance of the optimized code and tools like gdb
  136. and valgrind automatically pick up the separate .debug
  137. files. This way it is possible to get useful backtraces even
  138. with release builds of Qt.
  139. * Removed the last vestiges of the module options in the configure
  140. script, previously they were available but did not function.
  141. * Implemented a -build option in the configure script to conditionally
  142. compile only certain sections of Qt.
  143. * Made it possible to build Qt while having "xcode" set as your
  144. QMAKESPEC on OSX.
  145. - Windows only:
  146. * Populated the build key, as done on all the other platforms.
  147. * Fixed dependency generation in Visual Studio Solutions (.sln)
  148. created by qmake.
  149. * Added missing platforms to the Visual Studio project generator (X64,
  150. SH3DSP and EBC).
  151. * Made UIC3 use a temporary file for long command lines.
  152. * Removed the object file (.o) conflicts with MinGW that appeared when
  153. embedding a native resource file which was named the same as a normal
  154. source file.
  155. * Fixed mkspec detection when generating project files outside of QTDIR.
  156. * Removed compiler warnings with MinGW g++ 3.4.5.
  157. ****************************************************************************
  158. * Library *
  159. ****************************************************************************
  160. - QAbstractButton
  161. * Returns QPalette::Button and QPalette::ButtonText for
  162. backgroundRole() and foregroundRole(), respectively, rather than
  163. QPalette::Background and QPalette::Foreground.
  164. * Ensured that nextCheckState() is called only when there is a state
  165. change.
  166. - QAbstractItemModel
  167. * When dropping rows only insert rows that were actually dropped, not
  168. the continuous row count from first to last.
  169. * Added a supportedDragActions property to be used by
  170. QAbstractItemView when starting a drag.
  171. * When updating changed persistent indexes, ignore those that haven't
  172. actually changed.
  173. * Fixed endian issue with createIndex().
  174. * Added FixedString matching for match().
  175. * Changed the sorting algorithm to use a stable sort.
  176. * Added persistentIndexList() function.
  177. - QAbstractItemView
  178. * Added possibility to copy elements to clipboard on read-only views.
  179. * Improved handling of QAbstractItemModel::supportedDropActions().
  180. * Ensured that the current item is selected when using keyboard
  181. search.
  182. * Ensured that the view starts with a valid current index.
  183. * Ensured that data is only committed in currentChanged() if the
  184. editor is not persistent.
  185. * Fixed crash that occurred when a modal dialogs was opened when
  186. closing an editor.
  187. * Added verticalScrollMode and horizontalScrollMode properties.
  188. * Added setItemDelegateForRow() and setItemDelegateForColumn().
  189. * Ensured that existing models are disconnected properly when
  190. replaced.
  191. * Ensured that the doubleClicked() signal is only emitted when the
  192. left button has been double-clicked.
  193. * Changed setSelection(...) to work when given a non-normalized
  194. rectangle.
  195. * Fixed regression for shift-selections in ExtendedSelection for
  196. all views.
  197. * Added dragDropMode property and implemented move support in all of
  198. the views and models.
  199. * For edit triggers SelectedClicked and DoubleClicked, only trigger
  200. editing when the left button is clicked.
  201. * Trigger SelectedClicked editing on mouse release, not mouse press.
  202. * Suppressed the doubleClicked() signal in cases where the clicks
  203. happened on two different items.
  204. * Enabled keyboard search to be programmatically reset by calling
  205. keyboardSearch() with an empty string as argument.
  206. * Don't allow drops on items that don't have the Qt::ItemIsDropEnabled
  207. flag set.
  208. * Added modelAboutToBeReset() and layoutAboutToBeChanged() signals.
  209. * Suppressed assertion in dropMimeData() for cases where mimeTypes()
  210. returns an empty list.
  211. * Ensured consistent behavior of drag and drop when rootIndex() is a
  212. valid model index.
  213. * Made it possible to check a checkbox with only a single click when
  214. using the CurrentChanged edit trigger.
  215. * Ensured that WhatsThis events are propagated when the relevant item
  216. doesn't have a valid "What's This?" value.
  217. * Added PositionAtCenter scrollHint.
  218. * Added support to allow items to be checked and unchecked using the
  219. keyboard.
  220. * Added support for keypad navigation.
  221. - QAbstractProxyModel
  222. * Added default implementations for data(), headerData() and flags()
  223. - QAbstractScrollArea
  224. * Added ability to set a corner widget.
  225. * Added ability to set scroll bar widgets.
  226. * Added support for custom scroll bars.
  227. - QAbstractSpinBox
  228. * Added a hasAcceptableInput() property.
  229. * Ensured that fixup/validate are called for third party subclasses of
  230. QAbstractSpinBox as well.
  231. * Fixed geometry issues when toggling frames on and off for spinboxes.
  232. * Added a property for correctionMode.
  233. * Added a property for acceleration.
  234. - QAbstractPrintDialog
  235. * Fixed handling of existing printer options so that storage of page
  236. ranges using setFromTo() works as expected when printing in PDF format.
  237. - QAction
  238. * Added the setAutoRepeat(bool) function to disable auto-repeating
  239. actions on keyboard shortcuts.
  240. - QApplication
  241. * Added saveStateRequest() and commitDataRequest() signals so that
  242. QApplication does not need to be subclassed to enable session
  243. management in an application.
  244. * Added the styleSheet property to get/set the application style sheet.
  245. * Support sending key events to non-widget objects.
  246. * Ensured that argc and argv as passed to the QApplication constructor
  247. will always be zero-terminated on all platforms after QApplication
  248. consumes command line options for itself.
  249. - QBrush
  250. * Added a constructor that accepts a QImage.
  251. - QButtonGroup
  252. * Added pressed() and released() signals.
  253. * Fixed a bug caused by removing buttons from button groups. Removed the
  254. internal mapping as well.
  255. * Ensured that checkedButton() returns the correct value with
  256. non-exclusive groups.
  257. - QClipboard
  258. * Added support for find text buffer.
  259. - QColor
  260. * Fixed corruption in setRed(), setGreen() and setBlue() for HSV/CMYK
  261. colors.
  262. - QComboBox
  263. * Fixed drawing issues related to certain FocusPolicy values.
  264. * Ensured that the ItemFlags of an Item (ItemIsEnabled,...) are
  265. respected.
  266. * Fixed cases where the popup could be shown completly on screen, but
  267. weren't.
  268. * Added the InsertAlphabetically insert policy.
  269. * Fixed case where a QPixmap could not be displayed using a QIcon.
  270. * Fixed the type of the modelColumn property from bool to int.
  271. * Updated documentation to clarify the differences between activated(),
  272. highlighted() and currentIndexChanged(), and describe what they
  273. actually mean.
  274. * Updated the behavior to ensure that, if the combobox isn't editable,
  275. the Qt::DisplayRole rather than the Qt::EditRole is used to query the
  276. model.
  277. - QCoreApplication
  278. * Added flags to enable/disable application-wide features such as
  279. delayed widget creation.
  280. - QCursor
  281. * Added support for the newly added Qt::OpenHandCursor and
  282. Qt::ClosedHandCursor enum values.
  283. - QDate
  284. * Support dates all the way down to Julian Day 1 (2 January 4713 B.C.)
  285. using the Julian calendar when appropriate.
  286. - QDateTime
  287. * Fixed parsing issue in fromString(const QString &, Qt::DateFormat).
  288. - QDateTimeEdit
  289. * Added the calendarPopup property to enable date selection using the
  290. new QCalendarWidget class.
  291. * Added a setSelectedSection() function to allow the currently selected
  292. section to be programmatically set.
  293. - QDesktopWidget
  294. * Remove a potential out-of-bounds read.
  295. - QDialog
  296. * Improved stability in cases where the default button is deleted.
  297. - QDir
  298. * Improved support for i18n file paths in QDir::tempPath().
  299. * Improved support for UNC paths when the application is run from a
  300. share.
  301. * Ensured that mkpath() properly supports UNC paths.
  302. * Obsoleted QDir::convertSeparators().
  303. * Introduced QDir::toNativeSeparators() and QDir::fromNativeSeparators().
  304. * Added a QDebug streaming operator.
  305. - QDirModel
  306. * Fixed conversion from bytes to larger units in QDirModel in the file
  307. size display.
  308. * Remove hardcoded filtering of the '.' and '..' entries.
  309. - QErrorMessage
  310. * Made qtHandler() work in cases where the message handler is invoked
  311. from threads other than the GUI thread.
  312. - QEvent
  313. * Added the KeyboardLayoutChange event type which is sent when the
  314. keyboard layout changes.
  315. - QFile
  316. * Improved support for UNC paths when the application is run from a
  317. share.
  318. * Added support for physical drives (e.g., "//./Physical01").
  319. * Ensured that QFile::error() and QIODevice::errorString() are set
  320. whenever possible when errors occur.
  321. * Renamed readLink() to symLinkTarget().
  322. - QFileDialog
  323. * Fixed a case where view mode got disabled.
  324. - QFileInfo
  325. * Improved support for UNC paths when the application is run from a
  326. share.
  327. * Improved support for drive-local relative paths, such as "D:".
  328. * Renamed readLink() to symLinkTarget().
  329. - QFlags
  330. * Added the testFlag() convenience function.
  331. - QFont
  332. * Added NoFontMerging as a flag to QFont::StyleStrategy.
  333. - QFontDatabase
  334. * Added functions for handling application-local fonts at run-time:
  335. addApplicationFont(), removeApplicationFont(),
  336. applicationFontFamilies(), etc.
  337. - QFontDialog
  338. * Enabled support for custom window titles.
  339. - QFontMetrics/QFontMetricsF
  340. * Added the elidedText() function.
  341. * Added the averageCharWidth() function.
  342. - QFrame
  343. * Fixed a rendering issue when showing horizontal and vertical lines
  344. created using Designer.
  345. - QFtp
  346. * Improved parsing of the modified date in list().
  347. * Ensured that all data has been received when downloading, before the
  348. data connection is closed.
  349. * Added support for FTP servers that reject commands with a 202 response.
  350. - QGLFormat
  351. * Added the openGLVersionFlags() function.
  352. * Added support for setting the swap interval for a context
  353. (i.e., syncing to the vertical retrace).
  354. * Added support for setting red, green and blue buffer sizes.
  355. - QGLWidget
  356. * Fixed a resource leak that could occur when binding QImages with the
  357. bindTexture() function.
  358. * Fixed renderText() to produce proper output when depth buffering is
  359. enabled.
  360. * Fixed bindTexture() to respect premultiplied QImage formats.
  361. * Ensured that the updatesEnabled property is respected.
  362. - QGradient
  363. * Added default constructors and setter functions for all gradients and
  364. their attributes.
  365. - QGridLayout
  366. * Do not segfault if cellRect() is called before setGeometry(),
  367. even though the result is documented to be undefined.
  368. * Fixed maximum size handling when adding spacing.
  369. - QGroupBox
  370. * Activating a group box by a shortcut will now show the focus rectangle.
  371. * Added the clicked() signal
  372. - QHash
  373. * Prevent conversion of iterator or const_iterator to bool
  374. (e.g., if (map->find(value))) because the conversion always returned
  375. true. Qt 4.1 code that doesn't compile because of this change was most
  376. probably buggy.
  377. * Added the uniqueKeys() function.
  378. - QHeaderView
  379. * Use the current resize mode to determine section sizes when
  380. new rows are inserted.
  381. * Recover the internal state if other widgets steal the mouse release
  382. event.
  383. * Ensure that moved sections can be removed without asserting.
  384. * Be more robust with regards to arguments sent to the rowsInserted slot.
  385. * Let the stretchLastSection property override the globalResizeMode in
  386. the resizeSections() function.
  387. * Renamed ResizeMode::Custom to ResizeMode::Fixed.
  388. * Added the swapSections() convenience function.
  389. * Added a more "splitter-like" resize mode.
  390. * Added the possibility for the user to turn off stretch mode by
  391. resizing the header section. This includes the stretchLastSection
  392. property.
  393. * Added the minimumSectionSize property.
  394. * Get the section size hint from the Qt::SizeHintRole, if set.
  395. * Added the ResizeToContents resize mode.
  396. * Ensure that all header contents are centered by default.
  397. * Improved the internal structure to be more memory efficient.
  398. - QHostAddress
  399. * Added QDataStream streaming operators.
  400. - QHttp
  401. * Support percent-encoded paths when used with a proxy server.
  402. * Improved handling of unexpected remote socket close.
  403. - QHttpHeader
  404. * Improved support for case-insensitive header searching.
  405. - QIcon
  406. * Fixed issue where actualSize() might return a larger value than the
  407. requested size.
  408. * Fixed improper pixmap caching
  409. * Added QDataStream operators for QIcon.
  410. * Added the Selected mode.
  411. - QImage
  412. * Added support for 16 bit RGB format.
  413. * Added QPoint overloads to various (int x, int y) functions.
  414. * Added support for faster/better rotation of images by 90/180/270
  415. degrees.
  416. * convertToFormat() now supports the color lookup table.
  417. * Improved algorithm for smooth scaling to produce better results.
  418. - QImageReader
  419. * Ensured that size() returns an invalid QSize if the image I/O handler
  420. does not support the QImageIOHandler::Size extension.
  421. * Added support for reading negative BMP images.
  422. * Improved handling of invalid devices.
  423. * Added optimizations to ensure that the most likely formats and plugins
  424. are tested first when reading unknown image formats.
  425. * Improved reading of BMP images from sequential QIODevices.
  426. * Support for scaledSize() with JPEG images.
  427. * It is now possible to query the supported options of an image by
  428. calling supportedOptions().
  429. * Stability fixes for the built-in XBM reader.
  430. - QImageWriter
  431. * Ensured that an error is reported when attempting to write an image
  432. to a non-writable device.
  433. * It is now possible to query the supported options of an image by
  434. calling supportedOptions().
  435. - QIODevice
  436. * Fixed a casting bug in QIODevice::getChar().
  437. * Improved reading performance significantly by using an internal buffer
  438. when a device is opened in buffered mode.
  439. * Some behavioral differences have been introduced:
  440. + The following functions now need to call the base implementation
  441. when reimplemented: atEnd(), bytesAvailable(), size(), canReadLine().
  442. + pos() should return the base implementation directly.
  443. + QIODevice now handles the device position internally. seek() should
  444. always end up calling the base implementation.
  445. - QItemDelegate
  446. * Use a widget's USER property to set and get the editor data.
  447. * Removed unnecessary assertions.
  448. * Added the clipping property to enable clipping when painting.
  449. * When the model specifies a font, resolve the font over the existing
  450. one rather than replacing it.
  451. * Fixed issue with rendering of selected pixmaps.
  452. * Ensured that QItemEditorFactory is called with the variant's
  453. userType() so that the factory can distinguish between multiple user
  454. types.
  455. * Ensured that Key_Enter is propagated to the editor before data is
  456. committed, so that the editor has a chance to perform custom input
  457. validation/fixup.
  458. * Let the line edit grow to accomodate long strings.
  459. * Made it easer to subclass the item delegate.
  460. * Added support for keypad navigation.
  461. - QItemSelectionModel
  462. * Improved overall speed, particularly when isSelected() is used.
  463. * Added functions for getting the selected rows or columns.
  464. * Ensured that the current index is updated when it is being removed.
  465. * Ensure that QAbstractItemView::clearSelection() only clears the
  466. selection and not the current index.
  467. * Added the hasSelection() function.
  468. * Fixed some connection leaks (connections were not disconnected) when
  469. an QItemSelectionModel was deleted. This should also speed up some
  470. special cases.
  471. - QKeySequence
  472. * Added a set of platform-dependent standard shortcuts.
  473. * Fixed incorrect parsing of translated modifiers.
  474. - QLabel
  475. * Added support for text selection and hyperlinks.
  476. * Improved handling of scaled pixmaps.
  477. * Made handling of QMovie safer to avoid object ownership issues.
  478. - QLibrary
  479. * Added support for hints to control how libraries are opened on UNIX
  480. systems.
  481. * Added errorString() to report the causes of errors when libraries
  482. fail to load.
  483. * Added easier way to debug plugin loading: Setting QT_DEBUG_PLUGINS=1
  484. in the environment will enable debug message printing on the
  485. console.
  486. * Increased the number of acceptable file name suffixes used to
  487. recognize library files.
  488. - QLineEdit
  489. * Ensured that the Unicode context menu gets shown if language
  490. extensions are present.
  491. * Ensured that editingFinished() is not emitted if a validator is set
  492. and the text cannot be validated.
  493. * Ctrl+A now triggers select all on all platforms.
  494. * Call fixup on focusOut() if !hasAcceptableInput().
  495. * Added auto-completion support with the setCompleter() function.
  496. * Fixed painting errors when contents margins were set.
  497. * Invalid text set using setText() can now be edited where previously
  498. it had to be deleted before new text could be inserted.
  499. * Use SE_LineEditContents to control the contents rect of each
  500. QLineEdit.
  501. - QListView
  502. * Added the batchSize property.
  503. * Don't un-hide currently hidden rows when new rows are inserted.
  504. * Fixed partial repainting bug that occurred when alternatingRowColors
  505. was enabled.
  506. * Ensured that the resize mode is not reset in setViewMode() if it was
  507. already set.
  508. * Fixed crash that occurred when the first item was hidden and
  509. uniformItemSizes was set.
  510. * Added the wordWrap property for wrapping item text.
  511. * Allow the user to select items consecutively when shift-selecting.
  512. * Ensured that only the top item is selected when the user clicks on
  513. an area with several items are stacked on top of each other.
  514. * Optimized hiding and showing of items.
  515. * Fixed issue where dragging an item in Snap mode did not respect the
  516. scroll bar offsets.
  517. * Fixed issue in Snap mode where a (drag and) drop did not always
  518. query the item that existed in the corresponding cell for an enabled
  519. Qt::ItemIsDropEnabled flag.
  520. - QListWidget/QTreeWidget/QTableWidget
  521. * Ensured the dataChanged() signal is emitted when flags are set on an
  522. item.
  523. * Removed unnecessary assertions.
  524. * Added more convenience functions in QListWidget, QTableWidget and
  525. QTreeWidget for selecting, hiding, showing, expanding and collapsing
  526. nodes.
  527. * Ensured that changes to items are reported.
  528. - QLocale
  529. * Fixed bug in the string-to-number functions which sometimes caused
  530. them to fail on negative numbers which contained thousand-
  531. separators.
  532. * Implemented the numberOptions property for specifying how
  533. string-to-number and number-to-string conversions should be
  534. performed.
  535. - QMainWindow
  536. * Added support for tabbed dock widgets.
  537. * Enhanced look and feel of dock widget handling. When a dock widget
  538. hovers over a main window, the main window animates the existing
  539. dock widgets and main area to show how it will accept the dock
  540. widget if dropped.
  541. * Fixed issues related to insertToolBarBreak().
  542. - QMap
  543. * Prevent conversion of iterator or const_iterator to bool
  544. (e.g., if (map->find(value))), because the conversion always
  545. returned true. Qt 4.1 code that doesn't compile because of this
  546. change was most probably buggy.
  547. * Added the uniqueKeys() function.
  548. - QMenu
  549. * Added the aboutToHide() signal.
  550. * Added the isEmpty() accessor function.
  551. * Clear menuAction() when setMenu(0)
  552. * Added support for widgets in menus via QWidgetAction.
  553. * Collapse multiple consecutive separators. This can be turned off
  554. with the collapsibleSeparators property.
  555. * Made scrollable menus wrap, just like non-scrollable ones.
  556. - QMessageBox
  557. * Updated the API to allow more than 3 buttons to be used.
  558. * Added support to display buttons in the order required by
  559. platform-specific style guidelines.
  560. * Added support for display of informative text using the
  561. informativeText property.
  562. * Added the detailedText property to allow detailed text to be
  563. displayed.
  564. * Improved sizing of message box (especially on Mac OS X).
  565. * Changed the behavior so that long text strings are automatically
  566. wrapped.
  567. * Updated icon handling to use QStyle::standardIcon() where possible.
  568. - QMetaObject
  569. * Added the userProperty() and normalizedType() functions.
  570. - QMetaType
  571. * Ensured that all type names are normalized before registering them.
  572. * Added support for handling Qt's integer typedefs: qint8, qint16,
  573. etc.
  574. - QModelIndex
  575. * Added the flags() convenience function.
  576. - QMutexLocker, QReadLocker, and QWriteLocker
  577. * These classes now track the state of the lock they are holding.
  578. They will not unlock on destruction if unlock() has been called.
  579. - QObject
  580. * thread() will always return a valid thread, even if the object was
  581. created before QApplication or in a non-QThread thread.
  582. * When thread() returns zero, events are no longer sent to the object.
  583. (Previous versions of Qt would send posted events to objects with no
  584. thread; this does not happen in Qt 4.2).
  585. * Added support for dynamically added properties via the new
  586. property(), setProperty(), and dynamicPropertyNames() functions.
  587. * Fixed a crash that could occur when a child deleted its sibling.
  588. - QPainter
  589. * Fixed a crash the occurred when drawing cosmetic lines outside the
  590. paint device boundaries.
  591. * Fixed a pixel artifact issue that occurred when drawing cosmetic
  592. diagonal lines.
  593. * Fixed opaque backgrounds so that they are identical on all
  594. platforms.
  595. * Optimized drawing of cosmetic lines at angles between 315 and 360
  596. degrees.
  597. * Added the setRenderHints() function.
  598. * Fixed a memory corruption issue in drawEllipse().
  599. - QPixmap
  600. * Fixed crash caused by setting a mask or alpha channel on a pixmap
  601. while it was being painted.
  602. * Changed load() and save() to no longer require a format string.
  603. * Ensured that grabWidget() works before the specified widget is first
  604. shown.
  605. - QPluginLoader
  606. * Added errorString() to report the causes of errors when plugins fail
  607. to load.
  608. - QPrinter
  609. * Added support for PostScript as an output format on all platforms.
  610. * Significantly reduced the size of the generated output when using
  611. the PostScript and PDF drivers.
  612. * Fixed issue where fromPage()/toPage() returned incorrect values when
  613. generating PDF files.
  614. * Ensured that setOutputFormat() preserves previously set printer
  615. properties.
  616. * Updated setOutputFileName() to automatically choose PostScript or
  617. PDF as the output format for .ps or .pdf suffixes.
  618. - QProcess
  619. * Added support for channel redirection to allow data to be redirected
  620. to files or between processes.
  621. - QPushButton
  622. * Ensured that, when a menu is added to a push button, its action is
  623. also added to enable keyboard shortcuts.
  624. - QRect, QRectF, QRegion
  625. * Renamed unite(), intersect(), subtract(), and eor() to united(),
  626. intersected(), subtracted(), and xored() respectively.
  627. * Added QRegion::intersects(QRegion) and QRegion::intersects(QRect).
  628. * Fixed case where rect1 & rect2 & rect3 would return a non-empty
  629. result for disjoint rectangles.
  630. - QRegExp
  631. * Added RegExp2 syntax, providing greedy quantifiers (+, *, etc.).
  632. * Marks (QChar::isMark()) are now treated as word characters,
  633. affecting the behavior of '\b', '\w', and '\W' for languages
  634. that use diacritic marks (e.g., Arabic).
  635. * Fix reentrancy issue with the regexp cache.
  636. - QScrollArea
  637. * Added the ensureWidgetVisible() function to facilitate scrolling to
  638. specific child widgets in a scroll area.
  639. - QScrollBar
  640. * Ensured that a SliderMove action is triggered when the slider value is
  641. changed through a wheel event.
  642. - QSet
  643. * Added QSet::iterator and QMutableSetIterator.
  644. - QSettings
  645. * Store key sequences as readable entries in INI files.
  646. * Detect NFS to prevent hanging when lockd isn't running.
  647. - QShortcut
  648. * Added the setAutoRepeat(bool) function to disable auto-repeating
  649. actions on keyboard shortcuts.
  650. - QSize
  651. * Fixed potential overflow issue in scale().
  652. - QSlider
  653. * Added support for jump-to-here positioning.
  654. - QSortFilterProxyModel
  655. * Handle source model changes (e.g., data changes, item insertion
  656. and removal) in a fine-grained manner, so that the proxy model
  657. behaves more like a "real" model.
  658. * Added sortRole, filterRole and dynamicSortFilter properties.
  659. * Perform stable sorting of items.
  660. * Fixed support for drag and drop operations where one item is dropped
  661. on top of another.
  662. * Ensure that persistent indexes are updated when the layout of the
  663. source model changes.
  664. * Made match() respect the current sorting and filtering settings.
  665. * Forward mimeTypes() and supportedDropActions() calls to source
  666. models.
  667. * Added the ability to filter on all the columns.
  668. * Added the filterChanged() function to enable custom filtering to be
  669. implemented.
  670. - QSqlQuery
  671. * Added execBatch() for executing SQL commands in a batch. Currently
  672. only implemented for the Oracle driver.
  673. * Fixed a case where executedQuery() would not return the executed
  674. query.
  675. - QSqlRelationalTableModel
  676. * Fixed issue related to sorting a relational column when using the
  677. PostgreSQL driver.
  678. * revertAll() now correctly reverts relational columns.
  679. - QStackedLayout
  680. * Fixed crash that occurred when removing widgets under certain
  681. conditions.
  682. - QStackedWidget
  683. * Fixed crash that occurred when removing widgets under certain
  684. conditions.
  685. * Fixed issue where the size hint of the current widget would not be
  686. respected.
  687. - QStandardItemModel
  688. * Added an item-based API for use with QStandardItem.
  689. * Reimplemented sort().
  690. * Added the sortRole property.
  691. - QStatusBar
  692. * Added the insertWidget() and insertPermanentWidget() functions.
  693. - QString
  694. * Added support for case-insensitive comparison in compare().
  695. * Added toUcs4() and fromUcs4() functions.
  696. - QStyle
  697. * Added the following style hint selectors:
  698. SH_Slider_AbsoluteSetButtons, SH_Slider_PageSetButtons,
  699. SH_Menu_KeyboardSearch, SH_TabBar_ElideMode, SH_DialogButtonLayout,
  700. SH_ComboBox_PopupFrameStyle, SH_MessageBox_TextInteractionFlags,
  701. SH_DialogButtonBox_ButtonsHaveIcons, SH_SpellCheckUnderlineStyle,
  702. SH_MessageBox_CenterButtons, SH_Menu_SelectionWrap,
  703. SH_ItemView_MovementWithoutUpdatingSelection.
  704. * Added the following standard pixmap selectors:
  705. SP_DirIcon, SP_DialogOkButton, SP_DialogCancelButton,
  706. SP_DialogHelpButton, SP_DialogOpenButton, SP_DialogSaveButton,
  707. SP_DialogCloseButton, SP_DialogApplyButton, SP_DialogResetButton,
  708. SP_DialogDiscardButton, SP_DialogYesButton, SP_DialogNoButton,
  709. SP_ArrowUp, SP_ArrowDown, SP_ArrowLeft, SP_ArrowRight, SP_ArrowBack,
  710. SP_ArrowForward.
  711. * Added PE_PanelScrollAreaCorner and PE_Widget as primitive element
  712. selectors.
  713. * Added PM_MessageBoxIconSize and PM_ButtonIconSize as pixel metric
  714. selectors.
  715. * Added SE_LineEditContents and SE_FrameContents as sub-element
  716. selectors.
  717. * Added SE_FrameContents to control the contents rectangle of a
  718. QFrame.
  719. - QSvgHandler
  720. * Improved style sheet parsing and handling.
  721. * Added support for both embedded and external style sheets.
  722. * Improved parsing of local url() references.
  723. * Improved coordinate system handling.
  724. * Fixed issue where the viewbox dimensions would be truncated to integer
  725. values.
  726. * Fixed support for gradient transformations.
  727. * Fixed opacity inheritance behavior.
  728. * Added support for gradient spreads.
  729. * Fixed gradient stop inheritance behavior.
  730. * Fixed parsing of fill and stroke properties specified in style sheets.
  731. * Added support for reading and writing the duration of animated SVGs.
  732. * Fixed incorrect rendering of SVGs that do not specify default viewboxes.
  733. * Fixed radial gradient rendering for the case where no focal point is
  734. specified.
  735. - QSyntaxHighlighter
  736. * Added various performance improvements.
  737. - Qt namespace
  738. * Added ForegroundRole and BackgroundRole, allowing itemviews to use
  739. any QBrush (not just QColor, as previously) when rendering items.
  740. * Added NoDockWidgetArea to the ToolBarArea enum.
  741. * Added NoToolBarArea to the DockWidgetArea enum.
  742. * Added GroupSwitchModifier to the KeyboardModifiers enum. It
  743. represents special keys, such as the "AltGr" key found on many
  744. keyboards.
  745. * Added several missing keys to the Key enum: Key_Cancel, Key_Printer,
  746. Key_Execute, Key_Sleep, Key_Play and Key_Zoom.
  747. * Added OpenHandCursor and ClosedHandCursor for use with QCursor.
  748. - QTabBar
  749. * QTabBar text can now be elided; this is controlled by the elideMode
  750. property.
  751. * You can now turn on or off the "scroll buttons" for the tab bar with
  752. the usesScrollButtons property.
  753. * Non-pixmap based styles will now fill the background of the tab with
  754. the palette's window role.
  755. - QTabletEvent:
  756. * Ensured that QTabletEvents are dispatched with the proper relative
  757. coordinates.
  758. * Added proximity as another type of a tablet event (currently only sent
  759. to QApplication).
  760. - QTableView
  761. * Added API for spanning cells.
  762. * Ensured that cells are selected when the user right clicks on them.
  763. * Added a corner widget.
  764. * Added the setSortingEnabled property.
  765. - QTableWidget
  766. * Added the clearContents() function to enable the contents of the view
  767. to be cleared while not resetting the headers.
  768. * QTableWidget now uses stable sorting.
  769. * Allow sorting of non-numerical data.
  770. * Add convenience table item constructor that takes an icon as well as
  771. a string.
  772. - QTabWidget
  773. * Added missing selected() Qt3Support signal.
  774. * Clarified documentation for setCornerWidget().
  775. * Ensured that the tab widget's frame is drawn correctly when the tab
  776. bar is hidden.
  777. * Ensured that the internal widgets have object names.
  778. * Added iconSize, elideMode, and usesScrollButtons as properties (see
  779. QTabBar).
  780. - QTcpSocket
  781. * Fixed a rare data corruption problem occurring on heavily loaded
  782. Windows servers.
  783. - QTemporaryFile
  784. * Added support for file extensions and other suffixes.
  785. * Fixed one constructor which could corrupt the temporary file path.
  786. - QTextBrowser
  787. * Fixed various bugs with the handling of relative URLs and custom
  788. protocols.
  789. * Added isBackwardAvailable(), isForwardAvailable(), and
  790. clearHistory() functions.
  791. - QTextCodec
  792. * Allow locale-dependent features of Qt, such as QFile::exists(), to
  793. be accessed during global destruction.
  794. - QTextCursor
  795. * Added columnNumber(), blockNumber(), and insertHtml() convenience
  796. functions.
  797. - QTextDocument
  798. * Added convenience properties and functions: textWidth, idealWidth(),
  799. size, adjustSize(), drawContents(), blockCount, maximumBlockCount.
  800. * Added support for forced page breaks before/after paragraphs and
  801. tables.
  802. * Added CSS support to the HTML importer, including support for
  803. CSS selectors.
  804. * Added defaultStyleSheet property that is applied automatically for
  805. every HTML import.
  806. * Improved performance when importing HTML, especially with tables.
  807. * Improved pagination of tables across page boundaries.
  808. - QTextEdit
  809. * Fixed append() to use the current character format.
  810. * Changed mergeCurrentCharFormat() to behave in the same way as
  811. QTextCursor::mergeCharFormat, without applying the format to the
  812. word under the cursor.
  813. * QTextEdit now ensures that the cursor is visible the first time the
  814. widget is shown or when replacing the contents entirely with
  815. setPlainText() or setHtml().
  816. * Fixed issue where the setPlainText() discarded the current character
  817. format after the new text had been added to the document.
  818. * Re-added setText() as non-compatibility function with well-defined
  819. heuristics.
  820. * Added a moveCursor() convenience function.
  821. * Changed the default margin from 4 to 2 pixels for consistency with
  822. QLineEdit.
  823. * Added support for extra selections.
  824. - QTextFormat
  825. * Fixed the default value for QTextBlockFormat::alignment() to return
  826. a logical left alignment instead of an invalid alignment.
  827. * Added UnderlineStyle formatting, including SpellCheckUnderline.
  828. - QTextStream
  829. * Added the pos() function, which returns the current byte-position
  830. of the stream.
  831. - QTextTableCell
  832. * Added the setFormat() function to enable the cell's character format
  833. to be changed.
  834. - QThread
  835. * Related to changes to QObject, currentThread() always returns a
  836. valid pointer. (Previous versions of Qt would return zero if called
  837. from non-QThread threads; this does not happen in Qt 4.2).
  838. - QToolBar
  839. * Introduced various fixes to better support tool buttons, button
  840. groups and comboboxes in the toolbar extension menu.
  841. * Fixed crash that occurred when QApplication::setStyle() was called
  842. twice.
  843. - QToolButton
  844. * Fixed an alignment bug for tool buttons with multi-line labels and
  845. TextUnderIcon style.
  846. - QToolTip
  847. * Added the hideText() convenience function.
  848. * Added the showText() function that takes a QRect argument specifying
  849. the valid area for the tooltip. (If you move the cursor outside this
  850. area the tooltip will hide.)
  851. * Added a widget attribute to show tooltips for inactive windows.
  852. - QTranslator
  853. * Added support for plural forms through a new QObject::tr() overload.
  854. * Ensured that a LanguageChange event is not generated if the
  855. translator fails to load.
  856. * Fixed a bug in isEmpty().
  857. * Added Q_DECLARE_TR_FUNCTIONS() as a means for declaring tr()
  858. functions in non-QObject classes.
  859. - QTreeView
  860. * Ensured that no action is taken when the root index passed to
  861. setRootIndex() is the same as the current root index.
  862. * When hiding items the view no longer performs a complete re-layout.
  863. * Fixed possible segfault in isRowHidden().
  864. * Significantly speed up isRowHidden() for the common case.
  865. * Improved row painting performance.
  866. * After expanding, fetchMore() is called on the expanded index giving
  867. the model a way to dynamically populate the children.
  868. * Fixed issue where an item could expand when all children were
  869. hidden.
  870. * Added support for horizontal scrolling using the left/right arrow
  871. keys.
  872. * Added a property to enable the focus rectangle in a tree view to be
  873. shown over all columns.
  874. * Added more key bindings for expanding and collapsing the nodes.
  875. * Added the expandAll() and collapseAll() slots.
  876. * Added animations for expanding and collapsing branches.
  877. * Take all rows into account when computing the size hint for a
  878. column.
  879. * Added the setSortingEnabled property.
  880. * Fixed the behavior of the scrollbars so that they no longer
  881. disappear after removing and re-inserting items while the view is
  882. hidden.
  883. * Fixed memory corruption that could occur when inserting and removing
  884. rows.
  885. * Don't draw branches for hidden rows.
  886. - QTreeWidget
  887. * Added the const indexOfTopLevelItem() function.
  888. * Improved item insertion speed.
  889. * Fixed crash caused by calling QTreeWidgetItem::setData() with a
  890. negative number.
  891. * QTreeWidget now uses stable sorting.
  892. * Made construction of single column items a bit more convenient.
  893. * Added the invisibleRootItem() function.
  894. * Made addTopLevelItems() add items in correct (not reverse) order.
  895. * Ensured that the header is repainted immediately when the header
  896. data changes.
  897. - QUiLoader
  898. * Exposed workingDirectory() and setWorkingDirectory() from
  899. QAbstractFormBuilder to assist with run-time form loading.
  900. - QUrl
  901. * Added errorString() to improve error reporting.
  902. * Added hasQuery() and hasFragment() functions.
  903. * Correctly parse '+' when calling queryItems().
  904. * Correctly parse the authority when calling setAuthority().
  905. * Added missing implementation of StripTrailingSlash in toEncoded().
  906. - QVariant
  907. * Added support for all QMetaType types.
  908. * Added support for QMatrix as a known meta-type.
  909. * Added support for conversions from QBrush to QColor and QPixmap,
  910. and from QColor and QPixmap to QBrush.
  911. * Added support for conversions between QSize and QSizeF, between
  912. QLine and QLineF, from long long to char, and from unsigned long
  913. long to char.
  914. * Added support for conversions from QPointF to QPoint and from QRectF
  915. to QRect.
  916. * Fixed issue where QVariant(Qt::blue) would not create a variant of
  917. type QVariant::Color.
  918. * Added support for conversions from int, unsigned int, long long,
  919. unsigned long long, and double to QByteArray.
  920. - QWhatsThis
  921. * Improved look and feel.
  922. - QWidget
  923. * Delayed creation: Window system resources are no longer allocated in
  924. the QWidget constructor, but later on demand.
  925. * Added a styleSheet property to set/read the widget style sheet.
  926. * Added saveGeometry() and restoreGeometry() convenience functions for
  927. saving and restoring a window's geometry.
  928. * Fixed memory leak for Qt::WA_PaintOnScreen widgets with null paint
  929. engines.
  930. * Ensured that widget styles propagate to child widgets.
  931. * Reduced flicker when adding widget to layout with visible parent.
  932. * Fixed child visibility when calling setLayout() on a visible widget.
  933. * Speed up creation/destruction/showing of widgets with many children.
  934. * Avoid painting obscured widgets when updating overlapping widgets.
  935. - QWorkspace
  936. * Resolved issue causing the maximized controls to overlap with the
  937. menu in reverse mode.
  938. * Fixed issue where child windows could grow a few pixels when
  939. restoring geometry in certain styles.
  940. * Ensured that right-to-left layout is respected when positioning new
  941. windows.
  942. * Fixed crash that occurred when a child widget did not have a title
  943. bar.
  944. * Fixed issue where maximized child windows could be clipped at the
  945. bottom of the workspace.
  946. - quintptr and qptrdiff
  947. * New integral typedefs have been added.
  948. - Q3ButtonGroup
  949. * Fixed inconsistencies with respect to exclusiveness of elements in
  950. Qt 3.
  951. * Fixed ID management to be consistent with Qt 3.
  952. - Q3Canvas
  953. * Fixed several clipping bugs introduced in 4.1.0.
  954. - Q3CanvasView
  955. * Calling setCanvas() now always triggers a full update.
  956. - Q3Grid, Q3Hbox, Q3VBox
  957. * Fixed layout problem.
  958. - Q3IconView
  959. * Fixed a case where selected icons disappeared.
  960. - Q3ListBox
  961. * Fixed inconsistencies in selectAll() with respect to Qt 3.
  962. * Fixed possible crash after deleting items.
  963. - Q3ListView
  964. Fixed possible crash in Q3ListView after calling clear().
  965. Fixed inconsistent drag and drop behavior with respect to Qt 3.
  966. - Q3Process
  967. * Stability fixes in start().
  968. - Q3Socket
  969. * No longer (incorrectly) reports itself as non-sequential.
  970. - Q3Table
  971. * Improved behavior for combobox table elements.
  972. ****************************************************************************
  973. * Database Drivers *
  974. ****************************************************************************
  975. - Interbase driver
  976. * Fixed data truncation for 64 bit integers on 64 bit operating
  977. systems.
  978. - MySQL driver
  979. * When using MySQL 5.0.7 or larger, let the server do the text
  980. encoding conversion.
  981. * Added UNIX_SOCKET c