diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-27 19:21:21 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-27 19:21:21 +0000 |
commit | d8cc8bdfa7fa624a526d5aa1626974e1444cb799 (patch) | |
tree | f295f1c545b319963d5357af79fe08991d8141d9 /src/k3bcontentsview.cpp | |
parent | 2a39a080579fb52a2599c02b2939795385b89093 (diff) | |
download | k3b-d8cc8bdfa7fa624a526d5aa1626974e1444cb799.tar.gz k3b-d8cc8bdfa7fa624a526d5aa1626974e1444cb799.zip |
TQt4 port k3b
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/k3b@1233803 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/k3bcontentsview.cpp')
-rw-r--r-- | src/k3bcontentsview.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/k3bcontentsview.cpp b/src/k3bcontentsview.cpp index 304ae0d..536fa53 100644 --- a/src/k3bcontentsview.cpp +++ b/src/k3bcontentsview.cpp @@ -17,20 +17,20 @@ #include <k3bthemedheader.h> -#include <qlabel.h> -#include <qlayout.h> -#include <qpixmap.h> +#include <tqlabel.h> +#include <tqlayout.h> +#include <tqpixmap.h> K3bContentsView::K3bContentsView( bool withHeader, - QWidget* parent, + TQWidget* tqparent, const char* name ) - : QWidget( parent, name ), + : TQWidget( tqparent, name ), m_header(0), m_centerWidget(0) { if( withHeader ) { - QVBoxLayout* lay = new QVBoxLayout( this ); + TQVBoxLayout* lay = new TQVBoxLayout( this ); lay->setMargin( 2 ); lay->setSpacing( 0 ); @@ -48,22 +48,22 @@ K3bContentsView::~K3bContentsView() } -void K3bContentsView::setMainWidget( QWidget* w ) +void K3bContentsView::setMainWidget( TQWidget* w ) { m_centerWidget = w; - ((QVBoxLayout*)layout())->addWidget( w ); + ((TQVBoxLayout*)tqlayout())->addWidget( w ); } -QWidget* K3bContentsView::mainWidget() +TQWidget* K3bContentsView::mainWidget() { if( !m_centerWidget ) - setMainWidget( new QWidget( this ) ); + setMainWidget( new TQWidget( this ) ); return m_centerWidget; } -void K3bContentsView::setTitle( const QString& s ) +void K3bContentsView::setTitle( const TQString& s ) { if( m_header ) m_header->setTitle( s ); |