summaryrefslogtreecommitdiffstats
path: root/korganizer/kojournaleditor.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /korganizer/kojournaleditor.cpp
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-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/kojournaleditor.cpp')
-rw-r--r--korganizer/kojournaleditor.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/korganizer/kojournaleditor.cpp b/korganizer/kojournaleditor.cpp
index 1d2d75410..a50ba1fe2 100644
--- a/korganizer/kojournaleditor.cpp
+++ b/korganizer/kojournaleditor.cpp
@@ -39,11 +39,11 @@
#include <klocale.h>
#include <kdebug.h>
-#include <qlayout.h>
+#include <tqlayout.h>
using namespace KCal;
-KOJournalEditor::KOJournalEditor( Calendar *calendar, QWidget *parent ) :
+KOJournalEditor::KOJournalEditor( Calendar *calendar, TQWidget *parent ) :
KOIncidenceEditor( i18n("Edit Journal Entry"), calendar, parent )
{
mJournal = 0;
@@ -71,9 +71,9 @@ void KOJournalEditor::setupGeneral()
mGeneral = new KOEditorGeneralJournal(this);
if (KOPrefs::instance()->mCompactDialogs) {
- QFrame *topFrame = addPage(i18n("General"));
+ TQFrame *topFrame = addPage(i18n("General"));
- QBoxLayout *topLayout = new QVBoxLayout( topFrame );
+ TQBoxLayout *topLayout = new TQVBoxLayout( topFrame );
topLayout->setMargin( marginHint() );
topLayout->setSpacing( spacingHint() );
@@ -81,9 +81,9 @@ void KOJournalEditor::setupGeneral()
mGeneral->initDate( topFrame, topLayout );
mGeneral->initDescription( topFrame, topLayout );
} else {
- QFrame *topFrame = addPage(i18n("&General"));
+ TQFrame *topFrame = addPage(i18n("&General"));
- QBoxLayout *topLayout = new QVBoxLayout(topFrame);
+ TQBoxLayout *topLayout = new TQVBoxLayout(topFrame);
topLayout->setSpacing(spacingHint());
mGeneral->initTitle( topFrame, topLayout );
@@ -114,7 +114,7 @@ void KOJournalEditor::newJournal()
loadDefaults();
}
-void KOJournalEditor::setTexts( const QString &summary, const QString &description )
+void KOJournalEditor::setTexts( const TQString &summary, const TQString &description )
{
if ( description.isEmpty() && summary.contains("\n") ) {
mGeneral->setDescription( summary );
@@ -130,7 +130,7 @@ void KOJournalEditor::setTexts( const QString &summary, const QString &descripti
void KOJournalEditor::loadDefaults()
{
- setDate( QDate::currentDate() );
+ setDate( TQDate::currentDate() );
}
bool KOJournalEditor::processInput()
@@ -170,7 +170,7 @@ void KOJournalEditor::deleteJournal()
reject();
}
-void KOJournalEditor::setDate( const QDate &date )
+void KOJournalEditor::setDate( const TQDate &date )
{
mGeneral->setDefaults( date );
mDetails->setDefaults();
@@ -219,14 +219,14 @@ void KOJournalEditor::loadTemplate( /*const*/ CalendarLocal& cal)
}
}
-void KOJournalEditor::slotSaveTemplate( const QString &templateName )
+void KOJournalEditor::slotSaveTemplate( const TQString &templateName )
{
Journal *journal = new Journal;
writeJournal( journal );
saveAsTemplate( journal, templateName );
}
-QStringList& KOJournalEditor::templates() const
+TQStringList& KOJournalEditor::templates() const
{
return KOPrefs::instance()->mJournalTemplates;
}