From 5f5e7c5455d52826b0bd50f64fcffb7695ce970d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sat, 29 Jun 2013 12:56:53 +0200 Subject: Initial TQt conversion --- src/commentwidget.cpp | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'src/commentwidget.cpp') diff --git a/src/commentwidget.cpp b/src/commentwidget.cpp index 09d371f..56a6854 100644 --- a/src/commentwidget.cpp +++ b/src/commentwidget.cpp @@ -17,10 +17,10 @@ * Free Software Foundation, Inc., * * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ***************************************************************************/ -#include -#include -#include -#include +#include +#include +#include +#include #include #include #include @@ -33,8 +33,8 @@ namespace KBibTeX { - CommentWidget::CommentWidget( BibTeX::Comment *comment, bool isReadOnly, QWidget *parent, const char *name ) - : QWidget( parent, name ), m_comment( comment ), m_isReadOnly( isReadOnly ) + CommentWidget::CommentWidget( BibTeX::Comment *comment, bool isReadOnly, TQWidget *parent, const char *name ) + : TQWidget( parent, name ), m_comment( comment ), m_isReadOnly( isReadOnly ) { setupGUI(); getCommentData(); @@ -50,18 +50,18 @@ namespace KBibTeX void CommentWidget::setupGUI() { setMinimumWidth( 384 ); - QVBoxLayout * layout = new QVBoxLayout( this, 0, KDialog::spacingHint() ); + TQVBoxLayout * layout = new TQVBoxLayout( this, 0, KDialog::spacingHint() ); - QLabel *label = new QLabel( i18n( "Co&mment:" ), this ); + TQLabel *label = new TQLabel( i18n( "Co&mment:" ), this ); layout->addWidget( label ); - m_multiLineEdit = new QMultiLineEdit( this ); + m_multiLineEdit = new TQMultiLineEdit( this ); m_multiLineEdit->setFont( KGlobalSettings::fixedFont() ); layout->addWidget( m_multiLineEdit ); label->setBuddy( m_multiLineEdit ); m_multiLineEdit->setReadOnly( m_isReadOnly ); - m_checkboxUseCommand = new QCheckBox( i18n( "&Use @Comment for comment instead of plain text" ), this ); + m_checkboxUseCommand = new TQCheckBox( i18n( "&Use @Comment for comment instead of plain text" ), this ); layout->addWidget( m_checkboxUseCommand ); } @@ -77,14 +77,14 @@ namespace KBibTeX m_comment->setUseCommand( m_checkboxUseCommand->isChecked() ); } - QDialog::DialogCode CommentWidget::execute( BibTeX::Comment *comment, bool isReadOnly, QWidget *parent, const char *name ) + TQDialog::DialogCode CommentWidget::execute( BibTeX::Comment *comment, bool isReadOnly, TQWidget *parent, const char *name ) { KDialogBase * dlg = new KDialogBase( parent, name, true, i18n( "Edit BibTeX Comment" ), KDialogBase::Ok | KDialogBase::Cancel ); CommentWidget* ui = new CommentWidget( comment, isReadOnly, dlg, "kbibtex::commentwidget" ); dlg->setMainWidget( ui ); - QDialog::DialogCode result = ( QDialog::DialogCode ) dlg->exec(); - if ( !isReadOnly && result == QDialog::Accepted ) + TQDialog::DialogCode result = ( TQDialog::DialogCode ) dlg->exec(); + if ( !isReadOnly && result == TQDialog::Accepted ) ui->setCommentData(); delete( ui ); -- cgit v1.2.1