[uim-commit] r482 - trunk
kzk at freedesktop.org
kzk at freedesktop.org
Wed Feb 2 09:23:22 PST 2005
Author: kzk
Date: 2005-02-02 09:23:18 -0800 (Wed, 02 Feb 2005)
New Revision: 482
Added:
trunk/qedittest.cpp
Modified:
trunk/Makefile.am
Log:
* add "qedittest" for testing to input Qt application
* Makefile.am
- add rules for qedittest
* qedittest.cpp
- new file
Modified: trunk/Makefile.am
===================================================================
--- trunk/Makefile.am 2005-02-02 17:09:35 UTC (rev 481)
+++ trunk/Makefile.am 2005-02-02 17:23:18 UTC (rev 482)
@@ -14,7 +14,7 @@
desktop_DATA = uim.desktop
-noinst_PROGRAMS = $(gtk_entry)
+noinst_PROGRAMS = $(gtk_entry) $(qedittest)
if GTK2
gtk_entry = gtk-entry
@@ -24,6 +24,13 @@
else
endif
+if QT
+qedittest = qedittest
+qedittest_SOURCES = qedittest.cpp
+qedittest_CXXFLAGS = $(UIM_QT_CFLAGS)
+qedittest_LDFLAGS = $(UIM_QT_LDFLAGS)
+endif
+
ACLOCAL_AMFLAGS = -I m4
ChangeLog:
Added: trunk/qedittest.cpp
===================================================================
--- trunk/qedittest.cpp 2005-02-02 17:09:35 UTC (rev 481)
+++ trunk/qedittest.cpp 2005-02-02 17:23:18 UTC (rev 482)
@@ -0,0 +1,31 @@
+#include <qapplication.h>
+#include <qlineedit.h>
+#include <qtextedit.h>
+#include <qsplitter.h>
+#include <qvbox.h>
+#include <qlabel.h>
+
+int main(int argc, char *argv[])
+{
+ QApplication app(argc, argv);
+
+ QVBox page;
+
+ QLabel *l = new QLabel("Edit Test", &page);
+ l->setAlignment(Qt::AlignCenter);
+
+ new QLabel(&page);
+
+ QVBox *linev = new QVBox(&page);
+ new QLabel("lineedit", linev);
+ new QLineEdit(linev);
+
+ QVBox *textv = new QVBox(&page);
+ new QLabel("textedit", textv);
+ new QTextEdit(textv);
+
+ app.setMainWidget(&page);
+ page.show();
+
+ return app.exec();
+}
More information about the Uim-commit
mailing list