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/entrywidgetuserdefined.cpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'src/entrywidgetuserdefined.cpp') diff --git a/src/entrywidgetuserdefined.cpp b/src/entrywidgetuserdefined.cpp index 6479f73..b231938 100644 --- a/src/entrywidgetuserdefined.cpp +++ b/src/entrywidgetuserdefined.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 @@ -31,7 +31,7 @@ namespace KBibTeX { - EntryWidgetUserDefined::EntryWidgetUserDefined( BibTeX::File *bibtexfile, bool isReadOnly, QWidget *parent, const char *name ) : EntryWidgetTab( bibtexfile, isReadOnly, parent, name ) + EntryWidgetUserDefined::EntryWidgetUserDefined( BibTeX::File *bibtexfile, bool isReadOnly, TQWidget *parent, const char *name ) : EntryWidgetTab( bibtexfile, isReadOnly, parent, name ) { setupGUI(); } @@ -44,7 +44,7 @@ namespace KBibTeX bool EntryWidgetUserDefined::isModified() { bool result = FALSE; - for ( QValueList::iterator it = m_widgets.begin(); !FALSE && it != m_widgets.end(); ++it ) + for ( TQValueList::iterator it = m_widgets.begin(); !FALSE && it != m_widgets.end(); ++it ) result |= ( *it )->isModified(); return result; } @@ -97,7 +97,7 @@ namespace KBibTeX } } - void EntryWidgetUserDefined::updateWarnings( BibTeX::Entry::EntryType /*entryType*/, QListView */*listViewWarnings*/ ) + void EntryWidgetUserDefined::updateWarnings( BibTeX::Entry::EntryType /*entryType*/, TQListView */*listViewWarnings*/ ) { // nothing } @@ -107,16 +107,16 @@ namespace KBibTeX Settings * settings = Settings::self(); int rows = settings->userDefinedInputFields.count() + 1; if ( rows < 2 ) rows = 2; - QGridLayout *gridLayout = new QGridLayout( this, rows, 2, KDialog::marginHint(), KDialog::spacingHint(), "gridLayout" ); + TQGridLayout *gridLayout = new TQGridLayout( this, rows, 2, KDialog::marginHint(), KDialog::spacingHint(), "gridLayout" ); gridLayout->setRowStretch( rows - 1, 1 ); if ( settings->userDefinedInputFields.count() > 0 ) for ( unsigned int i = 0; i < settings->userDefinedInputFields.count(); ++i ) { - QLabel *label = new QLabel( settings->userDefinedInputFields[i]->label, this ); + TQLabel *label = new TQLabel( settings->userDefinedInputFields[i]->label, this ); gridLayout->addWidget( label, i, 0 ); if ( settings->userDefinedInputFields[i]->inputType == FieldLineEdit::itMultiLine ) - label->setAlignment( Qt::AlignTop ); + label->setAlignment( TQt::AlignTop ); FieldLineEdit *widget = new FieldLineEdit( settings->userDefinedInputFields[i]->label, settings->userDefinedInputFields[i]->inputType, m_isReadOnly, this ); gridLayout->addWidget( widget, i, 1 ); @@ -129,13 +129,13 @@ namespace KBibTeX gridLayout->setColStretch( 0, 0 ); gridLayout->setColStretch( 1, 1 ); - QLabel *label = new QLabel( this ); + TQLabel *label = new TQLabel( this ); gridLayout->addWidget( label, 0, 0 ); label->setPixmap( BarIcon( "messagebox_info" ) ); - label->setAlignment( Qt::AlignVCenter | Qt::AlignLeft | Qt::WordBreak ); + label->setAlignment( TQt::AlignVCenter | TQt::AlignLeft | TQt::WordBreak ); - label = new QLabel( i18n( "Please use the settings dialog to add user-defined fields here." ), this ); - label->setAlignment( Qt::AlignVCenter | Qt::AlignLeft | Qt::WordBreak ); + label = new TQLabel( i18n( "Please use the settings dialog to add user-defined fields here." ), this ); + label->setAlignment( TQt::AlignVCenter | TQt::AlignLeft | TQt::WordBreak ); gridLayout->addWidget( label, 0, 1 ); } } -- cgit v1.2.1