Changeset 62

Show
Ignore:
Timestamp:
02/23/06 20:40:49 (3 years ago)
Author:
krobillard
Message:

Qt - Added 'destroy native.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/orca/qt/qorca.cpp

    r42 r62  
    844844 
    845845 
     846static void destroyNative( OValue* a1 ) 
     847{ 
     848    WIDPool::REC* rec = qEnv.pool.record( a1->integer ); 
     849    if( rec ) 
     850    { 
     851        delete rec->widget; 
     852    } 
     853    orResultNONE; 
     854} 
     855 
     856 
    846857#define REF_RF_SAVE    a1+1 
    847858#define REF_RF_DIR     a1+2 
     
    11511162  "dialog: native [layout [block!]]\n" 
    11521163  "widget: native [layout [block!]]\n" 
     1164  "destroy: native [wid [integer!]]\n" 
    11531165  "request-file: native [title [string!] /save /dir /init path]\n" 
    11541166  "enable:   native [wid [integer!]]\n" 
     
    12191231    orNative( (void*) dialogNative,         "dialog" ); 
    12201232    orNative( (void*) widgetNative,         "widget" ); 
     1233    orNative( (void*) destroyNative,        "destroy" ); 
    12211234    orNative( (void*) requestFileNative,    "request-file" ); 
    12221235    orNative( (void*) enableNative,         "enable" );