You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
671 B
26 lines
671 B
15 years ago
|
#include <kapplication.h>
|
||
|
#include <kjanuswidget.h>
|
||
|
|
||
15 years ago
|
#include <tqstring.h>
|
||
|
#include <tqcheckbox.h>
|
||
|
#include <tqvbox.h>
|
||
15 years ago
|
|
||
|
int main(int argc, char** argv)
|
||
|
{
|
||
|
KApplication app(argc, argv, "JanusWidgetTest");
|
||
|
// -----
|
||
|
KJanusWidget* janus = new KJanusWidget( 0, 0, KJanusWidget::IconList );
|
||
|
|
||
15 years ago
|
TQVBox* page1 = janus->addVBoxPage( TQString( "Page1" ) ); // use i18n in real apps
|
||
|
TQCheckBox* cb1 = new TQCheckBox( "a", page1 );
|
||
15 years ago
|
|
||
15 years ago
|
TQVBox* page2 = janus->addVBoxPage( TQString( "Page2" ) );
|
||
|
TQCheckBox* cb2 = new TQCheckBox( "a", page2 );
|
||
15 years ago
|
|
||
|
janus->show();
|
||
15 years ago
|
TQObject::connect( &app, TQT_SIGNAL( lastWindowClosed() ), &app, TQT_SLOT( quit() ) );
|
||
15 years ago
|
|
||
|
return app.exec();
|
||
|
}
|
||
|
|