summaryrefslogtreecommitdiffstats
path: root/lib/kotext/KoCreateStyleDia.cpp
diff options
context:
space:
mode:
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() );
}