Commit ae33f68d authored by Heiko Becker's avatar Heiko Becker 🏃

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.
parent 47db5041
......@@ -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} )
#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);
}
#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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment