Q3ColorDrag Class ReferenceThe Q3ColorDrag class provides a drag and drop object for transferring colors between widgets. Далее... #include <Q3ColorDrag> Данный класс является частью библиотеки поддержки Qt 3. Он предоставлен для поддержки ранее написанного кода. Мы настоятельно не рекомендуем использовать этот класс в новом коде. Для получения дополнительной информации смотрите Портирование на Qt 4. Inherits: Q3StoredDrag. Открытые функции
Статические открытые члены
Дополнительные унаследованные члены
Подробное описаниеThe Q3ColorDrag class provides a drag and drop object for transferring colors between widgets. This class provides a drag object which can be used to transfer data about colors for drag and drop and in the clipboard. For example, it is used in QColorDialog. The color is set in the constructor but can be changed with setColor(). For more information about drag and drop, see the Q3DragObject class and the drag and drop documentation. Описание функций-членовQ3ColorDrag::Q3ColorDrag ( const QColor & col, QWidget * dragsource = 0, const char * name = 0 )Constructs a color drag object with the given col. Passes dragsource and name to the Q3StoredDrag constructor. Q3ColorDrag::Q3ColorDrag ( QWidget * dragsource = 0, const char * name = 0 )Constructs a color drag object with a white color. Passes dragsource and name to the Q3StoredDrag constructor. bool Q3ColorDrag::canDecode ( QMimeSource * source ) [static]Returns true if the color drag object can decode the MIME source; otherwise returns false. bool Q3ColorDrag::decode ( QMimeSource * source, QColor & color ) [static]Decodes the MIME source, and sets the decoded values to the given color. Returns true if the decoding is successful. Returns false if the size of the encoded data is not the expected size. void Q3ColorDrag::setColor ( const QColor & color )Sets the color of the color drag. |
Попытка перевода Qt документации. Если есть желание присоединиться, или если есть замечания или пожелания, то заходите на форум: Перевод Qt документации на русский язык... Люди внесшие вклад в перевод: Команда переводчиков |