diff options
Diffstat (limited to 'src/commentwidget.cpp')
-rw-r--r-- | src/commentwidget.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
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 <qlabel.h> -#include <qmultilineedit.h> -#include <qlayout.h> -#include <qcheckbox.h> +#include <ntqlabel.h> +#include <ntqmultilineedit.h> +#include <ntqlayout.h> +#include <ntqcheckbox.h> #include <kdialogbase.h> #include <kglobalsettings.h> #include <klocale.h> @@ -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 ); |