summaryrefslogtreecommitdiffstats
path: root/dist/changes-0.98
blob: a36abeb9e1fb87103ea5cdcda46eae73ff7bf562 (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
Here is a list of (major) changes in Qt from 0.96 to 0.98.
As usual, we fixed some bugs and improved the documentation.


*************** Changes that might affect runtime behavior *****************

QWidget:
--------
  setMinimumSize() and setMaximumSize() now force the widget to 
  a legal size.  resize() and setGeometry() obey the widget's
  minimum/maximum size.

  The default behaviour of QWidget::closeEvent is now to hide the widget,
  not to delete it as before (which was potentially dangerous). This means
  that if you have a top level widget and the user closes it via the close
  box, it will now hide itself if you have not reimplemented closeEvent().
  See the QWidget::closeEvent() and QCloseEvent documentation for details.

  (There are other changes in QWidget, see below)


*************** Changes that might generate compile errors *****************
**************           when compiling old code           *****************

Disabled copy constructors and operators=
----------------------------------------- 
  Copy constructors and operators= are disabled in the classes that cannot
  be copied (this includes all classes that inherit from QObject). This
  will let the compiler find bugs in your code, you'll get compile time 
  errors where you most probably would have gotten core dumps before. 
  This change has been done in the following classes:

    QAccel QApplication QBuffer QButton QButtonGroup QCheckBox QClipboard
    QComboBox QConnection QDataStream QDialog QFile QFileDialog QFrame
    QGroupBox QIODevice QImageIO QLCDNumber QLabel QLineEdit QListBox
    QMenuBar QMenuData QMenuItem QMessageBox QMetaObject QObject
    QPSPrinter QPaintDevice QPainter QPicture QPopupMenu QPrintDialog
    QPrinter QPushButton QRadioButton QRangeControl QScrollBar QSignal
    QSocketNotifier QTableView QTextStream QTimer QWidget QWindow

  The other classes all have sensible copy constructors and operators=.

QDate:
------
  These were protected, now private:
	static const char *monthNames[];
 	static const char *weekdayNames[];
	uint  	 jd;

QListBox:
---------
  The internals of QListBox are completely reworked. Definition of custom
  QListBoxItems is now much easier. This is *not* compatible with the old
  way of defining custom QLBItems. See the QListBoxItem documentation for
  details.

QTime:
------
  This was protected, now private:
	uint   ds;

*************** Type changes that might generate warnings: *****************

none

*****************         Obsoleted functions         **********************

none

***************** All other changes from 0.96 to 0.98 **********************

moc:
----
  Moc previously gave a syntax error when the word "class" was found
  in a string outside a class declaration. This bug has now been
  fixed.

  More moc arguments, check the manpage for details.

QFont:
------
  Two new convenience functions; bold() and setBold().

QLabel:
-------
  setMargin() and margin() are new. setMargin() specifies a minimum margin
  when the label contents are justified.

QWidget:
--------
  You can specify a custom widget frame for top level widgets, including
  no frame at all. See the widget constructor doc. for details.

  Qt now has enter and leave events. Reimplement the virtual functions  
  void enterEvent( QEvent * ) and void leaveEvent( QEvent * ) to receive
  events when the mouse cursor leaves or enters the visible part of the
  widget.