summaryrefslogtreecommitdiffstats
path: root/ark/arkviewer.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:52:55 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:52:55 +0000
commit5f5ee2367157176ed223b86343eb0a9e4022e020 (patch)
tree6a9c87f14ee38e90eff3c77c784f14e4f38fd5a1 /ark/arkviewer.cpp
parent4facf42feec57b22dcf46badc115ad6c5b5cc512 (diff)
downloadtdeutils-5f5ee2367157176ed223b86343eb0a9e4022e020.tar.gz
tdeutils-5f5ee2367157176ed223b86343eb0a9e4022e020.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeutils@1157653 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'ark/arkviewer.cpp')
-rw-r--r--ark/arkviewer.cpp40
1 files changed, 20 insertions, 20 deletions
diff --git a/ark/arkviewer.cpp b/ark/arkviewer.cpp
index 1ea76ac..2f173a8 100644
--- a/ark/arkviewer.cpp
+++ b/ark/arkviewer.cpp
@@ -29,20 +29,20 @@
#include <kglobal.h>
#include <kiconloader.h>
-#include <qvbox.h>
-#include <qlayout.h>
-#include <qlabel.h>
-#include <qframe.h>
-#include <qurl.h>
+#include <tqvbox.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
+#include <tqframe.h>
+#include <tqurl.h>
-ArkViewer::ArkViewer( QWidget * parent, const char * name )
- : KDialogBase( parent, name, false, QString::null, Close ), m_part( 0 )
+ArkViewer::ArkViewer( TQWidget * parent, const char * name )
+ : KDialogBase( parent, name, false, TQString::null, Close ), m_part( 0 )
{
- m_widget = new QVBox( this );
+ m_widget = new TQVBox( this );
m_widget->layout()->setSpacing( 10 );
- connect( this, SIGNAL( finished() ), this, SLOT( slotFinished() ) );
+ connect( this, TQT_SIGNAL( finished() ), this, TQT_SLOT( slotFinished() ) );
setMainWidget( m_widget );
}
@@ -65,28 +65,28 @@ bool ArkViewer::view( const KURL& filename )
setCaption( filename.fileName() );
- QSize size = configDialogSize( "ArkViewer" );
+ TQSize size = configDialogSize( "ArkViewer" );
if (size.width() < 200)
- size = QSize(560, 400);
+ size = TQSize(560, 400);
setInitialSize( size );
- QFrame *header = new QFrame( m_widget );
- QHBoxLayout *headerLayout = new QHBoxLayout( header );
+ TQFrame *header = new TQFrame( m_widget );
+ TQHBoxLayout *headerLayout = new TQHBoxLayout( header );
headerLayout->setAutoAdd( true );
- QLabel *iconLabel = new QLabel( header );
+ TQLabel *iconLabel = new TQLabel( header );
iconLabel->setPixmap( mimetype->pixmap( KIcon::Desktop ) );
- iconLabel->setSizePolicy( QSizePolicy::Fixed, QSizePolicy::Minimum );
+ iconLabel->setSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Minimum );
- QVBox *headerRight = new QVBox( header );
- new QLabel( QString( "<qt><b>%1</b></qt>" )
+ TQVBox *headerRight = new TQVBox( header );
+ new TQLabel( TQString( "<qt><b>%1</b></qt>" )
.arg( filename.fileName() ), headerRight
);
- new QLabel( mimetype->comment(), headerRight );
+ new TQLabel( mimetype->comment(), headerRight );
- header->setSizePolicy( QSizePolicy::Expanding, QSizePolicy::Maximum );
+ header->setSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Maximum );
- m_part = KParts::ComponentFactory::createPartInstanceFromQuery<KParts::ReadOnlyPart>( mimetype->name(), QString::null, m_widget, 0, this );
+ m_part = KParts::ComponentFactory::createPartInstanceFromQuery<KParts::ReadOnlyPart>( mimetype->name(), TQString::null, m_widget, 0, this );
if ( m_part )
{