From eba47f8f0637f451e21348187591e1f1fd58ac74 Mon Sep 17 00:00:00 2001 From: tpearson Date: Mon, 2 Aug 2010 19:23:46 +0000 Subject: TQt conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1158446 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kpovmodeler/pmerrordialog.cpp | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'kpovmodeler/pmerrordialog.cpp') diff --git a/kpovmodeler/pmerrordialog.cpp b/kpovmodeler/pmerrordialog.cpp index 721cd302..eb920fb0 100644 --- a/kpovmodeler/pmerrordialog.cpp +++ b/kpovmodeler/pmerrordialog.cpp @@ -20,24 +20,24 @@ #include "pmerrorflags.h" #include -#include -#include +#include +#include #include -QSize PMErrorDialog::s_size = QSize( 150, 200 ); +TQSize PMErrorDialog::s_size = TQSize( 150, 200 ); PMErrorDialog::PMErrorDialog( const PMMessageList& messages, int errorFlags, - QWidget* parent, const char* name ) + TQWidget* parent, const char* name ) : KDialogBase( parent, name, true, i18n( "Messages" ), Ok | Cancel, Cancel ) { - QVBox* page = makeVBoxMainWidget( ); - QLabel* text = new QLabel( QString( "" ), ( QWidget* )page ); + TQVBox* page = makeVBoxMainWidget( ); + TQLabel* text = new TQLabel( TQString( "" ), ( TQWidget* )page ); - m_pTextView = new QTextEdit( ( QWidget* )page ); + m_pTextView = new TQTextEdit( ( TQWidget* )page ); m_pTextView->setReadOnly( true ); m_messageDict.setAutoDelete( true ); @@ -47,16 +47,16 @@ PMErrorDialog::PMErrorDialog( const PMMessageList& messages, int errorFlags, for( it = messages.begin( ); it != messages.end( ); ++it ) m_messages.append( new PMMessage( *it ) ); - QPtrListIterator pit( m_messages ); + TQPtrListIterator pit( m_messages ); for( ; pit.current( ); ++pit ) { PMObject* obj = pit.current( )->linkedObject( ); for( ; obj; obj = obj->parent( ) ) { - QPtrList* pList = m_messageDict.find( obj ); + TQPtrList* pList = m_messageDict.find( obj ); if( !pList ) { - pList = new QPtrList; + pList = new TQPtrList; m_messageDict.insert( obj, pList ); } pList->append( pit.current( ) ); @@ -95,15 +95,15 @@ PMErrorDialog::PMErrorDialog( const PMMessageList& messages, int errorFlags, if( errorFlags & PMEFatal ) showButtonOK( false ); else - new QLabel( i18n( "Still try to proceed?" ), ( QWidget* )page ); + new TQLabel( i18n( "Still try to proceed?" ), ( TQWidget* )page ); resize( s_size ); } void PMErrorDialog::displayMessages( ) { - QPtrListIterator pit( m_messages ); - QString text; + TQPtrListIterator pit( m_messages ); + TQString text; text = "\n"; @@ -125,11 +125,11 @@ void PMErrorDialog::restoreConfig( KConfig* cfg ) { cfg->setGroup( "Appearance" ); - QSize defaultSize( 150, 200 ); + TQSize defaultSize( 150, 200 ); s_size = cfg->readSizeEntry( "ErrorDialogSize", &defaultSize ); } -void PMErrorDialog::resizeEvent( QResizeEvent* ev ) +void PMErrorDialog::resizeEvent( TQResizeEvent* ev ) { s_size = ev->size( ); } -- cgit v1.2.1