diff options
author | Slávek Banko <[email protected]> | 2013-06-29 12:56:53 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2013-07-04 03:11:35 +0200 |
commit | 5f5e7c5455d52826b0bd50f64fcffb7695ce970d (patch) | |
tree | c8ee8792d3fb139365abbf70c2255f1e69d2aa34 /src/entrywidgetmisc.cpp | |
parent | 251c9a439759c830d34c70683d0fc9454d703010 (diff) | |
download | kbibtex-5f5e7c5455d52826b0bd50f64fcffb7695ce970d.tar.gz kbibtex-5f5e7c5455d52826b0bd50f64fcffb7695ce970d.zip |
Initial TQt conversion
Diffstat (limited to 'src/entrywidgetmisc.cpp')
-rw-r--r-- | src/entrywidgetmisc.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/entrywidgetmisc.cpp b/src/entrywidgetmisc.cpp index f2e4f5e..66ec617 100644 --- a/src/entrywidgetmisc.cpp +++ b/src/entrywidgetmisc.cpp @@ -17,8 +17,8 @@ * Free Software Foundation, Inc., * * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ***************************************************************************/ -#include <qlayout.h> -#include <qlabel.h> +#include <ntqlayout.h> +#include <ntqlabel.h> #include <kdialog.h> #include <klocale.h> @@ -31,7 +31,7 @@ namespace KBibTeX { - EntryWidgetMisc::EntryWidgetMisc( BibTeX::File *bibtexfile, bool isReadOnly, QWidget *parent, const char *name ) + EntryWidgetMisc::EntryWidgetMisc( BibTeX::File *bibtexfile, bool isReadOnly, TQWidget *parent, const char *name ) : EntryWidgetTab( bibtexfile, isReadOnly, parent, name ) { setupGUI(); @@ -103,7 +103,7 @@ namespace KBibTeX m_fieldLineEditAbstract->setValue( field != NULL ? field->value() : NULL ); } - void EntryWidgetMisc::updateWarnings( BibTeX::Entry::EntryType entryType, QListView *listViewWarnings ) + void EntryWidgetMisc::updateWarnings( BibTeX::Entry::EntryType entryType, TQListView *listViewWarnings ) { addMissingWarning( entryType, BibTeX::EntryField::ftType, m_fieldLineEditType->caption(), !m_fieldLineEditType->isEmpty(), m_fieldLineEditType, listViewWarnings ); @@ -128,39 +128,39 @@ namespace KBibTeX void EntryWidgetMisc::setupGUI() { - QGridLayout * gridLayout = new QGridLayout( this, 5, 5, KDialog::marginHint(), KDialog::spacingHint(), "gridLayout" ); + TQGridLayout * gridLayout = new TQGridLayout( this, 5, 5, KDialog::marginHint(), KDialog::spacingHint(), "gridLayout" ); gridLayout->setColSpacing( 2, KDialog::spacingHint() * 4 ); gridLayout->setRowStretch( 4, 1 ); - QLabel *label = new QLabel( QString( "%1:" ).arg( i18n( "Type" ) ), this ); + TQLabel *label = new TQLabel( TQString( "%1:" ).arg( i18n( "Type" ) ), this ); gridLayout->addWidget( label, 0, 0 ); m_fieldLineEditType = new KBibTeX::FieldLineEdit( i18n( "Type" ), KBibTeX::FieldLineEdit::itSingleLine, m_isReadOnly, this, "m_fieldLineEditType" ); m_fieldLineEditType->setFieldType( BibTeX::EntryField::ftType ); label->setBuddy( m_fieldLineEditType ); gridLayout->addWidget( m_fieldLineEditType, 0, 1 ); - label = new QLabel( QString( "%1:" ).arg( i18n( "Key" ) ), this ); + label = new TQLabel( TQString( "%1:" ).arg( i18n( "Key" ) ), this ); gridLayout->addWidget( label, 0, 3 ); m_fieldLineEditKey = new KBibTeX::FieldLineEdit( i18n( "Key" ), KBibTeX::FieldLineEdit::itSingleLine, m_isReadOnly, this, "m_fieldLineEditKey" ); m_fieldLineEditKey->setFieldType( BibTeX::EntryField::ftKey ); label->setBuddy( m_fieldLineEditKey ); gridLayout->addWidget( m_fieldLineEditKey, 0, 4 ); - label = new QLabel( QString( "%1:" ).arg( i18n( "Note" ) ), this ); + label = new TQLabel( TQString( "%1:" ).arg( i18n( "Note" ) ), this ); gridLayout->addWidget( label, 1, 0 ); m_fieldLineEditNote = new KBibTeX::FieldLineEdit( i18n( "Note" ), KBibTeX::FieldLineEdit::itSingleLine, m_isReadOnly, this, "m_fieldLineEditNote" ); m_fieldLineEditNote->setFieldType( BibTeX::EntryField::ftNote ); label->setBuddy( m_fieldLineEditNote ); gridLayout->addMultiCellWidget( m_fieldLineEditNote, 1, 1, 1, 4 ); - label = new QLabel( QString( "%1:" ).arg( i18n( "Annote" ) ), this ); + label = new TQLabel( TQString( "%1:" ).arg( i18n( "Annote" ) ), this ); gridLayout->addWidget( label, 2, 0 ); m_fieldLineEditAnnote = new KBibTeX::FieldLineEdit( i18n( "Annote" ), KBibTeX::FieldLineEdit::itSingleLine, m_isReadOnly, this, "m_fieldLineEditAnnote" ); m_fieldLineEditAnnote->setFieldType( BibTeX::EntryField::ftAnnote ); label->setBuddy( m_fieldLineEditAnnote ); gridLayout->addMultiCellWidget( m_fieldLineEditAnnote, 2, 2, 1, 4 ); - label = new QLabel( QString( "%1:" ).arg( i18n( "Abstract" ) ), this ); + label = new TQLabel( TQString( "%1:" ).arg( i18n( "Abstract" ) ), this ); gridLayout->addWidget( label, 3, 0 ); m_fieldLineEditAbstract = new KBibTeX::FieldLineEdit( i18n( "Abstract" ), KBibTeX::FieldLineEdit::itMultiLine, m_isReadOnly, this, "m_fieldLineEditAbstract" ); m_fieldLineEditAbstract->setFieldType( BibTeX::EntryField::ftAbstract ); |