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/macrowidget.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/macrowidget.cpp') diff --git a/src/macrowidget.cpp b/src/macrowidget.cpp index 5acca02..ce89e14 100644 --- a/src/macrowidget.cpp +++ b/src/macrowidget.cpp @@ -17,8 +17,8 @@ * Free Software Foundation, Inc., * * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ***************************************************************************/ -#include -#include +#include +#include #include #include @@ -34,7 +34,7 @@ namespace KBibTeX { - QDialog::DialogCode MacroWidget::execute( BibTeX::Macro *macro, bool isReadOnly, QWidget *parent, const char *name ) + TQDialog::DialogCode MacroWidget::execute( BibTeX::Macro *macro, bool isReadOnly, TQWidget *parent, const char *name ) { KDialogBase * dlg = new KDialogBase( parent, name, TRUE, i18n( "Edit BibTeX Macro" ), KDialogBase::Ok | KDialogBase::Cancel ); MacroWidget* macroWidget = new MacroWidget( macro, isReadOnly, dlg, "MacroWidget" ); @@ -42,7 +42,7 @@ namespace KBibTeX dlg->setMainWidget( macroWidget ); connect( dlg, SIGNAL( okClicked() ), macroWidget, SLOT( apply() ) ); - QDialog::DialogCode result = ( QDialog::DialogCode ) dlg->exec(); + TQDialog::DialogCode result = ( TQDialog::DialogCode ) dlg->exec(); delete( macroWidget ); delete( dlg ); @@ -50,8 +50,8 @@ namespace KBibTeX return result; } - MacroWidget::MacroWidget( BibTeX::Macro *bibtexmacro, bool isReadOnly, QWidget *parent, const char *name ) - : QWidget( parent, name ), m_isReadOnly( isReadOnly ), m_bibtexmacro( bibtexmacro ) + MacroWidget::MacroWidget( BibTeX::Macro *bibtexmacro, bool isReadOnly, TQWidget *parent, const char *name ) + : TQWidget( parent, name ), m_isReadOnly( isReadOnly ), m_bibtexmacro( bibtexmacro ) { setupGUI(); reset(); @@ -79,16 +79,16 @@ namespace KBibTeX { setMinimumWidth( 384 ); - QVBoxLayout * layout = new QVBoxLayout( this, 0, KDialog::spacingHint() ); + TQVBoxLayout * layout = new TQVBoxLayout( this, 0, KDialog::spacingHint() ); - QLabel *label = new QLabel( i18n( "Macro &id:" ), this ); + TQLabel *label = new TQLabel( i18n( "Macro &id:" ), this ); layout->addWidget( label ); m_lineEditMacroId = new KLineEdit( this, "m_lineEditMacroId" ); m_lineEditMacroId->setReadOnly( m_isReadOnly ); layout->addWidget( m_lineEditMacroId ); label->setBuddy( m_lineEditMacroId ); - label = new QLabel( i18n( "Macro &value:" ), this ); + label = new TQLabel( i18n( "Macro &value:" ), this ); layout->addWidget( label ); m_fieldLineEditMacroValue = new KBibTeX::FieldLineEdit( i18n( "Macro" ), KBibTeX::FieldLineEdit::itMultiLine, m_isReadOnly, this, "m_fieldLineEditMacroValue" ); layout->addWidget( m_fieldLineEditMacroValue ); -- cgit v1.2.1