summaryrefslogtreecommitdiffstats
path: root/dist/changes-3.0.0-beta4
blob: a3f44a55691e7de4ef42de5de6fe23e1f2bf164d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
Qt 3.0 Beta4 is not binary compatible with Beta3; any programs linked
against Beta3 must be recompiled.

Below you will find a description of general changes in the Qt
Library and Qt Designer followed by a detailed list of changes in the
API.


The Qt Library
========================================

Documentation
-------------

The extensive revision of the documentation is almost complete.
We have added new navigation options, including a shorter list
of classes entitled Main Classes.

Translations
------------

Qt now includes French and German translations of the Qt library, as
well as a template for translating Qt. These files are found in the
translations directory of Qt, in both .ts and .qm formats.

Style Fixes
-----------

Qt 3.0.0 beta2 introduced a new QStyle API. This new API has changed
between beta3 and beta4. These changes will affect both widget
writers and style writers. The QStyle entry below explains what has
changed.

Beta4 also introduces some fixes for bugs introduced during the port
to the new API in various widgets, notably QComboBox and QSlider.

LiveConnect Plugin
------------------

A few bugs were fixed in the LiveConnect Plugin so that the grapher
example works again on Windows.


Qt Designer
========================================

 - General usability improvements and bug fixes, and improved file
   and project handling.
 - Updated designer manual to cover the .ui.h mechanism.
 - New auto-indentation algorithm in the code editor.


Qt Assistant
========================================

 - Added a Settings dialog and made more features customizable.
 - Sessions are now saved and restored.
 - A brief introduction to using Qt Assistant is now included.


Qt Linguist
========================================

 - Phrase books are now provided in tools/linguist/phrasebooks.
 - Added support for Qt Designer's .ui.h mechanism to lupdate.
 - Support for a larger subset of .pro file syntax in lupdate and
   lrelease.


Qt Functions
========================================

QApplication
------------

 - Ignore drag-and-drop events for disabled widgets.
 - Always send ChildRemoved events, even if no ChildInserted event
   was sent.
 - Mouse events for popup menus are now sent to event filters.

QCanvasItem
-----------

 - The functions visible(), selected() and active() have been renamed
   setVisible(), setSelected() and setActive().

New functions:
	bool isVisible() const;
	bool isSelected() const;
	bool isActive() const;

Removed functions:
	bool visible() const;
	bool selected() const;
	bool active() const;

QCanvasText
-----------

 - Fixed alignment flags.

QChar
-----

New function:
	bool isSymbol() const;

QCheckBox
---------

 - Fixed a bug in pixmap caching which could result in using the
   wrong pixmap.

QCheckListItem
--------------

 - After a mouse click, the list view ignores the following double
   click as in Windows XP.

QClipboard
----------

 - Made clipboard operations faster on X11.

QColorDialog
------------

 - Never show scrollbars in the color array.

QComboBox
---------

 - Comboboxes are now drawn correctly in all styles.
 - Fixed bug with auto completion. There was undefined behavior with
   non-editable comboboxes when changing focus.

New function:
	virtual void setCurrentText( const QString& );

New property:
	QString currentText

QDataBrowser
------------

 - The setCursor() function is obsolete and will be removed for Qt 3
   release due to the incompatibility with some compilers. Use
   setSqlCursor() instead.

QDataTable
----------

 - Dates and times in tables can now be displayed in different
   display formats.
 - The setCursor() function is obsolete and will be removed for Qt 3
   release due to the incompatibility with some compilers. Use
   setSqlCursor() instead.

QDateEdit
---------

 - The default separator and the day-month-year order respect the
   user's settings.
 - Pressing the separator key now skips to the next section.
 - Fixed a usability flaw related to some months being longer than
   others.

New functions:
	QString separator() const;
	virtual void setSeparator( const QString& s );

QDateTime
---------

 - Always initialize the tm struct completely. This fixes a problem
   on some versions of Unix.

QDir
----

 - QDir::homeDirectory() now always returns an existing directory on
   Windows.

QDockWindows
------------

 - Fixed dockwindows created in non-dock areas.
 - Fixed constructor if InDock and the parent is a QMainWindow.

QDom...
-------

 - Fixes in the conversion of the DOM tree to a string.

QDomNodeList
------------

 - Fixed a crash.

QFileDialog
-----------

 - Select contents of the line edit at startup (if any) so that the
   user can overwrite the provided file name right away.

QFileInfo
---------

 - In adition to lastModified() and lastRead(), provide created().

New function:
	QDateTime created() const;

QFont
-----

 - Provide more correct font metrics under X11.
 - Worked around X11 limits on length of strings to draw and on
   coordinate sizes.
 - Fixed sone point vs. pixel size issues under X11.
 - Added PreferAntialias and NoAntialias flags to StyleStrategy enum
   type.

QFtp
----

 - Fixed a QSocket bug that made QFtp crash if the connection was
   refused.
 - Fixed operationRename() and operationRemove().
 - Set the right state when finished.

QGIFFormat
----------

 - Support GIF files with broken logical screen size.

QHeader
-------

 - Added support for '\n' in header labels.
 - Improved placement of icon.

QHttp
-----

 - If the status code of the reply is an error code, it is now also
   reflected in the status of the network operation. The error
   handling in general was improved.

QImageIO
--------

 - Allow gamma correction to be set programmatically.

New functions:
	void setGamma( float gamma );
	float gamma() const;

QKeyEvent
---------

 - Worked around an X11 bug in isAutoRepeat().

QKeySequence
------------

A new class that encapsulates a key sequence as used by accelerators.

QLabel
------

 - Made the WordBreak alignment property work with rich text labels
   in addition to plain text labels.

QLayout
-------

 - Fixed crashes with deleting widgets managed by the layout.
 - Fixed problems with reparenting widgets managed by the layout.
 - Respect maximumHeight() of items in heightForWidth().

QLibrary
--------

 - Plugins now return the version number, threading model and debug
   vs. release mode of the Qt library used in ucm_initialize(). If
   there is any kind of incompatibility, cancel the loading.

QLineEdit
---------

 - Update the "edited" flag and the accessibility data better than
   before.
 - Fixed setMaxLength().
 - Fixed context menu problem on Windows.

New functions:
	bool isUndoAvailable() const;
	bool isRedoAvailable() const;

QListViewItem
-------------

 - Fixed setVisible(TRUE) which triggered an update too soon.

QMenuBar
--------

 - Cancel alt-activation of menubar on mouse press/release.
 - On wheel events, all popup menus are now closed instead of hidden.
   Hiding popup menus confused QMenuBar.

QObject
-------

 - Have QObject dispatch events to customEvents().

QPainter
--------

 - Renamed the enum type ClipMode to CoordinateMode. The enum values
   ClipDevice and ClipPainter are now called CoordDevice and
   CoordPainter.
 - Fixed escaping of ampersand character, so "&&", "&&&", etc., now
   work as they did in Qt 2.x.

New functions:
	void drawPixmap( const QRect& r, const QPixmap& pm );
	void drawImage( const QRect& r, const QImage& img );

QPicture
--------

 - Respect the size of a loaded SVG document.
 - Solved a replay-transformed-picture problem.
 - Fixed format version number.

QPluginManager
--------------

 - Fixed crash when loading a plugin fails.

QPopupMenu
----------

 - Custom menu items that are separators now see their size hint
   respected.
 - Fixed crash when drawing an empty popup menu.

QPrinter
--------

 - Better printing in different resolutions under both Windows and
   X11.
 - Support for collation under Windows and X11.
 - Correct bounding rectangles for texts in all printer modes.
 - Fixed pixmap printing on Windows.
 - Fixed PostScript font names for fonts with foundries.
 - Support for PostScript printing of scaled images.

New functions:
	bool collateCopiesEnabled() const;
	void setCollateCopiesEnabled( bool enable ) const;
	bool collateCopies() const;
	void setCollateCopies( bool on );
	int winPageSize() const; /* Windows only */

QProcess
--------

 - The function hangUp() was renamed to tryTerminate() to make the
   purpose more clear. Furthermore, under Unix, the signal that is
   sent was changed from SIGHUP to SIGTERM.
 - The function kill() and the function tryTerminate() (formerly
   hangUp()) were made slots.

New slots:
	void tryTerminate();
	void kill();

Removed functions:
	void hangUp();
	void kill();

QProgressBar
------------

 - Draw the progress bar correctly with respect to the properties
   "percentageVisible", "indicatorFollowsStyle" and
   "centerIndicator".

QPtrVector
----------

 - Support null items without triggering an assert.

QPushButton
-----------

 - Fixed the sizeHint() of buttons with an icon.

QRegExp
-------

 - Fixed a subtle bug in regular expressions mixing anchors and
   alternation.

QRegion
-------

 - Don't crash when creating a QRegion from an empty point array.

QRichText
---------

 - Improved alignment support, including nested alignments.
 - Improved table margin support.
 - Improved page break algorithm.
 - Do not eat '\n' in preformatted items.
 - Do not draw the internal trailing space at the end of a paragraph.
 - Fixed link underlining in table cells and other subdocuments.
 - Use larger vertical margin between paragraphs.
 - Display paragraph spacing even when printing.
 - Support vertical table cell alignment.
 - Fix for floating items and table cell size calculation.
 - Improved allignment handling.
 - Offset fixes for tabs.
 - Better <div> support.
 - Fixed <br> tag.
 - Fix for the <center> tag and centering tables.
 - Fixed &nbsp; and <nobr>.
 - Fixed off-by-one bug in gotoWordLeft() and gotoWordRight().
 - Better positioning of super- and subscripts.
 - Faster printing of large tables by using a clipping rectangle.
 - Improved high-resolution printing.
 - Correct sizes for images when printing.
 - Fixed list painting when printing.
 - Use right background for printing.

QScrollBar
----------

 - Made setValue() a slot.

New slot:
	void setValue( int );

Removed function:
	void setValue( int );

QSettings
---------

 - Added support for QStringLists without requiring a distinct
   separator.
 - Added support for null strings, empty lists and null strings in
   lists.
 - Fixed bug with values ending with a backslash.
 - On Unix, don't overwrite files if the user doesn't have permission.

QSimpleRichText
---------------

 - Implemented vertical breaks and floating elememts.
 - Fixed bug with borders and clipping in printing.
 - Fixed bug in adjustSize() cache.

QSizePolicy
-----------

 - Stretch factors were added to QSizePolicy.
 - Added a new size policy: Ignored.

New functions:
	uint horStretch() const;
	uint verStretch() const;
	void setHorStretch( uchar sf );
	void setVerStretch( uchar sf );

QSpinBox
--------

New slot:
	virtual void selectAll();

QSqlDatabase
------------

 - QSqlDatabase now provides access to meta-data. Meta-data is stored
   in two new classes, QSqlFieldInfo and QSqlRecordInfo. See the
   class documentation for details.

New Functions:
	QSqlRecordInfo recordInfo ( const QString & tablename ) const
	QSqlRecordInfo recordInfo ( const QSqlQuery & query ) const


QSqlFieldInfo
-------------

A new class that stores meta data associated with a SQL field.

QSqlRecordInfo
--------------

A new class that is keeping a set of QSqlFieldInfo objects.

QStatusBar
----------

 - Don't cut off the bottom line of the border of the status bar.
 - Respect maximumHeight() of items in the status bar.

QString
-------

 - QString now provides section(), a function that parses simple
   fields.
 - The function similarityWith() has been removed from the API. If
   you need it, write to qt-bugs@trolltech.com.

New functions:
	QString section( QChar sep, int start, int end,
			 int flags = SectionDefault ) const;
	QString section( char sep, int start, int end = 0xffffffff,
			 int flags = SectionDefault ) const;
	QString section( const char *substr, int start, int end = 0xffffffff,
			 int flags = SectionDefault ) const;
	QString section( QString substr, int start, int end = 0xffffffff,
			 int flags = SectionDefault ) const;
	QString section( const QRegExp &regxp, int start, int end = 0xffffffff,
			 int flags = SectionDefault ) const;
	
Removed function:
	int similarityWith( const QString& target ) const;

QStyle
------

 - Changed "void **" technique to QStyleOption technique. This
   affects the interface of most of the QStyle member functions.
   Please read the QStyle class documentation for details.

QStyleOption
------------

A new class that encapsulates extra data sent to the style API.

QTabBar
-------

 - The accelerators are now working correctly after changing a tab.

QTable
------

 - Fixed crash related to popup menu and cell edition.
 - Fixed not-drawing hidden cells.

QTextCodec
----------

 - Added MIME names for codecs.
 - Improved locale detection.
 - Fixed the ISO 8859-6.8x (Arabic) font encoding.

New function:
	const char *mimeName() const;

QTextStream
-----------

 - Fixed bug with stateful QTextEncoders.

QTextEdit
---------

 - Respect disabling updates.
 - Fixed link underlining in table cells and other subdocuments.
 - Draw cursor on focus in.
 - Emit cursorPositionChanged() where it previously was missing.
 - Fixed sync().

New functions:
	bool isUndoAvailable() const;
	bool isRedoAvailable() const;
	bool isUndoRedoEnabled() const;
	virtual void setUndoRedoEnabled( bool enabled ) const;

New property:
	bool undoRedoEnabled

QThread
-------

 - Fixed QThread::sleep() on Unix.

QTime
-----

 - fromString() with format Qt::ISODate now recognizes milliseconds
   if they are specified.
 - Make elapsed() a const function.

QTimeEdit
---------

 - The default time separator respects the user's settings.
 - Pressing the separator key now skips to the next section.

New functions:
	QString separator() const;
	virtual void setSeparator( const QString& s );

QTooltip
--------

 - Hide active tooltips when the user switches to another application.
 - Fixed tooltips with Windows effects enabled.

QUrl
----

 - Fixed password encoding.

New function:
	bool hasPort() const;

QValidator
----------

 - Let QValidator, QIntValidator, QDoubleValidator and
   QRegExpValidator have QObject parents rather than only QWidget
   parents.

QVariant
--------

 - Added QBitArray support.
 - The QDateTime type now supports asDate() and asTime().
 - The QByteArray type now supports toString().

New functions:
	QVariant( const QBitArray& );
	const QBitArray toBitArray() const;
	QBitArray& asBitArray();

QWhatsThis
----------

 - Added support for hyperlinks in "What's This?" help windows.

QWidget
-------

 - Fixed crashes related to LayoutHint events.

QWizard
-------

 - Made removePage() behave as documented.
 - Fixed back() so that it skips irrelevant pages like next().

QWorkspace
----------

 - Make sure that the widget state is set before the first titlebar
   painting is triggered.
 - Use the right pixmap for titlebar.
 - Respects widget flags better for titlebars in QCommonStyle.
 - Fixed move and resize in the system menu bar of workspace
   children.

QXml
----

 - Made the "prefix" xmlns map to the namespace name
   http://www.w3.org/2000/xmlns/.
 - Fixed default namespaces.

QXmlAttributes
--------------

 - Added count() as equivalent to length() to be consistent with Qt
   conventions.

New function:
	int count() const;