summaryrefslogtreecommitdiffstats
path: root/kpovmodeler/pmerrordialog.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-08-02 19:23:46 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-08-02 19:23:46 +0000
commiteba47f8f0637f451e21348187591e1f1fd58ac74 (patch)
tree448f10b95c656604acc331a3236c1e59bde5c1ad /kpovmodeler/pmerrordialog.cpp
parentc7e8736c69373f48b0401319757c742e8607431a (diff)
downloadtdegraphics-eba47f8f0637f451e21348187591e1f1fd58ac74.tar.gz
tdegraphics-eba47f8f0637f451e21348187591e1f1fd58ac74.zip
TQt conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1158446 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kpovmodeler/pmerrordialog.cpp')
-rw-r--r--kpovmodeler/pmerrordialog.cpp30
1 files changed, 15 insertions, 15 deletions
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 <klocale.h>
-#include <qlabel.h>
-#include <qtextedit.h>
+#include <tqlabel.h>
+#include <tqtextedit.h>
#include <kconfig.h>
-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<PMMessage> pit( m_messages );
+ TQPtrListIterator<PMMessage> pit( m_messages );
for( ; pit.current( ); ++pit )
{
PMObject* obj = pit.current( )->linkedObject( );
for( ; obj; obj = obj->parent( ) )
{
- QPtrList<PMMessage>* pList = m_messageDict.find( obj );
+ TQPtrList<PMMessage>* pList = m_messageDict.find( obj );
if( !pList )
{
- pList = new QPtrList<PMMessage>;
+ pList = new TQPtrList<PMMessage>;
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<PMMessage> pit( m_messages );
- QString text;
+ TQPtrListIterator<PMMessage> pit( m_messages );
+ TQString text;
text = "<qt>\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( );
}