~ubuntu-branches/ubuntu/utopic/kde4libs/utopic

« back to all changes in this revision

Viewing changes to kdeui/tests/kpagewidgettest.cpp

  • Committer: Package Import Robot
  • Author(s): Jonathan Kolberg
  • Date: 2012-03-03 00:25:28 UTC
  • mfrom: (1.14.15)
  • Revision ID: package-import@ubuntu.com-20120303002528-chhwyfluldkicy5k
Tags: 4:4.8.1-0ubuntu1
* New upstream release
  - Update symbol files

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
  mWidget = new KPageWidget( this );
41
41
  layout->addWidget( mWidget, 0, 0, 7, 1 );
42
42
 
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)) );
47
47
 
48
48
  int rowCount = 0;
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()) );
52
52
  rowCount++;
53
53
 
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()) );
57
57
  rowCount++;
58
58
 
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()) );
62
62
  rowCount++;
63
63
 
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()) );
67
67
  rowCount++;
68
68
 
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()) );
72
72
  rowCount++;
73
73
 
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()) );
77
77
  rowCount++;
78
78
 
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()) );
82
82
  rowCount++;
83
83
 
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()) );
87
87
  rowCount++;
88
88
 
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()) );
92
92
  rowCount++;
93
93
 
94
94
  KPageWidgetItem *item = mWidget->addPage( new QPushButton( "folder" ), "folder" );