summaryrefslogtreecommitdiffabout
path: root/korganizer/kotodoeditor.cpp
authorMichael Krelin <hacker@klever.net>2007-07-04 11:23:42 (UTC)
committer Michael Krelin <hacker@klever.net>2007-07-04 11:23:42 (UTC)
commita08aff328d4393031d5ba7d622c2b05705a89d73 (patch) (side-by-side diff)
tree8ee90d686081c52e7c69b5ce946e9b1a7d690001 /korganizer/kotodoeditor.cpp
parent11edc920afe4f274c0964436633aa632c8288a40 (diff)
downloadkdepimpi-a08aff328d4393031d5ba7d622c2b05705a89d73.zip
kdepimpi-a08aff328d4393031d5ba7d622c2b05705a89d73.tar.gz
kdepimpi-a08aff328d4393031d5ba7d622c2b05705a89d73.tar.bz2
initial public commit of qt4 portp1
Diffstat (limited to 'korganizer/kotodoeditor.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/kotodoeditor.cpp43
1 files changed, 24 insertions, 19 deletions
diff --git a/korganizer/kotodoeditor.cpp b/korganizer/kotodoeditor.cpp
index 20a35d2..aeab92a 100644
--- a/korganizer/kotodoeditor.cpp
+++ b/korganizer/kotodoeditor.cpp
@@ -25,6 +25,6 @@
#include <qtooltip.h>
-#include <qframe.h>
+#include <q3frame.h>
#include <qpixmap.h>
#include <qlayout.h>
-#include <qhbox.h>
+#include <q3hbox.h>
#include <qtimer.h>
@@ -33,3 +33,8 @@
#include <qapplication.h>
+#include <QDesktopWidget>
#include <qtabwidget.h>
+//Added by qt3to4:
+#include <Q3HBoxLayout>
+#include <Q3PtrList>
+#include <Q3VBoxLayout>
@@ -83,4 +88,4 @@ void KOTodoEditor::setupRecurrence()
{
- QFrame *topFrame = addPage( i18n("Recurrence") );
- QBoxLayout *topLayout = new QVBoxLayout( topFrame );
+ Q3Frame *topFrame = addPage( i18n("Recurrence") );
+ Q3BoxLayout *topLayout = new Q3VBoxLayout( topFrame );
@@ -113,5 +118,5 @@ void KOTodoEditor::setupGeneral()
if (KOPrefs::instance()->mCompactDialogs) {
- QFrame *topFrame = addPage(i18n("General"));
+ Q3Frame *topFrame = addPage(i18n("General"));
- QBoxLayout *topLayout = new QVBoxLayout(topFrame);
+ Q3BoxLayout *topLayout = new Q3VBoxLayout(topFrame);
if ( QApplication::desktop()->width() < 480 ) {
@@ -133,13 +138,13 @@ void KOTodoEditor::setupGeneral()
- QBoxLayout *priorityLayout;
+ Q3BoxLayout *priorityLayout;
if ( QApplication::desktop()->width() < 500 )
- priorityLayout = new QVBoxLayout( topLayout );
+ priorityLayout = new Q3VBoxLayout( topLayout );
else
- priorityLayout = new QHBoxLayout( topLayout );
+ priorityLayout = new Q3HBoxLayout( topLayout );
QWidget* prioWidget = new QWidget (topFrame);
priorityLayout->addWidget( prioWidget );
- QHBoxLayout* priorityLayout2 = new QHBoxLayout( prioWidget);
+ Q3HBoxLayout* priorityLayout2 = new Q3HBoxLayout( prioWidget);
- QIconSet icon;
+ QIcon icon;
if ( QApplication::desktop()->width() < 321 )
@@ -166,5 +171,5 @@ void KOTodoEditor::setupGeneral()
- QFrame *topFrame2 = addPage(i18n("Details"));
+ Q3Frame *topFrame2 = addPage(i18n("Details"));
- QBoxLayout *topLayout2 = new QVBoxLayout(topFrame2);
+ Q3BoxLayout *topLayout2 = new Q3VBoxLayout(topFrame2);
topLayout2->setMargin(marginHint());
@@ -172,3 +177,3 @@ void KOTodoEditor::setupGeneral()
- QHBoxLayout *completionLayout = new QHBoxLayout( topLayout2 );
+ Q3HBoxLayout *completionLayout = new Q3HBoxLayout( topLayout2 );
mGeneral->initCompletion(topFrame2,completionLayout);
@@ -187,5 +192,5 @@ void KOTodoEditor::setupGeneral()
} else {
- QFrame *topFrame = addPage(i18n("General"));
+ Q3Frame *topFrame = addPage(i18n("General"));
- QBoxLayout *topLayout = new QVBoxLayout(topFrame);
+ Q3BoxLayout *topLayout = new Q3VBoxLayout(topFrame);
topLayout->setSpacing(spacingHint());
@@ -195,6 +200,6 @@ void KOTodoEditor::setupGeneral()
mGeneral->initStatus(topFrame,topLayout);
- QBoxLayout *alarmLineLayout = new QHBoxLayout(topLayout);
+ Q3BoxLayout *alarmLineLayout = new Q3HBoxLayout(topLayout);
mGeneral->initAlarm(topFrame,alarmLineLayout);
mGeneral->initDescription(topFrame,topLayout);
- QBoxLayout *detailsLayout = new QHBoxLayout(topLayout);
+ Q3BoxLayout *detailsLayout = new Q3HBoxLayout(topLayout);
mGeneral->initCategories( topFrame, detailsLayout );
@@ -429,3 +434,3 @@ void KOTodoEditor::slotLoadTemplate()
}
- QPtrList<Todo> todos = cal.todos();
+ Q3PtrList<Todo> todos = cal.todos();
Todo * todo = todos.first();