diff options
Diffstat (limited to 'doc/man/man3/tqcloseevent.3qt')
-rw-r--r-- | doc/man/man3/tqcloseevent.3qt | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/man/man3/tqcloseevent.3qt b/doc/man/man3/tqcloseevent.3qt index f926a7566..6815f72b4 100644 --- a/doc/man/man3/tqcloseevent.3qt +++ b/doc/man/man3/tqcloseevent.3qt @@ -31,13 +31,13 @@ Inherits QEvent. .SH DESCRIPTION The QCloseEvent class contains parameters that describe a close event. .PP -Close events are sent to widgets that the user wants to close, usually by choosing "Close" from the window menu, or by clicking the `X' titlebar button. They are also sent when you call QWidget::close() to close a widget programmatically. +Close events are sent to widgets that the user wants to close, usually by choosing "Close" from the window menu, or by clicking the `X' titlebar button. They are also sent when you call TQWidget::close() to close a widget programmatically. .PP Close events contain a flag that indicates whether the receiver wants the widget to be closed or not. When a widget accepts the close event, it is hidden (and destroyed if it was created with the WDestructiveClose flag). If it refuses to accept the close event nothing happens. (Under X11 it is possible that the window manager will forcibly close the window; but at the time of writing we are not aware of any window manager that does this.) .PP The application's main widget -- QApplication::mainWidget() -- is a special case. When it accepts the close event, TQt leaves the main event loop and the application is immediately terminated (i.e. it returns from the call to QApplication::exec() in the main() function). .PP -The event handler QWidget::closeEvent() receives close events. The default implementation of this event handler accepts the close event. If you do not want your widget to be hidden, or want some special handing, you should reimplement the event handler. +The event handler TQWidget::closeEvent() receives close events. The default implementation of this event handler accepts the close event. If you do not want your widget to be hidden, or want some special handing, you should reimplement the event handler. .PP The closeEvent() in the Application Walkthrough shows a close event handler that asks whether to save a document before closing. .PP @@ -49,7 +49,7 @@ If the last top-level window is closed, the QApplication::lastWindowClosed() sig .PP The isAccepted() function returns TRUE if the event's receiver has agreed to close the widget; call accept() to agree to close the widget and call ignore() if the receiver of this event does not want the widget to be closed. .PP -See also QWidget::close(), QWidget::hide(), QObject::destroyed(), QApplication::setMainWidget(), QApplication::lastWindowClosed(), QApplication::exec(), QApplication::quit(), and Event Classes. +See also TQWidget::close(), TQWidget::hide(), TQObject::destroyed(), QApplication::setMainWidget(), QApplication::lastWindowClosed(), QApplication::exec(), QApplication::quit(), and Event Classes. .SH MEMBER FUNCTION DOCUMENTATION .SH "QCloseEvent::QCloseEvent ()" Constructs a close event object with the accept parameter flag set to FALSE. @@ -62,9 +62,9 @@ Setting the accept flag indicates that the receiver of this event agrees to clos .PP The accept flag is \fInot\fR set by default. .PP -If you choose to accept in QWidget::closeEvent(), the widget will be hidden. If the widget's WDestructiveClose flag is set, it will also be destroyed. +If you choose to accept in TQWidget::closeEvent(), the widget will be hidden. If the widget's WDestructiveClose flag is set, it will also be destroyed. .PP -See also ignore() and QWidget::hide(). +See also ignore() and TQWidget::hide(). .PP Examples: .)l action/application.cpp, application/application.cpp, mdi/application.cpp, popup/popup.cpp, and qwerty/qwerty.cpp. |