[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: playground/office/flake
From: Thomas Zander <zander () kde ! org>
Date: 2006-05-18 11:55:31
Message-ID: 1147953331.798151.9143.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 542138 by zander:
First version of a text painting shape. (created by boudewijn)
M +1 -1 env
M +1 -1 flake.pro
M +7 -1 testapp/mainwindow.cpp
M +3 -3 testapp/testapp.pro
A text (directory)
A text/KoTextShape.cpp [License: GPL (v2+)]
A text/KoTextShape.h [License: GPL (v2+)]
A text/text.pro
--- trunk/playground/office/flake/env #542137:542138
@@ -1,4 +1,4 @@
#!/bin/bash
-export LD_LIBRARY_PATH=lib:externals:$LD_LIBRARY_PATH
+export LD_LIBRARY_PATH=lib:externals:text:$LD_LIBRARY_PATH
alias makedocs="if test -e docs/undocumented-methods; then rm -f \
docs/undocumented-methods; fi && doxygen doxygen.conf 2>&1 | grep -10 Warning | perl \
-ne 'if(/Warning/){\$a=1;}if(/^Generating/){\$a=0;}if(\$a==1) {if(/of .* is not \
documented/) { open WARNS,\">>docs/undocumented-methods\"; print WARNS \$_;} else \
{print \$_;}}'"
--- trunk/playground/office/flake/flake.pro #542137:542138
@@ -1,3 +1,3 @@
TEMPLATE = subdirs
-SUBDIRS = externals lib testapp
+SUBDIRS = externals lib text testapp
CONFIG += ordered
--- trunk/playground/office/flake/testapp/mainwindow.cpp #542137:542138
@@ -40,6 +40,7 @@
#include <KoGfxEvent.h>
#include <KoSelection.h>
#include <KoLineBorder.h>
+#include <KoTextShape.h>
#include "math.h"
@@ -142,9 +143,14 @@
group->addChild(blue);
group->setZIndex(4);
+ KoTextShape *textShape = new KoTextShape();
+ textShape->setPosition(QPointF(120, 45));
+ textShape->resize(QSizeF(100, 100));
+ textShape->setBackground( Qt::white );
+
QList<KoShape *> objects;
objects << kgb << kgb2 << kgb3 << container << kgb4 << container2 << image << \
kgb5 <<
- red << white << blue << group;
+ red << white << blue << group << textShape;
return objects;
}
--- trunk/playground/office/flake/testapp/testapp.pro #542137:542138
@@ -8,8 +8,8 @@
# install
target.path = $$[QT_INSTALL_EXAMPLES]/mainwindows/flaketest
-sources.files = $$SOURCES $$HEADERS $$RESOURCES flaketest.pro
+sources.files = $$SOURCES $$HEADERS $$RESOURCES flaketest.pro
sources.path = $$[QT_INSTALL_EXAMPLES]/mainwindows/flaketest
-INCLUDEPATH = ../lib ../externals
-unix:LIBS += -lflake -lexternals -L../lib -L../externals
+INCLUDEPATH = ../lib ../text ../externals
+unix:LIBS += -lflake -lexternals -ltext -L../lib -L../externals -L../text
INSTALLS += target sources
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic