summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorDavid Boddie <dboddie@trolltech.com>2009-11-03 15:37:05 (GMT)
committerDavid Boddie <dboddie@trolltech.com>2009-11-03 15:37:05 (GMT)
commitc0a58b079d00dad484faa6249b8109a639576399 (patch)
treed2828950d8e5664da5606783161f2a48db3ce722 /examples
parent93ec4104781d7f9929b8b8a05dee3d94f8cd4b17 (diff)
parentc95a0e6e8eb8ba5fd2a4412b318ad998b3ccb4fc (diff)
downloadQt-c0a58b079d00dad484faa6249b8109a639576399.zip
Qt-c0a58b079d00dad484faa6249b8109a639576399.tar.gz
Qt-c0a58b079d00dad484faa6249b8109a639576399.tar.bz2
Merge branch '4.6' of git@scm.dev.nokia.troll.no:qt/qt-doc-team into 4.6
Conflicts: src/gui/kernel/qevent.cpp src/network/ssl/qsslerror.cpp
Diffstat (limited to 'examples')
-rw-r--r--examples/mainwindows/mdi/mainwindow.cpp2
-rw-r--r--examples/mainwindows/sdi/mainwindow.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/examples/mainwindows/mdi/mainwindow.cpp b/examples/mainwindows/mdi/mainwindow.cpp
index 712d91f..edb33b7 100644
--- a/examples/mainwindows/mdi/mainwindow.cpp
+++ b/examples/mainwindows/mdi/mainwindow.cpp
@@ -71,7 +71,7 @@ MainWindow::MainWindow()
void MainWindow::closeEvent(QCloseEvent *event)
{
mdiArea->closeAllSubWindows();
- if (activeMdiChild()) {
+ if (mdiArea->currentSubWindow()) {
event->ignore();
} else {
writeSettings();
diff --git a/examples/mainwindows/sdi/mainwindow.h b/examples/mainwindows/sdi/mainwindow.h
index ca478df..a925e2f 100644
--- a/examples/mainwindows/sdi/mainwindow.h
+++ b/examples/mainwindows/sdi/mainwindow.h
@@ -50,12 +50,14 @@ class QMenu;
class QTextEdit;
QT_END_NAMESPACE
+//! [class definition with macro]
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
MainWindow();
+//! [class definition with macro]
MainWindow(const QString &fileName);
protected: