[SCM] Kaboom - Debian KDE 3->4 migration tool branch, master, updated. 4fd4eb9b808e4001a435f78fb4e2bfda9eed4af8
George Kiagiadakis
gkiagia-guest at alioth.debian.org
Sat Feb 28 12:10:12 UTC 2009
The following commit has been merged in the master branch:
commit 4fd4eb9b808e4001a435f78fb4e2bfda9eed4af8
Author: George Kiagiadakis <gkiagia at users.sourceforge.net>
Date: Sat Feb 28 14:09:47 2009 +0200
Remove the test.
diff --git a/diroperations/unit_test/test.cpp b/diroperations/unit_test/test.cpp
deleted file mode 100644
index 6bdf2a5..0000000
--- a/diroperations/unit_test/test.cpp
+++ /dev/null
@@ -1,59 +0,0 @@
-/*
- Copyright (C) 2009 George Kiagiadakis <gkiagia at users.sourceforge.net>
-
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation, either version 2 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-*/
-#include "test.h"
-#include "progresswidget.h"
-#include <QVBoxLayout>
-#include <QApplication>
-#include <QDebug>
-#include <QLineEdit>
-#include <QPushButton>
-#include <cstdlib>
-
-Test::Test()
- :QDialog()
-{
- QVBoxLayout *lay = new QVBoxLayout(this);
- m_source = new QLineEdit(this);
- lay->addWidget(m_source);
- m_dest = new QLineEdit(this);
- lay->addWidget(m_dest);
-
- QPushButton *m_button = new QPushButton("copy", this);
- connect(m_button, SIGNAL(clicked()), this, SLOT(docopy()));
- lay->addWidget(m_button);
-
- m_progressWidget = new ProgressWidget(this);
- lay->addWidget(m_progressWidget);
-}
-
-void Test::docopy()
-{
- try {
- DirOperations::recursiveCpDir(m_source->text(), m_dest->text(), DirOperations::OverWrite, m_progressWidget);
- } catch (const DirOperations::Exception & e) {
- qDebug() << e.what();
- std::exit(1);
- }
-}
-
-int main(int argc, char **argv)
-{
- QApplication a(argc, argv);
- Test t;
- t.show();
- return a.exec();
-}
diff --git a/diroperations/unit_test/test.h b/diroperations/unit_test/test.h
deleted file mode 100644
index 503b11d..0000000
--- a/diroperations/unit_test/test.h
+++ /dev/null
@@ -1,38 +0,0 @@
-/*
- Copyright (C) 2009 George Kiagiadakis <gkiagia at users.sourceforge.net>
-
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation, either version 2 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-*/
-#ifndef TEST_H
-#define TEST_H
-
-#include <QDialog>
-class QLineEdit;
-class ProgressWidget;
-
-class Test : public QDialog
-{
- Q_OBJECT
-public:
- Test();
-
-public slots:
- void docopy();
-
-private:
- QLineEdit *m_source, *m_dest;
- ProgressWidget *m_progressWidget;
-};
-
-#endif
diff --git a/diroperations/unit_test/unit_test.pro b/diroperations/unit_test/unit_test.pro
deleted file mode 100644
index 8da2fcd..0000000
--- a/diroperations/unit_test/unit_test.pro
+++ /dev/null
@@ -1,14 +0,0 @@
-######################################################################
-# Automatically generated by qmake (2.01a) Wed Feb 18 14:30:18 2009
-######################################################################
-
-TEMPLATE = app
-TARGET = diroperations_test
-DEPENDPATH += .
-INCLUDEPATH += . ..
-
-# Input
-HEADERS += test.h ../diroperations.h ../progresswidget.h
-SOURCES += test.cpp ../diroperations.cpp ../progresswidget.cpp
-
-CONFIG += qt debug
--
Kaboom - Debian KDE 3->4 migration tool
More information about the pkg-kde-commits
mailing list