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/entrywidgetuserdefined.cpp | |
parent | 251c9a439759c830d34c70683d0fc9454d703010 (diff) | |
download | kbibtex-5f5e7c5455d52826b0bd50f64fcffb7695ce970d.tar.gz kbibtex-5f5e7c5455d52826b0bd50f64fcffb7695ce970d.zip |
Initial TQt conversion
Diffstat (limited to 'src/entrywidgetuserdefined.cpp')
-rw-r--r-- | src/entrywidgetuserdefined.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
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 <qlayout.h> -#include <qlabel.h> +#include <ntqlayout.h> +#include <ntqlabel.h> #include <kdebug.h> #include <kdialog.h> @@ -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<FieldLineEdit*>::iterator it = m_widgets.begin(); !FALSE && it != m_widgets.end(); ++it ) + for ( TQValueList<FieldLineEdit*>::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 ); } } |