Back to index

im-sdk  12.3.91
Functions
IIIMLineEdit.cpp File Reference
#include <qdatetime.h>
#include <qapplication.h>
#include "IIIMQKeyEvent.hh"
#include "IIIMPreedit.hh"
#include "IIIMLineEdit.hh"

Go to the source code of this file.

Functions

int main (int argc, char **argv)

Function Documentation

int main ( int  argc,
char **  argv 
)

Definition at line 257 of file IIIMLineEdit.cpp.

{
    IIIMCF_attr attr;
    IIIMCF_handle h;
    int r;
    QApplication app(argc, argv);
    iiimcf_initialize(IIIMCF_ATTR_NULL);
    iiimcf_create_attr(&attr);
    iiimcf_attr_put_string_value(attr, IIIMCF_ATTR_CLIENT_TYPE,
                             "Qt based sample IIIM client");
    if (iiimcf_create_handle(attr, &h) != IIIMF_STATUS_SUCCESS) {
       return 255;
    }
    iiimcf_destroy_attr(attr);

    IIIMLineEdit *lineedit = new IIIMLineEdit(h);
    app.setMainWidget(lineedit);
    lineedit->show();
    r = app.exec();
    delete lineedit;
    iiimcf_destroy_handle(h);
    iiimcf_finalize();
    return r;
}

Here is the call graph for this function: