|
|
|
@ -42,7 +42,7 @@ KFeedbackDialog::KFeedbackDialog( const TQString & feedbackMailAddress,
|
|
|
|
|
setHelp( helpTopic );
|
|
|
|
|
|
|
|
|
|
_form = new KFeedbackForm( feedbackMailAddress, plainPage() );
|
|
|
|
|
Q_CHECK_PTR( _form );
|
|
|
|
|
TQ_CHECK_PTR( _form );
|
|
|
|
|
|
|
|
|
|
layout->addWidget( _form );
|
|
|
|
|
checkSendButton();
|
|
|
|
@ -96,7 +96,7 @@ KFeedbackForm::KFeedbackForm( const TQString & feedbackMailAddress,
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
_questionList = new KFeedbackQuestionList( this );
|
|
|
|
|
Q_CHECK_PTR( _questionList );
|
|
|
|
|
TQ_CHECK_PTR( _questionList );
|
|
|
|
|
|
|
|
|
|
connect( _questionList, TQT_SIGNAL( checkComplete() ),
|
|
|
|
|
this, TQT_SLOT ( slotCheckComplete() ) );
|
|
|
|
@ -107,21 +107,21 @@ KFeedbackForm::KFeedbackForm( const TQString & feedbackMailAddress,
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
TQHBox * hbox = new TQHBox( this );
|
|
|
|
|
Q_CHECK_PTR( hbox );
|
|
|
|
|
TQ_CHECK_PTR( hbox );
|
|
|
|
|
|
|
|
|
|
TQSizePolicy pol( TQSizePolicy::Fixed, TQSizePolicy::Fixed ); // hor / vert
|
|
|
|
|
|
|
|
|
|
label = new TQLabel( i18n( "Questions marked with " ), hbox );
|
|
|
|
|
Q_CHECK_PTR( label );
|
|
|
|
|
TQ_CHECK_PTR( label );
|
|
|
|
|
label->setSizePolicy( pol );
|
|
|
|
|
|
|
|
|
|
label = new TQLabel( hbox );
|
|
|
|
|
Q_CHECK_PTR( label );
|
|
|
|
|
TQ_CHECK_PTR( label );
|
|
|
|
|
label->setPixmap( KGlobal::iconLoader()->loadIcon( "edit", KIcon::Small ) );
|
|
|
|
|
label->setSizePolicy( pol );
|
|
|
|
|
|
|
|
|
|
label = new TQLabel( i18n( " must be answered before a mail can be sent.") , hbox );
|
|
|
|
|
Q_CHECK_PTR( label );
|
|
|
|
|
TQ_CHECK_PTR( label );
|
|
|
|
|
label->setSizePolicy( pol );
|
|
|
|
|
|
|
|
|
|
new TQWidget( hbox ); // Fill any leftover space to the right.
|
|
|
|
@ -131,8 +131,8 @@ KFeedbackForm::KFeedbackForm( const TQString & feedbackMailAddress,
|
|
|
|
|
// Free-text comment field
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
label = new TQLabel( "\n" + i18n( "&Additional Comments:" ), this ); Q_CHECK_PTR( label );
|
|
|
|
|
_comment = new TQMultiLineEdit( this ); Q_CHECK_PTR( _comment );
|
|
|
|
|
label = new TQLabel( "\n" + i18n( "&Additional Comments:" ), this ); TQ_CHECK_PTR( label );
|
|
|
|
|
_comment = new TQMultiLineEdit( this ); TQ_CHECK_PTR( _comment );
|
|
|
|
|
|
|
|
|
|
label->setBuddy( _comment );
|
|
|
|
|
_comment->setWordWrap( TQMultiLineEdit::FixedColumnWidth );
|
|
|
|
@ -290,7 +290,7 @@ KFeedbackQuestionList::addQuestion( const TQString & text,
|
|
|
|
|
KFeedbackQuestion * question = new KFeedbackQuestion( this, text, id,
|
|
|
|
|
exclusiveAnswer,
|
|
|
|
|
required );
|
|
|
|
|
Q_CHECK_PTR( question );
|
|
|
|
|
TQ_CHECK_PTR( question );
|
|
|
|
|
|
|
|
|
|
return question;
|
|
|
|
|
}
|
|
|
|
@ -305,7 +305,7 @@ KFeedbackQuestionList::addYesNoQuestion( const TQString & text,
|
|
|
|
|
KFeedbackQuestion * question = new KFeedbackQuestion( this, text, id,
|
|
|
|
|
true, // exclusive
|
|
|
|
|
required );
|
|
|
|
|
Q_CHECK_PTR( question );
|
|
|
|
|
TQ_CHECK_PTR( question );
|
|
|
|
|
question->addAnswer( i18n( "yes" ), "yes" );
|
|
|
|
|
question->addAnswer( i18n( "no" ), "no" );
|
|
|
|
|
}
|
|
|
|
|