Mercurial > octave
annotate libgui/languages/build_ts/octave-qt/qpagesetupdialog.cpp @ 32535:dd5ece3664ed stable
update Qt and Qsci sources for scanning text for translation
* libgui/languages/build_ts/octave-qsci/*: updated source files
from Qscintilla
* libgui/languages/build_ts/octave-qt/*.: updated source files
from Qt
* libgui/languages/build_ts/update_external_sources: script for
updating above mentioned source files from user defined directories
author | Torsten Lilge <ttl-octave@mailbox.org> |
---|---|
date | Mon, 04 Dec 2023 19:55:32 +0100 |
parents | 5ceb4bfcdb0f |
children |
rev | line source |
---|---|
32535
dd5ece3664ed
update Qt and Qsci sources for scanning text for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
31537
diff
changeset
|
1 // Copyright (C) 2016 The Qt Company Ltd. |
dd5ece3664ed
update Qt and Qsci sources for scanning text for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
31537
diff
changeset
|
2 // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only |
31537
5ceb4bfcdb0f
add tools and files for updating the gui's language files for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
diff
changeset
|
3 |
32535
dd5ece3664ed
update Qt and Qsci sources for scanning text for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
31537
diff
changeset
|
4 #include "qpagesetupdialog.h" |
dd5ece3664ed
update Qt and Qsci sources for scanning text for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
31537
diff
changeset
|
5 #include <private/qpagesetupdialog_p.h> |
31537
5ceb4bfcdb0f
add tools and files for updating the gui's language files for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
diff
changeset
|
6 |
32535
dd5ece3664ed
update Qt and Qsci sources for scanning text for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
31537
diff
changeset
|
7 #include <QtPrintSupport/qprinter.h> |
31537
5ceb4bfcdb0f
add tools and files for updating the gui's language files for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
diff
changeset
|
8 |
5ceb4bfcdb0f
add tools and files for updating the gui's language files for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
diff
changeset
|
9 QT_BEGIN_NAMESPACE |
5ceb4bfcdb0f
add tools and files for updating the gui's language files for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
diff
changeset
|
10 |
5ceb4bfcdb0f
add tools and files for updating the gui's language files for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
diff
changeset
|
11 /*! |
5ceb4bfcdb0f
add tools and files for updating the gui's language files for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
diff
changeset
|
12 \class QPageSetupDialog |
5ceb4bfcdb0f
add tools and files for updating the gui's language files for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
diff
changeset
|
13 |
5ceb4bfcdb0f
add tools and files for updating the gui's language files for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
diff
changeset
|
14 \brief The QPageSetupDialog class provides a configuration dialog |
5ceb4bfcdb0f
add tools and files for updating the gui's language files for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
diff
changeset
|
15 for the page-related options on a printer. |
5ceb4bfcdb0f
add tools and files for updating the gui's language files for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
diff
changeset
|
16 |
5ceb4bfcdb0f
add tools and files for updating the gui's language files for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
diff
changeset
|
17 \ingroup standard-dialogs |
5ceb4bfcdb0f
add tools and files for updating the gui's language files for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
diff
changeset
|
18 \ingroup printing |
32535
dd5ece3664ed
update Qt and Qsci sources for scanning text for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
31537
diff
changeset
|
19 \inmodule QtPrintSupport |
31537
5ceb4bfcdb0f
add tools and files for updating the gui's language files for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
diff
changeset
|
20 |
32535
dd5ece3664ed
update Qt and Qsci sources for scanning text for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
31537
diff
changeset
|
21 On Windows and \macos the page setup dialog is implemented using |
31537
5ceb4bfcdb0f
add tools and files for updating the gui's language files for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
diff
changeset
|
22 the native page setup dialogs. |
5ceb4bfcdb0f
add tools and files for updating the gui's language files for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
diff
changeset
|
23 |
32535
dd5ece3664ed
update Qt and Qsci sources for scanning text for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
31537
diff
changeset
|
24 Note that on Windows and \macos custom paper sizes won't be |
31537
5ceb4bfcdb0f
add tools and files for updating the gui's language files for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
diff
changeset
|
25 reflected in the native page setup dialogs. Additionally, custom |
32535
dd5ece3664ed
update Qt and Qsci sources for scanning text for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
31537
diff
changeset
|
26 page margins set on a QPrinter won't show in the native \macos |
31537
5ceb4bfcdb0f
add tools and files for updating the gui's language files for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
diff
changeset
|
27 page setup dialog. |
5ceb4bfcdb0f
add tools and files for updating the gui's language files for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
diff
changeset
|
28 |
5ceb4bfcdb0f
add tools and files for updating the gui's language files for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
diff
changeset
|
29 \sa QPrinter, QPrintDialog |
5ceb4bfcdb0f
add tools and files for updating the gui's language files for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
diff
changeset
|
30 */ |
5ceb4bfcdb0f
add tools and files for updating the gui's language files for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
diff
changeset
|
31 |
5ceb4bfcdb0f
add tools and files for updating the gui's language files for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
diff
changeset
|
32 |
5ceb4bfcdb0f
add tools and files for updating the gui's language files for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
diff
changeset
|
33 /*! |
5ceb4bfcdb0f
add tools and files for updating the gui's language files for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
diff
changeset
|
34 \fn QPageSetupDialog::QPageSetupDialog(QPrinter *printer, QWidget *parent) |
5ceb4bfcdb0f
add tools and files for updating the gui's language files for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
diff
changeset
|
35 |
5ceb4bfcdb0f
add tools and files for updating the gui's language files for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
diff
changeset
|
36 Constructs a page setup dialog that configures \a printer with \a |
5ceb4bfcdb0f
add tools and files for updating the gui's language files for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
diff
changeset
|
37 parent as the parent widget. |
5ceb4bfcdb0f
add tools and files for updating the gui's language files for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
diff
changeset
|
38 */ |
5ceb4bfcdb0f
add tools and files for updating the gui's language files for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
diff
changeset
|
39 |
5ceb4bfcdb0f
add tools and files for updating the gui's language files for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
diff
changeset
|
40 /*! |
32535
dd5ece3664ed
update Qt and Qsci sources for scanning text for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
31537
diff
changeset
|
41 \fn QPageSetupDialog::~QPageSetupDialog() |
dd5ece3664ed
update Qt and Qsci sources for scanning text for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
31537
diff
changeset
|
42 |
dd5ece3664ed
update Qt and Qsci sources for scanning text for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
31537
diff
changeset
|
43 Destroys the page setup dialog. |
dd5ece3664ed
update Qt and Qsci sources for scanning text for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
31537
diff
changeset
|
44 */ |
dd5ece3664ed
update Qt and Qsci sources for scanning text for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
31537
diff
changeset
|
45 |
dd5ece3664ed
update Qt and Qsci sources for scanning text for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
31537
diff
changeset
|
46 /*! |
31537
5ceb4bfcdb0f
add tools and files for updating the gui's language files for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
diff
changeset
|
47 \since 4.5 |
5ceb4bfcdb0f
add tools and files for updating the gui's language files for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
diff
changeset
|
48 |
5ceb4bfcdb0f
add tools and files for updating the gui's language files for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
diff
changeset
|
49 \fn QPageSetupDialog::QPageSetupDialog(QWidget *parent) |
5ceb4bfcdb0f
add tools and files for updating the gui's language files for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
diff
changeset
|
50 |
5ceb4bfcdb0f
add tools and files for updating the gui's language files for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
diff
changeset
|
51 Constructs a page setup dialog that configures a default-constructed |
5ceb4bfcdb0f
add tools and files for updating the gui's language files for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
diff
changeset
|
52 QPrinter with \a parent as the parent widget. |
5ceb4bfcdb0f
add tools and files for updating the gui's language files for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
diff
changeset
|
53 |
5ceb4bfcdb0f
add tools and files for updating the gui's language files for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
diff
changeset
|
54 \sa printer() |
5ceb4bfcdb0f
add tools and files for updating the gui's language files for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
diff
changeset
|
55 */ |
5ceb4bfcdb0f
add tools and files for updating the gui's language files for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
diff
changeset
|
56 |
5ceb4bfcdb0f
add tools and files for updating the gui's language files for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
diff
changeset
|
57 /*! |
5ceb4bfcdb0f
add tools and files for updating the gui's language files for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
diff
changeset
|
58 \fn QPrinter *QPageSetupDialog::printer() |
5ceb4bfcdb0f
add tools and files for updating the gui's language files for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
diff
changeset
|
59 |
5ceb4bfcdb0f
add tools and files for updating the gui's language files for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
diff
changeset
|
60 Returns the printer that was passed to the QPageSetupDialog |
5ceb4bfcdb0f
add tools and files for updating the gui's language files for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
diff
changeset
|
61 constructor. |
5ceb4bfcdb0f
add tools and files for updating the gui's language files for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
diff
changeset
|
62 */ |
5ceb4bfcdb0f
add tools and files for updating the gui's language files for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
diff
changeset
|
63 |
32535
dd5ece3664ed
update Qt and Qsci sources for scanning text for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
31537
diff
changeset
|
64 QPageSetupDialogPrivate::QPageSetupDialogPrivate(QPrinter *prntr) : printer(nullptr), ownsPrinter(false) |
31537
5ceb4bfcdb0f
add tools and files for updating the gui's language files for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
diff
changeset
|
65 { |
32535
dd5ece3664ed
update Qt and Qsci sources for scanning text for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
31537
diff
changeset
|
66 setPrinter(prntr); |
31537
5ceb4bfcdb0f
add tools and files for updating the gui's language files for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
diff
changeset
|
67 } |
5ceb4bfcdb0f
add tools and files for updating the gui's language files for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
diff
changeset
|
68 |
32535
dd5ece3664ed
update Qt and Qsci sources for scanning text for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
31537
diff
changeset
|
69 void QPageSetupDialogPrivate::setPrinter(QPrinter *newPrinter) |
31537
5ceb4bfcdb0f
add tools and files for updating the gui's language files for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
diff
changeset
|
70 { |
32535
dd5ece3664ed
update Qt and Qsci sources for scanning text for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
31537
diff
changeset
|
71 if (printer && ownsPrinter) |
dd5ece3664ed
update Qt and Qsci sources for scanning text for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
31537
diff
changeset
|
72 delete printer; |
31537
5ceb4bfcdb0f
add tools and files for updating the gui's language files for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
diff
changeset
|
73 |
32535
dd5ece3664ed
update Qt and Qsci sources for scanning text for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
31537
diff
changeset
|
74 if (newPrinter) { |
dd5ece3664ed
update Qt and Qsci sources for scanning text for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
31537
diff
changeset
|
75 printer = newPrinter; |
dd5ece3664ed
update Qt and Qsci sources for scanning text for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
31537
diff
changeset
|
76 ownsPrinter = false; |
dd5ece3664ed
update Qt and Qsci sources for scanning text for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
31537
diff
changeset
|
77 } else { |
dd5ece3664ed
update Qt and Qsci sources for scanning text for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
31537
diff
changeset
|
78 printer = new QPrinter; |
dd5ece3664ed
update Qt and Qsci sources for scanning text for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
31537
diff
changeset
|
79 ownsPrinter = true; |
dd5ece3664ed
update Qt and Qsci sources for scanning text for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
31537
diff
changeset
|
80 } |
dd5ece3664ed
update Qt and Qsci sources for scanning text for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
31537
diff
changeset
|
81 if (printer->outputFormat() != QPrinter::NativeFormat) |
dd5ece3664ed
update Qt and Qsci sources for scanning text for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
31537
diff
changeset
|
82 qWarning("QPageSetupDialog: Cannot be used on non-native printers"); |
31537
5ceb4bfcdb0f
add tools and files for updating the gui's language files for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
diff
changeset
|
83 } |
5ceb4bfcdb0f
add tools and files for updating the gui's language files for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
diff
changeset
|
84 |
5ceb4bfcdb0f
add tools and files for updating the gui's language files for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
diff
changeset
|
85 /*! |
5ceb4bfcdb0f
add tools and files for updating the gui's language files for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
diff
changeset
|
86 \overload |
5ceb4bfcdb0f
add tools and files for updating the gui's language files for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
diff
changeset
|
87 \since 4.5 |
5ceb4bfcdb0f
add tools and files for updating the gui's language files for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
diff
changeset
|
88 |
5ceb4bfcdb0f
add tools and files for updating the gui's language files for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
diff
changeset
|
89 Opens the dialog and connects its accepted() signal to the slot specified |
5ceb4bfcdb0f
add tools and files for updating the gui's language files for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
diff
changeset
|
90 by \a receiver and \a member. |
5ceb4bfcdb0f
add tools and files for updating the gui's language files for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
diff
changeset
|
91 |
5ceb4bfcdb0f
add tools and files for updating the gui's language files for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
diff
changeset
|
92 The signal will be disconnected from the slot when the dialog is closed. |
5ceb4bfcdb0f
add tools and files for updating the gui's language files for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
diff
changeset
|
93 */ |
5ceb4bfcdb0f
add tools and files for updating the gui's language files for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
diff
changeset
|
94 void QPageSetupDialog::open(QObject *receiver, const char *member) |
5ceb4bfcdb0f
add tools and files for updating the gui's language files for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
diff
changeset
|
95 { |
5ceb4bfcdb0f
add tools and files for updating the gui's language files for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
diff
changeset
|
96 Q_D(QPageSetupDialog); |
5ceb4bfcdb0f
add tools and files for updating the gui's language files for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
diff
changeset
|
97 connect(this, SIGNAL(accepted()), receiver, member); |
5ceb4bfcdb0f
add tools and files for updating the gui's language files for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
diff
changeset
|
98 d->receiverToDisconnectOnClose = receiver; |
5ceb4bfcdb0f
add tools and files for updating the gui's language files for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
diff
changeset
|
99 d->memberToDisconnectOnClose = member; |
5ceb4bfcdb0f
add tools and files for updating the gui's language files for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
diff
changeset
|
100 QDialog::open(); |
5ceb4bfcdb0f
add tools and files for updating the gui's language files for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
diff
changeset
|
101 } |
5ceb4bfcdb0f
add tools and files for updating the gui's language files for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
diff
changeset
|
102 |
32535
dd5ece3664ed
update Qt and Qsci sources for scanning text for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
31537
diff
changeset
|
103 #if defined(Q_OS_MAC) || defined(Q_OS_WIN) |
31537
5ceb4bfcdb0f
add tools and files for updating the gui's language files for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
diff
changeset
|
104 /*! \fn void QPageSetupDialog::setVisible(bool visible) |
5ceb4bfcdb0f
add tools and files for updating the gui's language files for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
diff
changeset
|
105 \reimp |
5ceb4bfcdb0f
add tools and files for updating the gui's language files for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
diff
changeset
|
106 */ |
5ceb4bfcdb0f
add tools and files for updating the gui's language files for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
diff
changeset
|
107 #endif |
5ceb4bfcdb0f
add tools and files for updating the gui's language files for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
diff
changeset
|
108 |
32535
dd5ece3664ed
update Qt and Qsci sources for scanning text for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
31537
diff
changeset
|
109 QPageSetupDialog::~QPageSetupDialog() |
dd5ece3664ed
update Qt and Qsci sources for scanning text for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
31537
diff
changeset
|
110 { |
dd5ece3664ed
update Qt and Qsci sources for scanning text for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
31537
diff
changeset
|
111 Q_D(QPageSetupDialog); |
dd5ece3664ed
update Qt and Qsci sources for scanning text for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
31537
diff
changeset
|
112 if (d->ownsPrinter) |
dd5ece3664ed
update Qt and Qsci sources for scanning text for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
31537
diff
changeset
|
113 delete d->printer; |
dd5ece3664ed
update Qt and Qsci sources for scanning text for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
31537
diff
changeset
|
114 } |
dd5ece3664ed
update Qt and Qsci sources for scanning text for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
31537
diff
changeset
|
115 |
dd5ece3664ed
update Qt and Qsci sources for scanning text for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
31537
diff
changeset
|
116 QPrinter *QPageSetupDialog::printer() |
dd5ece3664ed
update Qt and Qsci sources for scanning text for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
31537
diff
changeset
|
117 { |
dd5ece3664ed
update Qt and Qsci sources for scanning text for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
31537
diff
changeset
|
118 Q_D(QPageSetupDialog); |
dd5ece3664ed
update Qt and Qsci sources for scanning text for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
31537
diff
changeset
|
119 return d->printer; |
dd5ece3664ed
update Qt and Qsci sources for scanning text for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
31537
diff
changeset
|
120 } |
dd5ece3664ed
update Qt and Qsci sources for scanning text for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
31537
diff
changeset
|
121 |
dd5ece3664ed
update Qt and Qsci sources for scanning text for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
31537
diff
changeset
|
122 /*! |
dd5ece3664ed
update Qt and Qsci sources for scanning text for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
31537
diff
changeset
|
123 \fn int QPageSetupDialog::exec() |
31537
5ceb4bfcdb0f
add tools and files for updating the gui's language files for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
diff
changeset
|
124 |
32535
dd5ece3664ed
update Qt and Qsci sources for scanning text for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
31537
diff
changeset
|
125 This virtual function is called to pop up the dialog. It must be |
dd5ece3664ed
update Qt and Qsci sources for scanning text for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
31537
diff
changeset
|
126 reimplemented in subclasses. |
dd5ece3664ed
update Qt and Qsci sources for scanning text for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
31537
diff
changeset
|
127 */ |
dd5ece3664ed
update Qt and Qsci sources for scanning text for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
31537
diff
changeset
|
128 |
dd5ece3664ed
update Qt and Qsci sources for scanning text for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
31537
diff
changeset
|
129 /*! |
dd5ece3664ed
update Qt and Qsci sources for scanning text for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
31537
diff
changeset
|
130 \reimp |
dd5ece3664ed
update Qt and Qsci sources for scanning text for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
31537
diff
changeset
|
131 */ |
dd5ece3664ed
update Qt and Qsci sources for scanning text for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
31537
diff
changeset
|
132 void QPageSetupDialog::done(int result) |
dd5ece3664ed
update Qt and Qsci sources for scanning text for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
31537
diff
changeset
|
133 { |
dd5ece3664ed
update Qt and Qsci sources for scanning text for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
31537
diff
changeset
|
134 Q_D(QPageSetupDialog); |
dd5ece3664ed
update Qt and Qsci sources for scanning text for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
31537
diff
changeset
|
135 QDialog::done(result); |
dd5ece3664ed
update Qt and Qsci sources for scanning text for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
31537
diff
changeset
|
136 if (d->receiverToDisconnectOnClose) { |
dd5ece3664ed
update Qt and Qsci sources for scanning text for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
31537
diff
changeset
|
137 disconnect(this, SIGNAL(accepted()), |
dd5ece3664ed
update Qt and Qsci sources for scanning text for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
31537
diff
changeset
|
138 d->receiverToDisconnectOnClose, d->memberToDisconnectOnClose); |
dd5ece3664ed
update Qt and Qsci sources for scanning text for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
31537
diff
changeset
|
139 d->receiverToDisconnectOnClose = nullptr; |
dd5ece3664ed
update Qt and Qsci sources for scanning text for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
31537
diff
changeset
|
140 } |
dd5ece3664ed
update Qt and Qsci sources for scanning text for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
31537
diff
changeset
|
141 d->memberToDisconnectOnClose.clear(); |
dd5ece3664ed
update Qt and Qsci sources for scanning text for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
31537
diff
changeset
|
142 |
dd5ece3664ed
update Qt and Qsci sources for scanning text for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
31537
diff
changeset
|
143 } |
dd5ece3664ed
update Qt and Qsci sources for scanning text for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
31537
diff
changeset
|
144 |
dd5ece3664ed
update Qt and Qsci sources for scanning text for translation
Torsten Lilge <ttl-octave@mailbox.org>
parents:
31537
diff
changeset
|
145 QT_END_NAMESPACE |