equal
deleted
inserted
replaced
1 /**************************************************************************** |
1 /**************************************************************************** |
2 ** |
2 ** |
3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). |
3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). |
4 ** All rights reserved. |
4 ** All rights reserved. |
5 ** Contact: Nokia Corporation (qt-info@nokia.com) |
5 ** Contact: Nokia Corporation (qt-info@nokia.com) |
6 ** |
6 ** |
7 ** This file is part of the QtGui module of the Qt Toolkit. |
7 ** This file is part of the QtGui module of the Qt Toolkit. |
8 ** |
8 ** |
637 |
637 |
638 void QFileDialogPrivate::setFilter_sys() |
638 void QFileDialogPrivate::setFilter_sys() |
639 { |
639 { |
640 #ifndef QT_MAC_USE_COCOA |
640 #ifndef QT_MAC_USE_COCOA |
641 #else |
641 #else |
|
642 Q_Q(QFileDialog); |
642 QMacCocoaAutoReleasePool pool; |
643 QMacCocoaAutoReleasePool pool; |
643 QNSOpenSavePanelDelegate *delegate = static_cast<QNSOpenSavePanelDelegate *>(mDelegate); |
644 QNSOpenSavePanelDelegate *delegate = static_cast<QNSOpenSavePanelDelegate *>(mDelegate); |
644 *(delegate->mQDirFilter) = model->filter(); |
645 *(delegate->mQDirFilter) = model->filter(); |
|
646 delegate->mFileMode = fileMode; |
|
647 [delegate->mSavePanel setTitle:qt_mac_QStringToNSString(q->windowTitle())]; |
|
648 [delegate->mSavePanel setPrompt:[delegate strip:acceptLabel]]; |
|
649 if (fileNameLabelExplicitlySat) |
|
650 [delegate->mSavePanel setNameFieldLabel:[delegate strip:qFileDialogUi->fileNameLabel->text()]]; |
|
651 |
645 [delegate updateProperties]; |
652 [delegate updateProperties]; |
646 #endif |
653 #endif |
647 } |
654 } |
648 |
655 |
649 void QFileDialogPrivate::selectNameFilter_sys(const QString &filter) |
656 void QFileDialogPrivate::selectNameFilter_sys(const QString &filter) |