Eneboo - Documentación para desarrolladores
Métodos públicos
Referencia de la Clase FLPixmapView

#include <FLFieldDB.h>

Diagrama de herencias de FLPixmapView
QScrollView QFilePreview QFrame QFrame QWidget QWidget QWidget QWidget QPaintDevice QObject QPaintDevice QObject QPaintDevice QObject QPaintDevice QObject QPaintDevice QObject QPaintDevice QObject QPaintDevice QObject QPaintDevice QObject

Lista de todos los miembros.

Métodos públicos

 FLPixmapView (QWidget *parent=0)
void setPixmap (const QPixmap &pix)
void drawContents (QPainter *p, int, int, int, int)
void previewUrl (const QUrl &u)
void clear ()
QPixmap pixmap ()
void setAutoScaled (const bool autoScaled)

Documentación del constructor y destructor

FLPixmapView::FLPixmapView ( QWidget parent = 0)

Documentación de las funciones miembro

void FLPixmapView::clear ( )
void FLPixmapView::drawContents ( QPainter p,
int  clipx,
int  clipy,
int  clipw,
int  cliph 
) [virtual]

Reimplement this function if you are viewing a drawing area rather than a widget.

The function should draw the rectangle (clipx, clipy, clipw, cliph) of the contents using painter p. The clip rectangle is in the scrollview's coordinates.

For example:

    {
        // Fill a 40000 by 50000 rectangle at (100000,150000)

        // Calculate the coordinates...
        int x1 = 100000, y1 = 150000;
        int x2 = x1+40000-1, y2 = y1+50000-1;

        // Clip the coordinates so X/Windows will not have problems...
        if (x1 < clipx) x1=clipx;
        if (y1 < clipy) y1=clipy;
        if (x2 > clipx+clipw-1) x2=clipx+clipw-1;
        if (y2 > clipy+cliph-1) y2=clipy+cliph-1;

        // Paint using the small coordinates...
        if ( x2 >= x1 && y2 >= y1 )
            p->fillRect(x1, y1, x2-x1+1, y2-y1+1, red);
    }

The clip rectangle and translation of the painter p is already set appropriately.

Reimplementado de QScrollView.

QPixmap FLPixmapView::pixmap ( )
void FLPixmapView::previewUrl ( const QUrl url) [virtual]

This function is called by QFileDialog if a preview for the url should be shown. Reimplement this function to provide file previewing.

Implementa QFilePreview.

void FLPixmapView::setAutoScaled ( const bool  autoScaled)
void FLPixmapView::setPixmap ( const QPixmap pix)

La documentación para esta clase fue generada a partir de los siguientes ficheros:
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'