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