From 7d5b813de363d766266350b12cdd96894b0409d9 Mon Sep 17 00:00:00 2001 From: Liang Qi Date: Tue, 30 Oct 2012 13:46:50 +0100 Subject: Mac: remove some unused code in QFontDialog MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Those code was warpped by Q_WS_MAC and should be part of QPA already. Change-Id: I48b751aad0509b50ccf9e82778c962ed80a2a9f9 Reviewed-by: Jiang Jiang Reviewed-by: Morten Johan Sørvig --- src/widgets/dialogs/qfontdialog.cpp | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'src/widgets/dialogs/qfontdialog.cpp') diff --git a/src/widgets/dialogs/qfontdialog.cpp b/src/widgets/dialogs/qfontdialog.cpp index 30004df1a7..2a68d29bda 100644 --- a/src/widgets/dialogs/qfontdialog.cpp +++ b/src/widgets/dialogs/qfontdialog.cpp @@ -333,13 +333,6 @@ void QFontDialogPrivate::init() QFontDialog::~QFontDialog() { -#ifdef Q_WS_MAC - Q_D(QFontDialog); - if (d->delegate) { - d->closeCocoaFontPanel(); - return; - } -#endif } /*! @@ -804,11 +797,6 @@ void QFontDialog::setCurrentFont(const QFont &font) if (QPlatformFontDialogHelper *helper = d->platformFontDialogHelper()) helper->setCurrentFont(font); } - -#ifdef Q_WS_MAC - if (d->delegate) - QFontDialogPrivate::setFont(d->delegate, font); -#endif } /*! @@ -911,11 +899,6 @@ QFontDialog::FontDialogOptions QFontDialog::options() const return QFontDialog::FontDialogOptions(int(d->options->options())); } -#ifdef Q_WS_MAC -// can only have one Cocoa font panel active -bool QFontDialogPrivate::sharedFontPanelAvailable = true; -#endif - /*! \since 4.5 \overload -- cgit v1.2.3