137 QFontDialog::FontDialogOptions opts; |
137 QFontDialog::FontDialogOptions opts; |
138 QPointer<QObject> receiverToDisconnectOnClose; |
138 QPointer<QObject> receiverToDisconnectOnClose; |
139 QByteArray memberToDisconnectOnClose; |
139 QByteArray memberToDisconnectOnClose; |
140 |
140 |
141 #ifdef Q_WS_MAC |
141 #ifdef Q_WS_MAC |
142 static void *openCocoaFontPanel(const QFont &initial, |
|
143 QWidget *parent, const QString &title, |
|
144 QFontDialog::FontDialogOptions options, |
|
145 QFontDialogPrivate *priv = 0); |
|
146 static void closeCocoaFontPanel(void *delegate); |
|
147 static QFont execCocoaFontPanel(bool *ok, const QFont &initial, QWidget *parent, |
|
148 const QString &title, QFontDialog::FontDialogOptions options); |
|
149 static void setFont(void *delegate, const QFont &font); |
142 static void setFont(void *delegate, const QFont &font); |
150 |
143 |
151 inline void done(int result) { q_func()->done(result); } |
144 inline void done(int result) { q_func()->done(result); } |
152 inline QFontDialog *fontDialog() { return q_func(); } |
145 inline QFontDialog *fontDialog() { return q_func(); } |
153 |
146 |
154 void *delegate; |
147 void *delegate; |
|
148 void closeCocoaFontPanel(); |
155 bool nativeDialogInUse; |
149 bool nativeDialogInUse; |
156 bool canBeNativeDialog(); |
150 bool canBeNativeDialog(); |
157 bool setVisible_sys(bool visible); |
151 bool setVisible_sys(bool visible); |
158 void *_q_constructNativePanel(); |
152 void createNSFontPanelDelegate(); |
159 void _q_macRunNativeAppModalPanel(); |
153 void _q_macRunNativeAppModalPanel(); |
160 void mac_nativeDialogModalHelp(); |
154 void mac_nativeDialogModalHelp(); |
|
155 bool showCocoaFontPanel(); |
|
156 bool hideCocoaFontPanel(); |
161 |
157 |
162 static bool sharedFontPanelAvailable; |
158 static bool sharedFontPanelAvailable; |
163 #endif |
159 #endif |
164 }; |
160 }; |
165 |
161 |