~ubuntu-branches/ubuntu/quantal/kdepim/quantal

« back to all changes in this revision

Viewing changes to kleopatra/crypto/gui/wizard.cpp

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2011-12-15 14:17:51 UTC
  • mto: This revision was merged to the branch mainline in revision 193.
  • Revision ID: package-import@ubuntu.com-20111215141751-bmhdpiwl23wd9w26
Tags: upstream-4.7.90
ImportĀ upstreamĀ versionĀ 4.7.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
135
135
    QDialogButtonBox * const box = new QDialogButtonBox;
136
136
    
137
137
    cancelButton = box->addButton( QDialogButtonBox::Cancel );
138
 
    q->connect( cancelButton, SIGNAL( clicked() ), q, SLOT( reject() ) );
 
138
    q->connect( cancelButton, SIGNAL(clicked()), q, SLOT(reject()) );
139
139
 
140
140
    backButton = new QPushButton;
141
141
    backButton->setText( i18n( "Back" ) );
142
 
    q->connect( backButton, SIGNAL( clicked() ), q, SLOT( back() ) );
 
142
    q->connect( backButton, SIGNAL(clicked()), q, SLOT(back()) );
143
143
    box->addButton( backButton, QDialogButtonBox::ActionRole );
144
144
 
145
145
    nextButton = new KPushButton;
146
146
    nextButton->setGuiItem( nextItem );
147
 
    q->connect( nextButton, SIGNAL( clicked() ), q, SLOT( next() ) );
 
147
    q->connect( nextButton, SIGNAL(clicked()), q, SLOT(next()) );
148
148
    box->addButton( nextButton, QDialogButtonBox::ActionRole );
149
149
    buttonLayout->addWidget( box );
150
150
    
151
151
    top->addWidget( buttonWidget );
152
152
    
153
 
    q->connect( q, SIGNAL( rejected() ), q, SIGNAL( canceled() ) ); 
 
153
    q->connect( q, SIGNAL(rejected()), q, SIGNAL(canceled()) ); 
154
154
}
155
155
 
156
156
Wizard::Private::~Private() { kDebug(); }
213
213
    kleo_assert( d->idToPage.find( id ) == d->idToPage.end() );
214
214
    d->idToPage[id] = widget;
215
215
    d->stack->addWidget( widget );
216
 
    connect( widget, SIGNAL( completeChanged() ), this, SLOT( updateButtonStates() ) );
217
 
    connect( widget, SIGNAL( titleChanged() ), this, SLOT( updateHeader() ) );
218
 
    connect( widget, SIGNAL( subTitleChanged() ), this, SLOT( updateHeader() ) );
219
 
    connect( widget, SIGNAL( explanationChanged() ), this, SLOT( updateHeader() ) );
220
 
    connect( widget, SIGNAL( autoAdvanceChanged() ), this, SLOT( updateButtonStates() ) );
221
 
    connect( widget, SIGNAL( windowTitleChanged(QString) ), this, SLOT( setWindowTitle(QString) ) );
 
216
    connect( widget, SIGNAL(completeChanged()), this, SLOT(updateButtonStates()) );
 
217
    connect( widget, SIGNAL(titleChanged()), this, SLOT(updateHeader()) );
 
218
    connect( widget, SIGNAL(subTitleChanged()), this, SLOT(updateHeader()) );
 
219
    connect( widget, SIGNAL(explanationChanged()), this, SLOT(updateHeader()) );
 
220
    connect( widget, SIGNAL(autoAdvanceChanged()), this, SLOT(updateButtonStates()) );
 
221
    connect( widget, SIGNAL(windowTitleChanged(QString)), this, SLOT(setWindowTitle(QString)) );
222
222
}
223
223
 
224
224
void Wizard::setPageOrder( const std::vector<int>& pageOrder )