Qt:Документация 4.3.2/q3fileiconprovider

Материал из Wiki.crossplatform.ru

Перейти к: навигация, поиск
40px Внимание: Актуальная версия перевода документации находится здесь

__NOTOC__

Image:qt-logo.png

Главная · Все классы · Основные классы · Классы по группам · Модули · Функции

Image:trolltech-logo.png

Содержание

[править] Q3FileIconProvider Class Reference
[ Qt3Support module]

The Q3FileIconProvider class provides icons for Q3FileDialog to use. Далее...

 #include <Q3FileIconProvider>

This class is part of the Qt 3 support library. It is provided to keep old source code working. Мы настоятельно не рекомендуем использовать этот класс в новом коде. See Porting to Qt 4 for more information.

Inherits QObject.

[править] Открытые функции

  • 29 открытых функций, унаследованных от QObject

[править] Дополнительные унаследованные члены

  • 1 свойство, унаследованное от QObject
  • 1 открытый слот, унаследованный от QObject
  • 1 сигнал, унаследованный от QObject
  • 5 статических открытых членов, унаследованных от QObject
  • 7 защищенных функций, унаследованных от QObject

[править] Подробное описание

The Q3FileIconProvider class provides icons for Q3FileDialog to use.

By default Q3FileIconProvider is not used, but any application or library can subclass it, reimplement pixmap() to return a suitable icon, and make all Q3FileDialog objects use it by calling the static function Q3FileDialog::setIconProvider().

It is advisable to make all the icons that Q3FileIconProvider returns be the same size or at least the same width. This makes the list view look much better.

See also Q3FileDialog.


[править] Описание функций-членов

[править]
Q3FileIconProvider::Q3FileIconProvider ( QObject * parent = 0, const char * name = 0 )

Constructs an empty file icon provider called name, with the parent parent.

[править]
const QPixmap * Q3FileIconProvider::pixmap ( const QFileInfo & info ) [virtual]

Returns a pointer to a pixmap that should be used to signify the file with the information info.

If pixmap() returns 0, Q3FileDialog draws the default pixmap.

The default implementation returns particular icons for files, directories, link-files and link-directories. It returns a blank "icon" for other types.

If you return a pixmap here, it should measure 16x16 pixels.



Copyright © 2007 Trolltech Trademarks
Qt 4.3.2