Changeset 846 for trunk/src/gui/dialogs/qfontdialog.cpp
- Timestamp:
- May 5, 2011, 5:36:53 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.7.2 (added) merged: 845 /branches/vendor/nokia/qt/current merged: 844 /branches/vendor/nokia/qt/4.6.3 removed
- Property svn:mergeinfo changed
-
trunk/src/gui/dialogs/qfontdialog.cpp
r769 r846 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 201 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation ([email protected]) … … 175 175 Q_Q(QFontDialog); 176 176 177 178 179 180 181 177 182 q->setSizeGripEnabled(true); 178 183 q->setWindowTitle(QFontDialog::tr("Select Font")); … … 330 335 familyList->setFocus(); 331 336 retranslateStrings(); 332 333 #ifdef Q_WS_MAC334 delegate = 0;335 #endif336 337 } 337 338 … … 346 347 Q_D(QFontDialog); 347 348 if (d->delegate) { 348 QFontDialogPrivate::closeCocoaFontPanel(d->delegate); 349 QFontDialogPrivate::sharedFontPanelAvailable = true; 349 d->closeCocoaFontPanel(); 350 350 return; 351 351 } … … 429 429 const QString &title, QFontDialog::FontDialogOptions options) 430 430 { 431 #ifdef Q_WS_MAC432 if (!(options & QFontDialog::DontUseNativeDialog)433 && QFontDialogPrivate::sharedFontPanelAvailable) {434 return QFontDialogPrivate::execCocoaFontPanel(ok, initial, parent,435 title.isEmpty() ? QFontDialog::tr("Select Font") : title, options);436 }437 #endif438 439 431 QFontDialog dlg(parent); 440 432 dlg.setOptions(options); … … 989 981 void QFontDialog::setVisible(bool visible) 990 982 { 991 Q_D(QFontDialog); 992 if (visible) { 993 if (testAttribute(Qt::WA_WState_ExplicitShowHide) && !testAttribute(Qt::WA_WState_Hidden)) 994 return; 995 } else if (testAttribute(Qt::WA_WState_ExplicitShowHide) && testAttribute(Qt::WA_WState_Hidden)) 983 if (testAttribute(Qt::WA_WState_ExplicitShowHide) && testAttribute(Qt::WA_WState_Hidden) != visible) 996 984 return; 997 985 #ifdef Q_WS_MAC 986 998 987 if (d->canBeNativeDialog()){ 999 988 if (d->setVisible_sys(visible)){
Note:
See TracChangeset
for help on using the changeset viewer.