Ignore:
Timestamp:
Mar 8, 2010, 12:52:58 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.6.2 sources.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/gui/dialogs/qfiledialog_mac.mm

    r561 r651  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
     3** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
    44** All rights reserved.
    55** Contact: Nokia Corporation (qt-info@nokia.com)
     
    640640#ifndef QT_MAC_USE_COCOA
    641641#else
     642    Q_Q(QFileDialog);
    642643    QMacCocoaAutoReleasePool pool;
    643644    QNSOpenSavePanelDelegate *delegate = static_cast<QNSOpenSavePanelDelegate *>(mDelegate);
    644645    *(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
    645652    [delegate updateProperties];
    646653#endif
Note: See TracChangeset for help on using the changeset viewer.