From kde-commits Tue May 15 11:41:54 2012 From: Giorgos Tsiapaliwkas Date: Tue, 15 May 2012 11:41:54 +0000 To: kde-commits Subject: [plasmate] editors/text: Remote the test from editors/text/tests. Message-Id: <20120515114154.D69D8A60A9 () git ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=133708227119175 Git commit 733f4dd68a1e0d142a80a795852d570e7bf9baaa by Giorgos Tsiapaliwkas. Committed on 15/05/2012 at 13:40. Pushed by tsiapaliwkas into branch 'master'. Remote the test from editors/text/tests. I removed the test because it didn't test the our code. We want to merge TextEditor in a KParts::MainWindow not in a QWidget D +0 -15 editors/text/CMakeLists.txt D +0 -43 editors/text/tests/test_text.cpp http://commits.kde.org/plasmate/733f4dd68a1e0d142a80a795852d570e7bf9baaa diff --git a/editors/text/CMakeLists.txt b/editors/text/CMakeLists.txt deleted file mode 100644 index cff15c2..0000000 --- a/editors/text/CMakeLists.txt +++ /dev/null @@ -1,15 +0,0 @@ -project( plasmate_text_editor_test ) - -find_package(KDE4 REQUIRED) -include(KDE4Defaults) - -add_definitions(${QT_DEFINITIONS} ${KDE4_DEFINITIONS}) -include_directories(${KDE4_INCLUDES} ../..) - -set( testtext_SRCS tests/test_text.cpp - texteditor.cpp -) - -kde4_add_executable( testtext TEST ${testtext_SRCS}) -target_link_libraries( testtext ${KDE4_KDEUI_LIBS} ${KDE4_KTEXTEDITOR_LIBS= } ${KDE4_PLASMA_LIBS} ) - diff --git a/editors/text/tests/test_text.cpp b/editors/text/tests/test_tex= t.cpp deleted file mode 100644 index 3bbcdff..0000000 --- a/editors/text/tests/test_text.cpp +++ /dev/null @@ -1,43 +0,0 @@ -#include -#include -#include -#include -#include -#include -#include - -#include "../texteditor.h" - -int main(int argc, char **argv) -{ -// KCmdLineArgs::init(argc, argv); -// KApplication app; - - QApplication app(argc, argv); - - QWidget *top =3D new QWidget(); - QVBoxLayout *vbox =3D new QVBoxLayout(top); - - TextEditor *ed =3D new TextEditor(top); - vbox->addWidget(ed); - -// QPushButton *save =3D new QPushButton( top ); -// save->setText("&Save"); -// vbox->addWidget(save); - -// QString filename; -// if ( argc !=3D 2 ) { -// filename =3D QDir::currentPath() + "/tests/plasma-applet-systemtray.de= sktop"; -// } -// else { -// filename =3D QDir::currentPath() + "/" + argv[1]; -// } - -// ed->setFilename( filename ); -// ed->readFile(); - -// QObject::connect( save, SIGNAL(clicked()), ed, SLOT(writeFile()) ); - top->show(); - - return app.exec(); -}