40
40
mWidget = new KPageWidget( this );
41
41
layout->addWidget( mWidget, 0, 0, 7, 1 );
43
connect( mWidget, SIGNAL( currentPageChanged( KPageWidgetItem*, KPageWidgetItem* ) ),
44
this, SLOT( currentPageChanged( KPageWidgetItem*, KPageWidgetItem* ) ) );
45
connect( mWidget, SIGNAL( pageToggled( KPageWidgetItem*, bool ) ),
46
this, SLOT( pageToggled( KPageWidgetItem*, bool ) ) );
43
connect( mWidget, SIGNAL(currentPageChanged(KPageWidgetItem*,KPageWidgetItem*)),
44
this, SLOT(currentPageChanged(KPageWidgetItem*,KPageWidgetItem*)) );
45
connect( mWidget, SIGNAL(pageToggled(KPageWidgetItem*,bool)),
46
this, SLOT(pageToggled(KPageWidgetItem*,bool)) );
49
49
QPushButton *button = new QPushButton( "Auto", this );
50
50
layout->addWidget( button, rowCount, 1 );
51
connect( button, SIGNAL( clicked() ), this, SLOT( setAutoFace() ) );
51
connect( button, SIGNAL(clicked()), this, SLOT(setAutoFace()) );
54
54
button = new QPushButton( "Plain", this );
55
55
layout->addWidget( button, rowCount, 1 );
56
connect( button, SIGNAL( clicked() ), this, SLOT( setPlainFace() ) );
56
connect( button, SIGNAL(clicked()), this, SLOT(setPlainFace()) );
59
59
button = new QPushButton( "List", this );
60
60
layout->addWidget( button, rowCount, 1 );
61
connect( button, SIGNAL( clicked() ), this, SLOT( setListFace() ) );
61
connect( button, SIGNAL(clicked()), this, SLOT(setListFace()) );
64
64
button = new QPushButton( "Tree", this );
65
65
layout->addWidget( button, rowCount, 1 );
66
connect( button, SIGNAL( clicked() ), this, SLOT( setTreeFace() ) );
66
connect( button, SIGNAL(clicked()), this, SLOT(setTreeFace()) );
69
69
button = new QPushButton( "Tabbed", this );
70
70
layout->addWidget( button, rowCount, 1 );
71
connect( button, SIGNAL( clicked() ), this, SLOT( setTabbedFace() ) );
71
connect( button, SIGNAL(clicked()), this, SLOT(setTabbedFace()) );
74
74
button = new QPushButton( "Add Page", this );
75
75
layout->addWidget( button, rowCount, 1 );
76
connect( button, SIGNAL( clicked() ), this, SLOT( addPage() ) );
76
connect( button, SIGNAL(clicked()), this, SLOT(addPage()) );
79
79
button = new QPushButton( "Add Sub Page", this );
80
80
layout->addWidget( button, rowCount, 1 );
81
connect( button, SIGNAL( clicked() ), this, SLOT( addSubPage() ) );
81
connect( button, SIGNAL(clicked()), this, SLOT(addSubPage()) );
84
84
button = new QPushButton( "Insert Page", this );
85
85
layout->addWidget( button, rowCount, 1 );
86
connect( button, SIGNAL( clicked() ), this, SLOT( insertPage() ) );
86
connect( button, SIGNAL(clicked()), this, SLOT(insertPage()) );
89
89
button = new QPushButton( "Delete Page", this );
90
90
layout->addWidget( button, rowCount, 1 );
91
connect( button, SIGNAL( clicked() ), this, SLOT( deletePage() ) );
91
connect( button, SIGNAL(clicked()), this, SLOT(deletePage()) );
94
94
KPageWidgetItem *item = mWidget->addPage( new QPushButton( "folder" ), "folder" );