diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
commit | 7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch) | |
tree | 8474f9b444b2756228600050f07a7ff25de532b2 /korganizer/koeditorgeneraljournal.cpp | |
parent | f587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff) | |
download | tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'korganizer/koeditorgeneraljournal.cpp')
-rw-r--r-- | korganizer/koeditorgeneraljournal.cpp | 72 |
1 files changed, 36 insertions, 36 deletions
diff --git a/korganizer/koeditorgeneraljournal.cpp b/korganizer/koeditorgeneraljournal.cpp index 500c389bd..620417194 100644 --- a/korganizer/koeditorgeneraljournal.cpp +++ b/korganizer/koeditorgeneraljournal.cpp @@ -37,17 +37,17 @@ #include <kmessagebox.h> #include <kdebug.h> -#include <qgroupbox.h> -#include <qdatetime.h> -#include <qcheckbox.h> -#include <qlabel.h> -#include <qlayout.h> -#include <qwhatsthis.h> +#include <tqgroupbox.h> +#include <tqdatetime.h> +#include <tqcheckbox.h> +#include <tqlabel.h> +#include <tqlayout.h> +#include <tqwhatsthis.h> -KOEditorGeneralJournal::KOEditorGeneralJournal( QObject *parent, +KOEditorGeneralJournal::KOEditorGeneralJournal( TQObject *parent, const char *name ) - : QObject( parent, name ) + : TQObject( parent, name ) { } @@ -55,31 +55,31 @@ KOEditorGeneralJournal::~KOEditorGeneralJournal() { } -void KOEditorGeneralJournal::initTitle( QWidget *parent, QBoxLayout *topLayout ) +void KOEditorGeneralJournal::initTitle( TQWidget *parent, TQBoxLayout *topLayout ) { - QHBoxLayout *hbox = new QHBoxLayout( topLayout ); + TQHBoxLayout *hbox = new TQHBoxLayout( topLayout ); - QString whatsThis = i18n("Sets the title of this journal."); - QLabel *summaryLabel = new QLabel( i18n("T&itle:"), parent ); - QWhatsThis::add( summaryLabel, whatsThis ); - QFont f = summaryLabel->font(); + TQString whatsThis = i18n("Sets the title of this journal."); + TQLabel *summaryLabel = new TQLabel( i18n("T&itle:"), parent ); + TQWhatsThis::add( summaryLabel, whatsThis ); + TQFont f = summaryLabel->font(); f.setBold( true ); summaryLabel->setFont( f ); hbox->addWidget( summaryLabel ); mSummaryEdit = new FocusLineEdit( parent ); - QWhatsThis::add( mSummaryEdit, whatsThis ); + TQWhatsThis::add( mSummaryEdit, whatsThis ); summaryLabel->setBuddy( mSummaryEdit ); hbox->addWidget( mSummaryEdit ); } -void KOEditorGeneralJournal::initDate( QWidget *parent, QBoxLayout *topLayout ) +void KOEditorGeneralJournal::initDate( TQWidget *parent, TQBoxLayout *topLayout ) { -// QBoxLayout *dateLayout = new QVBoxLayout(topLayout); - QBoxLayout *dateLayout = new QHBoxLayout( topLayout ); +// TQBoxLayout *dateLayout = new TQVBoxLayout(topLayout); + TQBoxLayout *dateLayout = new TQHBoxLayout( topLayout ); - mDateLabel = new QLabel( i18n("&Date:"), parent); + mDateLabel = new TQLabel( i18n("&Date:"), parent); dateLayout->addWidget( mDateLabel ); mDateEdit = new KDateEdit( parent ); @@ -88,26 +88,26 @@ void KOEditorGeneralJournal::initDate( QWidget *parent, QBoxLayout *topLayout ) dateLayout->addStretch(); - mTimeCheckBox = new QCheckBox( i18n("&Time: "), parent ); + mTimeCheckBox = new TQCheckBox( i18n("&Time: "), parent ); dateLayout->addWidget( mTimeCheckBox ); mTimeEdit = new KTimeEdit( parent ); dateLayout->addWidget( mTimeEdit ); - connect( mTimeCheckBox, SIGNAL(toggled(bool)), - mTimeEdit, SLOT(setEnabled(bool)) ); + connect( mTimeCheckBox, TQT_SIGNAL(toggled(bool)), + mTimeEdit, TQT_SLOT(setEnabled(bool)) ); dateLayout->addStretch(); - setTime( QTime( -1, -1, -1 ) ); + setTime( TQTime( -1, -1, -1 ) ); } -void KOEditorGeneralJournal::setDate( const QDate &date ) +void KOEditorGeneralJournal::setDate( const TQDate &date ) { // kdDebug(5850) << "KOEditorGeneralJournal::setDate(): Date: " << date.toString() << endl; mDateEdit->setDate( date ); } -void KOEditorGeneralJournal::setTime( const QTime &time ) +void KOEditorGeneralJournal::setTime( const TQTime &time ) { kdDebug()<<"KOEditorGeneralJournal::setTime, time="<<time.toString()<<endl; bool validTime = time.isValid(); @@ -119,7 +119,7 @@ kdDebug()<<"KOEditorGeneralJournal::setTime, time is valid"<<endl; } } -void KOEditorGeneralJournal::initDescription( QWidget *parent, QBoxLayout *topLayout ) +void KOEditorGeneralJournal::initDescription( TQWidget *parent, TQBoxLayout *topLayout ) { mDescriptionEdit = new KTextEdit( parent ); mDescriptionEdit->append(""); @@ -130,7 +130,7 @@ void KOEditorGeneralJournal::initDescription( QWidget *parent, QBoxLayout *topLa topLayout->addWidget( mDescriptionEdit ); } -void KOEditorGeneralJournal::setDefaults( const QDate &date ) +void KOEditorGeneralJournal::setDefaults( const TQDate &date ) { setDate( date ); } @@ -145,7 +145,7 @@ kdDebug()<<"KOEditorGeneralJournal::readJournal, does not float, time="<<(journa setTime( journal->dtStart().time() ); } else { kdDebug()<<"KOEditorGeneralJournal::readJournal, does float"<<endl; - setTime( QTime( -1, -1, -1 ) ); + setTime( TQTime( -1, -1, -1 ) ); } } setDescription( journal->description() ); @@ -157,7 +157,7 @@ void KOEditorGeneralJournal::writeJournal( Journal *journal ) journal->setSummary( mSummaryEdit->text() ); journal->setDescription( mDescriptionEdit->text() ); - QDateTime tmpDT( mDateEdit->date(), QTime(0,0,0) ); + TQDateTime tmpDT( mDateEdit->date(), TQTime(0,0,0) ); bool hasTime = mTimeCheckBox->isChecked(); journal->setFloats( !hasTime ); if ( hasTime ) { @@ -169,22 +169,22 @@ void KOEditorGeneralJournal::writeJournal( Journal *journal ) } -void KOEditorGeneralJournal::setDescription( const QString &text ) +void KOEditorGeneralJournal::setDescription( const TQString &text ) { mDescriptionEdit->setText( text ); } -void KOEditorGeneralJournal::setSummary( const QString &text ) +void KOEditorGeneralJournal::setSummary( const TQString &text ) { mSummaryEdit->setText( text ); } void KOEditorGeneralJournal::finishSetup() { - QWidget::setTabOrder( mSummaryEdit, mDateEdit ); - QWidget::setTabOrder( mDateEdit, mTimeCheckBox ); - QWidget::setTabOrder( mTimeCheckBox, mTimeEdit ); - QWidget::setTabOrder( mTimeEdit, mDescriptionEdit ); + TQWidget::setTabOrder( mSummaryEdit, mDateEdit ); + TQWidget::setTabOrder( mDateEdit, mTimeCheckBox ); + TQWidget::setTabOrder( mTimeCheckBox, mTimeEdit ); + TQWidget::setTabOrder( mTimeEdit, mDescriptionEdit ); mSummaryEdit->setFocus(); } @@ -195,7 +195,7 @@ bool KOEditorGeneralJournal::validateInput() if (!mDateEdit->date().isValid()) { KMessageBox::sorry( 0, i18n("Please specify a valid date, for example '%1'.") - .arg( KGlobal::locale()->formatDate( QDate::currentDate() ) ) ); + .arg( KGlobal::locale()->formatDate( TQDate::currentDate() ) ) ); return false; } |