From f008adb5a77e094eaf6abf3fc0f36958e66896a5 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 25 Jun 2011 05:28:35 +0000 Subject: TQt4 port koffice This should enable compilation under both Qt3 and Qt4; fixes for any missed components will be forthcoming git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1238284 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- lib/kotext/KoCreateStyleDia.cpp | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'lib/kotext/KoCreateStyleDia.cpp') diff --git a/lib/kotext/KoCreateStyleDia.cpp b/lib/kotext/KoCreateStyleDia.cpp index e38be5f49..cf9130af0 100644 --- a/lib/kotext/KoCreateStyleDia.cpp +++ b/lib/kotext/KoCreateStyleDia.cpp @@ -19,30 +19,30 @@ #include -#include -#include -#include +#include +#include +#include #include "KoCreateStyleDia.h" #include -KoCreateStyleDia::KoCreateStyleDia( const QStringList & _list, QWidget *parent, const char *name ) - : KDialogBase( parent, name , true, "", Ok|Cancel, Ok, true ) +KoCreateStyleDia::KoCreateStyleDia( const TQStringList & _list, TQWidget *tqparent, const char *name ) + : KDialogBase( tqparent, name , true, "", Ok|Cancel, Ok, true ) { styleList=_list; setCaption( i18n("Create New Style") ); - QVBox *page = makeVBoxMainWidget(); - new QLabel(i18n("Please specify a new style name:"), page); - m_styleName = new QLineEdit( page ); - m_styleName->setMinimumWidth( m_styleName->sizeHint().width() * 3 ); + TQVBox *page = makeVBoxMainWidget(); + new TQLabel(i18n("Please specify a new style name:"), page); + m_styleName = new TQLineEdit( page ); + m_styleName->setMinimumWidth( m_styleName->tqsizeHint().width() * 3 ); - connect( m_styleName, SIGNAL(textChanged ( const QString & )), this, SLOT(nameChanged( const QString &))); + connect( m_styleName, TQT_SIGNAL(textChanged ( const TQString & )), this, TQT_SLOT(nameChanged( const TQString &))); m_styleName->setFocus(); enableButtonOK( false ); } void KoCreateStyleDia::slotOk() { - if ( styleList.findIndex(m_styleName->text() ) != -1 ) + if ( styleList.tqfindIndex(m_styleName->text() ) != -1 ) { KMessageBox::error(this, i18n("Name already exists! Please choose another name")); m_styleName->clear(); @@ -51,12 +51,12 @@ void KoCreateStyleDia::slotOk() KDialogBase::slotOk(); } -QString KoCreateStyleDia::nameOfNewStyle()const +TQString KoCreateStyleDia::nameOfNewStyle()const { return m_styleName->text(); } -void KoCreateStyleDia::nameChanged( const QString &text) +void KoCreateStyleDia::nameChanged( const TQString &text) { enableButtonOK( !text.isEmpty() ); } -- cgit v1.2.3