summaryrefslogtreecommitdiffstats
path: root/src/preamblewidget.cpp
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2013-06-29 12:56:53 +0200
committerSlávek Banko <[email protected]>2013-07-04 03:11:35 +0200
commit5f5e7c5455d52826b0bd50f64fcffb7695ce970d (patch)
treec8ee8792d3fb139365abbf70c2255f1e69d2aa34 /src/preamblewidget.cpp
parent251c9a439759c830d34c70683d0fc9454d703010 (diff)
downloadkbibtex-5f5e7c5455d52826b0bd50f64fcffb7695ce970d.tar.gz
kbibtex-5f5e7c5455d52826b0bd50f64fcffb7695ce970d.zip
Initial TQt conversion
Diffstat (limited to 'src/preamblewidget.cpp')
-rw-r--r--src/preamblewidget.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/preamblewidget.cpp b/src/preamblewidget.cpp
index a1cc0c1..6b74ece 100644
--- a/src/preamblewidget.cpp
+++ b/src/preamblewidget.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 <kdialogbase.h>
#include <klocale.h>
@@ -28,7 +28,7 @@
namespace KBibTeX
{
- QDialog::DialogCode PreambleWidget::execute( BibTeX::Preamble *preamble, bool isReadOnly, QWidget *parent, const char *name )
+ TQDialog::DialogCode PreambleWidget::execute( BibTeX::Preamble *preamble, bool isReadOnly, TQWidget *parent, const char *name )
{
KDialogBase * dlg = new KDialogBase( parent, name, TRUE, i18n( "Edit BibTeX Preamble" ), KDialogBase::Ok | KDialogBase::Cancel );
PreambleWidget* preambleWidget = new PreambleWidget( preamble, isReadOnly, dlg, "PreambleWidget" );
@@ -36,7 +36,7 @@ namespace KBibTeX
dlg->setMainWidget( preambleWidget );
connect( dlg, SIGNAL( okClicked() ), preambleWidget, SLOT( apply() ) );
- QDialog::DialogCode result = ( QDialog::DialogCode ) dlg->exec();
+ TQDialog::DialogCode result = ( TQDialog::DialogCode ) dlg->exec();
delete( preambleWidget );
delete( dlg );
@@ -44,7 +44,7 @@ namespace KBibTeX
return result;
}
- PreambleWidget::PreambleWidget( BibTeX::Preamble *bibtexpreamble, bool isReadOnly, QWidget *parent, const char *name ) : QWidget( parent, name ), m_isReadOnly( isReadOnly ), m_bibtexpreamble( bibtexpreamble )
+ PreambleWidget::PreambleWidget( BibTeX::Preamble *bibtexpreamble, bool isReadOnly, TQWidget *parent, const char *name ) : TQWidget( parent, name ), m_isReadOnly( isReadOnly ), m_bibtexpreamble( bibtexpreamble )
{
setupGUI();
reset();
@@ -71,9 +71,9 @@ 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( "&Preamble:" ), this );
+ TQLabel *label = new TQLabel( i18n( "&Preamble:" ), this );
layout->addWidget( label );
m_fieldLineEditPreambleValue = new KBibTeX::FieldLineEdit( i18n( "Preamble" ), KBibTeX::FieldLineEdit::itMultiLine, m_isReadOnly, this, "m_fieldLineEditPreambleValue" );
layout->addWidget( m_fieldLineEditPreambleValue );