~ubuntu-branches/ubuntu/hardy/uim/hardy

« back to all changes in this revision

Viewing changes to qedittest.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Masahito Omote
  • Date: 2005-12-04 13:10:42 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051204131042-ktzc8b17zi7a3cw8
Tags: 1:0.4.9.1-1
* New upstream release
* libuim0-nox, libuim-nox-dev, and libuim0-dbg-nox is now obsolete.
  Because libuim0 does not depends on X11. They now become dummy package,
  therefore you can safely remove them.
* Add --enable-debug in configure again.
* debian/patches/08_fix_privilage_escalation_CVE_2005_3149: disabled.
* Fix Error on purge because update-uim-config is not found.
  (closes: Bug#339345)
* uim-qt: New package for Qt utilities for uim. qt-immodule does not
  contained yet because of Debian's Qt3 does not support immodule and
  because uim does not recognize libqt4-dev's headers properly. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include <qapplication.h>
 
2
#include <qlineedit.h>
 
3
#include <qtextedit.h>
 
4
#include <qsplitter.h>
 
5
#include <qvbox.h>
 
6
#include <qlabel.h>
 
7
 
 
8
int main(int argc, char *argv[])
 
9
{
 
10
    QApplication app(argc, argv);
 
11
 
 
12
    QVBox page;
 
13
 
 
14
    QLabel *l = new QLabel("Edit Test", &page);
 
15
    l->setAlignment(Qt::AlignCenter);
 
16
 
 
17
    new QLabel(&page);
 
18
 
 
19
    QVBox *linev = new QVBox(&page);
 
20
    new QLabel("lineedit", linev);
 
21
    new QLineEdit(linev);
 
22
 
 
23
    QVBox *textv = new QVBox(&page);
 
24
    new QLabel("textedit", textv);
 
25
    new QTextEdit(textv);
 
26
 
 
27
    app.setMainWidget(&page);
 
28
    page.show();
 
29
 
 
30
    return app.exec();
 
31
}