From 9c02dbb59ce57c68dc177d9294b980bf114a3e11 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Wed, 24 Jul 2013 15:59:03 -0500 Subject: Update to TDE R14 API --- doc/html/kfeedback_8cpp-source.html | 124 ++++++++++++++++++------------------ 1 file changed, 62 insertions(+), 62 deletions(-) (limited to 'doc/html/kfeedback_8cpp-source.html') diff --git a/doc/html/kfeedback_8cpp-source.html b/doc/html/kfeedback_8cpp-source.html index 32b9007..2906555 100644 --- a/doc/html/kfeedback_8cpp-source.html +++ b/doc/html/kfeedback_8cpp-source.html @@ -30,28 +30,28 @@ 00013 */ 00014 00015 -00016 #include <qheader.h> -00017 #include <qlayout.h> -00018 #include <qlabel.h> -00019 #include <qmultilineedit.h> -00020 #include <qhbox.h> +00016 #include <ntqheader.h> +00017 #include <ntqlayout.h> +00018 #include <ntqlabel.h> +00019 #include <ntqmultilineedit.h> +00020 #include <ntqhbox.h> 00021 -00022 #include <kglobal.h> -00023 #include <kapplication.h> -00024 #include <klocale.h> +00022 #include <tdeglobal.h> +00023 #include <tdeapplication.h> +00024 #include <tdelocale.h> 00025 #include <kdebug.h> -00026 #include <kaboutdata.h> +00026 #include <tdeaboutdata.h> 00027 #include <kiconloader.h> 00028 #include <kurl.h> -00029 #include <kdeversion.h> +00029 #include <tdeversion.h> 00030 00031 #include "kfeedback.h" 00032 00033 -00034 KFeedbackDialog::KFeedbackDialog( const QString & feedbackMailAddress, const QString & helpTopic ) +00034 KFeedbackDialog::KFeedbackDialog( const TQString & feedbackMailAddress, const TQString & helpTopic ) 00035 : KDialogBase( Plain, i18n( "Feedback" ), Apply | ( helpTopic.isEmpty() ? Cancel : Cancel | Help ), Apply ) 00036 { -00037 QVBoxLayout * layout = new QVBoxLayout( plainPage(), 0, spacingHint() ); +00037 TQVBoxLayout * layout = new TQVBoxLayout( plainPage(), 0, spacingHint() ); 00038 // setButtonApplyText( i18n( "&Mail this..." ) ); deprecated 00039 setButtonApply(KGuiItem (i18n( "&Mail this..." ))); 00040 @@ -94,16 +94,16 @@ 00077 00078 00079 -00080 KFeedbackForm::KFeedbackForm( const QString & feedbackMailAddress, -00081 QWidget * parent ) -00082 : QVBox( parent ) +00080 KFeedbackForm::KFeedbackForm( const TQString & feedbackMailAddress, +00081 TQWidget * parent ) +00082 : TQVBox( parent ) 00083 , _feedbackMailAddress( feedbackMailAddress ) 00084 { 00085 // 00086 // Explanation above the question list 00087 // 00088 -00089 QLabel * label = new QLabel( i18n( "<p><b>Please tell us your opinion about this program.</b></p>" +00089 TQLabel * label = new TQLabel( i18n( "<p><b>Please tell us your opinion about this program.</b></p>" 00090 "<p>You will be able to review everything in your mailer " 00091 "before any mail is sent.<br>" 00092 "Nothing will be sent behind your back.</p>" @@ -123,39 +123,39 @@ 00106 // Explanation below the question list 00107 // 00108 -00109 QHBox * hbox = new QHBox( this ); +00109 TQHBox * hbox = new TQHBox( this ); 00110 CHECK_PTR( hbox ); 00111 -00112 QSizePolicy pol( QSizePolicy::Fixed, QSizePolicy::Fixed ); // hor / vert +00112 TQSizePolicy pol( TQSizePolicy::Fixed, TQSizePolicy::Fixed ); // hor / vert 00113 -00114 label = new QLabel( i18n( "Questions marked with " ), hbox ); +00114 label = new TQLabel( i18n( "Questions marked with " ), hbox ); 00115 CHECK_PTR( label ); 00116 label->setSizePolicy( pol ); 00117 -00118 label = new QLabel( hbox ); +00118 label = new TQLabel( hbox ); 00119 CHECK_PTR( label ); -00120 label->setPixmap( KGlobal::iconLoader()->loadIcon( "edit", KIcon::Small ) ); +00120 label->setPixmap( TDEGlobal::iconLoader()->loadIcon( "edit", TDEIcon::Small ) ); 00121 label->setSizePolicy( pol ); 00122 -00123 label = new QLabel( i18n( " must be answered before a mail can be sent.") , hbox ); +00123 label = new TQLabel( i18n( " must be answered before a mail can be sent.") , hbox ); 00124 CHECK_PTR( label ); 00125 label->setSizePolicy( pol ); 00126 -00127 new QWidget( hbox ); // Fill any leftover space to the right. +00127 new TQWidget( hbox ); // Fill any leftover space to the right. 00128 00129 00130 // 00131 // Free-text comment field 00132 // 00133 -00134 label = new QLabel( "\n" + i18n( "&Additional comments:" ), this ); CHECK_PTR( label ); -00135 _comment = new QMultiLineEdit( this ); CHECK_PTR( _comment ); +00134 label = new TQLabel( "\n" + i18n( "&Additional comments:" ), this ); CHECK_PTR( label ); +00135 _comment = new TQMultiLineEdit( this ); CHECK_PTR( _comment ); 00136 00137 label->setBuddy( _comment ); -00138 #if (QT_VERSION < 300) +00138 #if (TQT_VERSION < 300) 00139 _comment->setFixedVisibleLines( 5 ); 00140 #endif -00141 _comment->setWordWrap( QMultiLineEdit::FixedColumnWidth ); +00141 _comment->setWordWrap( TQMultiLineEdit::FixedColumnWidth ); 00142 _comment->setWrapColumnOrWidth( 70 ); 00143 } 00144 @@ -173,9 +173,9 @@ 00156 // Build mail subject 00157 // 00158 -00159 QString subject; +00159 TQString subject; 00160 -00161 const KAboutData * aboutData = KGlobal::instance()->aboutData(); +00161 const TDEAboutData * aboutData = TDEGlobal::instance()->aboutData(); 00162 00163 if ( aboutData ) 00164 subject = aboutData->programName() + "-" + aboutData->version(); @@ -189,7 +189,7 @@ 00172 // Build mail body 00173 // 00174 -00175 QString body = subject + "\n\n" +00175 TQString body = subject + "\n\n" 00176 + formatComment() 00177 + _questionList->result(); 00178 @@ -228,10 +228,10 @@ 00211 } 00212 00213 -00214 QString +00214 TQString 00215 KFeedbackForm::formatComment() 00216 { -00217 QString result = _comment->text(); +00217 TQString result = _comment->text(); 00218 00219 if ( ! result.isEmpty() ) 00220 { @@ -253,8 +253,8 @@ 00236 00237 00238 -00239 KFeedbackQuestionList::KFeedbackQuestionList( QWidget *parent ) -00240 : QListView( parent ) +00239 KFeedbackQuestionList::KFeedbackQuestionList( TQWidget *parent ) +00240 : TQListView( parent ) 00241 { 00242 addColumn( "" ); 00243 header()->hide(); @@ -284,9 +284,9 @@ 00267 } 00268 00269 -00270 QString KFeedbackQuestionList::result() +00270 TQString KFeedbackQuestionList::result() 00271 { -00272 QString res; +00272 TQString res; 00273 KFeedbackQuestion * question = firstQuestion(); 00274 00275 while ( question ) @@ -296,14 +296,14 @@ 00279 question = question->nextQuestion(); 00280 } 00281 res += "Compiled on KDE version: "; -00282 res += KDE_VERSION_STRING; +00282 res += TDE_VERSION_STRING; 00283 00284 return res; 00285 } 00286 00287 -00288 KFeedbackQuestion* KFeedbackQuestionList::addQuestion( const QString & text, -00289 const QString & id, +00288 KFeedbackQuestion* KFeedbackQuestionList::addQuestion( const TQString & text, +00289 const TQString & id, 00290 bool exclusiveAnswer, 00291 bool required ) 00292 { @@ -317,8 +317,8 @@ 00300 00301 00302 void -00303 KFeedbackQuestionList::addYesNoQuestion( const QString & text, -00304 const QString & id, +00303 KFeedbackQuestionList::addYesNoQuestion( const TQString & text, +00304 const TQString & id, 00305 bool required ) 00306 { 00307 @@ -351,19 +351,19 @@ 00334 static int nextNo = 0; 00335 00336 KFeedbackQuestion::KFeedbackQuestion( KFeedbackQuestionList * parent, -00337 const QString & text, -00338 const QString & id, +00337 const TQString & text, +00338 const TQString & id, 00339 bool exclusiveAnswer, 00340 bool required, 00341 bool open ) -00342 : QCheckListItem( parent, text ) +00342 : TQCheckListItem( parent, text ) 00343 , _id( id ) 00344 , _exclusiveAnswer( exclusiveAnswer ) 00345 , _required( required ) 00346 { 00347 if ( required ) 00348 { -00349 setPixmap( 0, KGlobal::iconLoader()->loadIcon( "edit", KIcon::Small ) ); +00349 setPixmap( 0, TDEGlobal::iconLoader()->loadIcon( "edit", TDEIcon::Small ) ); 00350 } 00351 00352 setOpen( open ); @@ -374,8 +374,8 @@ 00357 00358 00359 void -00360 KFeedbackQuestion::addAnswer( const QString & text, -00361 const QString & id ) +00360 KFeedbackQuestion::addAnswer( const TQString & text, +00361 const TQString & id ) 00362 { 00363 new KFeedbackAnswer( this, text, id, _exclusiveAnswer ); 00364 } @@ -404,10 +404,10 @@ 00398 } 00399 00400 -00401 QString +00401 TQString 00402 KFeedbackQuestion::result() 00403 { -00404 QString res; +00404 TQString res; 00405 int answers = 0; 00406 00407 KFeedbackAnswer *answer = firstAnswer(); @@ -432,17 +432,17 @@ 00426 } 00427 00428 -00429 QString +00429 TQString 00430 KFeedbackQuestion::text() 00431 { -00432 return QCheckListItem::text(0); +00432 return TQCheckListItem::text(0); 00433 } 00434 00435 -00436 QString +00436 TQString 00437 KFeedbackQuestion::key( int, bool ) const 00438 { -00439 QString no; +00439 TQString no; 00440 no.sprintf( "%08d", _no ); 00441 00442 return no; @@ -462,31 +462,31 @@ 00456 00457 00458 KFeedbackAnswer::KFeedbackAnswer( KFeedbackQuestion * parent, -00459 const QString & text, -00460 const QString & id, +00459 const TQString & text, +00460 const TQString & id, 00461 bool exclusive ) -00462 : QCheckListItem( parent, +00462 : TQCheckListItem( parent, 00463 text, 00464 exclusive -00465 ? QCheckListItem::RadioButton -00466 : QCheckListItem::CheckBox ) +00465 ? TQCheckListItem::RadioButton +00466 : TQCheckListItem::CheckBox ) 00467 , _id( id ) 00468 { 00469 _no = nextNo++; 00470 } 00471 00472 -00473 QString +00473 TQString 00474 KFeedbackAnswer::text() 00475 { -00476 return QCheckListItem::text(0); +00476 return TQCheckListItem::text(0); 00477 } 00478 00479 -00480 QString +00480 TQString 00481 KFeedbackAnswer::key( int, bool ) const 00482 { -00483 QString no; +00483 TQString no; 00484 no.sprintf( "%08d", _no ); 00485 00486 return no; -- cgit v1.2.3