summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeiko Becker <[email protected]>2017-09-12 21:38:58 +0200
committerHeiko Becker <[email protected]>2017-09-12 21:38:58 +0200
commitae33f68d615896aae37343754ecc3b9b0db91ee3 (patch)
tree69e39dff8cc708e11174e6d702c08e5a75454082
parent47db50412f3f06806da8bad8c6676364fb435cd8 (diff)
Remove unported dialogtest
While porting looks pretty easy I don't see why it should be part of kmix at all. If I read the history correctly it was added to show differences between QDialog and KDialog. It isn't kmix-specific or uses code from it.
-rw-r--r--tests/CMakeLists.txt9
-rw-r--r--tests/dialogtest.cpp70
-rw-r--r--tests/dialogtest.h23
3 files changed, 0 insertions, 102 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index 1028bdb..807beca 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -34,12 +34,3 @@ if (PULSEAUDIO_FOUND)
target_link_libraries(profiletest ${PULSEAUDIO_LIBRARY} ${PULSEAUDIO_MAINLOOP_LIBRARY} ${GLIB2_LIBRARIES})
endif (PULSEAUDIO_FOUND)
-########### next target ###############
-set(dialogtest_KDEINIT_SRCS dialogtest.cpp )
-
-kde4_add_kdeinit_executable( dialogtest ${dialogtest_KDEINIT_SRCS}
- )
-
-target_link_libraries(kdeinit_dialogtest ${KDE4_KDEUI_LIBS} )
-
-
diff --git a/tests/dialogtest.cpp b/tests/dialogtest.cpp
deleted file mode 100644
index 63f3a0d..0000000
--- a/tests/dialogtest.cpp
+++ /dev/null
@@ -1,70 +0,0 @@
-#include <dialogtest.h>
-
-#include <QCheckBox>
-#include <QLabel>
-#include <QScrollArea>
-#include <QVBoxLayout>
-#include <QDialog>
-
-#include <kaboutdata.h>
-#include <kcmdlineargs.h>
-
-
-int main(int argc, char *argv[])
-{
- KAboutData aboutData( "dialogtest", 0, ki18n("dialogtest"),
- "1.0", ki18n("bla"), KAboutData::License_GPL,
- ki18n("(c) 2000 by Christian Esken"));
-
- KCmdLineArgs::init( argc, argv, &aboutData );
- KCmdLineArgs::parsedArgs();
- App *app = new App();
- int ret = app->exec();
-
- delete app;
- return ret;
-}
-
-App::App() :KApplication() {
- DialogTest *dialog = new DialogTest();
- dialog->show();
-}
-
-DialogTest::DialogTest() : QDialog( 0)
-{
- /*
- setCaption("Configure" );
- setButtons( Ok|Cancel );
- setDefaultButton( Ok );
-*/
- /*
- QWidget * frame = new QWidget( this );
- setMainWidget( frame );
-*/
- QWidget * frame = this;
-
- QVBoxLayout* layout = new QVBoxLayout(frame );
- QLabel* qlb = new QLabel( "Configuration of the channels.", frame );
- layout->addWidget(qlb);
-
- QScrollArea* scrollArea = new QScrollArea(frame);
- scrollArea->setWidgetResizable(true); // avoid unnecesary scrollbars
- layout->addWidget(scrollArea);
-
- QWidget* vboxForScrollView = new QWidget();
- QGridLayout* grid = new QGridLayout(vboxForScrollView);
- grid->setHorizontalSpacing(0);
-
- for (int i=0; i<10; ++i ) {
- QCheckBox* cb = new QCheckBox( "abcdefg abcdefg abcdefg", vboxForScrollView );
- grid->addWidget(cb,i,0);
- cb = new QCheckBox( "", vboxForScrollView );
- grid->addWidget(cb,i,1);
- cb = new QCheckBox( "", vboxForScrollView );
- grid->addWidget(cb,i,2);
- }
-
- scrollArea->setWidget(vboxForScrollView);
-}
-
-
diff --git a/tests/dialogtest.h b/tests/dialogtest.h
deleted file mode 100644
index 3ad109a..0000000
--- a/tests/dialogtest.h
+++ /dev/null
@@ -1,23 +0,0 @@
-#ifndef DIALOGTEST_H
-#define DIALOGTEST_H
-
-#include <QCheckBox>
-
-#include <KApplication>
-
-
-class App : public KApplication
-{
- Q_OBJECT
- public:
- App();
-};
-
-class DialogTest : public QDialog
-{
- Q_OBJECT
- public:
- DialogTest();
-};
-
-#endif