Author: kzk
Date: Wed Feb  2 09:23:18 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   (original)
+++ trunk/Makefile.am   Wed Feb  2 09:23:18 2005
@@ -14,7 +14,7 @@
 desktop_DATA = uim.desktop
 
 
-noinst_PROGRAMS = $(gtk_entry)
+noinst_PROGRAMS = $(gtk_entry) $(qedittest)
 
 if GTK2
 gtk_entry = gtk-entry
@@ -22,6 +22,13 @@
 gtk_entry_LDADD = @GTK2_LIBS@
 gtk_entry_CFLAGS = @GTK2_CFLAGS@
 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

Added: trunk/qedittest.cpp
==============================================================================
--- (empty file)
+++ trunk/qedittest.cpp Wed Feb  2 09:23:18 2005
@@ -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();
+}

Reply via email to