Esempio n. 1
0
void CacheItem::draw(QPainter *painter, const GuiContext& ctx, const QRect* visibleRect)
{
    if (drawProxy)
        drawProxy(this, painter, ctx, visibleRect);
    else
        drawRaw(painter, ctx, visibleRect);
}
Esempio n. 2
0
bool FormGadget::handleGadgetCommand(UInt16 command, void* param)
{
    bool handled=false;
    switch (command) 
    {
        case formGadgetDrawCmd:
            drawProxy();
            handled=true;
            break;

        case formGadgetHandleEventCmd:
            assert(0!=param);
            handled=handleEvent(*static_cast<EventType*>(param));
            break;
    }
    return handled;
}