summaryrefslogtreecommitdiffstats
path: root/lib/kotext/KoCreateStyleDia.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-25 05:28:35 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-25 05:28:35 +0000
commitf008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch)
tree8e9244c4d4957c36be81e15b566b4aa5ea26c982 /lib/kotext/KoCreateStyleDia.cpp
parent1210f27b660efb7b37ff43ec68763e85a403471f (diff)
downloadkoffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.tar.gz
koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.zip
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
Diffstat (limited to 'lib/kotext/KoCreateStyleDia.cpp')
-rw-r--r--lib/kotext/KoCreateStyleDia.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/lib/kotext/KoCreateStyleDia.cpp b/lib/kotext/KoCreateStyleDia.cpp
index e38be5f4..cf9130af 100644
--- a/lib/kotext/KoCreateStyleDia.cpp
+++ b/lib/kotext/KoCreateStyleDia.cpp
@@ -19,30 +19,30 @@
#include <klocale.h>
-#include <qvbox.h>
-#include <qlabel.h>
-#include <qlineedit.h>
+#include <tqvbox.h>
+#include <tqlabel.h>
+#include <tqlineedit.h>
#include "KoCreateStyleDia.h"
#include <kmessagebox.h>
-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() );
}