diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
commit | f008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch) | |
tree | 8e9244c4d4957c36be81e15b566b4aa5ea26c982 /kpresenter/KPrPresDurationDia.cpp | |
parent | 1210f27b660efb7b37ff43ec68763e85a403471f (diff) | |
download | koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.tar.gz koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.zip |
TQt4 port koffice
This should enable compilation under both Qt3 and Qt4; fixes for any missed components will be forthcoming
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1238284 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kpresenter/KPrPresDurationDia.cpp')
-rw-r--r-- | kpresenter/KPrPresDurationDia.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/kpresenter/KPrPresDurationDia.cpp b/kpresenter/KPrPresDurationDia.cpp index 7feb5bcf..c1e7b80f 100644 --- a/kpresenter/KPrPresDurationDia.cpp +++ b/kpresenter/KPrPresDurationDia.cpp @@ -22,41 +22,41 @@ #include "KPrCanvas.h" #include "KPrPage.h" #include "KPrDocument.h" -#include <qlabel.h> -#include <qheader.h> -#include <qvbox.h> -#include <qlayout.h> +#include <tqlabel.h> +#include <tqheader.h> +#include <tqvbox.h> +#include <tqlayout.h> #include <klistview.h> #include <kdebug.h> #include <klocale.h> -KPrPresDurationDia::KPrPresDurationDia( QWidget *parent, const char *name, - KPrDocument *_doc, QStringList _durationListString, - const QString &_durationString ) - : KDialogBase( parent, name, false, "", KDialogBase::Close ), +KPrPresDurationDia::KPrPresDurationDia( TQWidget *tqparent, const char *name, + KPrDocument *_doc, TQStringList _durationListString, + const TQString &_durationString ) + : KDialogBase( tqparent, name, false, "", KDialogBase::Close ), doc( _doc ) { m_durationListString = _durationListString; m_durationString = _durationString; - QWidget *page = new QWidget( this ); + TQWidget *page = new TQWidget( this ); setMainWidget( page ); - QVBoxLayout *topLayout = new QVBoxLayout( page, 2 ); + TQVBoxLayout *topLayout = new TQVBoxLayout( page, 2 ); setupSlideList( page ); topLayout->addWidget( slides ); slides->setSelected( slides->firstChild(), true ); - label = new QLabel( i18n( "Presentation duration: " ) + _durationString, page ); - label->setAlignment( AlignVCenter ); + label = new TQLabel( i18n( "Presentation duration: " ) + _durationString, page ); + label->tqsetAlignment( AlignVCenter ); topLayout->addWidget( label ); setMinimumSize( 600, 400 ); - connect( this, SIGNAL( closeClicked() ), this, SLOT( slotCloseDialog() ) ); + connect( this, TQT_SIGNAL( closeClicked() ), this, TQT_SLOT( slotCloseDialog() ) ); } -void KPrPresDurationDia::setupSlideList( QWidget *_page ) +void KPrPresDurationDia::setupSlideList( TQWidget *_page ) { slides = new KListView( _page ); slides->addColumn( i18n( "No." ) ); @@ -71,7 +71,7 @@ void KPrPresDurationDia::setupSlideList( QWidget *_page ) if ( doc->pageList().at( i )->isSlideSelected() ) { KListViewItem *item = new KListViewItem( slides ); item->setPixmap( 0, KPBarIcon( "slide" ) ); - item->setText( 0, QString( "%1" ).arg( i + 1 ) ); + item->setText( 0, TQString( "%1" ).tqarg( i + 1 ) ); item->setText( 1, *m_durationListString.at( i ) ); item->setText( 2, doc->pageList().at( i )->pageTitle() ); } |