summaryrefslogtreecommitdiffstats
path: root/korganizer/kojournaleditor.cpp
diff options
context:
space:
mode:
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;
}