diff options
Diffstat (limited to 'lib/kotext/KoImportStyleDia.cpp')
-rw-r--r-- | lib/kotext/KoImportStyleDia.cpp | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/lib/kotext/KoImportStyleDia.cpp b/lib/kotext/KoImportStyleDia.cpp index 80be24ca..99ff15b4 100644 --- a/lib/kotext/KoImportStyleDia.cpp +++ b/lib/kotext/KoImportStyleDia.cpp @@ -18,29 +18,29 @@ */ #include <klocale.h> -#include <qvbox.h> -#include <qlayout.h> -#include <qlineedit.h> -#include <qpushbutton.h> -#include <qlistbox.h> +#include <tqvbox.h> +#include <tqlayout.h> +#include <tqlineedit.h> +#include <tqpushbutton.h> +#include <tqlistbox.h> #include "KoImportStyleDia.h" #include <kdebug.h> -#include <qlabel.h> +#include <tqlabel.h> -KoImportStyleDia::KoImportStyleDia( KoStyleCollection* currentCollection, QWidget *parent, const char *name ) - : KDialogBase( parent, name , true, "", Ok|Cancel|User1, Ok, true ) +KoImportStyleDia::KoImportStyleDia( KoStyleCollection* currentCollection, TQWidget *tqparent, const char *name ) + : KDialogBase( tqparent, name , true, "", Ok|Cancel|User1, Ok, true ) { setCaption( i18n("Import Styles") ); m_currentCollection = currentCollection; - QVBox *page = makeVBoxMainWidget(); - new QLabel(i18n("Select styles to import:"), page); - m_listStyleName = new QListBox( page ); - m_listStyleName->setSelectionMode( QListBox::Multi ); + TQVBox *page = makeVBoxMainWidget(); + new TQLabel(i18n("Select styles to import:"), page); + m_listStyleName = new TQListBox( page ); + m_listStyleName->setSelectionMode( TQListBox::Multi ); enableButtonOK( m_listStyleName->count() != 0 ); setButtonText( KDialogBase::User1, i18n("Load...") ); - connect( this, SIGNAL( user1Clicked() ), this, SLOT(slotLoadFile())); - setInitialSize( QSize( 300, 400 ) ); + connect( this, TQT_SIGNAL( user1Clicked() ), this, TQT_SLOT(slotLoadFile())); + setInitialSize( TQSize( 300, 400 ) ); setFocus(); } @@ -65,8 +65,8 @@ void KoImportStyleDia::generateStyleList() void KoImportStyleDia::updateFollowingStyle( KoParagStyle* removedStyle ) { - QValueList<KoUserStyle *> lst = m_styleList.styleList(); - for( QValueList<KoUserStyle *>::Iterator it = lst.begin(); it != lst.end(); ++it ) { + TQValueList<KoUserStyle *> lst = m_styleList.styleList(); + for( TQValueList<KoUserStyle *>::Iterator it = lst.begin(); it != lst.end(); ++it ) { KoParagStyle* style = static_cast<KoParagStyle *>( *it ); if ( style->followingStyle() == removedStyle ) { @@ -92,26 +92,26 @@ void KoImportStyleDia::slotOk() KDialogBase::slotOk(); } -QString KoImportStyleDia::generateStyleName( const QString & templateName ) const +TQString KoImportStyleDia::generateStyleName( const TQString & templateName ) const { - QString name; + TQString name; int num = 1; bool exists; do { - name = templateName.arg( num ); + name = templateName.tqarg( num ); exists = m_currentCollection->findStyle( name ) != 0; ++num; } while ( exists ); return name; } -QString KoImportStyleDia::generateStyleDisplayName( const QString & templateName ) const +TQString KoImportStyleDia::generateStyleDisplayName( const TQString & templateName ) const { - QString name; + TQString name; int num = 1; bool exists; do { - name = templateName.arg( num ); + name = templateName.tqarg( num ); exists = m_currentCollection->findStyleByDisplayName( name ) != 0; ++num; } while ( exists ); |