Ignore:
Timestamp:
Aug 2, 2010, 9:27:30 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.6.3 sources from branches/vendor/nokia/qt.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/qt3support/dialogs/q3filedialog.cpp

    r651 r769  
    476476static bool detailViewMode = false;
    477477
    478 static Q3CleanupHandler<QPixmap> qfd_cleanup_pixmap;
    479478static Q3CleanupHandler<QString> qfd_cleanup_string;
     479
     480static void qt_cleanup_fd_pixmaps();
     481typedef QList<QPixmap *> FDPixmaps;
     482Q_GLOBAL_STATIC_WITH_INITIALIZER(FDPixmaps, qfd_pixmaps, qAddPostRoutine(qt_cleanup_fd_pixmaps))
     483
     484static void qt_cleanup_fd_pixmaps()
     485{
     486    qDeleteAll(*qfd_pixmaps());
     487}
    480488
    481489static QString toRootIfNotExists( const QString &path )
     
    534542
    535543        openFolderIcon = new QPixmap((const char **)open_xpm);
    536         qfd_cleanup_pixmap.add(&openFolderIcon);
     544        qfd_pixmaps()->append(openFolderIcon);
    537545        symLinkDirIcon = new QPixmap((const char **)link_dir_xpm);
    538         qfd_cleanup_pixmap.add(&symLinkDirIcon);
     546        qfd_pixmaps()->append(symLinkDirIcon);
    539547        symLinkFileIcon = new QPixmap((const char **)link_file_xpm);
    540         qfd_cleanup_pixmap.add(&symLinkFileIcon);
     548        qfd_pixmaps()->append(symLinkFileIcon);
    541549        fileIcon = new QPixmap((const char **)file_xpm);
    542         qfd_cleanup_pixmap.add(&fileIcon);
     550        qfd_pixmaps()->append(fileIcon);
    543551        closedFolderIcon = new QPixmap((const char **)closed_xpm);
    544         qfd_cleanup_pixmap.add(&closedFolderIcon);
     552        qfd_pixmaps()->append(closedFolderIcon);
    545553        detailViewIcon = new QPixmap((const char **)detailedview_xpm);
    546         qfd_cleanup_pixmap.add(&detailViewIcon);
     554        qfd_pixmaps()->append(detailViewIcon);
    547555        multiColumnListViewIcon = new QPixmap((const char **)mclistview_xpm);
    548         qfd_cleanup_pixmap.add(&multiColumnListViewIcon);
     556        qfd_pixmaps()->append(multiColumnListViewIcon);
    549557        cdToParentIcon = new QPixmap((const char **)cdtoparent_xpm);
    550         qfd_cleanup_pixmap.add(&cdToParentIcon);
     558        qfd_pixmaps()->append(cdToParentIcon);
    551559        newFolderIcon = new QPixmap((const char **)newfolder_xpm);
    552         qfd_cleanup_pixmap.add(&newFolderIcon);
     560        qfd_pixmaps()->append(newFolderIcon);
    553561        previewInfoViewIcon
    554562            = new QPixmap((const char **)previewinfoview_xpm);
    555         qfd_cleanup_pixmap.add(&previewInfoViewIcon);
     563        qfd_pixmaps()->append(previewInfoViewIcon);
    556564        previewContentsViewIcon
    557565            = new QPixmap((const char **)previewcontentsview_xpm);
    558         qfd_cleanup_pixmap.add(&previewContentsViewIcon);
     566        qfd_pixmaps()->append(previewContentsViewIcon);
    559567        startCopyIcon = new QPixmap((const char **)start_xpm);
    560         qfd_cleanup_pixmap.add(&startCopyIcon);
     568        qfd_pixmaps()->append(startCopyIcon);
    561569        endCopyIcon = new QPixmap((const char **)end_xpm);
    562         qfd_cleanup_pixmap.add(&endCopyIcon);
     570        qfd_pixmaps()->append(endCopyIcon);
    563571        goBackIcon = new QPixmap((const char **)back_xpm);
    564         qfd_cleanup_pixmap.add(&goBackIcon);
     572        qfd_pixmaps()->append(goBackIcon);
    565573        fifteenTransparentPixels = new QPixmap(closedFolderIcon->width(), 1);
    566         qfd_cleanup_pixmap.add(&fifteenTransparentPixels);
     574        qfd_pixmaps()->append(fifteenTransparentPixels);
    567575        QBitmap m(fifteenTransparentPixels->width(), 1);
    568576        m.fill(Qt::color0);
Note: See TracChangeset for help on using the changeset viewer.