diff options
| author | Slávek Banko <slavek.banko@axis.cz> | 2013-06-29 12:56:53 +0200 | 
|---|---|---|
| committer | Slávek Banko <slavek.banko@axis.cz> | 2013-07-04 03:11:35 +0200 | 
| commit | 5f5e7c5455d52826b0bd50f64fcffb7695ce970d (patch) | |
| tree | c8ee8792d3fb139365abbf70c2255f1e69d2aa34 /src/macrowidget.cpp | |
| parent | 251c9a439759c830d34c70683d0fc9454d703010 (diff) | |
| download | kbibtex-5f5e7c5455d52826b0bd50f64fcffb7695ce970d.tar.gz kbibtex-5f5e7c5455d52826b0bd50f64fcffb7695ce970d.zip | |
Initial TQt conversion
Diffstat (limited to 'src/macrowidget.cpp')
| -rw-r--r-- | src/macrowidget.cpp | 18 | 
1 files changed, 9 insertions, 9 deletions
| 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 <qlabel.h> -#include <qlayout.h> +#include <ntqlabel.h> +#include <ntqlayout.h>  #include <klineedit.h>  #include <kdialogbase.h> @@ -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 ); | 
