summaryrefslogtreecommitdiffabout
path: root/korganizer
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
parent11edc920afe4f274c0964436633aa632c8288a40 (diff)
downloadkdepimpi-a08aff328d4393031d5ba7d622c2b05705a89d73.zip
kdepimpi-a08aff328d4393031d5ba7d622c2b05705a89d73.tar.gz
kdepimpi-a08aff328d4393031d5ba7d622c2b05705a89d73.tar.bz2
initial public commit of qt4 portp1
Diffstat (limited to 'korganizer') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/calendarview.cpp148
-rw-r--r--korganizer/calendarview.h32
-rw-r--r--korganizer/calprintbase.cpp102
-rw-r--r--korganizer/calprinter.cpp23
-rw-r--r--korganizer/calprinter.h18
-rw-r--r--korganizer/calprintplugins.cpp4
-rw-r--r--korganizer/cellitem.cpp14
-rw-r--r--korganizer/cellitem.h4
-rw-r--r--korganizer/datenavigatorcontainer.cpp2
-rw-r--r--korganizer/datenavigatorcontainer.h5
-rw-r--r--korganizer/filteredit_base.cpp40
-rw-r--r--korganizer/filteredit_base.h42
-rw-r--r--korganizer/filtereditdialog.cpp11
-rw-r--r--korganizer/filtereditdialog.h6
-rw-r--r--korganizer/incomingdialog.cpp30
-rw-r--r--korganizer/incomingdialog.h10
-rw-r--r--korganizer/incomingdialog_base.cpp14
-rw-r--r--korganizer/incomingdialog_base.h22
-rw-r--r--korganizer/interfaces/korganizer/baseview.h8
-rw-r--r--korganizer/interfaces/korganizer/calendarviewbase.h4
-rw-r--r--korganizer/journalentry.cpp39
-rw-r--r--korganizer/journalentry.h9
-rw-r--r--korganizer/kdatenavigator.cpp20
-rw-r--r--korganizer/kdatenavigator.h11
-rw-r--r--korganizer/koagenda.cpp169
-rw-r--r--korganizer/koagenda.h43
-rw-r--r--korganizer/koagendaitem.cpp70
-rw-r--r--korganizer/koagendaitem.h17
-rw-r--r--korganizer/koagendaview.cpp78
-rw-r--r--korganizer/koagendaview.h52
-rw-r--r--korganizer/kocounterdialog.h2
-rw-r--r--korganizer/kodaymatrix.cpp47
-rw-r--r--korganizer/kodaymatrix.h14
-rw-r--r--korganizer/kodialogmanager.cpp8
-rw-r--r--korganizer/kodialogmanager.h4
-rw-r--r--korganizer/koeditordetails.cpp38
-rw-r--r--korganizer/koeditordetails.h12
-rw-r--r--korganizer/koeditorgeneral.cpp39
-rw-r--r--korganizer/koeditorgeneral.h21
-rw-r--r--korganizer/koeditorgeneralevent.cpp32
-rw-r--r--korganizer/koeditorgeneralevent.h12
-rw-r--r--korganizer/koeditorgeneraltodo.cpp39
-rw-r--r--korganizer/koeditorgeneraltodo.h16
-rw-r--r--korganizer/koeditorrecurrence.cpp94
-rw-r--r--korganizer/koeditorrecurrence.h30
-rw-r--r--korganizer/koeventeditor.cpp43
-rw-r--r--korganizer/koeventpopupmenu.cpp17
-rw-r--r--korganizer/koeventpopupmenu.h16
-rw-r--r--korganizer/koeventview.cpp4
-rw-r--r--korganizer/koeventview.h4
-rw-r--r--korganizer/koeventviewer.cpp37
-rw-r--r--korganizer/koeventviewer.h17
-rw-r--r--korganizer/koeventviewerdialog.cpp5
-rw-r--r--korganizer/koeventviewerdialog.h5
-rw-r--r--korganizer/kofilterview.cpp48
-rw-r--r--korganizer/kofilterview.h36
-rw-r--r--korganizer/koimportoldialog.cpp30
-rw-r--r--korganizer/koimportoldialog.h4
-rw-r--r--korganizer/koincidenceeditor.cpp10
-rw-r--r--korganizer/kojournalview.cpp36
-rw-r--r--korganizer/kojournalview.h15
-rw-r--r--korganizer/kolistview.cpp193
-rw-r--r--korganizer/kolistview.h42
-rw-r--r--korganizer/komonthview.cpp218
-rw-r--r--korganizer/komonthview.h57
-rw-r--r--korganizer/koprefs.cpp8
-rw-r--r--korganizer/koprefs.h11
-rw-r--r--korganizer/koprefsdialog.cpp138
-rw-r--r--korganizer/koprefsdialog.h12
-rw-r--r--korganizer/korganizer.pro57
-rw-r--r--korganizer/korganizerE.pro6
-rw-r--r--korganizer/kotimespanview.cpp20
-rw-r--r--korganizer/kotimespanview.h6
-rw-r--r--korganizer/kotodoeditor.cpp43
-rw-r--r--korganizer/kotodoview.cpp198
-rw-r--r--korganizer/kotodoview.h58
-rw-r--r--korganizer/kotodoviewitem.cpp42
-rw-r--r--korganizer/kotodoviewitem.h14
-rw-r--r--korganizer/koviewmanager.cpp8
-rw-r--r--korganizer/kowhatsnextview.cpp38
-rw-r--r--korganizer/kowhatsnextview.h20
-rw-r--r--korganizer/ktimeedit.cpp89
-rw-r--r--korganizer/ktimeedit.h7
-rw-r--r--korganizer/lineview.cpp2
-rw-r--r--korganizer/lineview.h8
-rw-r--r--korganizer/main.cpp10
-rw-r--r--korganizer/mainwindow.cpp316
-rw-r--r--korganizer/mainwindow.h68
-rw-r--r--korganizer/navigatorbar.cpp29
-rw-r--r--korganizer/navigatorbar.h7
-rw-r--r--korganizer/outgoingdialog.cpp28
-rw-r--r--korganizer/outgoingdialog.h10
-rw-r--r--korganizer/outgoingdialog_base.cpp18
-rw-r--r--korganizer/outgoingdialog_base.h22
-rw-r--r--korganizer/publishdialog.cpp18
-rw-r--r--korganizer/publishdialog.h4
-rw-r--r--korganizer/publishdialog_base.cpp27
-rw-r--r--korganizer/publishdialog_base.h28
-rw-r--r--korganizer/savetemplatedialog.cpp7
-rw-r--r--korganizer/searchdialog.cpp43
-rw-r--r--korganizer/searchdialog.h16
-rw-r--r--korganizer/statusdialog.cpp9
-rw-r--r--korganizer/timeline.cpp6
-rw-r--r--korganizer/timeline.h4
-rw-r--r--korganizer/timespanview.cpp22
-rw-r--r--korganizer/timespanview.h10
106 files changed, 2091 insertions, 1688 deletions
diff --git a/korganizer/calendarview.cpp b/korganizer/calendarview.cpp
index 8385bcc..c1a2f76 100644
--- a/korganizer/calendarview.cpp
+++ b/korganizer/calendarview.cpp
@@ -34,3 +34,3 @@
#include <qradiobutton.h>
-#include <qbuttongroup.h>
+#include <q3buttongroup.h>
#include <qlayout.h>
@@ -39,9 +39,9 @@
#include <qmessagebox.h>
-#include <qprogressbar.h>
-#include <qmultilineedit.h>
+#include <q3progressbar.h>
+#include <q3multilineedit.h>
#include <qtimer.h>
-#include <qwidgetstack.h>
-#include <qptrlist.h>
+#include <q3widgetstack.h>
+#include <q3ptrlist.h>
#include <qregexp.h>
-#include <qgroupbox.h>
+#include <q3groupbox.h>
#include <qfile.h>
@@ -50,2 +50,8 @@
#include <qsplitter.h>
+//Added by qt3to4:
+#include <Q3VBoxLayout>
+#include <QKeyEvent>
+#include <Q3Frame>
+#include <QLabel>
+#include <Q3ValueList>
#endif
@@ -130,3 +136,3 @@
#else
-#include <qprocess.h>
+#include <q3process.h>
#endif
@@ -142,3 +148,3 @@ extern int globalFlagBlockStartup;
-MissedAlarmTextBrowser::MissedAlarmTextBrowser(QWidget *parent, QPtrList<Incidence> alarms,QDateTime start ) : QTextBrowser(parent)
+MissedAlarmTextBrowser::MissedAlarmTextBrowser(QWidget *parent, Q3PtrList<Incidence> alarms,QDateTime start ) : Q3TextBrowser(parent)
@@ -279,9 +285,9 @@ class KOBeamPrefs : public QDialog
setCaption( i18n("Beam Options") );
- QVBoxLayout* lay = new QVBoxLayout( this );
+ Q3VBoxLayout* lay = new Q3VBoxLayout( this );
lay->setSpacing( 3 );
lay->setMargin( 3 );
- QButtonGroup* format = new QButtonGroup( 1, Horizontal, i18n("File format"), this );
+ Q3ButtonGroup* format = new Q3ButtonGroup( 1, Qt::Horizontal, i18n("File format"), this );
lay->addWidget( format );
format->setExclusive ( true ) ;
- QButtonGroup* time = new QButtonGroup(1, Horizontal, i18n("Time format"), this );
+ Q3ButtonGroup* time = new Q3ButtonGroup(1, Qt::Horizontal, i18n("Time format"), this );
lay->addWidget( time ); time->setExclusive ( true ) ;
@@ -314,3 +320,3 @@ class KOCatPrefs : public QDialog
setCaption( i18n("Manage new Categories") );
- QVBoxLayout* lay = new QVBoxLayout( this );
+ Q3VBoxLayout* lay = new Q3VBoxLayout( this );
lay->setSpacing( 3 );
@@ -319,3 +325,3 @@ class KOCatPrefs : public QDialog
lay->addWidget( lab );
- QButtonGroup* format = new QButtonGroup( 1, Horizontal, i18n("New categories not in list:"), this );
+ Q3ButtonGroup* format = new Q3ButtonGroup( 1, Qt::Horizontal, i18n("New categories not in list:"), this );
lay->addWidget( format );
@@ -375,3 +381,3 @@ void CalendarView::init()
mNextAlarmDateTime = QDateTime::currentDateTime();
- setFocusPolicy (NoFocus );
+ setFocusPolicy (Qt::NoFocus );
mViewerCallerIsSearchDialog = false;
@@ -396,3 +402,3 @@ void CalendarView::init()
- QBoxLayout *topLayout = (QBoxLayout*)layout();
+ Q3BoxLayout *topLayout = (Q3BoxLayout*)layout();
#ifndef KORG_NOSPLITTER
@@ -427,5 +433,5 @@ void CalendarView::init()
QWidget *rightBox = new QWidget( mPanner );
- QBoxLayout *rightLayout = new QVBoxLayout( rightBox );
+ Q3BoxLayout *rightLayout = new Q3VBoxLayout( rightBox );
- mRightFrame = new QWidgetStack( rightBox );
+ mRightFrame = new Q3WidgetStack( rightBox );
rightLayout->addWidget( mRightFrame, 1 );
@@ -456,3 +462,3 @@ void CalendarView::init()
#ifdef DESKTOP_VERSION
- mDateScrollBar = new QScrollBar ( 1, 365, 1,30, 200,QScrollBar::Horizontal, this );
+ mDateScrollBar = new QScrollBar ( 1, 365, 1,30, 200,Qt::Horizontal, this );
topLayout->addWidget( mDateScrollBar );
@@ -503,4 +509,4 @@ void CalendarView::init()
//mainBoxLayout->addWidget ( rightBox, 10 );
- QBoxLayout *rightLayout = new QVBoxLayout( rightBox );
- mRightFrame = new QWidgetStack( rightBox );
+ Q3BoxLayout *rightLayout = new Q3VBoxLayout( rightBox );
+ mRightFrame = new Q3WidgetStack( rightBox );
rightLayout->addWidget( mRightFrame, 10 );
@@ -618,5 +624,5 @@ void CalendarView::init()
- mDateFrame = new QVBox(0,0,WType_Popup);
+ mDateFrame = new Q3VBox(0,0,Qt::WType_Popup);
//mDateFrame->setFrameStyle(QFrame::PopupPanel | QFrame::Raised);
- mDateFrame->setFrameStyle( QFrame::WinPanel |QFrame::Raised );
+ mDateFrame->setFrameStyle( Q3Frame::WinPanel |Q3Frame::Raised );
mDateFrame->setLineWidth(3);
@@ -671,3 +677,3 @@ void CalendarView::nextConflict( bool all, bool allday )
flag_blockConflict = true;
- QPtrList<Event> testlist = mCalendar->events();
+ Q3PtrList<Event> testlist = mCalendar->events();
Event * test = testlist.first();
@@ -687,3 +693,3 @@ void CalendarView::nextConflict( bool all, bool allday )
Event * cE2 = 0;
- QPtrList<Event> testlist2 = testlist;
+ Q3PtrList<Event> testlist2 = testlist;
test = testlist.first();
@@ -837,3 +843,3 @@ void CalendarView::checkFiles()
QString message;
- QPtrList<KopiCalendarFile> calendars = KOPrefs::instance()->mCalendars;
+ Q3PtrList<KopiCalendarFile> calendars = KOPrefs::instance()->mCalendars;
KopiCalendarFile * cal = calendars.first();
@@ -859,3 +865,3 @@ void CalendarView::checkAlarms()
QDateTime dt ( QDate (2005,1,1), QTime( 0,0,0 ) );
- int daysto = dt.daysTo( QDate::currentDate() );
+ int daysto = dt.daysTo( (QDateTime)QDate::currentDate() );
int days = config->readNumEntry( "LatestProgramStopDays" , daysto);
@@ -869,4 +875,4 @@ void CalendarView::checkAlarms()
//qDebug("KO: Current Time %s ",QDateTime::currentDateTime().toString().latin1() );
- QPtrList<Incidence> el = mCalendar->rawIncidences();
- QPtrList<Incidence> al;
+ Q3PtrList<Incidence> el = mCalendar->rawIncidences();
+ Q3PtrList<Incidence> al;
Incidence* inL = el.first();
@@ -888,5 +894,5 @@ void CalendarView::checkAlarms()
if ( al.count() ) {
- QDialog* dia = new QDialog( this, "huhu", false, WDestructiveClose | WStyle_StaysOnTop );
+ QDialog* dia = new QDialog( this, "huhu", false, Qt::WDestructiveClose | Qt::WStyle_StaysOnTop );
dia->setCaption( i18n("KO/Pi: Missing alarms!") );
- QVBoxLayout* lay = new QVBoxLayout( dia );
+ Q3VBoxLayout* lay = new Q3VBoxLayout( dia );
lay->setSpacing( 0 );
@@ -1218,3 +1224,3 @@ void CalendarView::computeAlarm( QString msg )
#else
- QProcess* p = new QProcess();
+ Q3Process* p = new Q3Process();
p->addArgument( tempfilename.latin1() );
@@ -1268,6 +1274,6 @@ void CalendarView::addSuspendAlarm(const QDateTime &qdt, const QString &noti )
QFile file( fn );
- if (!file.open( IO_WriteOnly ) ) {
+ if (!file.open( QIODevice::WriteOnly ) ) {
qDebug("KO: Error writing next suspend alarm file %s\nContent: \n%s ", fn.latin1(), mess.latin1());
} else {
- QTextStream ts( &file );
+ Q3TextStream ts( &file );
ts << mess;
@@ -1296,6 +1302,6 @@ void CalendarView::addAlarm(const QDateTime &qdt, const QString &noti )
QFile file( fn );
- if (!file.open( IO_WriteOnly ) ) {
+ if (!file.open( QIODevice::WriteOnly ) ) {
qDebug("KO: Error writing next alarm file %s\nContent: \n%s ", fn.latin1(), mess.latin1());
} else {
- QTextStream ts( &file );
+ Q3TextStream ts( &file );
ts << mess;
@@ -1572,3 +1578,3 @@ Event* CalendarView::getLastSyncEvent()
// if yes, we set this id in the profile to delete
-void CalendarView::checkExternSyncEvent( QPtrList<Event> lastSync , Incidence* toDelete )
+void CalendarView::checkExternSyncEvent( Q3PtrList<Event> lastSync , Incidence* toDelete )
{
@@ -1602,3 +1608,3 @@ void CalendarView::checkExternalId( Incidence * inc )
{
- QPtrList<Event> lastSync = mCalendar->getExternLastSyncEvents() ;
+ Q3PtrList<Event> lastSync = mCalendar->getExternLastSyncEvents() ;
checkExternSyncEvent( lastSync, inc );
@@ -1626,4 +1632,4 @@ bool CalendarView::synchronizeCalendar( Calendar* local, Calendar* remote, int
clearAllViews();
- QPtrList<Event> eventRSyncSharp = remote->getExternLastSyncEvents();
- QPtrList<Event> eventLSyncSharp = local->getExternLastSyncEvents();
+ Q3PtrList<Event> eventRSyncSharp = remote->getExternLastSyncEvents();
+ Q3PtrList<Event> eventLSyncSharp = local->getExternLastSyncEvents();
bool fullDateRange = false;
@@ -1686,6 +1692,6 @@ bool CalendarView::synchronizeCalendar( Calendar* local, Calendar* remote, int
qDebug("KO: mLastCalendarSync %s .Full: %d",mLastCalendarSync.toString().latin1(), fullDateRange);
- QPtrList<Incidence> er = remote->rawIncidences();
+ Q3PtrList<Incidence> er = remote->rawIncidences();
Incidence* inR = er.first();
Incidence* inL;
- QProgressBar bar( er.count(),0 );
+ Q3ProgressBar bar( er.count(),0 );
bar.setCaption (i18n("Syncing - close to abort!") );
@@ -1833,3 +1839,3 @@ bool CalendarView::synchronizeCalendar( Calendar* local, Calendar* remote, int
}
- QPtrList<Incidence> el = local->rawIncidences();
+ Q3PtrList<Incidence> el = local->rawIncidences();
inL = el.first();
@@ -2050,3 +2056,3 @@ void CalendarView::syncExternal( int mode )
{
- QPtrList<Incidence> iL = mCalendar->rawIncidences();
+ Q3PtrList<Incidence> iL = mCalendar->rawIncidences();
Incidence* inc = iL.first();
@@ -2117,3 +2123,3 @@ bool CalendarView::importBday()
}
- QProgressBar bar(count,0 );
+ Q3ProgressBar bar(count,0 );
int w = 300;
@@ -2188,3 +2194,3 @@ void CalendarView::insertBirthdays(const QString& uid, const QStringList& birthd
- QProgressBar bar(count,0 );
+ Q3ProgressBar bar(count,0 );
int w = 300;
@@ -2352,3 +2358,3 @@ bool CalendarView::loadCalendars()
{
- QPtrList<KopiCalendarFile> calendars = KOPrefs::instance()->mCalendars;
+ Q3PtrList<KopiCalendarFile> calendars = KOPrefs::instance()->mCalendars;
KopiCalendarFile * cal = calendars.first();
@@ -2366,3 +2372,3 @@ bool CalendarView::restoreCalendarSettings()
{
- QPtrList<KopiCalendarFile> calendars = KOPrefs::instance()->mCalendars;
+ Q3PtrList<KopiCalendarFile> calendars = KOPrefs::instance()->mCalendars;
KopiCalendarFile * cal = calendars.first();
@@ -2531,3 +2537,3 @@ bool CalendarView::checkAllFileVersions()
{
- QPtrList<KopiCalendarFile> calendars = KOPrefs::instance()->mCalendars;
+ Q3PtrList<KopiCalendarFile> calendars = KOPrefs::instance()->mCalendars;
KopiCalendarFile * cal = calendars.first();
@@ -2593,3 +2599,3 @@ bool CalendarView::saveCalendars()
{
- QPtrList<KopiCalendarFile> calendars = KOPrefs::instance()->mCalendars;
+ Q3PtrList<KopiCalendarFile> calendars = KOPrefs::instance()->mCalendars;
KopiCalendarFile * cal = calendars.first();
@@ -2697,3 +2703,3 @@ void CalendarView::readSettings()
- QValueList<int> sizes = config->readIntListEntry("Separator1");
+ Q3ValueList<int> sizes = config->readIntListEntry("Separator1");
if (sizes.count() != 2) {
@@ -2765,3 +2771,3 @@ void CalendarView::readSettings()
- QValueList<int> sizes = config->readIntListEntry("Left Splitter Frame");
+ Q3ValueList<int> sizes = config->readIntListEntry("Left Splitter Frame");
@@ -2844,3 +2850,3 @@ void CalendarView::writeSettings()
QDateTime dt ( QDate (2005,1,1), QTime( 0,0,0 ) );
- int days = dt.daysTo( QDate::currentDate() );
+ int days = dt.daysTo( (QDateTime)QDate::currentDate() );
dt = dt.addDays( days );
@@ -2871,5 +2877,5 @@ void CalendarView::writeSettings()
- QValueList<int> listINT = mLeftFrame->sizes();
+ Q3ValueList<int> listINT = mLeftFrame->sizes();
config->writeEntry("Left Splitter Frame",listINT);
- QValueList<int> listINT2 = mMainFrame->sizes();
+ Q3ValueList<int> listINT2 = mMainFrame->sizes();
config->writeEntry("Main Splitter Frame",listINT2);
@@ -3168,3 +3174,3 @@ void CalendarView::checkConflictForEvent()
}
- QPtrList<Event> testlist = mCalendar->events();
+ Q3PtrList<Event> testlist = mCalendar->events();
Event * test = testlist.first();
@@ -3430,3 +3436,3 @@ void CalendarView::removeCategories()
{
- QPtrList<Incidence> incList = mCalendar->rawIncidences();
+ Q3PtrList<Incidence> incList = mCalendar->rawIncidences();
QStringList catList = KOPrefs::instance()->mCustomCategories;
@@ -3451,3 +3457,3 @@ int CalendarView::addCategories()
{
- QPtrList<Incidence> incList = mCalendar->rawIncidences();
+ Q3PtrList<Incidence> incList = mCalendar->rawIncidences();
QStringList catList = KOPrefs::instance()->mCustomCategories;
@@ -3509,3 +3515,3 @@ void CalendarView::beamIncidence(Incidence * Inc)
{
- QPtrList<Incidence> delSel ;
+ Q3PtrList<Incidence> delSel ;
delSel.append(Inc);
@@ -3515,3 +3521,3 @@ void CalendarView::beamCalendar()
{
- QPtrList<Incidence> delSel = mCalendar->rawIncidences();
+ Q3PtrList<Incidence> delSel = mCalendar->rawIncidences();
//qDebug("beamCalendar() ");
@@ -3521,3 +3527,3 @@ void CalendarView::beamFilteredCalendar()
{
- QPtrList<Incidence> delSel = mCalendar->incidences();
+ Q3PtrList<Incidence> delSel = mCalendar->incidences();
//qDebug("beamFilteredCalendar() ");
@@ -3525,3 +3531,3 @@ void CalendarView::beamFilteredCalendar()
}
-void CalendarView::beamIncidenceList(QPtrList<Incidence> delSel )
+void CalendarView::beamIncidenceList(Q3PtrList<Incidence> delSel )
{
@@ -4317,3 +4323,3 @@ void CalendarView::schedule_publish(Incidence *incidence)
if (incidence->attendeeCount()>0) {
- QPtrList<Attendee> attendees = incidence->attendees();
+ Q3PtrList<Attendee> attendees = incidence->attendees();
attendees.first();
@@ -4726,3 +4732,3 @@ void CalendarView::showDates(const DateList &selectedDates)
-QPtrList<CalFilter> CalendarView::filters()
+Q3PtrList<CalFilter> CalendarView::filters()
{
@@ -4767,3 +4773,3 @@ void CalendarView::showFilter(bool visible)
mCalEditView->show();
- QValueList<int> sizes;
+ Q3ValueList<int> sizes;
sizes = mLeftFrame->sizes();
@@ -4848,3 +4854,3 @@ void CalendarView::takeOverCalendar()
clearAllViews();
- QPtrList<Event> events = mCalendar->events();
+ Q3PtrList<Event> events = mCalendar->events();
for(uint i=0; i<events.count(); ++i) {
@@ -4855,3 +4861,3 @@ void CalendarView::takeOverCalendar()
- QPtrList<Todo> todos = mCalendar->todos();
+ Q3PtrList<Todo> todos = mCalendar->todos();
for(uint i=0; i<todos.count(); ++i) {
@@ -4862,3 +4868,3 @@ void CalendarView::takeOverCalendar()
- QPtrList<Journal> journals = mCalendar->journals();
+ Q3PtrList<Journal> journals = mCalendar->journals();
for(uint i=0; i<journals.count(); ++i) {
@@ -4877,3 +4883,3 @@ void CalendarView::showIntro()
-QWidgetStack *CalendarView::viewStack()
+Q3WidgetStack *CalendarView::viewStack()
{
@@ -5062,3 +5068,3 @@ bool CalendarView::removeCompletedSubTodos( Todo* t )
bool deleteTodo = true;
- QPtrList<Incidence> subTodos;
+ Q3PtrList<Incidence> subTodos;
Incidence *aTodo;
@@ -5088,4 +5094,4 @@ void CalendarView::purgeCompleted()
- QPtrList<Todo> todoCal;
- QPtrList<Todo> rootTodos;
+ Q3PtrList<Todo> todoCal;
+ Q3PtrList<Todo> rootTodos;
//QPtrList<Incidence> rel;
diff --git a/korganizer/calendarview.h b/korganizer/calendarview.h
index 60b1276..b4eada7 100644
--- a/korganizer/calendarview.h
+++ b/korganizer/calendarview.h
@@ -26,9 +26,11 @@
-#include <qframe.h>
+#include <q3frame.h>
#include <qlayout.h>
#include <qwidget.h>
-#include <qptrlist.h>
-#include <qvbox.h>
+#include <q3ptrlist.h>
+#include <q3vbox.h>
#include <qmap.h>
#include <qscrollbar.h>
+//Added by qt3to4:
+#include <QKeyEvent>
#ifndef DESKTOP_VERSION
@@ -49,3 +51,3 @@
-class QWidgetStack;
+class Q3WidgetStack;
class QSplitter;
@@ -86,9 +88,9 @@ using namespace KCal;
-#include <qtextbrowser.h>
+#include <q3textbrowser.h>
#include <qtextcodec.h>
-class MissedAlarmTextBrowser : public QTextBrowser {
+class MissedAlarmTextBrowser : public Q3TextBrowser {
Q_OBJECT
public:
- MissedAlarmTextBrowser(QWidget *parent, QPtrList<Incidence> alarms ,QDateTime start);
+ MissedAlarmTextBrowser(QWidget *parent, Q3PtrList<Incidence> alarms ,QDateTime start);
~MissedAlarmTextBrowser();
@@ -98,3 +100,3 @@ class MissedAlarmTextBrowser : public QTextBrowser {
Incidence * getNextInc(QDateTime start );
- QPtrList<Incidence> mAlarms;
+ Q3PtrList<Incidence> mAlarms;
signals:
@@ -129,3 +131,3 @@ class CalendarView : public KOrg::CalendarViewBase, public KCal::Calendar::Obser
- QWidgetStack *viewStack();
+ Q3WidgetStack *viewStack();
QWidget *leftFrame();
@@ -443,3 +445,3 @@ class CalendarView : public KOrg::CalendarViewBase, public KCal::Calendar::Obser
void toggleFilerEnabled();
- QPtrList<CalFilter> filters();
+ Q3PtrList<CalFilter> filters();
void toggleFilter();
@@ -497,3 +499,3 @@ class CalendarView : public KOrg::CalendarViewBase, public KCal::Calendar::Obser
void beamFilteredCalendar() ;
- void beamIncidenceList(QPtrList<Incidence>) ;
+ void beamIncidenceList(Q3PtrList<Incidence>) ;
void manageCategories();
@@ -577,3 +579,3 @@ class CalendarView : public KOrg::CalendarViewBase, public KCal::Calendar::Obser
QDateTime loadedFileVersion;
- void checkExternSyncEvent( QPtrList<Event> lastSync , Incidence* toDelete );
+ void checkExternSyncEvent( Q3PtrList<Event> lastSync , Incidence* toDelete );
void checkExternalId( Incidence * inc );
@@ -595,6 +597,6 @@ class CalendarView : public KOrg::CalendarViewBase, public KCal::Calendar::Obser
KDGanttMinimizeSplitter *mLeftFrame, *mMainFrame;
- QWidgetStack *mRightFrame;
+ Q3WidgetStack *mRightFrame;
KDatePicker* mDatePicker;
- QVBox* mDateFrame;
+ Q3VBox* mDateFrame;
@@ -620,3 +622,3 @@ class CalendarView : public KOrg::CalendarViewBase, public KCal::Calendar::Obser
// Calendar filters
- QPtrList<CalFilter> mFilters;
+ Q3PtrList<CalFilter> mFilters;
diff --git a/korganizer/calprintbase.cpp b/korganizer/calprintbase.cpp
index 7b7d54c..ecb9e03 100644
--- a/korganizer/calprintbase.cpp
+++ b/korganizer/calprintbase.cpp
@@ -27,7 +27,9 @@
#include <qlayout.h>
-#include <qframe.h>
+#include <q3frame.h>
#include <qlabel.h>
-#include <qptrlist.h>
-#include <qintdict.h>
+#include <q3ptrlist.h>
+#include <q3intdict.h>
#include <qfontmetrics.h>
+//Added by qt3to4:
+#include <Q3VBoxLayout>
@@ -147,4 +149,4 @@ QWidget *CalPrintBase::configWidget( QWidget *w )
{
- QFrame *wdg = new QFrame( w );
- QVBoxLayout *layout = new QVBoxLayout( wdg );
+ Q3Frame *wdg = new Q3Frame( w );
+ Q3VBoxLayout *layout = new Q3VBoxLayout( wdg );
@@ -287,3 +289,3 @@ void CalPrintBase::drawSmallMonth(QPainter &p, const QDate &qd,
const KCalendarSystem *calSys = KOGlobals::self()->calendarSystem();
- p.drawText(x, y, width, height/4, AlignCenter, calSys->monthName( qd ) );
+ p.drawText(x, y, width, height/4, Qt::AlignCenter, calSys->monthName( qd ) );
@@ -303,3 +305,3 @@ void CalPrintBase::drawSmallMonth(QPainter &p, const QDate &qd,
p.drawText(x+col*cellWidth, y+height/4, cellWidth, cellHeight,
- AlignCenter, tmpStr);
+ Qt::AlignCenter, tmpStr);
monthDate2 = monthDate2.addDays(1);
@@ -320,3 +322,3 @@ void CalPrintBase::drawSmallMonth(QPainter &p, const QDate &qd,
y+height/4+cellHeight+(row*cellHeight),
- cellWidth, cellHeight, AlignCenter,
+ cellWidth, cellHeight, Qt::AlignCenter,
tmpStr.setNum(monthDate.day()) );
@@ -360,3 +362,3 @@ void CalPrintBase::drawDaysOfWeekBox(QPainter &p, const QDate &qd,
// QBrush( Dense7Pattern ) );
- p.drawText( x+5, y, width-10, height, AlignCenter | AlignVCenter,
+ p.drawText( x+5, y, width-10, height, Qt::AlignCenter | Qt::AlignVCenter,
calSys->weekDayName( qd ) );
@@ -403,6 +405,6 @@ void CalPrintBase::drawTimeLine(QPainter &p,
p.drawText(x+2, (int)currY+2, width/2-2, (int)cellHeight,
- AlignTop|AlignRight, numStr);
+ Qt::AlignTop|Qt::AlignRight, numStr);
p.setFont(QFont("helvetica", 10, QFont::Normal));
p.drawText(x+width/2, (int)currY+2, width/2+2, (int)(cellHeight/2)-3,
- AlignTop | AlignLeft, "00");
+ Qt::AlignTop | Qt::AlignLeft, "00");
} else {
@@ -412,3 +414,3 @@ void CalPrintBase::drawTimeLine(QPainter &p,
p.drawText(x+2, (int)currY+2, width-4, (int)cellHeight/2-3,
- AlignTop|AlignLeft, numStr);
+ Qt::AlignTop|Qt::AlignLeft, numStr);
}
@@ -474,3 +476,3 @@ void CalPrintBase::drawAllDayBox(QPainter &p, Event::List &eventList,
p.drawText( x+5, offset+5, width-10, height-10,
- AlignCenter | AlignVCenter | AlignJustify | WordBreak,
+ Qt::AlignCenter | Qt::AlignVCenter | Qt::AlignJustify | Qt::WordBreak,
text );
@@ -495,3 +497,3 @@ void CalPrintBase::drawAllDayBox(QPainter &p, Event::List &eventList,
p.drawText( x+5, offset+5, width-10, height-10,
- AlignLeft | AlignTop | AlignJustify ,
+ Qt::AlignLeft | Qt::AlignTop | Qt::AlignJustify ,
multiDayStr);
@@ -562,3 +564,3 @@ void CalPrintBase::drawAgendaDayBox( QPainter &p, Event::List &events,
- QPtrList<KOrg::CellItem> cells;
+ Q3PtrList<KOrg::CellItem> cells;
cells.setAutoDelete( true );
@@ -570,3 +572,3 @@ void CalPrintBase::drawAgendaDayBox( QPainter &p, Event::List &events,
- QPtrListIterator<KOrg::CellItem> it1( cells );
+ Q3PtrListIterator<KOrg::CellItem> it1( cells );
for( it1.toFirst(); it1.current(); ++it1 ) {
@@ -595,3 +597,3 @@ void CalPrintBase::drawAgendaDayBox( QPainter &p, Event::List &events,
- p.setBrush( QBrush( NoBrush ) );
+ p.setBrush( QBrush( Qt::NoBrush ) );
}
@@ -637,3 +639,3 @@ void CalPrintBase::drawAgendaItem( PrintCellItem *item, QPainter &p,
p.drawText( currentX+3, currentyPos+2, currentWidth-5, eventLength-3,
- AlignLeft | AlignTop | AlignJustify | WordBreak,
+ Qt::AlignLeft | Qt::AlignTop | Qt::AlignJustify | Qt::TextWordWrap,
text);
@@ -672,3 +674,3 @@ void CalPrintBase::drawDayBox(QPainter &p, const QDate &qd,
- p.drawText( x+5, y, width-25, mSubHeaderHeight, AlignLeft | AlignVCenter,
+ p.drawText( x+5, y, width-25, mSubHeaderHeight, Qt::AlignLeft | Qt::AlignVCenter,
hstring );
@@ -682,3 +684,3 @@ void CalPrintBase::drawDayBox(QPainter &p, const QDate &qd,
}
- p.drawText(x+5, y, width-10, mSubHeaderHeight, AlignRight | AlignVCenter,
+ p.drawText(x+5, y, width-10, mSubHeaderHeight, Qt::AlignRight | Qt::AlignVCenter,
dayNumStr);
@@ -726,3 +728,3 @@ void CalPrintBase::drawDayBox(QPainter &p, const QDate &qd,
p.drawText(x+5, y+textY, width-10, lineSpacing,
- AlignLeft|AlignBottom, outStr);
+ Qt::AlignLeft|Qt::AlignBottom, outStr);
textY+=lineSpacing;
@@ -745,3 +747,3 @@ void CalPrintBase::drawDayBox(QPainter &p, const QDate &qd,
p.drawText(x+5, y+textY, width-10, lineSpacing,
- AlignLeft|AlignBottom, text);
+ Qt::AlignLeft|Qt::AlignBottom, text);
textY+=lineSpacing;
@@ -851,3 +853,3 @@ void CalPrintBase::drawMonth(QPainter &p, const QDate &qd, bool weeknumbers,
QRect rc(x, y+yoffset+cellHeight*row, xoffset-1, cellHeight);
- p.drawText( rc, AlignRight|AlignVCenter, QString::number(calWeek) );
+ p.drawText( rc, Qt::AlignRight|Qt::AlignVCenter, QString::number(calWeek) );
weekDate = weekDate.addDays(7);
@@ -899,3 +901,3 @@ void CalPrintBase::drawTodo( bool completed, int &count, Todo * item, QPainter &
// lines of the tree can easily be drawn (needed if a new page is started)
- static QPtrList<TodoParentStart> startPoints;
+ static Q3PtrList<TodoParentStart> startPoints;
if (level<1) {
@@ -912,3 +914,3 @@ void CalPrintBase::drawTodo( bool completed, int &count, Todo * item, QPainter &
int left = possummary+(level*10);
- rect = p.boundingRect(left, y, (posdue-left-5),-1, WordBreak, outStr);
+ rect = p.boundingRect(left, y, (posdue-left-5),-1, Qt::WordBreak, outStr);
//qDebug("bottom1 %d ", rect.bottom() );
@@ -917,3 +919,3 @@ void CalPrintBase::drawTodo( bool completed, int &count, Todo * item, QPainter &
rect = p.boundingRect( left+20, rect.bottom()+5, width-(left+10-x), -1,
- WordBreak, outStr );
+ Qt::WordBreak, outStr );
}
@@ -935,4 +937,3 @@ void CalPrintBase::drawTodo( bool completed, int &count, Todo * item, QPainter &
start = p.viewport().top();
- p.moveTo( center, start );
- p.lineTo( center, to );
+ p.drawLine( center, start, center, to );
rct->mSamePage=false;
@@ -953,3 +954,3 @@ void CalPrintBase::drawTodo( bool completed, int &count, Todo * item, QPainter &
outStr.setNum(priority);
- rect = p.boundingRect(pospriority, y + 10, 5, -1, AlignCenter, outStr);
+ rect = p.boundingRect(pospriority, y + 10, 5, -1, Qt::AlignCenter, outStr);
// Make it a more reasonable size
@@ -958,3 +959,3 @@ void CalPrintBase::drawTodo( bool completed, int &count, Todo * item, QPainter &
if ( priority > 0 && pospriority>=0 ) {
- p.drawText(rect, AlignCenter, outStr);
+ p.drawText(rect, Qt::AlignCenter, outStr);
p.drawRect(rect);
@@ -966,3 +967,3 @@ void CalPrintBase::drawTodo( bool completed, int &count, Todo * item, QPainter &
QPen pen = p.pen();
- p.setPen ( QPen ( black, 2) );
+ p.setPen ( QPen ( Qt::black, 2) );
p.drawLine( rect.left()+2,rect.top()+rect.height()/2, rect.right()-2, +rect.top()+rect.height()/2 );
@@ -983,5 +984,4 @@ void CalPrintBase::drawTodo( bool completed, int &count, Todo * item, QPainter &
int endx( rect.left() );
- p.moveTo(center, bottom);
- p.lineTo(center, to);
- p.lineTo(endx, to);
+ p.drawLine(center,bottom, center,to);
+ p.drawLine(center,to, endx,to);
}
@@ -1001,5 +1001,5 @@ void CalPrintBase::drawTodo( bool completed, int &count, Todo * item, QPainter &
rect = p.boundingRect( left, rect.top(), (posdue-(left + rect.width() + 5)),
- -1, WordBreak, outStr);
+ -1, Qt::WordBreak, outStr);
QRect newrect;
- p.drawText( rect, WordBreak, outStr, -1, &newrect );
+ p.drawText( rect, Qt::WordBreak, outStr, -1, &newrect );
//ft.setStrikeOut(false);
@@ -1018,4 +1018,4 @@ void CalPrintBase::drawTodo( bool completed, int &count, Todo * item, QPainter &
rect = p.boundingRect( left+20, y, x+width-(left+10), -1,
- WordBreak, outStr );
- p.drawText( rect, WordBreak, outStr, -1, &newrect );
+ Qt::WordBreak, outStr );
+ p.drawText( rect, Qt::WordBreak, outStr, -1, &newrect );
}
@@ -1140,4 +1140,4 @@ void CalPrintBase::drawSplitHeaderRight( QPainter &p, const QDate &fd,
QFont font("helvetica", 18, QFont::Bold);
- QPen penA( black,0);
- QPen penB( black,3);
+ QPen penA( Qt::black,0);
+ QPen penB( Qt::black,3);
p.setFont(font);
@@ -1163,3 +1163,3 @@ void CalPrintBase::drawSplitHeaderRight( QPainter &p, const QDate &fd,
lineSpacing = p.fontMetrics().lineSpacing();
- p.drawText(0, lineSpacing * 0, width, lineSpacing, AlignRight |AlignTop, title );
+ p.drawText(0, lineSpacing * 0, width, lineSpacing, Qt::AlignRight |Qt::AlignTop, title );
@@ -1173,3 +1173,3 @@ void CalPrintBase::drawSplitHeaderRight( QPainter &p, const QDate &fd,
title += QString::number(fd.year());
- p.drawText(0, lineSpacing * 1, width, lineSpacing, AlignRight |AlignTop, title );
+ p.drawText(0, lineSpacing * 1, width, lineSpacing, Qt::AlignRight |Qt::AlignTop, title );
mSubHeaderHeight = tempStore ;
@@ -1199,3 +1199,3 @@ void CalPrintBase::drawSplitDay( QPainter &p, const QDate &qd, int width,
p.drawText(offsetLeft, mHeaderHeight + 5,
- width, mSubHeaderHeight, AlignHCenter | AlignVCenter,
+ width, mSubHeaderHeight, Qt::AlignHCenter | Qt::AlignVCenter,
dayName);
@@ -1256,6 +1256,6 @@ void CalPrintBase::drawSplitDay( QPainter &p, const QDate &qd, int width,
p.drawText(offsetLeft+12, offset+startMinuteOff+startTime*cellHeight+5, width-24,
- cheight-10, AlignHCenter | AlignTop, text);
+ cheight-10, Qt::AlignHCenter | Qt::AlignTop, text);
}
}
- p.setBrush(QBrush(NoBrush));
+ p.setBrush(QBrush(Qt::NoBrush));
mSubHeaderHeight = tempStore ;
@@ -1276,8 +1276,8 @@ void CalPrintBase::drawSplitTimes( QPainter &p, int width, int timeWidth,
for (int i = 0; i < hours; i++) {
- p.setPen(QPen(black,1));
+ p.setPen(QPen(Qt::black,1));
p.drawLine(0, offset+i*cellHeight, width, offset+i*cellHeight);
- p.setPen(QPen(gray,0));
+ p.setPen(QPen(Qt::gray,0));
p.drawLine(37, offset+i*cellHeight+(cellHeight/2),
width, offset+i*cellHeight+(cellHeight/2));
- p.setPen(QPen(black,0));
+ p.setPen(QPen(Qt::black,0));
@@ -1291,6 +1291,6 @@ void CalPrintBase::drawSplitTimes( QPainter &p, int width, int timeWidth,
p.drawText(0, offset+i*cellHeight, 33, cellHeight/2,
- AlignTop|AlignRight, numStr);
+ Qt::AlignTop|Qt::AlignRight, numStr);
p.setFont(QFont("helvetica", 12, QFont::Bold));
p.drawText(37, offset+i*cellHeight, 45, cellHeight/2,
- AlignTop | AlignLeft, "00");
+ Qt::AlignTop | Qt::AlignLeft, "00");
} else {
@@ -1300,3 +1300,3 @@ void CalPrintBase::drawSplitTimes( QPainter &p, int width, int timeWidth,
p.drawText(4, offset+i*cellHeight, 70, cellHeight/2,
- AlignTop|AlignLeft, numStr);
+ Qt::AlignTop|Qt::AlignLeft, numStr);
}
diff --git a/korganizer/calprinter.cpp b/korganizer/calprinter.cpp
index 0cdf28e..d4bf988 100644
--- a/korganizer/calprinter.cpp
+++ b/korganizer/calprinter.cpp
@@ -23,4 +23,4 @@
-#include <qvbuttongroup.h>
-#include <qwidgetstack.h>
+// #include <qvbuttongroup.h>
+#include <q3widgetstack.h>
#include <qradiobutton.h>
@@ -30,4 +30,7 @@
#include <qlabel.h>
-#include <qvbox.h>
+#include <q3vbox.h>
#include <qsplitter.h>
+//Added by qt3to4:
+#include <Q3GridLayout>
+#include <Q3PtrList>
@@ -176,3 +179,3 @@ void CalPrinter::updateConfig()
-CalPrintDialog::CalPrintDialog( QPtrList<CalPrintBase> plugins, KPrinter *p,
+CalPrintDialog::CalPrintDialog( Q3PtrList<CalPrintBase> plugins, KPrinter *p,
QWidget *parent, const char *name )
@@ -181,5 +184,5 @@ CalPrintDialog::CalPrintDialog( QPtrList<CalPrintBase> plugins, KPrinter *p,
{
- QVBox *page = new QVBox(this);//makeVBoxMainWidget();
+ Q3VBox *page = new Q3VBox(this);//makeVBoxMainWidget();
setMainWidget( page );
- QHBox *printerLayout = new QHBox( page );
+ Q3HBox *printerLayout = new Q3HBox( page );
@@ -193,5 +196,5 @@ CalPrintDialog::CalPrintDialog( QPtrList<CalPrintBase> plugins, KPrinter *p,
QSplitter *splitter = new QSplitter( page );
- splitter->setOrientation( QSplitter::Horizontal );
+ splitter->setOrientation( Qt::Horizontal );
- mTypeGroup = new QVButtonGroup( i18n("View Type"), splitter, "buttonGroup" );
+ mTypeGroup = new Q3VButtonGroup( i18n("View Type"), splitter, "buttonGroup" );
// use the minimal width possible = max width of the radio buttons, not extensible
@@ -202,3 +205,3 @@ CalPrintDialog::CalPrintDialog( QPtrList<CalPrintBase> plugins, KPrinter *p,
QWidget *splitterRight = new QWidget( splitter, "splitterRight" );
- QGridLayout *splitterRightLayout = new QGridLayout( splitterRight );
+ Q3GridLayout *splitterRightLayout = new Q3GridLayout( splitterRight );
splitterRightLayout->setMargin( marginHint() );
@@ -206,3 +209,3 @@ CalPrintDialog::CalPrintDialog( QPtrList<CalPrintBase> plugins, KPrinter *p,
- mConfigArea = new QWidgetStack( splitterRight, "configWidgetStack" );
+ mConfigArea = new Q3WidgetStack( splitterRight, "configWidgetStack" );
splitterRightLayout->addMultiCellWidget( mConfigArea, 0,0, 0,1 );
diff --git a/korganizer/calprinter.h b/korganizer/calprinter.h
index 7b58f4f..e065779 100644
--- a/korganizer/calprinter.h
+++ b/korganizer/calprinter.h
@@ -1 +1,3 @@
+//Added by qt3to4:
+#include <QLabel>
/*
@@ -30,3 +32,3 @@
-#include <qptrlist.h>
+#include <q3ptrlist.h>
@@ -40,4 +42,4 @@ using namespace KCal;
-class QVButtonGroup;
-class QWidgetStack;
+class Q3VButtonGroup;
+class Q3WidgetStack;
class KPrinter;
@@ -96,3 +98,3 @@ class CalPrinter : public QObject, public KOrg::CalPrinterBase
protected:
- QPtrList<CalPrintBase> mPrintPlugins;
+ Q3PtrList<CalPrintBase> mPrintPlugins;
@@ -111,3 +113,3 @@ class CalPrintDialog : public KDialogBase
public:
- CalPrintDialog( QPtrList<CalPrintBase> plugins, KPrinter *p,
+ CalPrintDialog( Q3PtrList<CalPrintBase> plugins, KPrinter *p,
QWidget *parent = 0, const char *name = 0 );
@@ -129,5 +131,5 @@ signals:
KPrinter *mPrinter;
- QVButtonGroup *mTypeGroup;
- QWidgetStack *mConfigArea;
- QPtrList<CalPrintBase> mPrintPlugins;
+ Q3VButtonGroup *mTypeGroup;
+ Q3WidgetStack *mConfigArea;
+ Q3PtrList<CalPrintBase> mPrintPlugins;
QLabel *mPrinterLabel;
diff --git a/korganizer/calprintplugins.cpp b/korganizer/calprintplugins.cpp
index bc35ca4..9b6dc6e 100644
--- a/korganizer/calprintplugins.cpp
+++ b/korganizer/calprintplugins.cpp
@@ -27,3 +27,3 @@
#include <qpainter.h>
-#include <qdatetimeedit.h>
+#include <q3datetimeedit.h>
#include <qdatetime.h>
@@ -31,3 +31,3 @@
#include <qlineedit.h>
-#include <qbuttongroup.h>
+#include <q3buttongroup.h>
diff --git a/korganizer/cellitem.cpp b/korganizer/cellitem.cpp
index 61d06ac..1fd703c 100644
--- a/korganizer/cellitem.cpp
+++ b/korganizer/cellitem.cpp
@@ -29,3 +29,5 @@
-#include <qintdict.h>
+#include <q3intdict.h>
+//Added by qt3to4:
+#include <Q3PtrList>
@@ -38,3 +40,3 @@ QString CellItem::label() const
-QPtrList<CellItem> CellItem::placeItem( QPtrList<CellItem> cells,
+Q3PtrList<CellItem> CellItem::placeItem( Q3PtrList<CellItem> cells,
CellItem *placeItem )
@@ -43,8 +45,8 @@ QPtrList<CellItem> CellItem::placeItem( QPtrList<CellItem> cells,
- QPtrList<KOrg::CellItem> conflictItems;
+ Q3PtrList<KOrg::CellItem> conflictItems;
int maxSubCells = 0;
- QIntDict<KOrg::CellItem> subCellDict;
+ Q3IntDict<KOrg::CellItem> subCellDict;
// Find all items which are in same cell
- QPtrListIterator<KOrg::CellItem> it2( cells );
+ Q3PtrListIterator<KOrg::CellItem> it2( cells );
for( it2.toFirst(); it2.current(); ++it2 ) {
@@ -85,3 +87,3 @@ QPtrList<CellItem> CellItem::placeItem( QPtrList<CellItem> cells,
- QPtrListIterator<KOrg::CellItem> it3( conflictItems );
+ Q3PtrListIterator<KOrg::CellItem> it3( conflictItems );
for( it3.toFirst(); it3.current(); ++it3 ) {
diff --git a/korganizer/cellitem.h b/korganizer/cellitem.h
index 72773d0..b917bd5 100644
--- a/korganizer/cellitem.h
+++ b/korganizer/cellitem.h
@@ -27,3 +27,3 @@
#include <qstring.h>
-#include <qptrlist.h>
+#include <q3ptrlist.h>
@@ -55,3 +55,3 @@ class CellItem
*/
- static QPtrList<CellItem> placeItem( QPtrList<CellItem> cells,
+ static Q3PtrList<CellItem> placeItem( Q3PtrList<CellItem> cells,
CellItem *placeItem );
diff --git a/korganizer/datenavigatorcontainer.cpp b/korganizer/datenavigatorcontainer.cpp
index ea510f1..53507d3 100644
--- a/korganizer/datenavigatorcontainer.cpp
+++ b/korganizer/datenavigatorcontainer.cpp
@@ -36,2 +36,4 @@
#include "koprefs.h"
+//Added by qt3to4:
+#include <QResizeEvent>
diff --git a/korganizer/datenavigatorcontainer.h b/korganizer/datenavigatorcontainer.h
index 87cc59f..75d387c 100644
--- a/korganizer/datenavigatorcontainer.h
+++ b/korganizer/datenavigatorcontainer.h
@@ -1 +1,4 @@
+//Added by qt3to4:
+#include <QResizeEvent>
+#include <Q3PtrList>
/*
@@ -102,3 +105,3 @@ class DateNavigatorContainer: public QWidget
- QPtrList<KDateNavigator> mExtraViews;
+ Q3PtrList<KDateNavigator> mExtraViews;
diff --git a/korganizer/filteredit_base.cpp b/korganizer/filteredit_base.cpp
index 505edf6..9425963 100644
--- a/korganizer/filteredit_base.cpp
+++ b/korganizer/filteredit_base.cpp
@@ -13,7 +13,8 @@
#include <qpushbutton.h>
-#include <qframe.h>
-#include <qbuttongroup.h>
+#include <q3frame.h>
+#include <q3buttongroup.h>
#include <qapplication.h>
+#include <QDesktopWidget>
#include <qradiobutton.h>
-#include <qlistbox.h>
+#include <q3listbox.h>
#include <qlabel.h>
@@ -22,3 +23,7 @@
#include <qtooltip.h>
-#include <qwhatsthis.h>
+#include <q3whatsthis.h>
+//Added by qt3to4:
+#include <Q3GridLayout>
+#include <Q3HBoxLayout>
+#include <Q3VBoxLayout>
#include "tr.h"
@@ -29,3 +34,3 @@
*/
-FilterEdit_base::FilterEdit_base( QWidget* parent, const char* name, WFlags fl )
+FilterEdit_base::FilterEdit_base( QWidget* parent, const char* name, Qt::WFlags fl )
: QWidget( parent, name, fl )
@@ -34,10 +39,10 @@ FilterEdit_base::FilterEdit_base( QWidget* parent, const char* name, WFlags fl )
setName( "FilterEdit_base" );
- FilterEdit_baseLayout = new QVBoxLayout( this, 0, 0, "FilterEdit_baseLayout");
+ FilterEdit_baseLayout = new Q3VBoxLayout( this, 0, 0, "FilterEdit_baseLayout");
- mCriteriaFrame = new QFrame( this, "mCriteriaFrame" );
- mCriteriaFrame->setFrameShape( QFrame::StyledPanel );
- mCriteriaFrame->setFrameShadow( QFrame::Raised );
- mCriteriaFrameLayout = new QVBoxLayout( mCriteriaFrame, 3, 2, "mCriteriaFrameLayout");
+ mCriteriaFrame = new Q3Frame( this, "mCriteriaFrame" );
+ mCriteriaFrame->setFrameShape( Q3Frame::StyledPanel );
+ mCriteriaFrame->setFrameShadow( Q3Frame::Raised );
+ mCriteriaFrameLayout = new Q3VBoxLayout( mCriteriaFrame, 3, 2, "mCriteriaFrameLayout");
- ButtonGroup1 = new QButtonGroup( mCriteriaFrame, "ButtonGroup1" );
+ ButtonGroup1 = new Q3ButtonGroup( mCriteriaFrame, "ButtonGroup1" );
ButtonGroup1->setColumnLayout(0, Qt::Vertical );
@@ -45,6 +50,6 @@ FilterEdit_base::FilterEdit_base( QWidget* parent, const char* name, WFlags fl )
ButtonGroup1->layout()->setMargin( 6 );
- ButtonGroup1Layout = new QGridLayout( ButtonGroup1->layout() );
+ ButtonGroup1Layout = new Q3GridLayout( ButtonGroup1->layout() );
ButtonGroup1Layout->setAlignment( Qt::AlignTop );
- layout4 = new QHBoxLayout( 0, 0, 6, "layout4");
+ layout4 = new Q3HBoxLayout( 0, 0, 6, "layout4");
@@ -61,3 +66,3 @@ FilterEdit_base::FilterEdit_base( QWidget* parent, const char* name, WFlags fl )
- mCatList = new QListBox( ButtonGroup1, "mCatList" );
+ mCatList = new Q3ListBox( ButtonGroup1, "mCatList" );
@@ -66,3 +71,3 @@ FilterEdit_base::FilterEdit_base( QWidget* parent, const char* name, WFlags fl )
- layout7 = new QHBoxLayout( 0, 0, 6, "layout7");
+ layout7 = new Q3HBoxLayout( 0, 0, 6, "layout7");
@@ -78,3 +83,3 @@ FilterEdit_base::FilterEdit_base( QWidget* parent, const char* name, WFlags fl )
- layout9 = new QHBoxLayout( 0, 0, 6, "layout9");
+ layout9 = new Q3HBoxLayout( 0, 0, 6, "layout9");
@@ -93,3 +98,3 @@ FilterEdit_base::FilterEdit_base( QWidget* parent, const char* name, WFlags fl )
- layout2 = new QHBoxLayout( 0, 0, 0, "layout2");
+ layout2 = new Q3HBoxLayout( 0, 0, 0, "layout2");
@@ -111,3 +116,2 @@ FilterEdit_base::FilterEdit_base( QWidget* parent, const char* name, WFlags fl )
resize( QSize(300, 200).expandedTo(minimumSizeHint()) );
- clearWState( WState_Polished );
}
diff --git a/korganizer/filteredit_base.h b/korganizer/filteredit_base.h
index 13a02c3..135f6fa 100644
--- a/korganizer/filteredit_base.h
+++ b/korganizer/filteredit_base.h
@@ -14,13 +14,19 @@
#include <qwidget.h>
+//Added by qt3to4:
+#include <Q3VBoxLayout>
+#include <Q3Frame>
+#include <Q3GridLayout>
+#include <Q3HBoxLayout>
+#include <QLabel>
-class QVBoxLayout;
-class QHBoxLayout;
-class QGridLayout;
+class Q3VBoxLayout;
+class Q3HBoxLayout;
+class Q3GridLayout;
class QSpacerItem;
-class QFrame;
-class QButtonGroup;
+class Q3Frame;
+class Q3ButtonGroup;
class QRadioButton;
class QPushButton;
-class QListBox;
-class QListBoxItem;
+class Q3ListBox;
+class Q3ListBoxItem;
class QLabel;
@@ -33,7 +39,7 @@ class FilterEdit_base : public QWidget
public:
- FilterEdit_base( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
+ FilterEdit_base( QWidget* parent = 0, const char* name = 0, Qt::WFlags fl = 0 );
~FilterEdit_base();
- QFrame* mCriteriaFrame;
- QButtonGroup* ButtonGroup1;
+ Q3Frame* mCriteriaFrame;
+ Q3ButtonGroup* ButtonGroup1;
QRadioButton* mCatShowCheck;
@@ -41,3 +47,3 @@ public:
QPushButton* mCatEditButton;
- QListBox* mCatList;
+ Q3ListBox* mCatList;
QLabel* textLabel1;
@@ -55,9 +61,9 @@ public:
protected:
- QVBoxLayout* FilterEdit_baseLayout;
- QVBoxLayout* mCriteriaFrameLayout;
- QGridLayout* ButtonGroup1Layout;
- QHBoxLayout* layout4;
- QHBoxLayout* layout7;
- QHBoxLayout* layout9;
- QHBoxLayout* layout2;
+ Q3VBoxLayout* FilterEdit_baseLayout;
+ Q3VBoxLayout* mCriteriaFrameLayout;
+ Q3GridLayout* ButtonGroup1Layout;
+ Q3HBoxLayout* layout4;
+ Q3HBoxLayout* layout7;
+ Q3HBoxLayout* layout9;
+ Q3HBoxLayout* layout2;
diff --git a/korganizer/filtereditdialog.cpp b/korganizer/filtereditdialog.cpp
index df84911..a3cff49 100644
--- a/korganizer/filtereditdialog.cpp
+++ b/korganizer/filtereditdialog.cpp
@@ -28,4 +28,9 @@
#include <qradiobutton.h>
-#include <qlistbox.h>
+#include <q3listbox.h>
#include <qapplication.h>
+//Added by qt3to4:
+#include <Q3GridLayout>
+#include <Q3PtrList>
+
+#include <QDesktopWidget>
@@ -55,3 +60,3 @@ public:
-FilterEditDialog::FilterEditDialog(QPtrList<CalFilter> *filters,QWidget *parent,
+FilterEditDialog::FilterEditDialog(Q3PtrList<CalFilter> *filters,QWidget *parent,
const char *name) :
@@ -82,3 +87,3 @@ FilterEditDialog::FilterEditDialog(QPtrList<CalFilter> *filters,QWidget *parent,
- QGridLayout *topLayout = new QGridLayout(mainWidget,2,2);
+ Q3GridLayout *topLayout = new Q3GridLayout(mainWidget,2,2);
topLayout->setSpacing(spacingHint());
diff --git a/korganizer/filtereditdialog.h b/korganizer/filtereditdialog.h
index 42aa3da..c1a52ed 100644
--- a/korganizer/filtereditdialog.h
+++ b/korganizer/filtereditdialog.h
@@ -25,3 +25,3 @@
-#include <qptrlist.h>
+#include <q3ptrlist.h>
@@ -48,3 +48,3 @@ class FilterEditDialog : public KDialogBase
public:
- FilterEditDialog(QPtrList<CalFilter> *,QWidget *parent=0, const char *name=0);
+ FilterEditDialog(Q3PtrList<CalFilter> *,QWidget *parent=0, const char *name=0);
virtual ~FilterEditDialog();
@@ -76,3 +76,3 @@ class FilterEditDialog : public KDialogBase
private:
- QPtrList<CalFilter> *mFilters;
+ Q3PtrList<CalFilter> *mFilters;
diff --git a/korganizer/incomingdialog.cpp b/korganizer/incomingdialog.cpp
index fe78356..c2402d4 100644
--- a/korganizer/incomingdialog.cpp
+++ b/korganizer/incomingdialog.cpp
@@ -19,3 +19,3 @@
-#include <qlistview.h>
+#include <q3listview.h>
#include <qfile.h>
@@ -23,2 +23,4 @@
#include <qmap.h>
+//Added by qt3to4:
+#include <Q3PtrList>
@@ -58,5 +60,5 @@
-ScheduleItemIn::ScheduleItemIn(QListView *parent,IncidenceBase *ev,
+ScheduleItemIn::ScheduleItemIn(Q3ListView *parent,IncidenceBase *ev,
Scheduler::Method method,ScheduleMessage::Status status)
- : QListViewItem(parent)
+ : Q3ListViewItem(parent)
{
@@ -137,3 +139,3 @@ bool ScheduleItemVisitor::visit(Journal *)
IncomingDialog::IncomingDialog(Calendar *calendar,OutgoingDialog *outgoing,
- QWidget* parent,const char* name,bool modal,WFlags fl) :
+ QWidget* parent,const char* name,bool modal,Qt::WFlags fl) :
IncomingDialog_base(parent,name,modal,fl)
@@ -147,8 +149,8 @@ IncomingDialog::IncomingDialog(Calendar *calendar,OutgoingDialog *outgoing,
#endif
- mMessageListView->setColumnAlignment(1,AlignHCenter);
- mMessageListView->setColumnAlignment(2,AlignHCenter);
- mMessageListView->setColumnAlignment(3,AlignHCenter);
- mMessageListView->setColumnAlignment(4,AlignHCenter);
- QObject::connect(mMessageListView,SIGNAL(doubleClicked(QListViewItem *)),
- this,SLOT(showEvent(QListViewItem *)));
+ mMessageListView->setColumnAlignment(1,Qt::AlignHCenter);
+ mMessageListView->setColumnAlignment(2,Qt::AlignHCenter);
+ mMessageListView->setColumnAlignment(3,Qt::AlignHCenter);
+ mMessageListView->setColumnAlignment(4,Qt::AlignHCenter);
+ QObject::connect(mMessageListView,SIGNAL(doubleClicked(Q3ListViewItem *)),
+ this,SLOT(showEvent(Q3ListViewItem *)));
retrieve();
@@ -171,3 +173,3 @@ void IncomingDialog::retrieve()
{
- QPtrList <ScheduleMessage> messages = mScheduler->retrieveTransactions();
+ Q3PtrList <ScheduleMessage> messages = mScheduler->retrieveTransactions();
@@ -254,3 +256,3 @@ void IncomingDialog::rejectMessage()
-void IncomingDialog::showEvent(QListViewItem *item)
+void IncomingDialog::showEvent(Q3ListViewItem *item)
{
@@ -271,3 +273,3 @@ bool IncomingDialog::incomeRefresh(ScheduleItemIn *item)
Attendee *att;
- QPtrList<Attendee> attlist = ev->attendees();
+ Q3PtrList<Attendee> attlist = ev->attendees();
for (att=attlist.first(); att; att=attlist.next()) {
@@ -516,3 +518,3 @@ bool IncomingDialog::checkAttendeesInAddressbook(IncidenceBase *inc)
KABC::Addressee::List addressList;
- QPtrList <Attendee> attendees;
+ Q3PtrList <Attendee> attendees;
Attendee *att;
diff --git a/korganizer/incomingdialog.h b/korganizer/incomingdialog.h
index 413ce6a..e002b25 100644
--- a/korganizer/incomingdialog.h
+++ b/korganizer/incomingdialog.h
@@ -21,3 +21,3 @@
-#include <qlistview.h>
+#include <q3listview.h>
@@ -31,6 +31,6 @@ using namespace KCal;
-class ScheduleItemIn : public QListViewItem
+class ScheduleItemIn : public Q3ListViewItem
{
public:
- ScheduleItemIn(QListView *parent,IncidenceBase *ev,Scheduler::Method method,
+ ScheduleItemIn(Q3ListView *parent,IncidenceBase *ev,Scheduler::Method method,
ScheduleMessage::Status status);
@@ -74,3 +74,3 @@ class IncomingDialog : public IncomingDialog_base
IncomingDialog(Calendar *calendar,OutgoingDialog *outgoing,
- QWidget* parent=0,const char* name=0,bool modal=false,WFlags fl=0);
+ QWidget* parent=0,const char* name=0,bool modal=false,Qt::WFlags fl=0);
~IncomingDialog();
@@ -89,3 +89,3 @@ class IncomingDialog : public IncomingDialog_base
void rejectMessage();
- void showEvent(QListViewItem *);
+ void showEvent(Q3ListViewItem *);
diff --git a/korganizer/incomingdialog_base.cpp b/korganizer/incomingdialog_base.cpp
index 8589803..5c5ace4 100644
--- a/korganizer/incomingdialog_base.cpp
+++ b/korganizer/incomingdialog_base.cpp
@@ -13,4 +13,4 @@
#include <qvariant.h>
-#include <qheader.h>
-#include <qlistview.h>
+#include <q3header.h>
+#include <q3listview.h>
#include <qpushbutton.h>
@@ -18,3 +18,5 @@
#include <qtooltip.h>
-#include <qwhatsthis.h>
+#include <q3whatsthis.h>
+//Added by qt3to4:
+#include <Q3GridLayout>
@@ -27,3 +29,3 @@
*/
-IncomingDialog_base::IncomingDialog_base( QWidget* parent, const char* name, bool modal, WFlags fl )
+IncomingDialog_base::IncomingDialog_base( QWidget* parent, const char* name, bool modal, Qt::WFlags fl )
: QDialog( parent, name, modal, fl )
@@ -33,3 +35,3 @@ IncomingDialog_base::IncomingDialog_base( QWidget* parent, const char* name, boo
setName( "IncomingDialog_base" );
- IncomingDialog_baseLayout = new QGridLayout( this, 1, 1, 11, 6, "IncomingDialog_baseLayout");
+ IncomingDialog_baseLayout = new Q3GridLayout( this, 1, 1, 11, 6, "IncomingDialog_baseLayout");
@@ -44,3 +46,3 @@ IncomingDialog_base::IncomingDialog_base( QWidget* parent, const char* name, boo
- mMessageListView = new QListView( this, "mMessageListView" );
+ mMessageListView = new Q3ListView( this, "mMessageListView" );
mMessageListView->addColumn( tr2i18n( "Summary" ) );
diff --git a/korganizer/incomingdialog_base.h b/korganizer/incomingdialog_base.h
index 7732384..537ef86 100644
--- a/korganizer/incomingdialog_base.h
+++ b/korganizer/incomingdialog_base.h
@@ -14,8 +14,12 @@
#include <qdialog.h>
-
-class QVBoxLayout;
-class QHBoxLayout;
-class QGridLayout;
-class QListView;
-class QListViewItem;
+//Added by qt3to4:
+#include <Q3VBoxLayout>
+#include <Q3GridLayout>
+#include <Q3HBoxLayout>
+
+class Q3VBoxLayout;
+class Q3HBoxLayout;
+class Q3GridLayout;
+class Q3ListView;
+class Q3ListViewItem;
class QPushButton;
@@ -27,3 +31,3 @@ class IncomingDialog_base : public QDialog
public:
- IncomingDialog_base( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
+ IncomingDialog_base( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, Qt::WFlags fl = 0 );
~IncomingDialog_base();
@@ -32,3 +36,3 @@ public:
QPushButton* PushButton7;
- QListView* mMessageListView;
+ Q3ListView* mMessageListView;
QPushButton* PushButton7_2;
@@ -38,3 +42,3 @@ public:
protected:
- QGridLayout* IncomingDialog_baseLayout;
+ Q3GridLayout* IncomingDialog_baseLayout;
diff --git a/korganizer/interfaces/korganizer/baseview.h b/korganizer/interfaces/korganizer/baseview.h
index 2ac9de1..c828573 100644
--- a/korganizer/interfaces/korganizer/baseview.h
+++ b/korganizer/interfaces/korganizer/baseview.h
@@ -26,4 +26,4 @@
#include <qwidget.h>
-#include <qptrlist.h>
-#include <qvaluelist.h>
+#include <q3ptrlist.h>
+#include <q3valuelist.h>
@@ -90,3 +90,3 @@ class BaseView : public QWidget
*/
- virtual QPtrList<Incidence> selectedIncidences() = 0;
+ virtual Q3PtrList<Incidence> selectedIncidences() = 0;
@@ -155,3 +155,3 @@ class BaseView : public QWidget
*/
- virtual void showEvents(QPtrList<Event> eventList) = 0;
+ virtual void showEvents(Q3PtrList<Event> eventList) = 0;
diff --git a/korganizer/interfaces/korganizer/calendarviewbase.h b/korganizer/interfaces/korganizer/calendarviewbase.h
index 3c715b1..1f49357 100644
--- a/korganizer/interfaces/korganizer/calendarviewbase.h
+++ b/korganizer/interfaces/korganizer/calendarviewbase.h
@@ -25,2 +25,4 @@
#include <qlayout.h>
+//Added by qt3to4:
+#include <Q3VBoxLayout>
@@ -42,3 +44,3 @@ class CalendarViewBase : public QWidget
CalendarViewBase(QWidget *parent, const char *name) :
- QWidget(parent,name) {new QVBoxLayout(this);}
+ QWidget(parent,name) {new Q3VBoxLayout(this);}
virtual ~CalendarViewBase() {};
diff --git a/korganizer/journalentry.cpp b/korganizer/journalentry.cpp
index 5269af7..2814c61 100644
--- a/korganizer/journalentry.cpp
+++ b/korganizer/journalentry.cpp
@@ -28,6 +28,6 @@
#include <qlayout.h>
-#include <qvbox.h>
+#include <q3vbox.h>
#include <qfile.h>
#include <qdir.h>
-#include <qtextstream.h>
+#include <q3textstream.h>
#include <qtextcodec.h>
@@ -36,2 +36,9 @@
#include <qapplication.h>
+#include <QDesktopWidget>
+//Added by qt3to4:
+#include <QResizeEvent>
+#include <Q3Frame>
+#include <QKeyEvent>
+#include <QEvent>
+#include <Q3VBoxLayout>
@@ -59,3 +66,3 @@
JournalEntry::JournalEntry(Calendar *calendar,QWidget *parent) :
- QFrame(parent)
+ Q3Frame(parent)
{
@@ -72,3 +79,3 @@ JournalEntry::JournalEntry(Calendar *calendar,QWidget *parent) :
visibleMode = true;
- QHBox * vb = new QHBox ( this );
+ Q3HBox * vb = new Q3HBox ( this );
QPixmap iconp;
@@ -131,3 +138,3 @@ JournalEntry::JournalEntry(Calendar *calendar,QWidget *parent) :
mEditor->setWordWrap( KTextEdit::WidgetWidth );
- QBoxLayout *topLayout = new QVBoxLayout(this);
+ Q3BoxLayout *topLayout = new Q3VBoxLayout(this);
topLayout->addWidget(vb);
@@ -137,3 +144,3 @@ JournalEntry::JournalEntry(Calendar *calendar,QWidget *parent) :
mTitle->installEventFilter(this);
- setFocusPolicy (QWidget::NoFocus);
+ setFocusPolicy (Qt::NoFocus);
@@ -170,3 +177,3 @@ void JournalEntry::resizeEvent(QResizeEvent* e )
#endif
- QFrame::resizeEvent( e );
+ Q3Frame::resizeEvent( e );
}
@@ -188,3 +195,3 @@ void JournalEntry::slotSaveTemplate()
QFile fileIn( fileName );
- if (!fileIn.open( IO_WriteOnly ) ) {
+ if (!fileIn.open( QIODevice::WriteOnly ) ) {
KMessageBox::error( this, i18n("Error saving template file\n '%1'.")
@@ -194,3 +201,3 @@ void JournalEntry::slotSaveTemplate()
// QString text;
- QTextStream tsIn( &fileIn );
+ Q3TextStream tsIn( &fileIn );
tsIn.setCodec( QTextCodec::codecForName("utf8") );
@@ -210,3 +217,3 @@ void JournalEntry::slotLoadTemplate()
QFile fileIn( fileName );
- if (!fileIn.open( IO_ReadOnly ) ) {
+ if (!fileIn.open( QIODevice::ReadOnly ) ) {
KMessageBox::error( this, i18n("Error loading template file\n '%1'.")
@@ -215,3 +222,3 @@ void JournalEntry::slotLoadTemplate()
}
- QTextStream tsIn( &fileIn );
+ Q3TextStream tsIn( &fileIn );
tsIn.setCodec( QTextCodec::codecForName("utf8") );
@@ -318,7 +325,7 @@ bool JournalEntry::eventFilter( QObject *o, QEvent *e )
if ( isVisible() ) {
- mEditor->setFocusPolicy (QWidget::StrongFocus);
- mTitle->setFocusPolicy (QWidget::StrongFocus);
+ mEditor->setFocusPolicy (Qt::StrongFocus);
+ mTitle->setFocusPolicy (Qt::StrongFocus);
} else {
- mEditor->setFocusPolicy (QWidget::NoFocus);
- mTitle->setFocusPolicy (QWidget::NoFocus);
+ mEditor->setFocusPolicy (Qt::NoFocus);
+ mTitle->setFocusPolicy (Qt::NoFocus);
}
@@ -337,3 +344,3 @@ bool JournalEntry::eventFilter( QObject *o, QEvent *e )
- return QFrame::eventFilter( o, e ); // standard event processing
+ return Q3Frame::eventFilter( o, e ); // standard event processing
}
diff --git a/korganizer/journalentry.h b/korganizer/journalentry.h
index ee17da8..0adebe9 100644
--- a/korganizer/journalentry.h
+++ b/korganizer/journalentry.h
@@ -27,3 +27,8 @@
-#include <qframe.h>
+#include <q3frame.h>
+//Added by qt3to4:
+#include <QResizeEvent>
+#include <QEvent>
+#include <QLabel>
+#include <QKeyEvent>
@@ -39,3 +44,3 @@ using namespace KCal;
-class JournalEntry : public QFrame {
+class JournalEntry : public Q3Frame {
Q_OBJECT
diff --git a/korganizer/kdatenavigator.cpp b/korganizer/kdatenavigator.cpp
index 6697602..ecc7a2f 100644
--- a/korganizer/kdatenavigator.cpp
+++ b/korganizer/kdatenavigator.cpp
@@ -24,8 +24,12 @@
#include <qstring.h>
-#include <qkeycode.h>
+#include <qnamespace.h>
#include <qlayout.h>
#include <qtimer.h>
-#include <qframe.h>
+#include <q3frame.h>
#include <qlabel.h>
#include <qapplication.h>
+//Added by qt3to4:
+#include <QWheelEvent>
+#include <Q3GridLayout>
+#include <QEvent>
@@ -48,8 +52,8 @@
KDateNavigator::KDateNavigator( QWidget *parent, const char *name )
- : QFrame(parent, name),
+ : Q3Frame(parent, name),
updateTimer(0L)
{
- setFrameStyle(QFrame::NoFrame);
+ setFrameStyle(Q3Frame::NoFrame);
QDate startDate = QDate::currentDate();
- QGridLayout *topLayout = new QGridLayout(this,8,8);
+ Q3GridLayout *topLayout = new Q3GridLayout(this,8,8);
@@ -83,3 +87,3 @@ KDateNavigator::KDateNavigator( QWidget *parent, const char *name )
//headings[i]->setFont(QFont("Arial", 10, QFont::Bold));
- headings[i]->setAlignment(AlignCenter);
+ headings[i]->setAlignment(Qt::AlignCenter);
headings[i]->installEventFilter(this);
@@ -92,3 +96,3 @@ KDateNavigator::KDateNavigator( QWidget *parent, const char *name )
weeknos[i] = new QLabel(this);
- weeknos[i]->setAlignment(AlignCenter );
+ weeknos[i]->setAlignment(Qt::AlignCenter );
//weeknos[i]->setFont(QFont("Arial", 10));
@@ -103,3 +107,3 @@ KDateNavigator::KDateNavigator( QWidget *parent, const char *name )
daymatrix = new KODayMatrix( this, "KDateNavigator::DayMatrix");
- daymatrix->setFrameStyle(QFrame::Panel|QFrame::Sunken);
+ daymatrix->setFrameStyle(Q3Frame::Panel|Q3Frame::Sunken);
daymatrix->setLineWidth(1);
diff --git a/korganizer/kdatenavigator.h b/korganizer/kdatenavigator.h
index 780ebb8..2cbca76 100644
--- a/korganizer/kdatenavigator.h
+++ b/korganizer/kdatenavigator.h
@@ -25,5 +25,8 @@
-#include <qframe.h>
+#include <q3frame.h>
#include <qdatetime.h>
#include <qlabel.h>
+//Added by qt3to4:
+#include <QWheelEvent>
+#include <QEvent>
@@ -40,3 +43,3 @@ class NavigatorBar;
-class KDateNavigator: public QFrame
+class KDateNavigator: public Q3Frame
{
@@ -135,4 +138,4 @@ class KDateNavigator: public QFrame
- QFrame *headingSep;
- QFrame *weeknumSep;
+ Q3Frame *headingSep;
+ Q3Frame *weeknumSep;
QLabel *headings[7];
diff --git a/korganizer/koagenda.cpp b/korganizer/koagenda.cpp
index 1d4d6de..fe59787 100644
--- a/korganizer/koagenda.cpp
+++ b/korganizer/koagenda.cpp
@@ -31,8 +31,19 @@
#endif
-#include <qintdict.h>
+#include <q3intdict.h>
#include <qdatetime.h>
#include <qapplication.h>
-#include <qpopupmenu.h>
+#include <q3popupmenu.h>
#include <qcursor.h>
#include <qpainter.h>
+#include <QDesktopWidget>
+//Added by qt3to4:
+#include <QResizeEvent>
+#include <QLabel>
+#include <QPixmap>
+#include <QMouseEvent>
+#include <QKeyEvent>
+#include <Q3MemArray>
+#include <QEvent>
+#include <Q3Frame>
+#include <Q3PtrList>
@@ -65,3 +76,3 @@ extern int globalFlagBlockStartup;
MarcusBains::MarcusBains(KOAgenda *_agenda,const char *name)
- : QFrame(_agenda->viewport(),name), agenda(_agenda)
+ : Q3Frame(_agenda->viewport(),name), agenda(_agenda)
{
@@ -171,4 +182,4 @@ void MarcusBains::updateLocation(bool recalculate)
KOAgenda::KOAgenda(int columns,int rows,int rowSize,QWidget *parent,
- const char *name,WFlags f) :
- QScrollView(parent,name,f)
+ const char *name,Qt::WFlags f) :
+ Q3ScrollView(parent,name,f)
{
@@ -192,4 +203,4 @@ KOAgenda::KOAgenda(int columns,int rows,int rowSize,QWidget *parent,
*/
-KOAgenda::KOAgenda(int columns,QWidget *parent,const char *name,WFlags f) :
- QScrollView(parent,name,f)
+KOAgenda::KOAgenda(int columns,QWidget *parent,const char *name,Qt::WFlags f) :
+ Q3ScrollView(parent,name,f)
{
@@ -233,3 +244,3 @@ void KOAgenda::init()
- mNewItemPopup = new QPopupMenu( this );
+ mNewItemPopup = new Q3PopupMenu( this );
connect ( mNewItemPopup, SIGNAL (activated ( int ) ), this, SLOT ( newItem(int)) );
@@ -242,14 +253,14 @@ void KOAgenda::init()
- mNewItemPopup->insertItem ( SmallIcon( pathString +"newevent" ), i18n("New Event..."), 1 );
- mNewItemPopup->insertItem ( SmallIcon( pathString +"newtodo" ), i18n("New Todo..."),2 );
+ mNewItemPopup->insertItem ( (QIcon)SmallIcon( pathString +"newevent" ), i18n("New Event..."), 1 );
+ mNewItemPopup->insertItem ( (QIcon)SmallIcon( pathString +"newtodo" ), i18n("New Todo..."),2 );
mNewItemPopup->insertSeparator ( );
- mNewItemPopup->insertItem ( SmallIcon( pathString +"day" ), i18n("Day view"),3 );
- mNewItemPopup->insertItem ( SmallIcon( pathString +"xdays" ), i18n("Next days"),8 );
- mNewItemPopup->insertItem ( SmallIcon( pathString +"week" ), i18n("Next week"),4 );
- mNewItemPopup->insertItem ( SmallIcon( pathString +"week" ), i18n("Next two weeks"),5 );
- mNewItemPopup->insertItem ( SmallIcon( pathString +"month" ), i18n("This month"),6 );
- mNewItemPopup->insertItem ( SmallIcon( pathString +"journal" ), i18n("Journal view"),7 );
+ mNewItemPopup->insertItem ( (QIcon)SmallIcon( pathString +"day" ), i18n("Day view"),3 );
+ mNewItemPopup->insertItem ( (QIcon)SmallIcon( pathString +"xdays" ), i18n("Next days"),8 );
+ mNewItemPopup->insertItem ( (QIcon)SmallIcon( pathString +"week" ), i18n("Next week"),4 );
+ mNewItemPopup->insertItem ( (QIcon)SmallIcon( pathString +"week" ), i18n("Next two weeks"),5 );
+ mNewItemPopup->insertItem ( (QIcon)SmallIcon( pathString +"month" ), i18n("This month"),6 );
+ mNewItemPopup->insertItem ( (QIcon)SmallIcon( pathString +"journal" ), i18n("Journal view"),7 );
#ifndef _WIN32_
- int wflags = viewport()-> getWFlags() |WRepaintNoErase;//WResizeNoErase
- viewport()->setWFlags ( wflags);
+ Qt::WindowFlags wflags = viewport()-> windowFlags() |Qt::WRepaintNoErase;//WResizeNoErase
+ viewport()->setWindowFlags ( wflags);
#endif
@@ -265,3 +276,3 @@ void KOAgenda::init()
// effect. Has to be fixed.
- setFocusPolicy(WheelFocus);
+ setFocusPolicy(Qt::WheelFocus);
@@ -397,3 +408,3 @@ bool KOAgenda::eventFilter ( QObject *object, QEvent *event )
if (!mActionItem)
- setCursor(arrowCursor);
+ setCursor(Qt::arrowCursor);
return true;
@@ -401,3 +412,3 @@ bool KOAgenda::eventFilter ( QObject *object, QEvent *event )
default:
- return QScrollView::eventFilter(object,event);
+ return Q3ScrollView::eventFilter(object,event);
}
@@ -507,3 +518,3 @@ bool KOAgenda::eventFilter_mouse(QObject *object, QMouseEvent *me)
#ifdef DESKTOP_VERSION
- leftButt = (me->button() == LeftButton);
+ leftButt = (me->button() == Qt::LeftButton);
#endif
@@ -511,3 +522,3 @@ bool KOAgenda::eventFilter_mouse(QObject *object, QMouseEvent *me)
case QEvent::MouseButtonPress:
- if (me->button() == LeftButton) {
+ if (me->button() == Qt::LeftButton) {
mPopupTimer->start( 600 );
@@ -580,6 +591,6 @@ bool KOAgenda::eventFilter_mouse(QObject *object, QMouseEvent *me)
mPopupKind = 1;
- if (me->button() == RightButton) {
+ if (me->button() == Qt::RightButton) {
mPopupKind = 3;
popupMenu();
- } else if (me->button() == LeftButton) {
+ } else if (me->button() == Qt::LeftButton) {
mActionItem = (KOAgendaItem *)object;
@@ -602,3 +613,3 @@ bool KOAgenda::eventFilter_mouse(QObject *object, QMouseEvent *me)
mActionItem = 0;
- if (me->button() == RightButton) {
+ if (me->button() == Qt::RightButton) {
int x,y;
@@ -613,4 +624,4 @@ bool KOAgenda::eventFilter_mouse(QObject *object, QMouseEvent *me)
popupMenu();
- } else if (me->button() == LeftButton) {
- setCursor(arrowCursor);
+ } else if (me->button() == Qt::LeftButton) {
+ setCursor(Qt::arrowCursor);
startSelectAction(viewportPos);
@@ -621,3 +632,3 @@ bool KOAgenda::eventFilter_mouse(QObject *object, QMouseEvent *me)
case QEvent::MouseButtonRelease:
- if (me->button() == LeftButton ) {
+ if (me->button() == Qt::LeftButton ) {
mPopupTimer->stop();
@@ -625,3 +636,3 @@ bool KOAgenda::eventFilter_mouse(QObject *object, QMouseEvent *me)
if (object != viewport()) {
- if (me->button() == LeftButton && mLeftMouseDown) {
+ if (me->button() == Qt::LeftButton && mLeftMouseDown) {
if (mActionItem) {
@@ -635,3 +646,3 @@ bool KOAgenda::eventFilter_mouse(QObject *object, QMouseEvent *me)
// emit startDragSignal( mActionItem->incidence() );
- setCursor( arrowCursor );
+ setCursor( Qt::arrowCursor );
mActionItem = 0;
@@ -647,3 +658,3 @@ bool KOAgenda::eventFilter_mouse(QObject *object, QMouseEvent *me)
} else { // ---------- viewport()
- if (me->button() == LeftButton && mLeftMouseDown ) { //left click
+ if (me->button() == Qt::LeftButton && mLeftMouseDown ) { //left click
endSelectAction( true ); // emit new event signal
@@ -651,3 +662,3 @@ bool KOAgenda::eventFilter_mouse(QObject *object, QMouseEvent *me)
}
- if (me->button() == LeftButton)
+ if (me->button() == Qt::LeftButton)
mLeftMouseDown = false;
@@ -852,3 +863,3 @@ void KOAgenda::startItemAction(QPoint viewportPos)
mActionType = RESIZELEFT;
- setCursor(sizeHorCursor);
+ setCursor(Qt::sizeHorCursor);
} else if ( allowResize && (mGridSpacingX - gridDistanceX) < mResizeBorderWidth &&
@@ -856,3 +867,3 @@ void KOAgenda::startItemAction(QPoint viewportPos)
mActionType = RESIZERIGHT;
- setCursor(sizeHorCursor);
+ setCursor(Qt::sizeHorCursor);
} else {
@@ -860,3 +871,3 @@ void KOAgenda::startItemAction(QPoint viewportPos)
mActionItem->startMove();
- setCursor(sizeAllCursor);
+ setCursor(Qt::sizeAllCursor);
}
@@ -868,3 +879,3 @@ void KOAgenda::startItemAction(QPoint viewportPos)
mActionType = RESIZETOP;
- setCursor(sizeVerCursor);
+ setCursor(Qt::sizeVerCursor);
} else if (allowResize &&(mGridSpacingY - gridDistanceY) < mResizeBorderWidth &&
@@ -873,3 +884,3 @@ void KOAgenda::startItemAction(QPoint viewportPos)
mActionType = RESIZEBOTTOM;
- setCursor(sizeVerCursor);
+ setCursor(Qt::sizeVerCursor);
} else {
@@ -877,3 +888,3 @@ void KOAgenda::startItemAction(QPoint viewportPos)
mActionItem->startMove();
- setCursor(sizeAllCursor);
+ setCursor(Qt::sizeAllCursor);
}
@@ -908,3 +919,3 @@ void KOAgenda::performItemAction(QPoint viewportPos)
// emit startDragSignal( mActionItem->incidence() );
- setCursor( arrowCursor );
+ setCursor( Qt::arrowCursor );
mActionItem = 0;
@@ -917,3 +928,3 @@ void KOAgenda::performItemAction(QPoint viewportPos)
case MOVE:
- setCursor( sizeAllCursor );
+ setCursor( Qt::sizeAllCursor );
break;
@@ -921,3 +932,3 @@ void KOAgenda::performItemAction(QPoint viewportPos)
case RESIZEBOTTOM:
- setCursor( sizeVerCursor );
+ setCursor( Qt::sizeVerCursor );
break;
@@ -925,6 +936,6 @@ void KOAgenda::performItemAction(QPoint viewportPos)
case RESIZERIGHT:
- setCursor( sizeHorCursor );
+ setCursor( Qt::sizeHorCursor );
break;
default:
- setCursor( arrowCursor );
+ setCursor( Qt::arrowCursor );
}
@@ -973,3 +984,3 @@ void KOAgenda::performItemAction(QPoint viewportPos)
//moveChild(mActionItem,childX(mActionItem),y);
- QScrollView::moveChild( mActionItem,childX(mActionItem),y );
+ Q3ScrollView::moveChild( mActionItem,childX(mActionItem),y );
}
@@ -1021,3 +1032,3 @@ void KOAgenda::endItemAction()
//emit itemModified( placeItem, mActionType /*KOGlobals::EVENTEDITED */);
- QPtrList<KOAgendaItem> oldconflictItems ;//= placeItem->conflictItems();
+ Q3PtrList<KOAgendaItem> oldconflictItems ;//= placeItem->conflictItems();
KOAgendaItem *item;
@@ -1112,3 +1123,3 @@ void KOAgenda::endItemAction()
mScrollDownTimer.stop();
- setCursor( arrowCursor );
+ setCursor( Qt::arrowCursor );
mActionItem = 0;
@@ -1138,8 +1149,8 @@ void KOAgenda::setNoActionCursor(KOAgendaItem *moveItem,QPoint viewportPos)
moveItem->cellX() == gx) {
- setCursor(sizeHorCursor);
+ setCursor(Qt::sizeHorCursor);
} else if ((mGridSpacingX - gridDistanceX) < mResizeBorderWidth &&
moveItem->cellXWidth() == gx) {
- setCursor(sizeHorCursor);
+ setCursor(Qt::sizeHorCursor);
} else {
- setCursor(arrowCursor);
+ setCursor(Qt::arrowCursor);
}
@@ -1150,3 +1161,3 @@ void KOAgenda::setNoActionCursor(KOAgendaItem *moveItem,QPoint viewportPos)
!moveItem->firstMultiItem()) {
- setCursor(sizeVerCursor);
+ setCursor(Qt::sizeVerCursor);
} else if ((mGridSpacingY - gridDistanceY) < mResizeBorderWidth &&
@@ -1154,5 +1165,5 @@ void KOAgenda::setNoActionCursor(KOAgendaItem *moveItem,QPoint viewportPos)
!moveItem->lastMultiItem()) {
- setCursor(sizeVerCursor);
+ setCursor(Qt::sizeVerCursor);
} else {
- setCursor(arrowCursor);
+ setCursor(Qt::arrowCursor);
}
@@ -1175,5 +1186,5 @@ void KOAgenda::placeSubCells(KOAgendaItem *placeItem)
- QPtrList<KOAgendaItem> conflictItems;
+ Q3PtrList<KOAgendaItem> conflictItems;
int maxSubCells = 0;
- QIntDict<KOAgendaItem> subCellDict(7);
+ Q3IntDict<KOAgendaItem> subCellDict(7);
@@ -1242,3 +1253,3 @@ void KOAgenda::placeSubCells(KOAgendaItem *placeItem)
KOAgendaItem *item2;
- QPtrList<KOAgendaItem> conflictItems2 = item->conflictItems();
+ Q3PtrList<KOAgendaItem> conflictItems2 = item->conflictItems();
for ( item2=conflictItems2.first(); item2 != 0;
@@ -1327,5 +1338,5 @@ void KOAgenda::drawContents(QPainter* p, int cx, int cy, int cw, int ch)
//qDebug("OFF %d %d %d", off,vySel, vy );
- bitBlt ( pd, vx, vy+off, &mPaintPixmap, cx, cy+off, cw , ch-off ,CopyROP);
+ bitBlt ( pd, vx, vy+off, &mPaintPixmap, cx, cy+off, cw , ch-off ,QPainter::CompositionMode_Source);
} else {
- bitBlt ( pd, vx, vy, &mPaintPixmap, cx, cy, cw, ch ,CopyROP);
+ bitBlt ( pd, vx, vy, &mPaintPixmap, cx, cy, cw, ch ,QPainter::CompositionMode_Source);
}
@@ -1344,3 +1355,3 @@ void KOAgenda::drawContents(QPainter* p, int cx, int cy, int cw, int ch)
hei -= 5;
- bitBlt ( pd, vx+1, vy+offset, &mHighlightPixmap, 0, 0, mGridSpacingX-1, p_hei ,CopyROP);
+ bitBlt ( pd, vx+1, vy+offset, &mHighlightPixmap, 0, 0, mGridSpacingX-1, p_hei ,QPainter::CompositionMode_Source);
offset += 5;
@@ -1367,3 +1378,3 @@ void KOAgenda::drawContents(QPainter* p, int cx, int cy, int cw, int ch)
if ( !(selectionX == cx && cy == mSelectionYTop && cw ==mGridSpacingX && ch == mSelectionHeight ) )
- bitBlt ( pd, vx, vy, &mPaintPixmap, cx, cy, cw, ch ,CopyROP);
+ bitBlt ( pd, vx, vy, &mPaintPixmap, cx, cy, cw, ch ,QPainter::CompositionMode_Source);
@@ -1381,3 +1392,3 @@ void KOAgenda::drawContents(QPainter* p, int cx, int cy, int cw, int ch)
hei -= 5;
- bitBlt ( pd, vx+1, vy+offset, &mHighlightPixmap, 0, 0, mGridSpacingX-1, p_hei ,CopyROP);
+ bitBlt ( pd, vx+1, vy+offset, &mHighlightPixmap, 0, 0, mGridSpacingX-1, p_hei ,QPainter::CompositionMode_Source);
offset += 5;
@@ -1578,6 +1589,6 @@ void KOAgenda::drawContentsToPainter( QPainter* paint, bool backgroundOnly )// i
while (y < cy + ch) {
- p->setPen( SolidLine );
+ p->setPen( Qt::SolidLine );
p->drawLine(cx,y,cx+cw,y);
y+=lGridSpacingY;
- p->setPen( DotLine );
+ p->setPen( Qt::DotLine );
p->drawLine(cx,y,cx+cw,y);
@@ -1585,3 +1596,3 @@ void KOAgenda::drawContentsToPainter( QPainter* paint, bool backgroundOnly )// i
}
- p->setPen( SolidLine );
+ p->setPen( Qt::SolidLine );
}
@@ -1719,3 +1730,3 @@ void KOAgenda::updateTodo( Todo * todo, int days, bool remove)
mItems.remove( item );
- QPtrList<KOAgendaItem> oldconflictItems = item->conflictItems();
+ Q3PtrList<KOAgendaItem> oldconflictItems = item->conflictItems();
KOAgendaItem *itemit;
@@ -1749,3 +1760,3 @@ void KOAgenda::updateTodo( Todo * todo, int days, bool remove)
QDate currentDate = QDate::currentDate();
- bool overdue = (!todo->isCompleted()) && (todo->dtDue() < currentDate)&& ( KOPrefs::instance()->mShowTodoInAgenda );
+ bool overdue = (!todo->isCompleted()) && (todo->dtDue() < (QDateTime)currentDate)&& ( KOPrefs::instance()->mShowTodoInAgenda );
QDateTime dt;
@@ -1781,3 +1792,3 @@ void KOAgenda::updateTodo( Todo * todo, int days, bool remove)
globalFlagBlockAgendaItemPaint = 0;
- QPtrList<KOAgendaItem> oldconflictItems = item->conflictItems();
+ Q3PtrList<KOAgendaItem> oldconflictItems = item->conflictItems();
KOAgendaItem *itemit;
@@ -1869,3 +1880,3 @@ void KOAgenda::insertMultiItem (Event *event,QDate qd,int XBegin,int XEnd,
KOAgendaItem *current = 0;
- QPtrList<KOAgendaItem> multiItems;
+ Q3PtrList<KOAgendaItem> multiItems;
for (cellX = XBegin;cellX <= XEnd;++cellX) {
@@ -1929,3 +1940,3 @@ void KOAgenda::resizeEvent ( QResizeEvent *ev )
computeSizes();
- QScrollView::resizeEvent( ev );
+ Q3ScrollView::resizeEvent( ev );
return;
@@ -2018,3 +2029,3 @@ void KOAgenda::popupAlarm()
Alarm* alarm;
- QPtrList<Alarm> list(mClickedItem->incidence()->alarms());
+ Q3PtrList<Alarm> list(mClickedItem->incidence()->alarms());
for(alarm=list.first();alarm;alarm=list.next()) {
@@ -2109,12 +2120,12 @@ void KOAgenda::keyPressEvent( QKeyEvent *kev )
switch(kev->key()) {
- case Key_PageDown:
+ case Qt::Key_PageDown:
verticalScrollBar()->addPage();
break;
- case Key_PageUp:
+ case Qt::Key_PageUp:
verticalScrollBar()->subtractPage();
break;
- case Key_Down:
+ case Qt::Key_Down:
verticalScrollBar()->addLine();
break;
- case Key_Up:
+ case Qt::Key_Up:
verticalScrollBar()->subtractLine();
@@ -2148,3 +2159,3 @@ void KOAgenda::setDateList(const DateList &selectedDates)
-void KOAgenda::setHolidayMask(QMemArray<bool> *mask)
+void KOAgenda::setHolidayMask(Q3MemArray<bool> *mask)
{
@@ -2164,3 +2175,3 @@ void KOAgenda::contentsMousePressEvent ( QMouseEvent *event )
- QScrollView::contentsMousePressEvent(event);
+ Q3ScrollView::contentsMousePressEvent(event);
}
@@ -2198,3 +2209,3 @@ void KOAgenda::moveChild( QWidget *w, int x , int y )
++x;
- QScrollView::moveChild( w, x , y );
+ Q3ScrollView::moveChild( w, x , y );
}
@@ -2204,3 +2215,3 @@ void KOAgenda::moveChild( QWidget *w, int x , int y )
#include <qpainter.h>
-#include <qpaintdevicemetrics.h>
+#include <q3paintdevicemetrics.h>
@@ -2233,3 +2244,3 @@ void KOAgenda::printSelection()
QPainter p( printer );
- QPaintDeviceMetrics m = QPaintDeviceMetrics ( printer );
+ Q3PaintDeviceMetrics m = Q3PaintDeviceMetrics ( printer );
QString date = i18n("Date range: ")+KGlobal::locale()->formatDate( mSelectedDates.first() )+" - "+KGlobal::locale()->formatDate( mSelectedDates.last() );
diff --git a/korganizer/koagenda.h b/korganizer/koagenda.h
index 380ce62..0708341 100644
--- a/korganizer/koagenda.h
+++ b/korganizer/koagenda.h
@@ -25,8 +25,17 @@
-#include <qscrollview.h>
+#include <q3scrollview.h>
#include <qtimer.h>
-#include <qmemarray.h>
+#include <q3memarray.h>
#include <qpainter.h>
#include <qpixmap.h>
-#include <qguardedptr.h>
+#include <qpointer.h>
+//Added by qt3to4:
+#include <QResizeEvent>
+#include <Q3Frame>
+#include <QLabel>
+#include <QMouseEvent>
+#include <Q3PtrList>
+#include <Q3PopupMenu>
+#include <QKeyEvent>
+#include <QEvent>
@@ -35,6 +44,6 @@
-class QPopupMenu;
+class Q3PopupMenu;
class QTime;
class KConfig;
-class QFrame;
+class Q3Frame;
class KOAgenda;
@@ -45,3 +54,3 @@ using namespace KCal;
-class MarcusBains : public QFrame {
+class MarcusBains : public Q3Frame {
Q_OBJECT
@@ -65,3 +74,3 @@ class MarcusBains : public QFrame {
-class KOAgenda : public QScrollView
+class KOAgenda : public Q3ScrollView
{
@@ -73,5 +82,5 @@ class KOAgenda : public QScrollView
KOAgenda ( int columns, int rows, int columnSize, QWidget * parent=0,
- const char * name=0, WFlags f=0 );
+ const char * name=0, Qt::WFlags f=0 );
KOAgenda ( int columns, QWidget * parent=0,
- const char * name=0, WFlags f=0 );
+ const char * name=0, Qt::WFlags f=0 );
virtual ~KOAgenda();
@@ -119,3 +128,3 @@ class KOAgenda : public QScrollView
- void setHolidayMask(QMemArray<bool> *);
+ void setHolidayMask(Q3MemArray<bool> *);
void setDateList(const DateList &selectedDates);
@@ -279,6 +288,6 @@ class KOAgenda : public QScrollView
// The KOAgendaItem, which is being moved/resized
- QGuardedPtr<KOAgendaItem> mActionItem;
+ QPointer<KOAgendaItem> mActionItem;
// Currently selected item
- QGuardedPtr<KOAgendaItem> mSelectedItem;
+ QPointer<KOAgendaItem> mSelectedItem;
@@ -293,7 +302,7 @@ class KOAgenda : public QScrollView
// List of all Items contained in agenda
- QPtrList<KOAgendaItem> mItems;
- QPtrList<KOAgendaItem> mUnusedItems;
+ Q3PtrList<KOAgendaItem> mItems;
+ Q3PtrList<KOAgendaItem> mUnusedItems;
KOAgendaItem* getNewItem(Incidence * event,QDate qd, QWidget* viewport);
- QPopupMenu *mItemPopup; // Right mouse button popup menu for KOAgendaItems
- QPopupMenu *mNewItemPopup;
+ Q3PopupMenu *mItemPopup; // Right mouse button popup menu for KOAgendaItems
+ Q3PopupMenu *mNewItemPopup;
@@ -302,3 +311,3 @@ class KOAgenda : public QScrollView
KOAgendaItem * getItemForTodo ( Todo * todo );
- QMemArray<bool> *mHolidayMask;
+ Q3MemArray<bool> *mHolidayMask;
int mCurPixWid;
diff --git a/korganizer/koagendaitem.cpp b/korganizer/koagendaitem.cpp
index 407424d..0f9a38f 100644
--- a/korganizer/koagendaitem.cpp
+++ b/korganizer/koagendaitem.cpp
@@ -21,9 +21,19 @@
#include <qlayout.h>
-#include <qhbox.h>
-#include <qvbox.h>
+#include <q3hbox.h>
+#include <q3vbox.h>
#include <qtooltip.h>
-#include <qwhatsthis.h>
-#include <qdragobject.h>
+#include <q3whatsthis.h>
+#include <q3dragobject.h>
#include <qdrawutil.h>
#include <qpainter.h>
+#include <QDesktopWidget>
+//Added by qt3to4:
+#include <Q3PtrList>
+#include <QPixmap>
+#include <QDragEnterEvent>
+#include <QDropEvent>
+#include <QResizeEvent>
+#include <QMouseEvent>
+#include <QEvent>
+#include <QPaintEvent>
@@ -59,6 +69,6 @@ QToolTipGroup *KOAgendaItem::mToolTipGroup = 0;
-class KOAgendaItemWhatsThis :public QWhatsThis
+class KOAgendaItemWhatsThis :public Q3WhatsThis
{
public:
- KOAgendaItemWhatsThis( KOAgendaItem* view ) : QWhatsThis( view ),_view (view) { };
+ KOAgendaItemWhatsThis( KOAgendaItem* view ) : Q3WhatsThis( view ),_view (view) { };
@@ -74,3 +84,3 @@ private:
KOAgendaItem::KOAgendaItem(Incidence *incidence, QDate qd, QWidget *parent,bool allday,
- const char *name,WFlags) :
+ const char *name,Qt::WFlags) :
QWidget(parent, name), mIncidence(incidence), mDate(qd)
@@ -81,4 +91,4 @@ KOAgendaItem::KOAgendaItem(Incidence *incidence, QDate qd, QWidget *parent,bool
mKOAgendaItemWhatsThis = new KOAgendaItemWhatsThis(this);
- int wflags = getWFlags() |WRepaintNoErase;// WResizeNoErase
- setWFlags ( wflags);
+ Qt::WindowFlags wflags = windowFlags() |Qt::WRepaintNoErase;// WResizeNoErase
+ setWindowFlags ( wflags);
mAllDay = allday;
@@ -105,3 +115,3 @@ void KOAgendaItem::initColor ()
((static_cast<Todo*>(mIncidence))->dtDue().date() <= QDate::currentDate()) ) ) {
- if ( (static_cast<Todo*>(mIncidence))->dtDue() < QDateTime::currentDateTime().date())
+ if ( (static_cast<Todo*>(mIncidence))->dtDue() < (QDateTime)QDateTime::currentDateTime().date())
mBackgroundColor = KOPrefs::instance()->mTodoOverdueColor ;
@@ -134,3 +144,3 @@ void KOAgendaItem::initColor ()
BackgroundColor.dark(),BackgroundColor.light(),
- BackgroundColor.dark(),BackgroundColor, black, BackgroundColor) ;
+ BackgroundColor.dark(),BackgroundColor, Qt::black, BackgroundColor) ;
setBackgroundColor( mBackgroundColor );
@@ -230,3 +240,3 @@ bool KOAgendaItem::updateIcons(QPainter * p, bool horLayout)
if (mIncidence->isAlarmEnabled() && mIncidence->alarmEnabled()) {
- p->fillRect ( xOff*( 1 +AGENDA_ICON_SIZE )+x, yOff*( 1 +AGENDA_ICON_SIZE)+y, AGENDA_ICON_SIZE, AGENDA_ICON_SIZE, red );
+ p->fillRect ( xOff*( 1 +AGENDA_ICON_SIZE )+x, yOff*( 1 +AGENDA_ICON_SIZE)+y, AGENDA_ICON_SIZE, AGENDA_ICON_SIZE, Qt::red );
if ( horLayout )
@@ -237,3 +247,3 @@ bool KOAgendaItem::updateIcons(QPainter * p, bool horLayout)
if (mIncidence->doesRecur()) {
- p->fillRect ( xOff*( 1 +AGENDA_ICON_SIZE )+x, yOff*( 1 +AGENDA_ICON_SIZE)+y, AGENDA_ICON_SIZE, AGENDA_ICON_SIZE, blue );
+ p->fillRect ( xOff*( 1 +AGENDA_ICON_SIZE )+x, yOff*( 1 +AGENDA_ICON_SIZE)+y, AGENDA_ICON_SIZE, AGENDA_ICON_SIZE, Qt::blue );
if ( horLayout )
@@ -244,3 +254,3 @@ bool KOAgendaItem::updateIcons(QPainter * p, bool horLayout)
if (mIncidence->description().length() > 0) {
- p->fillRect ( xOff*( 1 +AGENDA_ICON_SIZE )+x, yOff*( 1 +AGENDA_ICON_SIZE)+y, AGENDA_ICON_SIZE, AGENDA_ICON_SIZE, darkGreen );
+ p->fillRect ( xOff*( 1 +AGENDA_ICON_SIZE )+x, yOff*( 1 +AGENDA_ICON_SIZE)+y, AGENDA_ICON_SIZE, AGENDA_ICON_SIZE, Qt::darkGreen );
if ( horLayout )
@@ -251,3 +261,3 @@ bool KOAgendaItem::updateIcons(QPainter * p, bool horLayout)
if (mIncidence->isReadOnly()) {
- p->fillRect ( xOff*( 1 +AGENDA_ICON_SIZE )+x, yOff*( 1 +AGENDA_ICON_SIZE)+y, AGENDA_ICON_SIZE, AGENDA_ICON_SIZE, white );
+ p->fillRect ( xOff*( 1 +AGENDA_ICON_SIZE )+x, yOff*( 1 +AGENDA_ICON_SIZE)+y, AGENDA_ICON_SIZE, AGENDA_ICON_SIZE, Qt::white );
if ( horLayout )
@@ -261,3 +271,3 @@ bool KOAgendaItem::updateIcons(QPainter * p, bool horLayout)
if (mIncidence->organizer() == KOPrefs::instance()->email()) {
- p->fillRect ( xOff*( 1 +AGENDA_ICON_SIZE )+x, yOff*( 1 +AGENDA_ICON_SIZE)+y, AGENDA_ICON_SIZE, AGENDA_ICON_SIZE, black );
+ p->fillRect ( xOff*( 1 +AGENDA_ICON_SIZE )+x, yOff*( 1 +AGENDA_ICON_SIZE)+y, AGENDA_ICON_SIZE, AGENDA_ICON_SIZE, Qt::black );
if ( horLayout )
@@ -272,3 +282,3 @@ bool KOAgendaItem::updateIcons(QPainter * p, bool horLayout)
} else {
- p->fillRect ( xOff*( 1 +AGENDA_ICON_SIZE )+x, yOff*( 1 +AGENDA_ICON_SIZE)+y, AGENDA_ICON_SIZE, AGENDA_ICON_SIZE, yellow );
+ p->fillRect ( xOff*( 1 +AGENDA_ICON_SIZE )+x, yOff*( 1 +AGENDA_ICON_SIZE)+y, AGENDA_ICON_SIZE, AGENDA_ICON_SIZE, Qt::yellow );
if ( horLayout )
@@ -279,3 +289,3 @@ bool KOAgendaItem::updateIcons(QPainter * p, bool horLayout)
}
- p->fillRect ( xOff*( 1 +AGENDA_ICON_SIZE )+x, yOff*( 1 +AGENDA_ICON_SIZE)+y, AGENDA_ICON_SIZE, AGENDA_ICON_SIZE, darkYellow );
+ p->fillRect ( xOff*( 1 +AGENDA_ICON_SIZE )+x, yOff*( 1 +AGENDA_ICON_SIZE)+y, AGENDA_ICON_SIZE, AGENDA_ICON_SIZE, Qt::darkYellow );
if ( horLayout )
@@ -422,5 +432,5 @@ void KOAgendaItem::paintMe( bool selected, QPainter* paint )
#ifndef DESKTOP_VERSION
- align = ( AlignLeft|WordBreak|AlignTop);
+ align = ( Qt::AlignLeft|Qt::TextWordWrap|Qt::AlignTop);
#else
- align = ( AlignLeft|BreakAnywhere|WordBreak|AlignTop);
+ align = ( Qt::AlignLeft|Qt::TextWrapAnywhere|Qt::TextWordWrap|Qt::AlignTop);
#endif
@@ -437,3 +447,3 @@ void KOAgendaItem::paintMe( bool selected, QPainter* paint )
if ( mWhiteText )
- paint->setPen ( white);
+ paint->setPen ( Qt::white);
if ( x < 0 ) {
@@ -446,5 +456,5 @@ void KOAgendaItem::paintMe( bool selected, QPainter* paint )
#ifndef DESKTOP_VERSION
- align = ( AlignHCenter|WordBreak|AlignTop);
+ align = ( Qt::AlignHCenter|Qt::TextWordWrap|Qt::AlignTop);
#else
- align = ( AlignHCenter|BreakAnywhere|WordBreak|AlignTop);
+ align = ( Qt::AlignHCenter|Qt::TextWrapAnywhere|Qt::TextWordWrap|Qt::AlignTop);
#endif
@@ -563,3 +573,3 @@ void KOAgendaItem::paintEvent ( QPaintEvent *e )
//qDebug("%d %d %d %d %d %d %d",rx, ry, paintFrom, xx ,yPaintCoord+ry, rw, rh);
- bitBlt (this, rx, ry, paintFrom, xx ,yPaintCoord+ry, rw, rh ,CopyROP);
+ bitBlt (this, rx, ry, paintFrom, xx ,yPaintCoord+ry, rw, rh ,QPainter::CompositionMode_Source);
}
@@ -630,3 +640,3 @@ void KOAgendaItem::computeText()
}
- QToolTip::add(this,tipText,toolTipGroup(),"");
+ QToolTip::add(this,tipText /*TODO:hacker: ,toolTipGroup(),"" */);
#endif
@@ -797,3 +807,3 @@ QToolTipGroup *KOAgendaItem::toolTipGroup()
{
- if (!mToolTipGroup) mToolTipGroup = new QToolTipGroup(0);
+ /* TODO:hacker: if (!mToolTipGroup) mToolTipGroup = new QToolTipGroup(0); */
return mToolTipGroup;
@@ -805,3 +815,3 @@ void KOAgendaItem::dragEnterEvent( QDragEnterEvent *e )
if ( ICalDrag::canDecode( e ) || VCalDrag::canDecode( e ) ||
- !QTextDrag::canDecode( e ) ) {
+ !Q3TextDrag::canDecode( e ) ) {
e->ignore();
@@ -817,3 +827,3 @@ void KOAgendaItem::dropEvent( QDropEvent *e )
QString text;
- if(QTextDrag::decode(e,text))
+ if(Q3TextDrag::decode(e,text))
{
@@ -835,3 +845,3 @@ void KOAgendaItem::dropEvent( QDropEvent *e )
-QPtrList<KOAgendaItem> KOAgendaItem::conflictItems()
+Q3PtrList<KOAgendaItem> KOAgendaItem::conflictItems()
{
@@ -840,3 +850,3 @@ QPtrList<KOAgendaItem> KOAgendaItem::conflictItems()
-void KOAgendaItem::setConflictItems(QPtrList<KOAgendaItem> ci)
+void KOAgendaItem::setConflictItems(Q3PtrList<KOAgendaItem> ci)
{
diff --git a/korganizer/koagendaitem.h b/korganizer/koagendaitem.h
index 27ee720..17cf975 100644
--- a/korganizer/koagendaitem.h
+++ b/korganizer/koagendaitem.h
@@ -21,3 +21,3 @@
-#include <qframe.h>
+#include <q3frame.h>
#include <qlabel.h>
@@ -26,2 +26,9 @@
#include <qpalette.h>
+//Added by qt3to4:
+#include <QDropEvent>
+#include <QPaintEvent>
+#include <QResizeEvent>
+#include <Q3PtrList>
+#include <QEvent>
+#include <QDragEnterEvent>
@@ -47,3 +54,3 @@ class KOAgendaItem : public QWidget
KOAgendaItem(Incidence *incidence, QDate qd, QWidget *parent, bool allday, const char *name=0,
- WFlags f=0 );
+ Qt::WFlags f=0 );
~KOAgendaItem();
@@ -98,4 +105,4 @@ class KOAgendaItem : public QWidget
- QPtrList<KOAgendaItem> conflictItems();
- void setConflictItems(QPtrList<KOAgendaItem>);
+ Q3PtrList<KOAgendaItem> conflictItems();
+ void setConflictItems(Q3PtrList<KOAgendaItem>);
void addConflictItem(KOAgendaItem *ci);
@@ -163,3 +170,3 @@ class KOAgendaItem : public QWidget
bool mSelected;
- QPtrList<KOAgendaItem> mConflictItems;
+ Q3PtrList<KOAgendaItem> mConflictItems;
};
diff --git a/korganizer/koagendaview.cpp b/korganizer/koagendaview.cpp
index 6e65a03..87993ae 100644
--- a/korganizer/koagendaview.cpp
+++ b/korganizer/koagendaview.cpp
@@ -23,6 +23,6 @@
-#include <qhbox.h>
-#include <qvbox.h>
+#include <q3hbox.h>
+#include <q3vbox.h>
#include <qlabel.h>
-#include <qframe.h>
+#include <q3frame.h>
#include <qlayout.h>
@@ -33,3 +33,3 @@
#include <qfontmetrics.h>
-#include <qpopupmenu.h>
+#include <q3popupmenu.h>
#include <qtooltip.h>
@@ -38,2 +38,14 @@
#include <qapplication.h>
+#include <QDesktopWidget>
+//Added by qt3to4:
+#include <QResizeEvent>
+#include <QPixmap>
+#include <QMouseEvent>
+#include <Q3GridLayout>
+#include <Q3ValueList>
+#include <QKeyEvent>
+#include <Q3HBoxLayout>
+#include <Q3VBoxLayout>
+#include <QPaintEvent>
+#include <Q3PtrList>
@@ -80,4 +92,4 @@ using namespace KOrg;
-TimeLabels::TimeLabels(int rows,QWidget *parent,const char *name,WFlags f) :
- QScrollView(parent,name,f)
+TimeLabels::TimeLabels(int rows,QWidget *parent,const char *name,Qt::WFlags f) :
+ Q3ScrollView(parent,name,f)
{
@@ -97,3 +109,3 @@ TimeLabels::TimeLabels(int rows,QWidget *parent,const char *name,WFlags f) :
- viewport()->setBackgroundMode( PaletteBackground );
+ viewport()->setBackgroundMode( Qt::PaletteBackground );
}
@@ -285,3 +297,3 @@ void TimeLabels::paintEvent(QPaintEvent*)
EventIndicator::EventIndicator(Location loc,QWidget *parent,const char *name)
- : QFrame(parent,name)
+ : Q3Frame(parent,name)
{
@@ -395,3 +407,3 @@ KOAgendaView::KOAgendaView(Calendar *cal,QWidget *parent,const char *name) :
- QBoxLayout *topLayout = new QVBoxLayout(this);
+ Q3BoxLayout *topLayout = new Q3VBoxLayout(this);
@@ -403,9 +415,9 @@ KOAgendaView::KOAgendaView(Calendar *cal,QWidget *parent,const char *name) :
topLayout->addWidget( mSplitterAgenda );
- mAllDayFrame = new QHBox(mSplitterAgenda);
- mAllDayFrame->setFocusPolicy(NoFocus);
+ mAllDayFrame = new Q3HBox(mSplitterAgenda);
+ mAllDayFrame->setFocusPolicy(Qt::NoFocus);
QWidget *agendaFrame = new QWidget(mSplitterAgenda);
- agendaFrame->setFocusPolicy(NoFocus);
+ agendaFrame->setFocusPolicy(Qt::NoFocus);
// Create all-day agenda widget
- mDummyAllDayLeft = new QVBox( mAllDayFrame );
+ mDummyAllDayLeft = new Q3VBox( mAllDayFrame );
@@ -422,5 +434,5 @@ KOAgendaView::KOAgendaView(Calendar *cal,QWidget *parent,const char *name) :
connect( mExpandButton, SIGNAL( clicked() ), SIGNAL( toggleExpand() ) );
- mExpandButton->setFocusPolicy(NoFocus);
+ mExpandButton->setFocusPolicy(Qt::NoFocus);
mAllDayAgenda = new KOAgenda(1,mAllDayFrame);
- mAllDayAgenda->setFocusPolicy(NoFocus);
+ mAllDayAgenda->setFocusPolicy(Qt::NoFocus);
QLabel *dummyAllDayRight = new QLabel (mAllDayFrame);
@@ -431,3 +443,3 @@ KOAgendaView::KOAgendaView(Calendar *cal,QWidget *parent,const char *name) :
// Create agenda frame
- QGridLayout *agendaLayout = new QGridLayout(agendaFrame,4,3);
+ Q3GridLayout *agendaLayout = new Q3GridLayout(agendaFrame,4,3);
// QHBox *agendaFrame = new QHBox(splitterAgenda);
@@ -439,6 +451,6 @@ KOAgendaView::KOAgendaView(Calendar *cal,QWidget *parent,const char *name) :
#endif
- mDayLabelsFrame = new QHBox(agendaFrame);
+ mDayLabelsFrame = new Q3HBox(agendaFrame);
//topLayout->addWidget(mDayLabelsFrame);
- mDayLabels = new QFrame (mDayLabelsFrame);
- mLayoutDayLabels = new QHBoxLayout(mDayLabels);
+ mDayLabels = new Q3Frame (mDayLabelsFrame);
+ mLayoutDayLabels = new Q3HBoxLayout(mDayLabels);
agendaLayout->addMultiCellWidget(mDayLabelsFrame ,0,0,0,2);
@@ -462,3 +474,3 @@ KOAgendaView::KOAgendaView(Calendar *cal,QWidget *parent,const char *name) :
agendaLayout->setColStretch(1,1);
- mAgenda->setFocusPolicy(NoFocus);
+ mAgenda->setFocusPolicy(Qt::NoFocus);
// Create event context menu for agenda
@@ -467,3 +479,3 @@ KOAgendaView::KOAgendaView(Calendar *cal,QWidget *parent,const char *name) :
#if 0
- mAllAgendaPopup->addAdditionalItem(QIconSet(SmallIcon("bell")),
+ mAllAgendaPopup->addAdditionalItem(QIcon(SmallIcon("bell")),
i18n("Toggle Alarm"),mAgenda,
@@ -920,5 +932,5 @@ int KOAgendaView::currentDateCount()
-QPtrList<Incidence> KOAgendaView::selectedIncidences()
+Q3PtrList<Incidence> KOAgendaView::selectedIncidences()
{
- QPtrList<Incidence> selected;
+ Q3PtrList<Incidence> selected;
Incidence *incidence;
@@ -989,4 +1001,4 @@ void KOAgendaView::updateConfig()
// ToolTips displaying summary of events
- KOAgendaItem::toolTipGroup()->setEnabled(KOPrefs::instance()
- ->mEnableToolTips);
+ /* TODO:hacker: KOAgendaItem::toolTipGroup()->setEnabled(KOPrefs::instance()
+ ->mEnableToolTips); */
@@ -1119,3 +1131,3 @@ void KOAgendaView::showDates( const QDate &start, const QDate &end )
-void KOAgendaView::showEvents(QPtrList<Event>)
+void KOAgendaView::showEvents(Q3PtrList<Event>)
{
@@ -1167,3 +1179,3 @@ void KOAgendaView::fillAgenda()
- QPtrList<Event> dayEvents;
+ Q3PtrList<Event> dayEvents;
@@ -1171,3 +1183,3 @@ void KOAgendaView::fillAgenda()
// Therefore, gtodoset all of them.
- QPtrList<Todo> todos = calendar()->todos();
+ Q3PtrList<Todo> todos = calendar()->todos();
@@ -1302,3 +1314,3 @@ void KOAgendaView::fillAgenda()
//if not KOPrefs::instance()->mShowTodoInAgenda, show overdue in agenda
- bool overdue = (!todo->isCompleted()) && (todo->dtDue() < today) && KOPrefs::instance()->mShowTodoInAgenda;
+ bool overdue = (!todo->isCompleted()) && (todo->dtDue() < (QDateTime)today) && KOPrefs::instance()->mShowTodoInAgenda;
bool fillIn = false;
@@ -1505,3 +1517,3 @@ void KOAgendaView::readSettings(KConfig *config)
//#ifndef KORG_NOSPLITTER
- QValueList<int> sizes = config->readIntListEntry("Separator AgendaView");
+ Q3ValueList<int> sizes = config->readIntListEntry("Separator AgendaView");
if (sizes.count() == 2) {
@@ -1526,3 +1538,3 @@ void KOAgendaView::writeSettings(KConfig *config)
//#ifndef KORG_NOSPLITTER
- QValueList<int> list = mSplitterAgenda->sizes();
+ Q3ValueList<int> list = mSplitterAgenda->sizes();
config->writeEntry("Separator AgendaView",list);
@@ -1543,3 +1555,3 @@ void KOAgendaView::setHolidayMasks()
if ( KOPrefs::instance()->mExcludeHolidays ) {
- QPtrList<Event> events = calendar()->events( date, true );
+ Q3PtrList<Event> events = calendar()->events( date, true );
Event *event;
@@ -1665,3 +1677,3 @@ void KOAgendaView::updateTodo( Todo * t, int )
else {
- bool overdue = (!t->isCompleted()) && (t->dtDue() < QDate::currentDate()) && KOPrefs::instance()->mShowTodoInAgenda ;
+ bool overdue = (!t->isCompleted()) && (t->dtDue() < (QDateTime)QDate::currentDate()) && KOPrefs::instance()->mShowTodoInAgenda ;
if ( overdue &&
diff --git a/korganizer/koagendaview.h b/korganizer/koagendaview.h
index 5e68146..3b871d9 100644
--- a/korganizer/koagendaview.h
+++ b/korganizer/koagendaview.h
@@ -25,3 +25,3 @@
-#include <qscrollview.h>
+#include <q3scrollview.h>
#include <qdatetime.h>
@@ -29,2 +29,3 @@
#include <qlayout.h>
+#include <Q3BoxLayout>
#ifndef DESKTOP_VERSION
@@ -34,3 +35,12 @@
#endif
-#include <qmemarray.h>
+#include <q3memarray.h>
+//Added by qt3to4:
+#include <QPaintEvent>
+#include <QResizeEvent>
+#include <Q3Frame>
+#include <QPixmap>
+#include <QLabel>
+#include <QMouseEvent>
+#include <Q3PtrList>
+#include <QKeyEvent>
@@ -38,4 +48,4 @@
-class QHBox;
-class QFrame;
+class Q3HBox;
+class Q3Frame;
class QLabel;
@@ -57,3 +67,3 @@ class KOAgendaButton : public QPushButton
setFlat( true );
- setFocusPolicy(NoFocus);
+ setFocusPolicy(Qt::NoFocus);
setSizePolicy(QSizePolicy( QSizePolicy::Expanding ,QSizePolicy::Expanding ));
@@ -72,6 +82,6 @@ private:
-class TimeLabels : public QScrollView {
+class TimeLabels : public Q3ScrollView {
Q_OBJECT
public:
- TimeLabels(int rows,QWidget *parent=0,const char *name=0,WFlags f=0);
+ TimeLabels(int rows,QWidget *parent=0,const char *name=0,Qt::WFlags f=0);
@@ -115,3 +125,3 @@ class TimeLabels : public QScrollView {
-class EventIndicator : public QFrame {
+class EventIndicator : public Q3Frame {
Q_OBJECT
@@ -134,7 +144,7 @@ class EventIndicator : public QFrame {
int mColumns;
- QHBox *mTopBox;
- QBoxLayout *mTopLayout;
+ Q3HBox *mTopBox;
+ Q3BoxLayout *mTopLayout;
Location mLocation;
QPixmap mPixmap;
- QMemArray<bool> mEnabled;
+ Q3MemArray<bool> mEnabled;
};
@@ -161,3 +171,3 @@ class KOAgendaView : public KOEventView {
/** returns the currently selected events */
- virtual QPtrList<Incidence> selectedIncidences();
+ virtual Q3PtrList<Incidence> selectedIncidences();
@@ -187,3 +197,3 @@ class KOAgendaView : public KOEventView {
virtual void showDates(const QDate &start, const QDate &end);
- virtual void showEvents(QPtrList<Event> eventList);
+ virtual void showEvents(Q3PtrList<Event> eventList);
@@ -262,6 +272,6 @@ class KOAgendaView : public KOEventView {
// view widgets
- QFrame *mDayLabels;
- QHBox *mDayLabelsFrame;
- QBoxLayout *mLayoutDayLabels;
- QFrame *mAllDayFrame;
+ Q3Frame *mDayLabels;
+ Q3HBox *mDayLabelsFrame;
+ Q3BoxLayout *mLayoutDayLabels;
+ Q3Frame *mAllDayFrame;
KOAgenda *mAllDayAgenda;
@@ -286,8 +296,8 @@ class KOAgendaView : public KOEventView {
- QMemArray<int> mMinY;
- QMemArray<int> mMaxY;
+ Q3MemArray<int> mMinY;
+ Q3MemArray<int> mMaxY;
- QMemArray<bool> mHolidayMask;
+ Q3MemArray<bool> mHolidayMask;
- QPtrList<KOAgendaButton> mDayLabelsList;
+ Q3PtrList<KOAgendaButton> mDayLabelsList;
QDateTime mTimeSpanBegin;
diff --git a/korganizer/kocounterdialog.h b/korganizer/kocounterdialog.h
index c8dcf45..493d9e1 100644
--- a/korganizer/kocounterdialog.h
+++ b/korganizer/kocounterdialog.h
@@ -24,3 +24,3 @@
-#include <qtextview.h>
+#include <q3textview.h>
diff --git a/korganizer/kodaymatrix.cpp b/korganizer/kodaymatrix.cpp
index 52fd1e8..4f681b3 100644
--- a/korganizer/kodaymatrix.cpp
+++ b/korganizer/kodaymatrix.cpp
@@ -26,5 +26,14 @@
#include <qpainter.h>
-#include <qptrlist.h>
+#include <q3ptrlist.h>
#include <qtimer.h>
-#include <qwhatsthis.h>
+#include <q3whatsthis.h>
+//Added by qt3to4:
+#include <QDragLeaveEvent>
+#include <Q3Frame>
+#include <QDragEnterEvent>
+#include <QDragMoveEvent>
+#include <QDropEvent>
+#include <QResizeEvent>
+#include <QMouseEvent>
+#include <QPaintEvent>
@@ -56,3 +65,3 @@
DynamicTip::DynamicTip( QWidget * parent )
- : QToolTip( parent )
+ /* TODO:hacker: : QToolTip( parent ) */
{
@@ -61,6 +70,6 @@ DynamicTip::DynamicTip( QWidget * parent )
-class KODaymatrixWhatsThis :public QWhatsThis
+class KODaymatrixWhatsThis :public Q3WhatsThis
{
public:
- KODaymatrixWhatsThis( KODayMatrix* view ) : QWhatsThis( view ),_view (view) { ;};
+ KODaymatrixWhatsThis( KODayMatrix* view ) : Q3WhatsThis( view ),_view (view) { ;};
~KODaymatrixWhatsThis() { ; };
@@ -93,3 +102,3 @@ void DynamicTip::maybeTip( const QPoint &pos )
if (str.isEmpty()) return;
- tip(rct, str);
+ /* TODO:hacker: tip(rct, str);*/
}
@@ -105,3 +114,3 @@ const int KODayMatrix::NUMDAYS = 42;
KODayMatrix::KODayMatrix( QWidget *parent, const char *name )
- : QFrame( parent, name , Qt::WRepaintNoErase ), mCalendar( 0 )
+ : Q3Frame( parent, name , Qt::WNoAutoErase ), mCalendar( 0 )
@@ -153,3 +162,3 @@ QString KODayMatrix::getWhatsThisText( QPoint p )
QDate mDate = days[tmp];
- QPtrList<Event> eventlist = mCalendar->events(mDate);
+ Q3PtrList<Event> eventlist = mCalendar->events(mDate);
Event *event;
@@ -207,3 +216,3 @@ QString KODayMatrix::getWhatsThisText( QPoint p )
if ( KOPrefs::instance()->mCurrentDisplayedView == VIEW_T_VIEW ) {
- QPtrList<Todo> todolist = mCalendar->todos(mDate);
+ Q3PtrList<Todo> todolist = mCalendar->todos(mDate);
Todo *todo;
@@ -222,3 +231,3 @@ QString KODayMatrix::getWhatsThisText( QPoint p )
if (KOPrefs::instance()->mCurrentDisplayedView == VIEW_J_VIEW ) {
- QPtrList<Journal> j_list = mCalendar->journals4Date( mDate );
+ Q3PtrList<Journal> j_list = mCalendar->journals4Date( mDate );
Journal *j = j_list.first();
@@ -443,3 +452,3 @@ void KODayMatrix::updateViewTimed()
int timeSpan = NUMDAYS-1;
- QPtrList<Event> events = mCalendar->events();
+ Q3PtrList<Event> events = mCalendar->events();
Event *event;
@@ -528,3 +537,3 @@ void KODayMatrix::updateViewTimed()
// insert due todos
- QPtrList<Todo> todos = mCalendar->todos( );
+ Q3PtrList<Todo> todos = mCalendar->todos( );
Todo *todo;
@@ -553,3 +562,3 @@ void KODayMatrix::updateViewTimed()
// insert due todos
- QPtrList<Journal> todos = mCalendar->journals( );
+ Q3PtrList<Journal> todos = mCalendar->journals( );
Journal *todo;
@@ -577,3 +586,3 @@ void KODayMatrix::updateViewTimed()
// if events are set for the day then remember to draw it bold
- QPtrList<Event> eventlist = mCalendar->events(days[i]);
+ Q3PtrList<Event> eventlist = mCalendar->events(days[i]);
Event *event;
@@ -677,3 +686,3 @@ void KODayMatrix::updateEvents()
// if events are set for the day then remember to draw it bold
- QPtrList<Event> eventlist = mCalendar->events( days[ i ] );
+ Q3PtrList<Event> eventlist = mCalendar->events( days[ i ] );
int numEvents = eventlist.count();
@@ -741,3 +750,3 @@ void KODayMatrix::mousePressEvent (QMouseEvent* e)
- if ( e->button() == LeftButton )
+ if ( e->button() == Qt::LeftButton )
mouseDown = true;
@@ -754,3 +763,3 @@ void KODayMatrix::mouseReleaseEvent (QMouseEvent* e)
mRedrawNeeded = true;
- if ( e->button() == LeftButton )
+ if ( e->button() == Qt::LeftButton )
if ( ! mouseDown ) {
@@ -1197,3 +1206,3 @@ void KODayMatrix::paintEvent(QPaintEvent * pevent)
- bitBlt (this, pevent->rect().topLeft(), &myPix , pevent->rect() ,CopyROP);
+ bitBlt (this, pevent->rect().topLeft(), &myPix , pevent->rect() ,QPainter::CompositionMode_Source);
mRedrawNeeded = false;
@@ -1210,3 +1219,3 @@ void KODayMatrix::resizeEvent(QResizeEvent * e)
daysize.setWidth(sz.width() / 7);
- QFrame::resizeEvent( e );
+ Q3Frame::resizeEvent( e );
}
diff --git a/korganizer/kodaymatrix.h b/korganizer/kodaymatrix.h
index b96e08f..6edf7cd 100644
--- a/korganizer/kodaymatrix.h
+++ b/korganizer/kodaymatrix.h
@@ -28,3 +28,3 @@
#include <qstring.h>
-#include <qframe.h>
+#include <q3frame.h>
#include <qcolor.h>
@@ -36,2 +36,10 @@
#include <qmap.h>
+//Added by qt3to4:
+#include <QDragMoveEvent>
+#include <QDropEvent>
+#include <QDragLeaveEvent>
+#include <QPaintEvent>
+#include <QResizeEvent>
+#include <QMouseEvent>
+#include <QDragEnterEvent>
@@ -53,3 +61,3 @@ using namespace KCal;
*/
-class DynamicTip : public QToolTip
+class DynamicTip /* TODO:hacker: : public QToolTip */
{
@@ -105,3 +113,3 @@ private:
*/
-class KODayMatrix: public QFrame {
+class KODayMatrix: public Q3Frame {
diff --git a/korganizer/kodialogmanager.cpp b/korganizer/kodialogmanager.cpp
index ea30fac..deb1e46 100644
--- a/korganizer/kodialogmanager.cpp
+++ b/korganizer/kodialogmanager.cpp
@@ -43,2 +43,4 @@
#include <kapplication.h>
+//Added by qt3to4:
+#include <Q3PtrList>
@@ -190,4 +192,4 @@ void KODialogManager::showSearchDialog()
mMainView, SLOT(moveIncidence(Incidence *)));
- connect(lview, SIGNAL(beamIncidenceList(QPtrList<Incidence> )),
- mMainView, SLOT(beamIncidenceList(QPtrList<Incidence> )));
+ connect(lview, SIGNAL(beamIncidenceList(Q3PtrList<Incidence> )),
+ mMainView, SLOT(beamIncidenceList(Q3PtrList<Incidence> )));
@@ -248,3 +250,3 @@ void KODialogManager::showArchiveDialog()
-void KODialogManager::showFilterEditDialog(QPtrList<CalFilter> *filters)
+void KODialogManager::showFilterEditDialog(Q3PtrList<CalFilter> *filters)
{
diff --git a/korganizer/kodialogmanager.h b/korganizer/kodialogmanager.h
index b68ddc2..00ad1df 100644
--- a/korganizer/kodialogmanager.h
+++ b/korganizer/kodialogmanager.h
@@ -27,3 +27,3 @@
#include <qobject.h>
-#include <qptrlist.h>
+#include <q3ptrlist.h>
@@ -80,3 +80,3 @@ class KODialogManager : public QObject
void showArchiveDialog();
- void showFilterEditDialog(QPtrList<CalFilter> *filters);
+ void showFilterEditDialog(Q3PtrList<CalFilter> *filters);
void showPluginDialog();
diff --git a/korganizer/koeditordetails.cpp b/korganizer/koeditordetails.cpp
index 9a4b4ec..a01c838 100644
--- a/korganizer/koeditordetails.cpp
+++ b/korganizer/koeditordetails.cpp
@@ -24,10 +24,16 @@
#include <qtooltip.h>
-#include <qfiledialog.h>
+#include <q3filedialog.h>
#include <qlayout.h>
-#include <qvbox.h>
-#include <qbuttongroup.h>
-#include <qvgroupbox.h>
-#include <qwidgetstack.h>
+#include <q3vbox.h>
+#include <q3buttongroup.h>
+#include <q3vgroupbox.h>
+#include <q3widgetstack.h>
#include <qdatetime.h>
-#include <qapp.h>
+#include <qapplication.h>
+#include <QDesktopWidget>
+//Added by qt3to4:
+#include <Q3GridLayout>
+#include <QLabel>
+#include <Q3PtrList>
+#include <Q3VBoxLayout>
@@ -82,3 +88,3 @@ KOEditorDetails::KOEditorDetails (int spacing,QWidget* parent,const char* name)
{
- QGridLayout *topLayout = new QGridLayout(this);
+ Q3GridLayout *topLayout = new Q3GridLayout(this);
topLayout->setSpacing(spacing);
@@ -103,7 +109,7 @@ KOEditorDetails::KOEditorDetails (int spacing,QWidget* parent,const char* name)
//mListView->setSingleClick( true );
- connect(mListView,SIGNAL(selectionChanged(QListViewItem *)),
+ connect(mListView,SIGNAL(selectionChanged(Q3ListViewItem *)),
SLOT(updateAttendeeInput()));
- connect(mListView,SIGNAL(executed(QListViewItem * ,const QPoint&, int )),
- SLOT(itemClicked(QListViewItem * ,const QPoint& , int )));
+ connect(mListView,SIGNAL(executed(Q3ListViewItem * ,const QPoint&, int )),
+ SLOT(itemClicked(Q3ListViewItem * ,const QPoint& , int )));
@@ -142,3 +148,3 @@ KOEditorDetails::KOEditorDetails (int spacing,QWidget* parent,const char* name)
QWidget *buttonBox = new QWidget(this);
- QVBoxLayout *buttonLayout = new QVBoxLayout(buttonBox);
+ Q3VBoxLayout *buttonLayout = new Q3VBoxLayout(buttonBox);
@@ -367,3 +373,3 @@ void KOEditorDetails::readEvent(Incidence *event)
//mdelAttendees.clear();
- QPtrList<Attendee> tmpAList = event->attendees();
+ Q3PtrList<Attendee> tmpAList = event->attendees();
Attendee *a;
@@ -379,3 +385,3 @@ void KOEditorDetails::writeEvent(Incidence *event)
event->clearAttendees();
- QListViewItem *item;
+ Q3ListViewItem *item;
AttendeeListItem *a;
@@ -406,3 +412,3 @@ void KOEditorDetails::updateAttendeeInput()
{
- QListViewItem *item = mListView->selectedItem();
+ Q3ListViewItem *item = mListView->selectedItem();
AttendeeListItem *aItem = static_cast<AttendeeListItem *>( item );
@@ -453,3 +459,3 @@ void KOEditorDetails::setEnabledAttendeeInput( bool enabled )
-void KOEditorDetails::itemClicked(QListViewItem * item ,const QPoint & pnt, int c )
+void KOEditorDetails::itemClicked(Q3ListViewItem * item ,const QPoint & pnt, int c )
{
@@ -464,3 +470,3 @@ void KOEditorDetails::updateAttendeeItem()
- QListViewItem *item = mListView->selectedItem();
+ Q3ListViewItem *item = mListView->selectedItem();
AttendeeListItem *aItem = static_cast<AttendeeListItem *>( item );
diff --git a/korganizer/koeditordetails.h b/korganizer/koeditordetails.h
index 5f8f6f2..40e896c 100644
--- a/korganizer/koeditordetails.h
+++ b/korganizer/koeditordetails.h
@@ -26,3 +26,3 @@
#include <qmap.h>
-#include <qframe.h>
+#include <q3frame.h>
#include <qlabel.h>
@@ -30,9 +30,9 @@
#include <qpushbutton.h>
-#include <qgroupbox.h>
+#include <q3groupbox.h>
#include <qlineedit.h>
#include <qcombobox.h>
-#include <qmultilineedit.h>
+#include <q3multilineedit.h>
#include <klistview.h>
#include <qradiobutton.h>
-#include <qptrlist.h>
+#include <q3ptrlist.h>
@@ -85,3 +85,3 @@ class KOEditorDetails : public QWidget
void fillAttendeeInput(AttendeeListItem *);
- void itemClicked(QListViewItem *,const QPoint & pnt, int c);
+ void itemClicked(Q3ListViewItem *,const QPoint & pnt, int c);
void updateAttendeeItem();
@@ -105,3 +105,3 @@ class KOEditorDetails : public QWidget
- QPtrList<Attendee> mdelAttendees;
+ Q3PtrList<Attendee> mdelAttendees;
};
diff --git a/korganizer/koeditorgeneral.cpp b/korganizer/koeditorgeneral.cpp
index 21f220c..8105432 100644
--- a/korganizer/koeditorgeneral.cpp
+++ b/korganizer/koeditorgeneral.cpp
@@ -26,6 +26,6 @@
#include <qlayout.h>
-#include <qvbox.h>
-#include <qbuttongroup.h>
-#include <qvgroupbox.h>
-#include <qwidgetstack.h>
+#include <q3vbox.h>
+#include <q3buttongroup.h>
+#include <q3vgroupbox.h>
+#include <q3widgetstack.h>
#include <qdatetime.h>
@@ -34,3 +34,10 @@
#include <qregexp.h>
+//Added by qt3to4:
+#include <Q3HBoxLayout>
+#include <QLabel>
+#include <Q3GridLayout>
+#include <Q3PtrList>
+#include <Q3PopupMenu>
+#include <QDesktopWidget>
@@ -71,5 +78,5 @@ KOEditorGeneral::~KOEditorGeneral()
-void KOEditorGeneral::initHeader(QWidget *parent,QBoxLayout *topLayout)
+void KOEditorGeneral::initHeader(QWidget *parent,Q3BoxLayout *topLayout)
{
- QGridLayout *headerLayout = new QGridLayout(topLayout);
+ Q3GridLayout *headerLayout = new Q3GridLayout(topLayout);
@@ -197,6 +204,6 @@ void KOEditorGeneral::selectedCatPopup( int index )
-void KOEditorGeneral::initCategories(QWidget *parent, QBoxLayout *topLayout)
+void KOEditorGeneral::initCategories(QWidget *parent, Q3BoxLayout *topLayout)
{
- QBoxLayout *categoriesLayout = new QHBoxLayout( topLayout );
- mCatPopup = new QPopupMenu ( parent );
+ Q3BoxLayout *categoriesLayout = new Q3HBoxLayout( topLayout );
+ mCatPopup = new Q3PopupMenu ( parent );
mCatPopup->setCheckable (true);
@@ -216,5 +223,5 @@ void KOEditorGeneral::initCategories(QWidget *parent, QBoxLayout *topLayout)
-void KOEditorGeneral::initSecrecy(QWidget *parent, QBoxLayout *topLayout)
+void KOEditorGeneral::initSecrecy(QWidget *parent, Q3BoxLayout *topLayout)
{
- QBoxLayout *secrecyLayout = new QHBoxLayout( topLayout );
+ Q3BoxLayout *secrecyLayout = new Q3HBoxLayout( topLayout );
@@ -230,3 +237,3 @@ void KOEditorGeneral::initSecrecy(QWidget *parent, QBoxLayout *topLayout)
-void KOEditorGeneral::initDescription(QWidget *parent,QBoxLayout *topLayout)
+void KOEditorGeneral::initDescription(QWidget *parent,Q3BoxLayout *topLayout)
{
@@ -245,5 +252,5 @@ void KOEditorGeneral::initDescription(QWidget *parent,QBoxLayout *topLayout)
-void KOEditorGeneral::initAlarm(QWidget *parent,QBoxLayout *topLayout)
+void KOEditorGeneral::initAlarm(QWidget *parent,Q3BoxLayout *topLayout)
{
- QBoxLayout *alarmLayout = new QHBoxLayout(topLayout);
+ Q3BoxLayout *alarmLayout = new Q3HBoxLayout(topLayout);
@@ -530,3 +537,3 @@ void KOEditorGeneral::readIncidence(Incidence *event)
// set up alarm stuff
- QPtrList<Alarm> alarms = event->alarms();
+ Q3PtrList<Alarm> alarms = event->alarms();
Alarm* alarm;
@@ -592,3 +599,3 @@ void KOEditorGeneral::writeIncidence(Incidence *event)
event->newAlarm();
- QPtrList<Alarm> alarms = event->alarms();
+ Q3PtrList<Alarm> alarms = event->alarms();
Alarm *alarm;
diff --git a/korganizer/koeditorgeneral.h b/korganizer/koeditorgeneral.h
index b10a5d4..45f26fd 100644
--- a/korganizer/koeditorgeneral.h
+++ b/korganizer/koeditorgeneral.h
@@ -25,3 +25,3 @@
-#include <qframe.h>
+#include <q3frame.h>
#include <qlabel.h>
@@ -29,7 +29,7 @@
#include <qpushbutton.h>
-#include <qpopupmenu.h>
-#include <qgroupbox.h>
+#include <q3popupmenu.h>
+#include <q3groupbox.h>
#include <qlineedit.h>
#include <qcombobox.h>
-#include <qlistview.h>
+#include <q3listview.h>
#include <qradiobutton.h>
@@ -38,2 +38,3 @@
#include <qcombobox.h>
+#include <Q3BoxLayout>
@@ -57,7 +58,7 @@ class KOEditorGeneral : public QObject
void setFocusOn( int i );
- void initHeader(QWidget *,QBoxLayout *);
- void initDescription(QWidget *,QBoxLayout *);
- void initSecrecy(QWidget *,QBoxLayout *);
- void initCategories(QWidget *,QBoxLayout *);
- void initAlarm(QWidget *,QBoxLayout *);
+ void initHeader(QWidget *,Q3BoxLayout *);
+ void initDescription(QWidget *,Q3BoxLayout *);
+ void initSecrecy(QWidget *,Q3BoxLayout *);
+ void initCategories(QWidget *,Q3BoxLayout *);
+ void initAlarm(QWidget *,Q3BoxLayout *);
@@ -117,3 +118,3 @@ class KOEditorGeneral : public QObject
private:
- QPopupMenu * mCatPopup;
+ Q3PopupMenu * mCatPopup;
QString getFittingPath( const QString &) ;
diff --git a/korganizer/koeditorgeneralevent.cpp b/korganizer/koeditorgeneralevent.cpp
index 2c6ed9f..73a4139 100644
--- a/korganizer/koeditorgeneralevent.cpp
+++ b/korganizer/koeditorgeneralevent.cpp
@@ -25,7 +25,13 @@
#include <qlayout.h>
-#include <qvbox.h>
-#include <qbuttongroup.h>
-#include <qvgroupbox.h>
-#include <qwidgetstack.h>
+#include <q3vbox.h>
+#include <q3buttongroup.h>
+#include <q3vgroupbox.h>
+#include <q3widgetstack.h>
#include <qdatetime.h>
+//Added by qt3to4:
+#include <Q3HBoxLayout>
+#include <Q3GridLayout>
+#include <Q3Frame>
+#include <QLabel>
+#include <Q3VBoxLayout>
@@ -86,7 +92,7 @@ void KOEditorGeneralEvent::finishSetup()
-void KOEditorGeneralEvent::initTime(QWidget *parent,QBoxLayout *topLayout)
+void KOEditorGeneralEvent::initTime(QWidget *parent,Q3BoxLayout *topLayout)
{
- QBoxLayout *timeLayout = new QVBoxLayout(topLayout);
+ Q3BoxLayout *timeLayout = new Q3VBoxLayout(topLayout);
- QGroupBox *timeGroupBox = new QGroupBox(1,QGroupBox::Horizontal,
+ Q3GroupBox *timeGroupBox = new Q3GroupBox(1,Qt::Horizontal,
i18n("Date && Time"),parent);
@@ -96,5 +102,5 @@ void KOEditorGeneralEvent::initTime(QWidget *parent,QBoxLayout *topLayout)
timeGroupBox->layout()->setMargin( KDialog::marginHint() );
- QFrame *timeBoxFrame = new QFrame(timeGroupBox);
+ Q3Frame *timeBoxFrame = new Q3Frame(timeGroupBox);
- QGridLayout *layoutTimeBox = new QGridLayout(timeBoxFrame,2,3);
+ Q3GridLayout *layoutTimeBox = new Q3GridLayout(timeBoxFrame,2,3);
layoutTimeBox->setSpacing(topLayout->spacing());
@@ -120,3 +126,3 @@ void KOEditorGeneralEvent::initTime(QWidget *parent,QBoxLayout *topLayout)
QWidget* duration = new QWidget( timeBoxFrame );
- QHBoxLayout *flagsBox = new QHBoxLayout( duration );
+ Q3HBoxLayout *flagsBox = new Q3HBoxLayout( duration );
mNoTimeButton = new QCheckBox(i18n("All day event"),duration);
@@ -131,3 +137,3 @@ void KOEditorGeneralEvent::initTime(QWidget *parent,QBoxLayout *topLayout)
flagsBox->setStretchFactor(mDurationLabel, 10 );
- mDurationLabel->setAlignment( AlignRight | AlignVCenter);
+ mDurationLabel->setAlignment( Qt::AlignRight | Qt::AlignVCenter);
layoutTimeBox->addMultiCellWidget( duration, 2, 2, 0, 3 );
@@ -149,5 +155,5 @@ void KOEditorGeneralEvent::initTime(QWidget *parent,QBoxLayout *topLayout)
-void KOEditorGeneralEvent::initClass(QWidget *parent,QBoxLayout *topLayout)
+void KOEditorGeneralEvent::initClass(QWidget *parent,Q3BoxLayout *topLayout)
{
- QBoxLayout *classLayout = new QHBoxLayout(topLayout);
+ Q3BoxLayout *classLayout = new Q3HBoxLayout(topLayout);
diff --git a/korganizer/koeditorgeneralevent.h b/korganizer/koeditorgeneralevent.h
index d798905..5d97a5c 100644
--- a/korganizer/koeditorgeneralevent.h
+++ b/korganizer/koeditorgeneralevent.h
@@ -25,3 +25,3 @@
-#include <qframe.h>
+#include <q3frame.h>
#include <qlabel.h>
@@ -29,7 +29,7 @@
#include <qpushbutton.h>
-#include <qgroupbox.h>
+#include <q3groupbox.h>
#include <qlineedit.h>
#include <qcombobox.h>
-#include <qmultilineedit.h>
-#include <qlistview.h>
+#include <q3multilineedit.h>
+#include <q3listview.h>
#include <qradiobutton.h>
@@ -53,4 +53,4 @@ class KOEditorGeneralEvent : public KOEditorGeneral
- void initTime(QWidget *,QBoxLayout *);
- void initClass(QWidget *,QBoxLayout *);
+ void initTime(QWidget *,Q3BoxLayout *);
+ void initClass(QWidget *,Q3BoxLayout *);
diff --git a/korganizer/koeditorgeneraltodo.cpp b/korganizer/koeditorgeneraltodo.cpp
index d32d5a5..baee9fc 100644
--- a/korganizer/koeditorgeneraltodo.cpp
+++ b/korganizer/koeditorgeneraltodo.cpp
@@ -24,10 +24,17 @@
#include <qtooltip.h>
-#include <qfiledialog.h>
+#include <q3filedialog.h>
#include <qlayout.h>
-#include <qvbox.h>
-#include <qbuttongroup.h>
-#include <qvgroupbox.h>
-#include <qwidgetstack.h>
+#include <q3vbox.h>
+#include <q3buttongroup.h>
+#include <q3vgroupbox.h>
+#include <q3widgetstack.h>
#include <qdatetime.h>
#include <qapplication.h>
+#include <QDesktopWidget>
+//Added by qt3to4:
+#include <Q3HBoxLayout>
+#include <Q3GridLayout>
+#include <Q3Frame>
+#include <QLabel>
+#include <Q3VBoxLayout>
@@ -84,7 +91,7 @@ void KOEditorGeneralTodo::finishSetup()
-void KOEditorGeneralTodo::initTime(QWidget *parent,QBoxLayout *topLayout)
+void KOEditorGeneralTodo::initTime(QWidget *parent,Q3BoxLayout *topLayout)
{
- QBoxLayout *timeLayout = new QVBoxLayout(topLayout);
+ Q3BoxLayout *timeLayout = new Q3VBoxLayout(topLayout);
- QGroupBox *timeGroupBox = new QGroupBox(1,QGroupBox::Horizontal,
+ Q3GroupBox *timeGroupBox = new Q3GroupBox(1,Qt::Horizontal,
i18n("Date && Time"),parent);
@@ -93,5 +100,5 @@ void KOEditorGeneralTodo::initTime(QWidget *parent,QBoxLayout *topLayout)
timeGroupBox->layout()->setMargin( KDialog::marginHint() );
- QFrame *timeBoxFrame = new QFrame(timeGroupBox);
+ Q3Frame *timeBoxFrame = new Q3Frame(timeGroupBox);
- QGridLayout *layoutTimeBox = new QGridLayout(timeBoxFrame,3,3);
+ Q3GridLayout *layoutTimeBox = new Q3GridLayout(timeBoxFrame,3,3);
layoutTimeBox->setSpacing(KDialog::spacingHintSmall());
@@ -135,3 +142,3 @@ void KOEditorGeneralTodo::initTime(QWidget *parent,QBoxLayout *topLayout)
-void KOEditorGeneralTodo::initCompletion(QWidget *parent, QBoxLayout *topLayout)
+void KOEditorGeneralTodo::initCompletion(QWidget *parent, Q3BoxLayout *topLayout)
{
@@ -175,6 +182,6 @@ void KOEditorGeneralTodo::initCompletion(QWidget *parent, QBoxLayout *topLayout)
-void KOEditorGeneralTodo::initPriority(QWidget *parent, QBoxLayout *topLayout)
+void KOEditorGeneralTodo::initPriority(QWidget *parent, Q3BoxLayout *topLayout)
{
- QHBox* h = new QHBox ( parent );
+ Q3HBox* h = new Q3HBox ( parent );
topLayout->addWidget( h );
@@ -191,5 +198,5 @@ void KOEditorGeneralTodo::initPriority(QWidget *parent, QBoxLayout *topLayout)
-void KOEditorGeneralTodo::initStatus(QWidget *parent,QBoxLayout *topLayout)
+void KOEditorGeneralTodo::initStatus(QWidget *parent,Q3BoxLayout *topLayout)
{
- QBoxLayout *statusLayout = new QHBoxLayout(topLayout);
+ Q3BoxLayout *statusLayout = new Q3HBoxLayout(topLayout);
@@ -398,3 +405,3 @@ void KOEditorGeneralTodo::startDateChanged(QDate newdate)
if ( mDueCheck->isChecked() )
- emit dateTimesChanged(newdate,mDueDateEdit->date());
+ emit dateTimesChanged((QDateTime)newdate,(QDateTime)mDueDateEdit->date());
}
diff --git a/korganizer/koeditorgeneraltodo.h b/korganizer/koeditorgeneraltodo.h
index 2e56a7a..2e97ff5 100644
--- a/korganizer/koeditorgeneraltodo.h
+++ b/korganizer/koeditorgeneraltodo.h
@@ -25,3 +25,3 @@
-#include <qframe.h>
+#include <q3frame.h>
#include <qlabel.h>
@@ -29,7 +29,7 @@
#include <qpushbutton.h>
-#include <qgroupbox.h>
+#include <q3groupbox.h>
#include <qlineedit.h>
#include <qcombobox.h>
-#include <qmultilineedit.h>
-#include <qlistview.h>
+#include <q3multilineedit.h>
+#include <q3listview.h>
#include <qradiobutton.h>
@@ -52,6 +52,6 @@ class KOEditorGeneralTodo : public KOEditorGeneral
- void initTime(QWidget *, QBoxLayout *);
- void initStatus(QWidget *, QBoxLayout *);
- void initCompletion(QWidget *, QBoxLayout *);
- void initPriority(QWidget *, QBoxLayout *);
+ void initTime(QWidget *, Q3BoxLayout *);
+ void initStatus(QWidget *, Q3BoxLayout *);
+ void initCompletion(QWidget *, Q3BoxLayout *);
+ void initPriority(QWidget *, Q3BoxLayout *);
diff --git a/korganizer/koeditorrecurrence.cpp b/korganizer/koeditorrecurrence.cpp
index e0380c4..e0ae3a0 100644
--- a/korganizer/koeditorrecurrence.cpp
+++ b/korganizer/koeditorrecurrence.cpp
@@ -24,10 +24,10 @@
#include <qtooltip.h>
-#include <qfiledialog.h>
+#include <q3filedialog.h>
#include <qlayout.h>
-#include <qvbox.h>
-#include <qbuttongroup.h>
-#include <qvgroupbox.h>
-#include <qwidgetstack.h>
+#include <q3vbox.h>
+#include <q3buttongroup.h>
+#include <q3vgroupbox.h>
+#include <q3widgetstack.h>
#include <qdatetime.h>
-#include <qlistbox.h>
+#include <q3listbox.h>
#include <qspinbox.h>
@@ -35,2 +35,10 @@
#include <qapplication.h>
+#include <QDesktopWidget>
+//Added by qt3to4:
+#include <Q3HBoxLayout>
+#include <QLabel>
+#include <Q3GridLayout>
+#include <Q3PtrList>
+#include <Q3Frame>
+#include <Q3VBoxLayout>
@@ -83,3 +91,3 @@ RecurDaily::RecurDaily( QWidget *parent, const char *name ) :
{
- QBoxLayout *topLayout = new QHBoxLayout( this );
+ Q3BoxLayout *topLayout = new Q3HBoxLayout( this );
topLayout->setSpacing( KDialog::spacingHint() );
@@ -102,3 +110,3 @@ RecurWeekly::RecurWeekly( QWidget *parent, const char *name ) :
{
- QBoxLayout *topLayout = new QVBoxLayout( this );
+ Q3BoxLayout *topLayout = new Q3VBoxLayout( this );
topLayout->setSpacing( KDialog::spacingHint() );
@@ -108,3 +116,3 @@ RecurWeekly::RecurWeekly( QWidget *parent, const char *name ) :
- QBoxLayout *weeksLayout = new QHBoxLayout( topLayout );
+ Q3BoxLayout *weeksLayout = new Q3HBoxLayout( topLayout );
@@ -118,4 +126,4 @@ RecurWeekly::RecurWeekly( QWidget *parent, const char *name ) :
- QHBox *dayBox = new QHBox( this );
- topLayout->addWidget( dayBox, 1, AlignVCenter );
+ Q3HBox *dayBox = new Q3HBox( this );
+ topLayout->addWidget( dayBox, 1, Qt::AlignVCenter );
// TODO: Respect start of week setting
@@ -158,3 +166,3 @@ RecurMonthly::RecurMonthly( QWidget *parent, const char *name ) :
{
- QBoxLayout *topLayout = new QVBoxLayout( this );
+ Q3BoxLayout *topLayout = new Q3VBoxLayout( this );
topLayout->setSpacing( KDialog::spacingHint() );
@@ -163,3 +171,3 @@ RecurMonthly::RecurMonthly( QWidget *parent, const char *name ) :
- QBoxLayout *freqLayout = new QHBoxLayout( topLayout );
+ Q3BoxLayout *freqLayout = new Q3HBoxLayout( topLayout );
@@ -174,7 +182,7 @@ RecurMonthly::RecurMonthly( QWidget *parent, const char *name ) :
- QButtonGroup *buttonGroup = new QButtonGroup( this );
- buttonGroup->setFrameStyle( QFrame::NoFrame );
- topLayout->addWidget( buttonGroup, 1, AlignVCenter );
+ Q3ButtonGroup *buttonGroup = new Q3ButtonGroup( this );
+ buttonGroup->setFrameStyle( Q3Frame::NoFrame );
+ topLayout->addWidget( buttonGroup, 1, Qt::AlignVCenter );
- QGridLayout *buttonLayout = new QGridLayout( buttonGroup, 3, 2 );
+ Q3GridLayout *buttonLayout = new Q3GridLayout( buttonGroup, 3, 2 );
buttonLayout->setSpacing( KDialog::spacingHint() );
@@ -191,3 +199,3 @@ RecurMonthly::RecurMonthly( QWidget *parent, const char *name ) :
- mByDayCombo = new QComboBox( buttonGroup );
+ mByDayCombo = new Q3ComboBox( buttonGroup );
mByDayCombo->setSizeLimit( 7 );
@@ -295,3 +303,3 @@ RecurYearly::RecurYearly( QWidget *parent, const char *name ) :
{
- QBoxLayout *topLayout = new QVBoxLayout( this );
+ Q3BoxLayout *topLayout = new Q3VBoxLayout( this );
topLayout->setSpacing( KDialog::spacingHint() );
@@ -300,3 +308,3 @@ RecurYearly::RecurYearly( QWidget *parent, const char *name ) :
- QBoxLayout *freqLayout = new QHBoxLayout( topLayout );
+ Q3BoxLayout *freqLayout = new Q3HBoxLayout( topLayout );
@@ -311,7 +319,7 @@ RecurYearly::RecurYearly( QWidget *parent, const char *name ) :
- QButtonGroup *buttonGroup = new QButtonGroup( this );
- buttonGroup->setFrameStyle( QFrame::NoFrame );
- topLayout->addWidget( buttonGroup, 1, AlignVCenter );
+ Q3ButtonGroup *buttonGroup = new Q3ButtonGroup( this );
+ buttonGroup->setFrameStyle( Q3Frame::NoFrame );
+ topLayout->addWidget( buttonGroup, 1, Qt::AlignVCenter );
- QGridLayout *buttonLayout = new QGridLayout( buttonGroup, 2, 3 );
+ Q3GridLayout *buttonLayout = new Q3GridLayout( buttonGroup, 2, 3 );
@@ -322,3 +330,3 @@ RecurYearly::RecurYearly( QWidget *parent, const char *name ) :
buttonLayout->addWidget( mByDayLabel, 0, 1 );
- mByMonthCombo = new QComboBox( buttonGroup );
+ mByMonthCombo = new Q3ComboBox( buttonGroup );
mByMonthCombo->insertItem( i18n("January") );
@@ -385,5 +393,5 @@ ExceptionsWidget::ExceptionsWidget( QWidget *parent, const char *name ) :
{
- QBoxLayout *topLayout = new QVBoxLayout( this );
+ Q3BoxLayout *topLayout = new Q3VBoxLayout( this );
- QGroupBox *groupBox = new QGroupBox( 1, Horizontal, i18n("Exceptions"),
+ Q3GroupBox *groupBox = new Q3GroupBox( 1, Qt::Horizontal, i18n("Exceptions"),
this );
@@ -393,3 +401,3 @@ ExceptionsWidget::ExceptionsWidget( QWidget *parent, const char *name ) :
- QGridLayout *boxLayout = new QGridLayout( box );
+ Q3GridLayout *boxLayout = new Q3GridLayout( box );
@@ -405,3 +413,3 @@ ExceptionsWidget::ExceptionsWidget( QWidget *parent, const char *name ) :
- mExceptionList = new QListBox( box );
+ mExceptionList = new Q3ListBox( box );
boxLayout->addMultiCellWidget( mExceptionList, 0, 3, 1, 1 );
@@ -508,5 +516,5 @@ RecurrenceRangeWidget::RecurrenceRangeWidget( QWidget *parent,
{
- QBoxLayout *topLayout = new QVBoxLayout( this );
+ Q3BoxLayout *topLayout = new Q3VBoxLayout( this );
- mRangeGroupBox = new QGroupBox( 1, Horizontal, i18n("Recurrence Range"),
+ mRangeGroupBox = new Q3GroupBox( 1, Qt::Horizontal, i18n("Recurrence Range"),
this );
@@ -515,3 +523,3 @@ RecurrenceRangeWidget::RecurrenceRangeWidget( QWidget *parent,
QWidget *rangeBox = new QWidget( mRangeGroupBox );
- QVBoxLayout *rangeLayout = new QVBoxLayout( rangeBox );
+ Q3VBoxLayout *rangeLayout = new Q3VBoxLayout( rangeBox );
rangeLayout->setSpacing( KDialog::spacingHint() );
@@ -522,3 +530,3 @@ RecurrenceRangeWidget::RecurrenceRangeWidget( QWidget *parent,
- mRangeButtonGroup = new QButtonGroup;
+ mRangeButtonGroup = new Q3ButtonGroup;
@@ -528,3 +536,3 @@ RecurrenceRangeWidget::RecurrenceRangeWidget( QWidget *parent,
- QBoxLayout *durationLayout = new QHBoxLayout( rangeLayout );
+ Q3BoxLayout *durationLayout = new Q3HBoxLayout( rangeLayout );
durationLayout->setSpacing( KDialog::spacingHint() );
@@ -541,3 +549,3 @@ RecurrenceRangeWidget::RecurrenceRangeWidget( QWidget *parent,
- QBoxLayout *endDateLayout = new QHBoxLayout( rangeLayout );
+ Q3BoxLayout *endDateLayout = new Q3HBoxLayout( rangeLayout );
endDateLayout->setSpacing( KDialog::spacingHint() );
@@ -668,3 +676,3 @@ RecurrenceChooser::RecurrenceChooser( QWidget *parent, const char *name ) :
{
- QBoxLayout *topLayout = new QVBoxLayout( this );
+ Q3BoxLayout *topLayout = new Q3VBoxLayout( this );
@@ -727,3 +735,3 @@ KOEditorRecurrence::KOEditorRecurrence( QWidget* parent, const char *name ) :
{
- QGridLayout *topLayout = new QGridLayout( this, 2,2 );
+ Q3GridLayout *topLayout = new Q3GridLayout( this, 2,2 );
topLayout->setSpacing( KDialog::spacingHint() );
@@ -737,3 +745,3 @@ KOEditorRecurrence::KOEditorRecurrence( QWidget* parent, const char *name ) :
- mTimeGroupBox = new QGroupBox( 1, Horizontal, i18n("Time"),
+ mTimeGroupBox = new Q3GroupBox( 1, Qt::Horizontal, i18n("Time"),
this );
@@ -754,3 +762,3 @@ KOEditorRecurrence::KOEditorRecurrence( QWidget* parent, const char *name ) :
//mDateTimeLabel->setSizePolicy( QSizePolicy( QSizePolicy::Preferred, QSizePolicy::Maximum) );
- mRuleBox = new QGroupBox( 1, Horizontal, i18n("Recurrence Rule"), this );
+ mRuleBox = new Q3GroupBox( 1, Qt::Horizontal, i18n("Recurrence Rule"), this );
topLayout->addMultiCellWidget( mRuleBox, 2, 2, 0, 1 );
@@ -761,3 +769,3 @@ KOEditorRecurrence::KOEditorRecurrence( QWidget* parent, const char *name ) :
- mRuleStack = new QWidgetStack( mRuleBox );
+ mRuleStack = new Q3WidgetStack( mRuleBox );
@@ -898,4 +906,4 @@ void KOEditorRecurrence::readEvent(Incidence *event)
QBitArray rDays( 7 );
- QPtrList<Recurrence::rMonthPos> rmp;
- QPtrList<int> rmd;
+ Q3PtrList<Recurrence::rMonthPos> rmp;
+ Q3PtrList<int> rmd;
int day = 0;
@@ -970,3 +978,3 @@ void KOEditorRecurrence::readEvent(Incidence *event)
//qDebug("2day = %d ",day );
- QPtrList<Recurrence::rMonthPos> monthlist = r->yearMonthPositions();
+ Q3PtrList<Recurrence::rMonthPos> monthlist = r->yearMonthPositions();
int month;
diff --git a/korganizer/koeditorrecurrence.h b/korganizer/koeditorrecurrence.h
index 75e0c73..6c012bd 100644
--- a/korganizer/koeditorrecurrence.h
+++ b/korganizer/koeditorrecurrence.h
@@ -25,3 +25,3 @@
-#include <qframe.h>
+#include <q3frame.h>
#include <qlabel.h>
@@ -29,9 +29,11 @@
#include <qpushbutton.h>
-#include <qgroupbox.h>
+#include <q3groupbox.h>
#include <qlineedit.h>
#include <qcombobox.h>
-#include <qmultilineedit.h>
-#include <qlistview.h>
+#include <q3multilineedit.h>
+#include <q3listview.h>
#include <qradiobutton.h>
-#include <qbuttongroup.h>
+#include <q3buttongroup.h>
+#include <Q3ListBox>
+#include <Q3ComboBox>
@@ -43,3 +45,3 @@
-class QWidgetStack;
+class Q3WidgetStack;
class QSpinBox;
@@ -100,3 +102,3 @@ class RecurMonthly : public RecurBase
QRadioButton *mByDayRadio;
- QComboBox *mByDayCombo;
+ Q3ComboBox *mByDayCombo;
@@ -124,3 +126,3 @@ class RecurYearly : public RecurBase
QRadioButton *mByMonthRadio;
- QComboBox *mByMonthCombo;
+ Q3ComboBox *mByMonthCombo;
QLabel* mByDayLabel;
@@ -182,3 +184,3 @@ class ExceptionsWidget : public QWidget, public ExceptionsBase
KDateEdit *mExceptionDateEdit;
- QListBox *mExceptionList;
+ Q3ListBox *mExceptionList;
DateList mExceptionDates;
@@ -237,4 +239,4 @@ class RecurrenceRangeWidget : public QWidget, public RecurrenceRangeBase
private:
- QButtonGroup *mRangeButtonGroup;
- QGroupBox *mRangeGroupBox;
+ Q3ButtonGroup *mRangeButtonGroup;
+ Q3GroupBox *mRangeGroupBox;
QLabel *mStartDateLabel;
@@ -302,7 +304,7 @@ class KOEditorRecurrence : public QWidget
- QGroupBox *mTimeGroupBox;
+ Q3GroupBox *mTimeGroupBox;
QLabel *mDateTimeLabel;
- QGroupBox *mRuleBox;
- QWidgetStack *mRuleStack;
+ Q3GroupBox *mRuleBox;
+ Q3WidgetStack *mRuleStack;
RecurrenceChooser *mRecurrenceChooser;
diff --git a/korganizer/koeventeditor.cpp b/korganizer/koeventeditor.cpp
index 3e87197..62ad250 100644
--- a/korganizer/koeventeditor.cpp
+++ b/korganizer/koeventeditor.cpp
@@ -24,5 +24,5 @@
#include <qtooltip.h>
-#include <qframe.h>
+#include <q3frame.h>
#include <qpixmap.h>
-#include <qhbox.h>
+#include <q3hbox.h>
#include <qtimer.h>
@@ -30,4 +30,9 @@
#include <qlayout.h>
-#include <qwidgetstack.h>
+#include <q3widgetstack.h>
#include <qapplication.h>
+#include <QDesktopWidget>
+//Added by qt3to4:
+#include <Q3HBoxLayout>
+#include <Q3PtrList>
+#include <Q3VBoxLayout>
@@ -107,4 +112,4 @@ void KOEventEditor::setupGeneral()
if( KOPrefs::instance()->mCompactDialogs ) {
- QFrame *topFrame = addPage(i18n("General"));
- QBoxLayout *topLayout = new QVBoxLayout(topFrame);
+ Q3Frame *topFrame = addPage(i18n("General"));
+ Q3BoxLayout *topLayout = new Q3VBoxLayout(topFrame);
topLayout->setSpacing(spacingHint()-1);
@@ -121,9 +126,9 @@ void KOEventEditor::setupGeneral()
- QBoxLayout *buttonLayout;
+ Q3BoxLayout *buttonLayout;
if ( QApplication::desktop()->width() < 500 && QApplication::desktop()->height() > 240 )
- buttonLayout = new QVBoxLayout( topLayout );
+ buttonLayout = new Q3VBoxLayout( topLayout );
else
- buttonLayout = new QHBoxLayout( topLayout );
- QHBox* buttonWidget = new QHBox (topFrame);
- QIconSet icon;
+ buttonLayout = new Q3HBoxLayout( topLayout );
+ Q3HBox* buttonWidget = new Q3HBox (topFrame);
+ QIcon icon;
if ( QApplication::desktop()->width() < 321 )
@@ -148,5 +153,5 @@ void KOEventEditor::setupGeneral()
- QFrame *topFrame2 = addPage(i18n("Details"));
+ Q3Frame *topFrame2 = addPage(i18n("Details"));
- QBoxLayout *topLayout2 = new QVBoxLayout(topFrame2);
+ Q3BoxLayout *topLayout2 = new Q3VBoxLayout(topFrame2);
topLayout2->setSpacing(spacingHint()-1);
@@ -162,5 +167,5 @@ void KOEventEditor::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());
@@ -169,3 +174,3 @@ void KOEventEditor::setupGeneral()
mGeneral->initTime(topFrame,topLayout);
- QBoxLayout *alarmLineLayout = new QHBoxLayout(topLayout);
+ Q3BoxLayout *alarmLineLayout = new Q3HBoxLayout(topLayout);
mGeneral->initAlarm(topFrame,alarmLineLayout);
@@ -173,3 +178,3 @@ void KOEventEditor::setupGeneral()
mGeneral->initDescription(topFrame,topLayout);
- QBoxLayout *detailsLayout = new QHBoxLayout(topLayout);
+ Q3BoxLayout *detailsLayout = new Q3HBoxLayout(topLayout);
mGeneral->initCategories( topFrame, detailsLayout );
@@ -184,4 +189,4 @@ void KOEventEditor::setupRecurrence()
{
- QFrame *topFrame = addPage( i18n("Recurrence") );
- QBoxLayout *topLayout = new QVBoxLayout( topFrame );
+ Q3Frame *topFrame = addPage( i18n("Recurrence") );
+ Q3BoxLayout *topLayout = new Q3VBoxLayout( topFrame );
@@ -358,3 +363,3 @@ void KOEventEditor::slotLoadTemplate()
}
- QPtrList<Event> events = cal.events();
+ Q3PtrList<Event> events = cal.events();
Event* event = events.first();
diff --git a/korganizer/koeventpopupmenu.cpp b/korganizer/koeventpopupmenu.cpp
index fc4d9a4..81047c1 100644
--- a/korganizer/koeventpopupmenu.cpp
+++ b/korganizer/koeventpopupmenu.cpp
@@ -24,2 +24,5 @@
#include <qcursor.h>
+//Added by qt3to4:
+#include <Q3ValueList>
+#include <Q3PopupMenu>
@@ -34,3 +37,3 @@
-KOEventPopupMenu::KOEventPopupMenu(): QPopupMenu()
+KOEventPopupMenu::KOEventPopupMenu(): Q3PopupMenu()
{
@@ -55,3 +58,3 @@ KOEventPopupMenu::KOEventPopupMenu(): QPopupMenu()
isDisabled = false;
- mCatPopup = new QPopupMenu ( this );
+ mCatPopup = new Q3PopupMenu ( this );
mCatPopup->setCheckable (true);
@@ -59,3 +62,3 @@ KOEventPopupMenu::KOEventPopupMenu(): QPopupMenu()
connect(mCatPopup,SIGNAL( activated ( int ) ), this ,SLOT( computeCatPopup( int )));
- mCalPopup = new QPopupMenu ( this );
+ mCalPopup = new Q3PopupMenu ( this );
mCalPopup->setCheckable (true);
@@ -67,3 +70,3 @@ KOEventPopupMenu::KOEventPopupMenu(): QPopupMenu()
insertItem (i18n("Calendar"),mCalPopup );
- QValueList<int>::Iterator it;
+ Q3ValueList<int>::Iterator it;
for( it = mEditOnlyItems.begin(); it != mEditOnlyItems.end(); ++it ) {
@@ -76,3 +79,3 @@ void KOEventPopupMenu::enableDefault( bool enable )
isDisabled = !enable;
- QValueList<int>::Iterator it;
+ Q3ValueList<int>::Iterator it;
for( it = mSingleOnlyItems.begin(); it != mSingleOnlyItems.end(); ++it ) {
@@ -148,3 +151,3 @@ void KOEventPopupMenu::showIncidencePopup(Incidence *incidence)
if ( !isDisabled ) {
- QValueList<int>::Iterator it;
+ Q3ValueList<int>::Iterator it;
for( it = mEditOnlyItems.begin(); it != mEditOnlyItems.end(); ++it ) {
@@ -157,3 +160,3 @@ void KOEventPopupMenu::showIncidencePopup(Incidence *incidence)
-void KOEventPopupMenu::addAdditionalItem(const QIconSet &icon,const QString &text,
+void KOEventPopupMenu::addAdditionalItem(const QIcon &icon,const QString &text,
const QObject *receiver, const char *member,
diff --git a/korganizer/koeventpopupmenu.h b/korganizer/koeventpopupmenu.h
index e28745b..de5220b 100644
--- a/korganizer/koeventpopupmenu.h
+++ b/korganizer/koeventpopupmenu.h
@@ -28,3 +28,5 @@
-#include <qpopupmenu.h>
+#include <q3popupmenu.h>
+//Added by qt3to4:
+#include <Q3ValueList>
@@ -34,3 +36,3 @@ using namespace KCal;
-class KOEventPopupMenu : public QPopupMenu {
+class KOEventPopupMenu : public Q3PopupMenu {
Q_OBJECT
@@ -39,3 +41,3 @@ class KOEventPopupMenu : public QPopupMenu {
- void addAdditionalItem(const QIconSet &icon,const QString &text,
+ void addAdditionalItem(const QIcon &icon,const QString &text,
const QObject *receiver, const char *member,
@@ -75,7 +77,7 @@ class KOEventPopupMenu : public QPopupMenu {
bool mHasAdditionalItems;
- QValueList<int> mEditOnlyItems;
- QValueList<int> mSingleOnlyItems;
+ Q3ValueList<int> mEditOnlyItems;
+ Q3ValueList<int> mSingleOnlyItems;
bool isDisabled;
- QPopupMenu *mCatPopup;
- QPopupMenu *mCalPopup;
+ Q3PopupMenu *mCatPopup;
+ Q3PopupMenu *mCalPopup;
};
diff --git a/korganizer/koeventview.cpp b/korganizer/koeventview.cpp
index 1d26930..a4ba85e 100644
--- a/korganizer/koeventview.cpp
+++ b/korganizer/koeventview.cpp
@@ -23,3 +23,3 @@
-#include <qpopupmenu.h>
+#include <q3popupmenu.h>
#include <qcursor.h>
@@ -75,3 +75,3 @@ KOEventPopupMenu *KOEventView::eventPopup()
-void KOEventView::showIncidencePopup(QPopupMenu *popup,Incidence *event)
+void KOEventView::showIncidencePopup(Q3PopupMenu *popup,Incidence *event)
{
diff --git a/korganizer/koeventview.h b/korganizer/koeventview.h
index 77ec111..f28e68b 100644
--- a/korganizer/koeventview.h
+++ b/korganizer/koeventview.h
@@ -32,2 +32,4 @@
#include "koeventpopupmenu.h"
+//Added by qt3to4:
+#include <Q3PopupMenu>
@@ -89,3 +91,3 @@ class KOEventView : public KOrg::BaseView
*/
- void showIncidencePopup(QPopupMenu *popup, Incidence *event);
+ void showIncidencePopup(Q3PopupMenu *popup, Incidence *event);
diff --git a/korganizer/koeventviewer.cpp b/korganizer/koeventviewer.cpp
index c0acf34..4df26a9 100644
--- a/korganizer/koeventviewer.cpp
+++ b/korganizer/koeventviewer.cpp
@@ -19,8 +19,13 @@
-#include <qcstring.h>
-#include <qwhatsthis.h>
+#include <q3cstring.h>
+#include <q3whatsthis.h>
#include <qdialog.h>
#include <qapplication.h>
+#include <QDesktopWidget>
#include <qlabel.h>
#include <qlayout.h>
+//Added by qt3to4:
+#include <QKeyEvent>
+#include <Q3PtrList>
+#include <Q3VBoxLayout>
@@ -57,3 +62,3 @@
#include <qpainter.h>
-#include <qpaintdevicemetrics.h>
+#include <q3paintdevicemetrics.h>
#else //DESKTOP_VERSION
@@ -64,3 +69,3 @@
KOEventViewer::KOEventViewer(QWidget *parent,const char *name)
- : QTextBrowser(parent,name)
+ : Q3TextBrowser(parent,name)
{
@@ -88,3 +93,3 @@ void KOEventViewer::printMe()
p.begin ( &printer );
- QPaintDeviceMetrics m = QPaintDeviceMetrics ( &printer );
+ Q3PaintDeviceMetrics m = Q3PaintDeviceMetrics ( &printer );
float dx, dy;
@@ -136,3 +141,3 @@ void KOEventViewer::setSource(const QString& n)
dia.setCaption( i18n("Details of attendee") );
- QVBoxLayout lay ( &dia );
+ Q3VBoxLayout lay ( &dia );
KABC::AddresseeView av ( &dia );
@@ -157,3 +162,3 @@ void KOEventViewer::setSource(const QString& n)
}
- QPtrList<Attendee> attendees = mCurrentIncidence->attendees();
+ Q3PtrList<Attendee> attendees = mCurrentIncidence->attendees();
if (attendees.count()) {
@@ -202,3 +207,3 @@ void KOEventViewer::setSource(const QString& n)
QByteArray replyData;
- QCString replyTypeStr;
+ Q3CString replyTypeStr;
#define PING_ABBROWSER (client->call("kaddressbook", "KAddressBookIface", "interfaces()", noParamData, replyTypeStr, replyData))
@@ -209,3 +214,3 @@ void KOEventViewer::setSource(const QString& n)
//client->send("kaddressbook","KAddressBookIface",
- QDataStream arg(paramData, IO_WriteOnly);
+ QDataStream arg(paramData, QIODevice::WriteOnly);
arg << n.mid(6);
@@ -233,3 +238,3 @@ void KOEventViewer::mailToAttendees( bool all )
{
- QPtrList<Attendee> attendees = mCurrentIncidence->attendees();
+ Q3PtrList<Attendee> attendees = mCurrentIncidence->attendees();
if (attendees.count() == 0) return;
@@ -262,3 +267,3 @@ void KOEventViewer::addTag(const QString & tag,const QString & text)
{
- int number=text.contains("\n");
+ int number=text.count("\n");
QString str = "<" + tag + ">";
@@ -589,3 +594,3 @@ void KOEventViewer::appendTodo(Todo *event, int mode )
}
- QPtrList<Incidence> Relations = event->relations();
+ Q3PtrList<Incidence> Relations = event->relations();
Incidence *to;
@@ -623,3 +628,3 @@ void KOEventViewer::formatAttendees(Incidence *event)
{
- QPtrList<Attendee> attendees = event->attendees();
+ Q3PtrList<Attendee> attendees = event->attendees();
if (attendees.count()) {
@@ -656,3 +661,3 @@ void KOEventViewer::formatAttendees(Incidence *event)
- if (iconPath) {
+ if (!iconPath.isEmpty()) {
mText += " <a href=\"mailto:" + event->organizer() + "\">";
@@ -706,3 +711,3 @@ void KOEventViewer::formatAttendees(Incidence *event)
if (!a->email().isEmpty()) {
- if (iconPath) {
+ if (!iconPath.isEmpty()) {
mText += "<a href=\"mailto:" + a->realName() +" <" + a->email() + ">:" + mMailSubject + "\">";
@@ -864,3 +869,3 @@ void KOEventViewer::keyPressEvent ( QKeyEvent * e )
default:
- QTextBrowser::keyPressEvent ( e );
+ Q3TextBrowser::keyPressEvent ( e );
break;
diff --git a/korganizer/koeventviewer.h b/korganizer/koeventviewer.h
index 64eb4ff..3df667f 100644
--- a/korganizer/koeventviewer.h
+++ b/korganizer/koeventviewer.h
@@ -24,3 +24,6 @@
-#include <qtextbrowser.h>
+#include <q3textbrowser.h>
+//Added by qt3to4:
+#include <Q3VBoxLayout>
+#include <QKeyEvent>
@@ -39,3 +42,3 @@ using namespace KCal;
#include <qlabel.h>
-#include <qbuttongroup.h>
+#include <q3buttongroup.h>
#include <kglobal.h>
@@ -49,3 +52,3 @@ class KOPrintPrefs : public QDialog
setCaption( i18n("KO/Pi Printout") );
- QVBoxLayout* lay = new QVBoxLayout( this );
+ Q3VBoxLayout* lay = new Q3VBoxLayout( this );
lay->setSpacing( 9 );
@@ -54,4 +57,4 @@ class KOPrintPrefs : public QDialog
lay->addWidget( lab );
- lab->setAlignment( AlignCenter );
- QButtonGroup* format = new QButtonGroup( 1, Horizontal, i18n("Printout Mode"), this );
+ lab->setAlignment( Qt::AlignCenter );
+ Q3ButtonGroup* format = new Q3ButtonGroup( 1, Qt::Horizontal, i18n("Printout Mode"), this );
lay->addWidget( format );
@@ -85,3 +88,3 @@ private:
-class KOEventViewer : public QTextBrowser {
+class KOEventViewer : public Q3TextBrowser {
Q_OBJECT
@@ -119,3 +122,3 @@ class KOEventViewer : public QTextBrowser {
private:
- QTextBrowser *mEventTextView;
+ Q3TextBrowser *mEventTextView;
bool mSyncMode;
diff --git a/korganizer/koeventviewerdialog.cpp b/korganizer/koeventviewerdialog.cpp
index 2e936f3..3a37852 100644
--- a/korganizer/koeventviewerdialog.cpp
+++ b/korganizer/koeventviewerdialog.cpp
@@ -24,2 +24,5 @@
#include <qpushbutton.h>
+//Added by qt3to4:
+#include <QHideEvent>
+#include <QKeyEvent>
@@ -29,3 +32,3 @@
#include <libkcal/todo.h>
-#include "qapp.h"
+#include "qapplication.h"
diff --git a/korganizer/koeventviewerdialog.h b/korganizer/koeventviewerdialog.h
index 71696f4..947c10b 100644
--- a/korganizer/koeventviewerdialog.h
+++ b/korganizer/koeventviewerdialog.h
@@ -24,3 +24,6 @@
-#include <qtextview.h>
+#include <q3textview.h>
+//Added by qt3to4:
+#include <QKeyEvent>
+#include <QHideEvent>
diff --git a/korganizer/kofilterview.cpp b/korganizer/kofilterview.cpp
index ee9c9f6..8335ba9 100644
--- a/korganizer/kofilterview.cpp
+++ b/korganizer/kofilterview.cpp
@@ -29,6 +29,10 @@
#include <qdialog.h>
-#include <qtextstream.h>
+#include <q3textstream.h>
#include <qtextcodec.h>
-#include <qwhatsthis.h>
+#include <q3whatsthis.h>
#include <qdir.h>
+//Added by qt3to4:
+#include <Q3GridLayout>
+#include <Q3Frame>
+#include <Q3PtrList>
@@ -49,4 +53,4 @@
-KOFilterView::KOFilterView(QPtrList<CalFilter> *filterList,QWidget* parent,
- const char* name,WFlags fl )
+KOFilterView::KOFilterView(Q3PtrList<CalFilter> *filterList,QWidget* parent,
+ const char* name,Qt::WFlags fl )
: KOFilterView_base(parent,name,fl)
@@ -116,3 +120,3 @@ KOCalEditView::KOCalEditView(QWidget* parent,
const char* name )
- : QScrollView(parent,name)
+ : Q3ScrollView(parent,name)
{
@@ -120,6 +124,6 @@ KOCalEditView::KOCalEditView(QWidget* parent,
setResizePolicy( AutoOneFit );
- setFrameStyle ( QFrame::Panel | QFrame::Plain );
+ setFrameStyle ( Q3Frame::Panel | Q3Frame::Plain );
setLineWidth ( 1 );
setMidLineWidth ( 1 );
- setFocusPolicy(NoFocus);
+ setFocusPolicy(Qt::NoFocus);
}
@@ -249,3 +253,3 @@ void KOCalEditView::readConfig()
int ii = 0;
- mainLayout = new QGridLayout ( mw , 2, 8 );
+ mainLayout = new Q3GridLayout ( mw , 2, 8 );
mainLayout->setMargin( 2 );
@@ -253,3 +257,3 @@ void KOCalEditView::readConfig()
QPushButton * addButT = new QPushButton ( mw );
- addButT->setFocusPolicy(NoFocus);
+ addButT->setFocusPolicy(Qt::NoFocus);
mainLayout->addWidget( addButT,0,0 );
@@ -257,9 +261,9 @@ void KOCalEditView::readConfig()
connect(addButT,SIGNAL(clicked()),SLOT(defaultInfo()));
- QWhatsThis::add( addButT, i18n("Please choose the <b>default calendar</b> in this column. Newly created or imported items are added to the default calendar.") );
+ Q3WhatsThis::add( addButT, i18n("Please choose the <b>default calendar</b> in this column. Newly created or imported items are added to the default calendar.") );
//addBut->setPixmap ( SmallIcon("greenhook16"));
QPushButton *addBut = new QPushButton ( mw );
- addBut->setFocusPolicy(NoFocus);
+ addBut->setFocusPolicy(Qt::NoFocus);
mainLayout->addWidget( addBut,0,++ii );
addBut->setPixmap ( SmallIcon("eye"));
- QWhatsThis::add( addBut, i18n("In this column you can <b>set a calendar to be visible</b>. If a calendar is not visible its entries are not displayed in the views. You can add items to it and it is loaded/saved as usual.") );
+ Q3WhatsThis::add( addBut, i18n("In this column you can <b>set a calendar to be visible</b>. If a calendar is not visible its entries are not displayed in the views. You can add items to it and it is loaded/saved as usual.") );
connect(addBut,SIGNAL(clicked()),SLOT(enableAll()));
@@ -270,3 +274,3 @@ void KOCalEditView::readConfig()
mainLayout->addWidget( lab,0,++ii );
- QWhatsThis::add( lab, i18n("In this column you can see the <b>name of the calendar</b>. If you click on the name button you will get an information box about the loaded calendar file. If the file was not loaded at startup you can try to load it here again.") );
+ Q3WhatsThis::add( lab, i18n("In this column you can see the <b>name of the calendar</b>. If you click on the name button you will get an information box about the loaded calendar file. If the file was not loaded at startup you can try to load it here again.") );
//lab = new QLabel ( i18n(" "), mw );
@@ -275,6 +279,6 @@ void KOCalEditView::readConfig()
addBut = new QPushButton ( mw );
- addBut->setFocusPolicy(NoFocus);
+ addBut->setFocusPolicy(Qt::NoFocus);
mainLayout->addWidget( addBut,0,++ii );
addBut->setPixmap ( SmallIcon("bell"));
- QWhatsThis::add( addBut, i18n("In this column you can <b>disable the alarms of a calendar all together</b>. The alarm data in the calendar itself is not changed, the alarms are marked internally as \"do not use\". Useful if you load a calendar of another person but do not want to get notified about alarms of that person.") );
+ Q3WhatsThis::add( addBut, i18n("In this column you can <b>disable the alarms of a calendar all together</b>. The alarm data in the calendar itself is not changed, the alarms are marked internally as \"do not use\". Useful if you load a calendar of another person but do not want to get notified about alarms of that person.") );
connect(addBut,SIGNAL(clicked()),SLOT(enableAlarm()));
@@ -283,6 +287,6 @@ void KOCalEditView::readConfig()
addBut = new QPushButton ( mw );
- addBut->setFocusPolicy(NoFocus);
+ addBut->setFocusPolicy(Qt::NoFocus);
mainLayout->addWidget( addBut,0,++ii );
addBut->setPixmap ( SmallIcon("pencil"));
- QWhatsThis::add( addBut, i18n("In this column you can <b>set a calendar and all entries of the calendar to read only</b>. If a calendar is readonly the entries cannot be edited and no items can be added to the calendar. If you change a setting of a calendar to readonly in this column all data will be saved because the data of a readonly calendar is not saved later.") );
+ Q3WhatsThis::add( addBut, i18n("In this column you can <b>set a calendar and all entries of the calendar to read only</b>. If a calendar is readonly the entries cannot be edited and no items can be added to the calendar. If you change a setting of a calendar to readonly in this column all data will be saved because the data of a readonly calendar is not saved later.") );
connect(addBut,SIGNAL(clicked()),SLOT(disableRO()));
@@ -293,3 +297,3 @@ void KOCalEditView::readConfig()
addBut = new QPushButton ( mw );
- addBut->setFocusPolicy(NoFocus);
+ addBut->setFocusPolicy(Qt::NoFocus);
mainLayout->addWidget( addBut,0,++ii );
@@ -297,3 +301,3 @@ void KOCalEditView::readConfig()
connect(addBut,SIGNAL(clicked()),SLOT(addCal()));
- QWhatsThis::add( addBut, i18n("Click this button to <b>add a calendar</b>. You can add an existing calendar file or you can add a new calendar and KO/Pi creates a new empty calendar file for you.") );
+ Q3WhatsThis::add( addBut, i18n("Click this button to <b>add a calendar</b>. You can add an existing calendar file or you can add a new calendar and KO/Pi creates a new empty calendar file for you.") );
lab = new QLabel ( " ", mw );
@@ -433,3 +437,3 @@ int KOCalEditView::addCalendar( QString name, QString file, bool ask )
QFile fileIn( absFile );
- if (!fileIn.open( IO_WriteOnly ) ) {
+ if (!fileIn.open( QIODevice::WriteOnly ) ) {
KMessageBox::sorry( this, i18n("Sorry, cannot create the file\n%1!\nNo calendar added!").arg( file ) );
@@ -437,3 +441,3 @@ int KOCalEditView::addCalendar( QString name, QString file, bool ask )
}
- QTextStream tsIn( &fileIn );
+ Q3TextStream tsIn( &fileIn );
tsIn.setCodec( QTextCodec::codecForName("utf8") );
@@ -477,3 +481,3 @@ void KOCalEditView::disableRO()
}
-void KOCalEditView::toggleList ( QPtrList<KOCalCheckButton> list , bool enable )
+void KOCalEditView::toggleList ( Q3PtrList<KOCalCheckButton> list , bool enable )
{
diff --git a/korganizer/kofilterview.h b/korganizer/kofilterview.h
index 0dd423a..f1bbab4 100644
--- a/korganizer/kofilterview.h
+++ b/korganizer/kofilterview.h
@@ -28,2 +28,3 @@
#include <qapplication.h>
+#include <QDesktopWidget>
#include <qradiobutton.h>
@@ -32,4 +33,9 @@
#include <qdialog.h>
-#include <qscrollview.h>
+#include <q3scrollview.h>
#include <qpushbutton.h>
+//Added by qt3to4:
+#include <Q3GridLayout>
+#include <Q3PtrList>
+#include <QKeyEvent>
+#include <Q3VBoxLayout>
#include <kconfig.h>
@@ -44,3 +50,3 @@
-class QGridLayout;
+class Q3GridLayout;
@@ -56,3 +62,3 @@ class KONewCalPrefs : public QDialog
setCaption( i18n("Add new Calendar") );
- QVBoxLayout* lay = new QVBoxLayout( this );
+ Q3VBoxLayout* lay = new Q3VBoxLayout( this );
lay->setSpacing( 3 );
@@ -112,3 +118,3 @@ class KOCalButton : public QPushButton
mNumber = -1;
- setFocusPolicy(NoFocus);
+ setFocusPolicy(Qt::NoFocus);
}
@@ -137,3 +143,3 @@ class KOCalCheckButton : public QCheckBox
mNumber = -1;
- setFocusPolicy(NoFocus);
+ setFocusPolicy(Qt::NoFocus);
//setMaximumWidth( 10 );
@@ -165,3 +171,3 @@ class KOCalRadioButton : public QRadioButton
mNumber = -1;
- setFocusPolicy(NoFocus);
+ setFocusPolicy(Qt::NoFocus);
//setMaximumWidth( 10 );
@@ -190,3 +196,3 @@ class KOFilterView : public KOFilterView_base
public:
- KOFilterView(QPtrList<CalFilter> *filterList,QWidget* parent=0,const char* name=0, WFlags fl=0);
+ KOFilterView(Q3PtrList<CalFilter> *filterList,QWidget* parent=0,const char* name=0, Qt::WFlags fl=0);
~KOFilterView();
@@ -206,6 +212,6 @@ class KOFilterView : public KOFilterView_base
private:
- QPtrList<CalFilter> *mFilters;
+ Q3PtrList<CalFilter> *mFilters;
};
-class KOCalEditView : public QScrollView
+class KOCalEditView : public Q3ScrollView
{
@@ -246,8 +252,8 @@ class KOCalEditView : public QScrollView
QWidget *mw;
- void toggleList ( QPtrList<KOCalCheckButton> , bool b = true );
- QPtrList<KOCalRadioButton> mStdandardB;
- QPtrList<KOCalCheckButton> mEnabledB;
- QPtrList<KOCalCheckButton> mAlarmB;
- QPtrList<KOCalCheckButton> mROB;
- QGridLayout* mainLayout;
+ void toggleList ( Q3PtrList<KOCalCheckButton> , bool b = true );
+ Q3PtrList<KOCalRadioButton> mStdandardB;
+ Q3PtrList<KOCalCheckButton> mEnabledB;
+ Q3PtrList<KOCalCheckButton> mAlarmB;
+ Q3PtrList<KOCalCheckButton> mROB;
+ Q3GridLayout* mainLayout;
};
diff --git a/korganizer/koimportoldialog.cpp b/korganizer/koimportoldialog.cpp
index 79b97e8..63d044c 100644
--- a/korganizer/koimportoldialog.cpp
+++ b/korganizer/koimportoldialog.cpp
@@ -24,8 +24,8 @@
#include <qtooltip.h>
-#include <qframe.h>
+#include <q3frame.h>
#include <qpixmap.h>
#include <qlayout.h>
-#include <qprogressbar.h>
-#include <qprogressdialog.h>
-#include <qwidgetstack.h>
+#include <q3progressbar.h>
+#include <q3progressdialog.h>
+#include <q3widgetstack.h>
#include <qdatetime.h>
@@ -33,7 +33,7 @@
#include <qapplication.h>
-#include <qhbox.h>
+#include <q3hbox.h>
#include <qregexp.h>
-#include <qheader.h>
+#include <q3header.h>
#include <qdatetime.h>
-#include <qlistview.h>
+#include <q3listview.h>
@@ -72,9 +72,9 @@ QDateTime mDdate2Qdtr( DATE dt)
-class OLEListViewItem : public QCheckListItem
+class OLEListViewItem : public Q3CheckListItem
{
public:
- OLEListViewItem( QListView *parent, QString text ) :
- QCheckListItem( parent, text, QCheckListItem::CheckBox ) { mData = 0; };
- OLEListViewItem( QListViewItem *after, QString text ) :
- QCheckListItem( after, text, QCheckListItem::CheckBox ) { mData = 0; };
+ OLEListViewItem( Q3ListView *parent, QString text ) :
+ Q3CheckListItem( parent, text, Q3CheckListItem::CheckBox ) { mData = 0; };
+ OLEListViewItem( Q3ListViewItem *after, QString text ) :
+ Q3CheckListItem( after, text, Q3CheckListItem::CheckBox ) { mData = 0; };
~OLEListViewItem() {};
@@ -91,5 +91,5 @@ KOImportOLdialog::KOImportOLdialog( const QString &caption,
{
- QHBox * mw = new QHBox( this );
+ Q3HBox * mw = new Q3HBox( this );
setMainWidget( mw );
- mListView = new QListView( mw );
+ mListView = new Q3ListView( mw );
mListView->addColumn(i18n("Select Folder to import"));
@@ -214,3 +214,3 @@ void KOImportOLdialog::readCalendarData( DWORD folder )
folderItems = mf.GetItems();
- QProgressDialog bar( i18n("Importing calendar data"),i18n("Abort"), folderItems.GetCount(),this );
+ Q3ProgressDialog bar( i18n("Importing calendar data"),i18n("Abort"), folderItems.GetCount(),this );
bar.setCaption (i18n("Importing!") );
diff --git a/korganizer/koimportoldialog.h b/korganizer/koimportoldialog.h
index c8847c5..d66f099 100644
--- a/korganizer/koimportoldialog.h
+++ b/korganizer/koimportoldialog.h
@@ -33,3 +33,3 @@
class QDateTime;
-class QListView;
+class Q3ListView;
class OLEListViewItem;
@@ -74,3 +74,3 @@ class KOImportOLdialog : public KDialogBase
Calendar *mCalendar;
- QListView * mListView;
+ Q3ListView * mListView;
QString getUidByEmail( QString email );
diff --git a/korganizer/koincidenceeditor.cpp b/korganizer/koincidenceeditor.cpp
index 236f6f9..2060ea1 100644
--- a/korganizer/koincidenceeditor.cpp
+++ b/korganizer/koincidenceeditor.cpp
@@ -24,8 +24,10 @@
#include <qtooltip.h>
-#include <qframe.h>
+#include <q3frame.h>
#include <qpixmap.h>
#include <qlayout.h>
-#include <qwidgetstack.h>
+#include <q3widgetstack.h>
#include <qdatetime.h>
#include <qdir.h>
+//Added by qt3to4:
+#include <Q3VBoxLayout>
@@ -84,5 +86,5 @@ void KOIncidenceEditor::setupAttendeesTab()
{
- QFrame *topFrame = addPage(i18n("Attendees"));
+ Q3Frame *topFrame = addPage(i18n("Attendees"));
- QBoxLayout *topLayout = new QVBoxLayout(topFrame);
+ Q3BoxLayout *topLayout = new Q3VBoxLayout(topFrame);
diff --git a/korganizer/kojournalview.cpp b/korganizer/kojournalview.cpp
index 406df5a..51594ff 100644
--- a/korganizer/kojournalview.cpp
+++ b/korganizer/kojournalview.cpp
@@ -27,5 +27,5 @@
#include <qlayout.h>
-#include <qscrollview.h>
-#include <qpopupmenu.h>
-#include <qhbox.h>
+#include <q3scrollview.h>
+#include <q3popupmenu.h>
+#include <q3hbox.h>
#include <qpushbutton.h>
@@ -34,2 +34,8 @@
#include <qapplication.h>
+#include <QDesktopWidget>
+//Added by qt3to4:
+#include <QPixmap>
+#include <Q3PtrList>
+#include <QKeyEvent>
+#include <Q3VBoxLayout>
@@ -53,3 +59,3 @@ KOJournalView::KOJournalView(Calendar *calendar, QWidget *parent,
mCalendar = calendar;
- QHBox * vb = new QHBox ( this );
+ Q3HBox * vb = new Q3HBox ( this );
QPushButton * newJournal = new QPushButton( vb );
@@ -65,5 +71,5 @@ KOJournalView::KOJournalView(Calendar *calendar, QWidget *parent,
mDateLabel->setMargin(1);
- mDateLabel->setAlignment(AlignCenter);
- QScrollView * sv = new QScrollView( this );
- QVBoxLayout * hbl = new QVBoxLayout( this );
+ mDateLabel->setAlignment(Qt::AlignCenter);
+ Q3ScrollView * sv = new Q3ScrollView( this );
+ Q3VBoxLayout * hbl = new Q3VBoxLayout( this );
hbl->addWidget( vb );
@@ -72,4 +78,4 @@ KOJournalView::KOJournalView(Calendar *calendar, QWidget *parent,
sv->addChild(parWid);
- sv->setResizePolicy( QScrollView:: AutoOneFit );
- mTopLayout = new QVBoxLayout(parWid);
+ sv->setResizePolicy( Q3ScrollView:: AutoOneFit );
+ mTopLayout = new Q3VBoxLayout(parWid);
connect( newJournal, SIGNAL( clicked() ), this , SLOT( newJournal() ) );
@@ -98,5 +104,5 @@ JournalEntry* KOJournalView::getNewEntry()
-QPtrList<Incidence> KOJournalView::selectedIncidences()
+Q3PtrList<Incidence> KOJournalView::selectedIncidences()
{
- QPtrList<Incidence> eventList;
+ Q3PtrList<Incidence> eventList;
@@ -164,3 +170,3 @@ void KOJournalView::showOnly ( Journal* j )
}
- QPtrList<Journal> jl;
+ Q3PtrList<Journal> jl;
jl.append ( j );
@@ -170,3 +176,3 @@ void KOJournalView::showOnly ( Journal* j )
}
-void KOJournalView::showList(QPtrList<Journal> jl)
+void KOJournalView::showList(Q3PtrList<Journal> jl)
{
@@ -227,3 +233,3 @@ void KOJournalView::showDates(const QDate &start, const QDate &)
mDateLabel->setText(KGlobal::locale()->formatDate(mDate));
- QPtrList<Journal> jl = calendar()->journals4Date( start );
+ Q3PtrList<Journal> jl = calendar()->journals4Date( start );
showList( jl );
@@ -231,3 +237,3 @@ void KOJournalView::showDates(const QDate &start, const QDate &)
-void KOJournalView::showEvents(QPtrList<Event>)
+void KOJournalView::showEvents(Q3PtrList<Event>)
{
diff --git a/korganizer/kojournalview.h b/korganizer/kojournalview.h
index 7fa94ae..22f26cd 100644
--- a/korganizer/kojournalview.h
+++ b/korganizer/kojournalview.h
@@ -27,2 +27,7 @@
#include <qlayout.h>
+//Added by qt3to4:
+#include <QKeyEvent>
+#include <Q3PtrList>
+#include <QLabel>
+#include <Q3BoxLayout>
@@ -48,3 +53,3 @@ class KOJournalView : public KOrg::BaseView
void clearList();
- virtual QPtrList<Incidence> selectedIncidences();
+ virtual Q3PtrList<Incidence> selectedIncidences();
DateList selectedDates()
@@ -62,3 +67,3 @@ class KOJournalView : public KOrg::BaseView
void showDates( const QDate &start, const QDate &end );
- void showEvents(QPtrList<Event> eventList);
+ void showEvents(Q3PtrList<Event> eventList);
@@ -67,8 +72,8 @@ class KOJournalView : public KOrg::BaseView
private:
- void showList(QPtrList<Journal> jl);
+ void showList(Q3PtrList<Journal> jl);
Calendar *mCalendar;
JournalEntry* getNewEntry();
- QPtrList<JournalEntry> jEntries;
+ Q3PtrList<JournalEntry> jEntries;
void keyPressEvent ( QKeyEvent * ) ;
- QBoxLayout *mTopLayout;
+ Q3BoxLayout *mTopLayout;
QWidget *parWid;
diff --git a/korganizer/kolistview.cpp b/korganizer/kolistview.cpp
index 192f8c0..0ea1d50 100644
--- a/korganizer/kolistview.cpp
+++ b/korganizer/kolistview.cpp
@@ -24,7 +24,7 @@
-#include <qlistview.h>
+#include <q3listview.h>
#include <qlayout.h>
#include <qlabel.h>
-#include <qpopupmenu.h>
-#include <qprogressbar.h>
+#include <q3popupmenu.h>
+#include <q3progressbar.h>
#include <qfileinfo.h>
@@ -32,8 +32,17 @@
#include <qdialog.h>
-#include <qtextstream.h>
+#include <q3textstream.h>
#include <qdir.h>
-#include <qwhatsthis.h>
+#include <q3whatsthis.h>
#include <qregexp.h>
#include <qpainter.h>
-#include <qpaintdevicemetrics.h>
+#include <q3paintdevicemetrics.h>
+//Added by qt3to4:
+#include <QPixmap>
+#include <QMouseEvent>
+#include <QKeyEvent>
+#include <QEvent>
+#include <Q3VBoxLayout>
+#include <Q3PtrList>
+
+#include<QDesktopWidget>
@@ -72,6 +81,6 @@ extern QPixmap* sgListViewJournalPix;
-class KOListViewWhatsThis :public QWhatsThis
+class KOListViewWhatsThis :public Q3WhatsThis
{
public:
- KOListViewWhatsThis( QWidget *wid, KOListView* view ) : QWhatsThis( wid ), _wid(wid),_view (view) { };
+ KOListViewWhatsThis( QWidget *wid, KOListView* view ) : Q3WhatsThis( wid ), _wid(wid),_view (view) { };
@@ -276,14 +285,14 @@ KOListView::KOListView(Calendar *calendar, QWidget *parent,
- mListView->setColumnAlignment(0,AlignLeft);
- mListView->setColumnAlignment(1,AlignLeft);
- mListView->setColumnAlignment(2,AlignHCenter);
- mListView->setColumnAlignment(3,AlignLeft);
- mListView->setColumnAlignment(4,AlignHCenter);
- mListView->setColumnAlignment(5,AlignLeft);
- mListView->setColumnAlignment(6,AlignLeft);
- mListView->setColumnAlignment(7,AlignLeft);
- mListView->setColumnAlignment(8,AlignLeft);
- mListView->setColumnAlignment(9,AlignLeft);
- mListView->setColumnAlignment(10,AlignLeft);
- mListView->setColumnAlignment(11,AlignLeft);
+ mListView->setColumnAlignment(0,Qt::AlignLeft);
+ mListView->setColumnAlignment(1,Qt::AlignLeft);
+ mListView->setColumnAlignment(2,Qt::AlignHCenter);
+ mListView->setColumnAlignment(3,Qt::AlignLeft);
+ mListView->setColumnAlignment(4,Qt::AlignHCenter);
+ mListView->setColumnAlignment(5,Qt::AlignLeft);
+ mListView->setColumnAlignment(6,Qt::AlignLeft);
+ mListView->setColumnAlignment(7,Qt::AlignLeft);
+ mListView->setColumnAlignment(8,Qt::AlignLeft);
+ mListView->setColumnAlignment(9,Qt::AlignLeft);
+ mListView->setColumnAlignment(10,Qt::AlignLeft);
+ mListView->setColumnAlignment(11,Qt::AlignLeft);
mKOListViewWhatsThis = new KOListViewWhatsThis(mListView->viewport(),this);
@@ -292,5 +301,5 @@ KOListView::KOListView(Calendar *calendar, QWidget *parent,
for ( iii = 0; iii< 12 ; ++iii )
- mListView->setColumnWidthMode( iii, QListView::Manual );
+ mListView->setColumnWidthMode( iii, Q3ListView::Manual );
- QBoxLayout *layoutTop = new QVBoxLayout(this);
+ Q3BoxLayout *layoutTop = new Q3VBoxLayout(this);
layoutTop->addWidget(mListView);
@@ -298,3 +307,3 @@ KOListView::KOListView(Calendar *calendar, QWidget *parent,
mPopupMenu = eventPopup();
- QPopupMenu* selPopup = new QPopupMenu ( this );
+ Q3PopupMenu* selPopup = new Q3PopupMenu ( this );
mPopupMenu->insertSeparator();
@@ -308,3 +317,3 @@ KOListView::KOListView(Calendar *calendar, QWidget *parent,
mPopupMenu->insertItem(i18n("Selection"), selPopup );
- mPopupMenu->addAdditionalItem(QIconSet(QPixmap()),
+ mPopupMenu->addAdditionalItem(QIcon(QPixmap()),
i18n("Hide all selected"),this,
@@ -313,3 +322,3 @@ KOListView::KOListView(Calendar *calendar, QWidget *parent,
selPopup->insertSeparator();
- QPopupMenu * exportPO = new QPopupMenu ( this );
+ Q3PopupMenu * exportPO = new Q3PopupMenu ( this );
selPopup->insertItem( i18n("Export"), exportPO );
@@ -317,3 +326,3 @@ KOListView::KOListView(Calendar *calendar, QWidget *parent,
mPopupMenu->insertSeparator();
- mPopupMenu->addAdditionalItem(QIconSet(QPixmap()),
+ mPopupMenu->addAdditionalItem(QIcon(QPixmap()),
i18n("Print complete list..."),this,
@@ -321,3 +330,3 @@ KOListView::KOListView(Calendar *calendar, QWidget *parent,
#endif
- mCalPopup = new QPopupMenu ( this );
+ mCalPopup = new Q3PopupMenu ( this );
selPopup->insertItem( i18n("Set Calendar"), mCalPopup );
@@ -329,6 +338,6 @@ KOListView::KOListView(Calendar *calendar, QWidget *parent,
#if 0
- mPopupMenu->addAdditionalItem(QIconSet(QPixmap()),
+ mPopupMenu->addAdditionalItem(QIcon(QPixmap()),
i18n("Set categories")+"...",this,
SLOT(setCat()),true);
- mPopupMenu->addAdditionalItem(QIconSet(QPixmap()),
+ mPopupMenu->addAdditionalItem(QIcon(QPixmap()),
i18n("Set alarm..."),this,
@@ -358,3 +367,3 @@ KOListView::KOListView(Calendar *calendar, QWidget *parent,
#if 0
- mPopupMenu->addAdditionalItem(QIconSet(QPixmap()),
+ mPopupMenu->addAdditionalItem(QIcon(QPixmap()),
i18n("Beam via IR"),this,
@@ -377,9 +386,9 @@ KOListView::KOListView(Calendar *calendar, QWidget *parent,
this,SIGNAL(signalNewEvent()));
- QObject::connect(mListView,SIGNAL(doubleClicked(QListViewItem *)),
- this,SLOT(defaultItemAction(QListViewItem *)));
- QObject::connect(mListView,SIGNAL(rightButtonPressed( QListViewItem *,
+ QObject::connect(mListView,SIGNAL(doubleClicked(Q3ListViewItem *)),
+ this,SLOT(defaultItemAction(Q3ListViewItem *)));
+ QObject::connect(mListView,SIGNAL(rightButtonPressed( Q3ListViewItem *,
const QPoint &, int )),
- this,SLOT(popupMenu(QListViewItem *,const QPoint &,int)));
- QObject::connect(mListView,SIGNAL(currentChanged(QListViewItem *)),
- SLOT(processSelectionChange(QListViewItem *)));
+ this,SLOT(popupMenu(Q3ListViewItem *,const QPoint &,int)));
+ QObject::connect(mListView,SIGNAL(currentChanged(Q3ListViewItem *)),
+ SLOT(processSelectionChange(Q3ListViewItem *)));
QObject::connect(mListView,SIGNAL(showIncidence(Incidence *)),
@@ -430,3 +439,3 @@ void KOListView::setCalendar( int c )
- QPtrList<Incidence> delSel = getSelectedIncidences() ;
+ Q3PtrList<Incidence> delSel = getSelectedIncidences() ;
int icount = delSel.count();
@@ -444,3 +453,3 @@ void KOListView::setCalendar( int c )
}
- QPtrList<KopiCalendarFile> calendars = KOPrefs::instance()->mCalendars;
+ Q3PtrList<KopiCalendarFile> calendars = KOPrefs::instance()->mCalendars;
KopiCalendarFile * cal = calendars.first();
@@ -499,3 +508,3 @@ void KOListView::setAlarm()
return;
- QPtrList<Incidence> delSel = getSelectedIncidences( true, true, false, true ); // no journals, only due todos
+ Q3PtrList<Incidence> delSel = getSelectedIncidences( true, true, false, true ); // no journals, only due todos
Incidence* inc = delSel.first();
@@ -524,3 +533,3 @@ void KOListView::setAlarm()
} else {
- QPtrList<Alarm> alarms = inc->alarms();
+ Q3PtrList<Alarm> alarms = inc->alarms();
Alarm *alarm;
@@ -554,3 +563,3 @@ void KOListView::setCategories( bool removeOld )
delete csd;
- QPtrList<Incidence> delSel = getSelectedIncidences(); // all inc allowed;
+ Q3PtrList<Incidence> delSel = getSelectedIncidences(); // all inc allowed;
Incidence* inc = delSel.first();
@@ -574,3 +583,3 @@ void KOListView::beamSelected()
{
- QPtrList<Incidence> delSel = getSelectedIncidences() ;
+ Q3PtrList<Incidence> delSel = getSelectedIncidences() ;
if ( delSel.count() )
@@ -589,3 +598,3 @@ void KOListView::saveDescriptionToFile()
}
- QPtrList<Incidence> delSel = getSelectedIncidences() ;
+ Q3PtrList<Incidence> delSel = getSelectedIncidences() ;
int icount = delSel.count();
@@ -647,3 +656,3 @@ void KOListView::saveDescriptionToFile()
QFile file( fn );
- if (!file.open( IO_WriteOnly ) ) {
+ if (!file.open( QIODevice::WriteOnly ) ) {
topLevelWidget()->setCaption(i18n("File open error - nothing saved!") );
@@ -651,3 +660,3 @@ void KOListView::saveDescriptionToFile()
}
- QTextStream ts( &file );
+ Q3TextStream ts( &file );
ts << text;
@@ -669,8 +678,8 @@ void KOListView::saveToFile()
}
-QPtrList<Incidence> KOListView::getSelectedIncidences( bool includeEvents, bool includeTodos, bool includeJournals, bool onlyDueTodos )
+Q3PtrList<Incidence> KOListView::getSelectedIncidences( bool includeEvents, bool includeTodos, bool includeJournals, bool onlyDueTodos )
{
- QPtrList<Incidence> delSel ;
+ Q3PtrList<Incidence> delSel ;
bool addSubTodos = false;
bool askSubTodos = true;
- QListViewItem *item = mListView->firstChild ();
+ Q3ListViewItem *item = mListView->firstChild ();
while ( item ) {
@@ -708,3 +717,3 @@ QPtrList<Incidence> KOListView::getSelectedIncidences( bool includeEvents, bool
if ( addSubTodos ) {
- QPtrList<Incidence> tempSel ;
+ Q3PtrList<Incidence> tempSel ;
inc->addRelationsToList( &tempSel );
@@ -732,3 +741,3 @@ void KOListView::writeToFile( bool iCal )
{
- QPtrList<Incidence> delSel = getSelectedIncidences(); // all inc allowed;
+ Q3PtrList<Incidence> delSel = getSelectedIncidences(); // all inc allowed;
if ( !iCal ) {
@@ -805,4 +814,4 @@ void KOListView::hideAll()
{
- QPtrList<QListViewItem> delSel ;
- QListViewItem *item = mListView->firstChild ();
+ Q3PtrList<Q3ListViewItem> delSel ;
+ Q3ListViewItem *item = mListView->firstChild ();
while ( item ) {
@@ -815,3 +824,3 @@ void KOListView::hideAll()
while ( item ) {
- QListViewItem * del = item;
+ Q3ListViewItem * del = item;
item = delSel.next();
@@ -826,3 +835,3 @@ void KOListView::deleteAll()
{
- QPtrList<Incidence> delSel = getSelectedIncidences(); // all inc allowed;;
+ Q3PtrList<Incidence> delSel = getSelectedIncidences(); // all inc allowed;;
if ( delSel.count() ) {
@@ -840,3 +849,3 @@ void KOListView::deleteAll()
QLabel lab (i18n("Close dialog to abort deletion!"), &dia );
- QVBoxLayout lay( &dia );
+ Q3VBoxLayout lay( &dia );
lay.setMargin(7);
@@ -844,3 +853,3 @@ void KOListView::deleteAll()
lay.addWidget( &lab);
- QProgressBar bar( icount, &dia );
+ Q3ProgressBar bar( icount, &dia );
lay.addWidget( &bar);
@@ -886,6 +895,6 @@ int KOListView::currentDateCount()
-QPtrList<Incidence> KOListView::selectedIncidences()
+Q3PtrList<Incidence> KOListView::selectedIncidences()
{
- QPtrList<Incidence> eventList;
- QListViewItem *item = mListView->firstChild ();
+ Q3PtrList<Incidence> eventList;
+ Q3ListViewItem *item = mListView->firstChild ();
while ( item ) {
@@ -989,3 +998,3 @@ void KOListView::showDates(const QDate &start, const QDate &end)
-void KOListView::addEvents(QPtrList<Event> eventList)
+void KOListView::addEvents(Q3PtrList<Event> eventList)
{
@@ -1001,3 +1010,3 @@ void KOListView::addEvents(QPtrList<Event> eventList)
-void KOListView::addTodos(QPtrList<Todo> eventList)
+void KOListView::addTodos(Q3PtrList<Todo> eventList)
{
@@ -1011,3 +1020,3 @@ void KOListView::addTodos(QPtrList<Todo> eventList)
}
-void KOListView::addJournals(QPtrList<Journal> eventList)
+void KOListView::addJournals(Q3PtrList<Journal> eventList)
{
@@ -1046,3 +1055,3 @@ void KOListView::addIncidence(Incidence *incidence)
-void KOListView::showEvents(QPtrList<Event> eventList)
+void KOListView::showEvents(Q3PtrList<Event> eventList)
{
@@ -1097,3 +1106,3 @@ KOListViewItem *KOListView::getItemForEvent(Incidence *event)
-void KOListView::defaultItemAction(QListViewItem *i)
+void KOListView::defaultItemAction(Q3ListViewItem *i)
{
@@ -1104,3 +1113,3 @@ void KOListView::defaultItemAction(QListViewItem *i)
-void KOListView::popupMenu(QListViewItem *item,const QPoint &,int)
+void KOListView::popupMenu(Q3ListViewItem *item,const QPoint &,int)
{
@@ -1133,3 +1142,3 @@ void KOListView::writeSettings(KConfig *config, QString setting)
-void KOListView::processSelectionChange(QListViewItem *)
+void KOListView::processSelectionChange(Q3ListViewItem *)
{
@@ -1182,4 +1191,4 @@ void KOListViewListView::keyPressEvent ( QKeyEvent *e)
case Qt::Key_Down:
- if ( e->state() == ShiftButton ) {
- QListViewItem* cn = currentItem();
+ if ( e->state() == Qt::ShiftButton ) {
+ Q3ListViewItem* cn = currentItem();
if ( !cn )
@@ -1196,6 +1205,6 @@ void KOListViewListView::keyPressEvent ( QKeyEvent *e)
}
- if ( e->state() == ControlButton ) {
+ if ( e->state() == Qt::ControlButton ) {
int count = childCount ();
int jump = count / 5;
- QListViewItem* cn;
+ Q3ListViewItem* cn;
cn = currentItem();
@@ -1213,3 +1222,3 @@ void KOListViewListView::keyPressEvent ( QKeyEvent *e)
} else
- QListView::keyPressEvent ( e ) ;
+ Q3ListView::keyPressEvent ( e ) ;
e->accept();
@@ -1218,4 +1227,4 @@ void KOListViewListView::keyPressEvent ( QKeyEvent *e)
case Qt::Key_Up:
- if ( e->state() == ShiftButton ) {
- QListViewItem* cn = firstChild();
+ if ( e->state() == Qt::ShiftButton ) {
+ Q3ListViewItem* cn = firstChild();
if ( cn ) {
@@ -1227,6 +1236,6 @@ void KOListViewListView::keyPressEvent ( QKeyEvent *e)
}
- if ( e->state() == ControlButton ) {
+ if ( e->state() == Qt::ControlButton ) {
int count = childCount ();
int jump = count / 5;
- QListViewItem* cn;
+ Q3ListViewItem* cn;
cn = currentItem();
@@ -1243,3 +1252,3 @@ void KOListViewListView::keyPressEvent ( QKeyEvent *e)
} else
- QListView::keyPressEvent ( e ) ;
+ Q3ListView::keyPressEvent ( e ) ;
e->accept();
@@ -1247,3 +1256,3 @@ void KOListViewListView::keyPressEvent ( QKeyEvent *e)
case Qt::Key_I: {
- QListViewItem* cn;
+ Q3ListViewItem* cn;
cn = currentItem();
@@ -1267,3 +1276,3 @@ void KOListViewListView::keyPressEvent ( QKeyEvent *e)
{
- QListViewItem* cn;
+ Q3ListViewItem* cn;
cn = currentItem();
@@ -1272,3 +1281,3 @@ void KOListViewListView::keyPressEvent ( QKeyEvent *e)
if ( ci ){
- if ( e->state() == ShiftButton )
+ if ( e->state() == Qt::ShiftButton )
ci->setSelected( false );
@@ -1302,8 +1311,8 @@ KOListViewListView::KOListViewListView(KOListView * lv )
#endif
- setSelectionMode( QListView::Multi );
+ setSelectionMode( Q3ListView::Multi );
setMultiSelection( true);
}
-bool KOListViewListView::hasMultiSelection(QListViewItem* item)
+bool KOListViewListView::hasMultiSelection(Q3ListViewItem* item)
{
- QListViewItem *qitem = firstChild ();
+ Q3ListViewItem *qitem = firstChild ();
while ( qitem ) {
@@ -1319,3 +1328,3 @@ void KOListViewListView::contentsMouseDoubleClickEvent(QMouseEvent *e)
QPoint vp = contentsToViewport(e->pos());
- QListViewItem *item = itemAt(vp);
+ Q3ListViewItem *item = itemAt(vp);
if (!item) {
@@ -1331,4 +1340,4 @@ void KOListViewListView::contentsMousePressEvent(QMouseEvent *e)
KListView::contentsMousePressEvent( e );
- if ( e->button() == RightButton ) {
- QListViewItem* ci = currentItem();
+ if ( e->button() == Qt::RightButton ) {
+ Q3ListViewItem* ci = currentItem();
clearSelection () ;
@@ -1350,3 +1359,3 @@ void KOListViewListView::popupMenu()
mPopupTimer->stop();
- QMouseEvent* e = new QMouseEvent( QEvent::MouseButtonPress, mEventPos ,mEventGlobalPos, RightButton , RightButton );
+ QMouseEvent* e = new QMouseEvent( QEvent::MouseButtonPress, mEventPos ,mEventGlobalPos, Qt::RightButton , Qt::RightButton );
QApplication::postEvent( this->viewport(), e );
@@ -1358,3 +1367,3 @@ void KOListViewListView::contentsMousePressEvent(QMouseEvent *e)
mYMousePos = mapToGlobal( (e->pos())).y();
- if ( e->button() == LeftButton ) {
+ if ( e->button() == Qt::LeftButton ) {
mPopupTimer->start( 600 );
@@ -1364,4 +1373,4 @@ void KOListViewListView::contentsMousePressEvent(QMouseEvent *e)
KListView::contentsMousePressEvent( e );
- if ( e->button() == RightButton ) {
- QListViewItem* ci = currentItem();
+ if ( e->button() == Qt::RightButton ) {
+ Q3ListViewItem* ci = currentItem();
//clearSelection();
@@ -1392,3 +1401,3 @@ void KOListViewListView::contentsMouseMoveEvent(QMouseEvent *e)
#define protected public
-#include <qheader.h>
+#include <q3header.h>
#undef protected
@@ -1409,3 +1418,3 @@ void KOListViewListView::printList()
p.setFont(font());
- QPaintDeviceMetrics m = QPaintDeviceMetrics ( &printer );
+ Q3PaintDeviceMetrics m = Q3PaintDeviceMetrics ( &printer );
float dx, dy;
@@ -1445,3 +1454,3 @@ void KOListViewListView::printList()
int align = columnAlignment( iii );
- if ( align == AlignAuto ) align = AlignLeft;
+ if ( align == Qt::AlignLeft ) align = Qt::AlignLeft;
p.restore();
diff --git a/korganizer/kolistview.h b/korganizer/kolistview.h
index 99d0561..9fb0b00 100644
--- a/korganizer/kolistview.h
+++ b/korganizer/kolistview.h
@@ -26,5 +26,11 @@
-#include <qlistview.h>
+#include <q3listview.h>
#include <qmap.h>
-#include <qdict.h>
+#include <q3dict.h>
+//Added by qt3to4:
+#include <QMouseEvent>
+#include <Q3PtrList>
+#include <Q3PopupMenu>
+#include <QKeyEvent>
+#include <Q3VBoxLayout>
@@ -49,3 +55,3 @@ class KOListViewWhatsThis;
#include <qcheckbox.h>
-#include <qhbox.h>
+#include <q3hbox.h>
#include <qlabel.h>
@@ -62,3 +68,3 @@ class KOAlarmPrefs : public QDialog
setCaption( i18n("Alarm Options") );
- QVBoxLayout* alarmLayout = new QVBoxLayout( this );
+ Q3VBoxLayout* alarmLayout = new Q3VBoxLayout( this );
alarmLayout->setSpacing( 3 );
@@ -76,3 +82,3 @@ class KOAlarmPrefs : public QDialog
alarmLayout->addWidget(mAlarmIncrCombo);
- QHBox * hb = new QHBox ( parent );
+ Q3HBox * hb = new Q3HBox ( parent );
alarmLayout->addWidget(hb);
@@ -212,3 +218,3 @@ class KOListViewListView : public KListView
KOListViewListView(KOListView * lv );
- bool hasMultiSelection(QListViewItem*);
+ bool hasMultiSelection(Q3ListViewItem*);
void printList();
@@ -242,3 +248,3 @@ class KOListView : public KOEventView
virtual int currentDateCount();
- virtual QPtrList<Incidence> selectedIncidences();
+ virtual Q3PtrList<Incidence> selectedIncidences();
virtual DateList selectedDates();
@@ -247,4 +253,4 @@ class KOListView : public KOEventView
Incidence* currentItem();
- void addTodos(QPtrList<Todo> eventList);
- void addJournals(QPtrList<Journal> eventList);
+ void addTodos(Q3PtrList<Todo> eventList);
+ void addJournals(Q3PtrList<Journal> eventList);
virtual void printPreview(CalPrinter *calPrinter,
@@ -259,3 +265,3 @@ class KOListView : public KOEventView
QString getWhatsThisText(QPoint p);
- QPtrList<Incidence> KOListView::getSelectedIncidences( bool includeEvents = true, bool includeTodos = true , bool includeJournals = true, bool onlyDueTodos = false );
+ Q3PtrList<Incidence> getSelectedIncidences( bool includeEvents = true, bool includeTodos = true , bool includeJournals = true, bool onlyDueTodos = false );
void showCompletedTodos();
@@ -263,3 +269,3 @@ class KOListView : public KOEventView
void signalNewEvent();
- void beamIncidenceList(QPtrList<Incidence>);
+ void beamIncidenceList(Q3PtrList<Incidence>);
@@ -271,3 +277,3 @@ class KOListView : public KOEventView
virtual void showDates(const QDate &start, const QDate &end);
- virtual void showEvents(QPtrList<Event> eventList);
+ virtual void showEvents(Q3PtrList<Event> eventList);
void clearSelection();
@@ -289,4 +295,4 @@ class KOListView : public KOEventView
- void defaultItemAction(QListViewItem *item);
- void popupMenu(QListViewItem *item,const QPoint &,int);
+ void defaultItemAction(Q3ListViewItem *item);
+ void popupMenu(Q3ListViewItem *item,const QPoint &,int);
void setCalendar( int c );
@@ -295,3 +301,3 @@ class KOListView : public KOEventView
protected slots:
- void processSelectionChange(QListViewItem *);
+ void processSelectionChange(Q3ListViewItem *);
void catChanged( Incidence* );
@@ -300,3 +306,3 @@ class KOListView : public KOEventView
void writeToFile( bool iCal );
- void addEvents(QPtrList<Event> eventList);
+ void addEvents(Q3PtrList<Event> eventList);
void addIncidence(Incidence *);
@@ -306,3 +312,3 @@ class KOListView : public KOEventView
bool mForceShowCompletedTodos;
- QPopupMenu* mCalPopup;
+ Q3PopupMenu* mCalPopup;
KOListViewWhatsThis *mKOListViewWhatsThis;
@@ -311,3 +317,3 @@ class KOListView : public KOEventView
KOListViewItem *mActiveItem;
- QDict<Incidence> mUidDict;
+ Q3Dict<Incidence> mUidDict;
QDate mStartDate;
diff --git a/korganizer/komonthview.cpp b/korganizer/komonthview.cpp
index 85e9166..ca55c43 100644
--- a/korganizer/komonthview.cpp
+++ b/korganizer/komonthview.cpp
@@ -19,9 +19,9 @@
-#include <qpopupmenu.h>
+#include <q3popupmenu.h>
#include <qfont.h>
#include <qfontmetrics.h>
-#include <qkeycode.h>
-#include <qhbox.h>
-#include <qvbox.h>
-#include <qwidgetstack.h>
+#include <qnamespace.h>
+#include <q3hbox.h>
+#include <q3vbox.h>
+#include <q3widgetstack.h>
#include <qpushbutton.h>
@@ -30,3 +30,3 @@
#include <qtimer.h>
-#include <qwhatsthis.h>
+#include <q3whatsthis.h>
#ifndef DESKTOP_VERSION
@@ -35,2 +35,14 @@
#include <qapplication.h>
+#include <QDesktopWidget>
+//Added by qt3to4:
+#include <QResizeEvent>
+#include <QLabel>
+#include <QPixmap>
+#include <QFocusEvent>
+#include <QMouseEvent>
+#include <QKeyEvent>
+#include <Q3VBoxLayout>
+#include <Q3Frame>
+#include <Q3PointArray>
+#include <Q3PtrList>
#endif
@@ -61,6 +73,6 @@ QToolTipGroup *MonthViewCell::mToolTipGroup = 0;
#endif
-class KNOWhatsThis :public QWhatsThis
+class KNOWhatsThis :public Q3WhatsThis
{
public:
- KNOWhatsThis( KNoScrollListBox* sbox ) : QWhatsThis( sbox ), _wid( sbox) { };
+ KNOWhatsThis( KNoScrollListBox* sbox ) : Q3WhatsThis( sbox ), _wid( sbox) { };
//~KNOWhatsThis( ) {qDebug("~KNOWhatsThis( ) "); };
@@ -79,3 +91,3 @@ private:
KNoScrollListBox::KNoScrollListBox(QWidget *parent,const char *name)
- : QListBox(parent, name, WRepaintNoErase)
+ : Q3ListBox(parent, name, Qt::WNoAutoErase)
{
@@ -87,4 +99,4 @@ KNoScrollListBox::KNoScrollListBox(QWidget *parent,const char *name)
resetOnFocusIn = true;
- setVScrollBarMode(QScrollView::AlwaysOff);
- setHScrollBarMode(QScrollView::AlwaysOff);
+ setVScrollBarMode(Q3ScrollView::AlwaysOff);
+ setHScrollBarMode(Q3ScrollView::AlwaysOff);
}
@@ -102,3 +114,3 @@ void KNoScrollListBox::focusInEvent ( QFocusEvent * e )
{
- QListBox::focusInEvent ( e );
+ Q3ListBox::focusInEvent ( e );
if ( count() ){
@@ -114,3 +126,3 @@ void KNoScrollListBox::focusInEvent ( QFocusEvent * e )
if ( KOPrefs::instance()->mEnableMonthScroll || KOPrefs::instance()->mMonthViewWeek ) {
- QListBoxItem *fi = firstItem ();
+ Q3ListBoxItem *fi = firstItem ();
if (fi ) {
@@ -119,15 +131,15 @@ void KNoScrollListBox::focusInEvent ( QFocusEvent * e )
if ( hei < height() - horizontalScrollBar()->height () ) {
- setVScrollBarMode(QScrollView::AlwaysOff);
+ setVScrollBarMode(Q3ScrollView::AlwaysOff);
}
else
- setVScrollBarMode(QScrollView::Auto);
+ setVScrollBarMode(Q3ScrollView::Auto);
if ( ihei *3 > height() ) {
- setHScrollBarMode(QScrollView::AlwaysOff);
+ setHScrollBarMode(Q3ScrollView::AlwaysOff);
}
else {
- setHScrollBarMode(QScrollView::Auto);
+ setHScrollBarMode(Q3ScrollView::Auto);
}
} else {
- setVScrollBarMode(QScrollView::Auto);
- setHScrollBarMode(QScrollView::Auto);
+ setVScrollBarMode(Q3ScrollView::Auto);
+ setHScrollBarMode(Q3ScrollView::Auto);
}
@@ -143,6 +155,6 @@ void KNoScrollListBox::focusOutEvent ( QFocusEvent * e )
}
- QListBox::focusOutEvent ( e );
+ Q3ListBox::focusOutEvent ( e );
}
- setVScrollBarMode(QScrollView::AlwaysOff);
- setHScrollBarMode(QScrollView::AlwaysOff);
+ setVScrollBarMode(Q3ScrollView::AlwaysOff);
+ setHScrollBarMode(Q3ScrollView::AlwaysOff);
if ( ! mBlockDeselect )
@@ -154,3 +166,3 @@ QString KNoScrollListBox::getWhatsThisText(QPoint p)
{
- QListBoxItem* item = itemAt ( p );
+ Q3ListBoxItem* item = itemAt ( p );
if ( ! item ) {
@@ -167,3 +179,3 @@ void KNoScrollListBox::keyPressEvent(QKeyEvent *e)
switch(e->key()) {
- case Key_Right:
+ case Qt::Key_Right:
if ( e->state() == Qt::ControlButton|| e->state() == Qt::ShiftButton )
@@ -175,3 +187,3 @@ void KNoScrollListBox::keyPressEvent(QKeyEvent *e)
break;
- case Key_Left:
+ case Qt::Key_Left:
if (e->state() == Qt::ControlButton|| e->state() == Qt::ShiftButton )
@@ -183,3 +195,3 @@ void KNoScrollListBox::keyPressEvent(QKeyEvent *e)
break;
- case Key_Up:
+ case Qt::Key_Up:
if( e->state() == Qt::ControlButton|| e->state() == Qt::ShiftButton) {
@@ -203,3 +215,3 @@ void KNoScrollListBox::keyPressEvent(QKeyEvent *e)
break;
- case Key_Down:
+ case Qt::Key_Down:
if(e->state() == Qt::ControlButton|| e->state() == Qt::ShiftButton) {
@@ -223,3 +235,3 @@ void KNoScrollListBox::keyPressEvent(QKeyEvent *e)
break;
- case Key_I:
+ case Qt::Key_I:
QTimer::singleShot( 1, this, SLOT ( oneDown() ) );
@@ -227,4 +239,4 @@ void KNoScrollListBox::keyPressEvent(QKeyEvent *e)
break;
- case Key_Return:
- case Key_Enter:
+ case Qt::Key_Return:
+ case Qt::Key_Enter:
{
@@ -238,3 +250,3 @@ void KNoScrollListBox::keyPressEvent(QKeyEvent *e)
break;
- case Key_Shift:
+ case Qt::Key_Shift:
emit shiftDown();
@@ -268,3 +280,3 @@ void KNoScrollListBox::keyReleaseEvent(QKeyEvent *e)
switch(e->key()) {
- case Key_Shift:
+ case Qt::Key_Shift:
emit shiftUp();
@@ -278,5 +290,5 @@ void KNoScrollListBox::mousePressEvent(QMouseEvent *e)
{
- QListBox::mousePressEvent(e);
+ Q3ListBox::mousePressEvent(e);
- if(e->button() == RightButton) {
+ if(e->button() == Qt::RightButton) {
emit rightClick();
@@ -286,3 +298,3 @@ void KNoScrollListBox::mousePressEvent(QMouseEvent *e)
MonthViewItem::MonthViewItem( Incidence *incidence, const QString & s)
- : QListBoxItem()
+ : Q3ListBoxItem()
{
@@ -397,3 +409,3 @@ void MonthViewItem::paint(QPainter *p)
if ( mMultiday == 2 || mMultiday == 3 ) {
- QPointArray pa ( 3 );
+ Q3PointArray pa ( 3 );
pa.setPoint (0, x, yyy );
@@ -404,3 +416,3 @@ void MonthViewItem::paint(QPainter *p)
if ( mMultiday == 2 || mMultiday == 1 ) {
- QPointArray pa ( 3 );
+ Q3PointArray pa ( 3 );
pa.setPoint (0, x+sizeM +sizeM/2, yyy );
@@ -464,3 +476,3 @@ void MonthViewItem::paint(QPainter *p)
-int MonthViewItem::height(const QListBox *lb) const
+int MonthViewItem::height(const Q3ListBox *lb) const
{
@@ -472,3 +484,3 @@ int MonthViewItem::height(const QListBox *lb) const
-int MonthViewItem::width(const QListBox *lb) const
+int MonthViewItem::width(const Q3ListBox *lb) const
{
@@ -516,6 +528,6 @@ MonthViewCell::MonthViewCell( KOMonthView *parent,QWidget* par )
mLabel->setFlat( true );
- mLabel->setFocusPolicy(NoFocus);
+ mLabel->setFocusPolicy(Qt::NoFocus);
//mItemList = new KNoScrollListBox( this );
setMinimumSize( 10, 10 );
- setFrameStyle( QFrame::Panel | QFrame::Plain );
+ setFrameStyle( Q3Frame::Panel | Q3Frame::Plain );
setLineWidth( 1 );
@@ -531,9 +543,9 @@ MonthViewCell::MonthViewCell( KOMonthView *parent,QWidget* par )
connect( mLabel, SIGNAL( clicked( )), SLOT( showDay() ));
- connect( this , SIGNAL( doubleClicked( QListBoxItem *) ),
- SLOT( defaultAction( QListBoxItem * ) ) );
- connect( this, SIGNAL( rightButtonPressed( QListBoxItem *,
+ connect( this , SIGNAL( doubleClicked( Q3ListBoxItem *) ),
+ SLOT( defaultAction( Q3ListBoxItem * ) ) );
+ connect( this, SIGNAL( rightButtonPressed( Q3ListBoxItem *,
const QPoint &) ),
- SLOT( contextMenu( QListBoxItem * ) ) );
- connect( this, SIGNAL( highlighted( QListBoxItem *) ),
- SLOT( selection( QListBoxItem * ) ) );
+ SLOT( contextMenu( Q3ListBoxItem * ) ) );
+ connect( this, SIGNAL( highlighted( Q3ListBoxItem *) ),
+ SLOT( selection( Q3ListBoxItem * ) ) );
@@ -547,3 +559,3 @@ QToolTipGroup *MonthViewCell::toolTipGroup()
{
- if (!mToolTipGroup) mToolTipGroup = new QToolTipGroup(0);
+ /* TODO:hacker: if (!mToolTipGroup) mToolTipGroup = new QToolTipGroup(0); */
return mToolTipGroup;
@@ -639,3 +651,3 @@ void MonthViewCell::startUpdateCell()
mdayCount = 0;
- setFocusPolicy(NoFocus);
+ setFocusPolicy(Qt::NoFocus);
if ( !mMonthView->isUpdatePossible() )
@@ -694,3 +706,3 @@ int MonthViewCell::insertEvent(Event *event)
QString mToolTipText;
- setFocusPolicy(WheelFocus);
+ setFocusPolicy(Qt::WheelFocus);
if ( !(event->doesRecur() == Recurrence::rNone) ) {
@@ -836,3 +848,3 @@ int MonthViewCell::insertEvent(Event *event)
// qDebug("i %d mday %u count %d ",i,itcount,mdayCount );
- QListBoxItem* it = this->item ( i );
+ Q3ListBoxItem* it = this->item ( i );
if ( it && text < it->text() ) {
@@ -852,3 +864,3 @@ void MonthViewCell::insertTodo(Todo *todo)
{
- setFocusPolicy(WheelFocus);
+ setFocusPolicy(Qt::WheelFocus);
QString text;
@@ -924,3 +936,3 @@ void MonthViewCell::finishUpdateCell()
mToolTip.sort();
- QToolTip::add(this,mToolTip.join("\n"),toolTipGroup(),"");
+ /* TODO: hacker: QToolTip::add(this,mToolTip.join("\n"),toolTipGroup(),""); */
}
@@ -940,3 +952,3 @@ void MonthViewCell::updateCell()
//mLabel->setMaximumWidth( width() - mItemList->lineWidth()*2);
- QPtrList<Event> events = mMonthView->calendar()->events( mDate, true );
+ Q3PtrList<Event> events = mMonthView->calendar()->events( mDate, true );
Event *event;
@@ -946,3 +958,3 @@ void MonthViewCell::updateCell()
// insert due todos
- QPtrList<Todo> todos = mMonthView->calendar()->todos( mDate );
+ Q3PtrList<Todo> todos = mMonthView->calendar()->todos( mDate );
Todo *todo;
@@ -994,3 +1006,3 @@ void MonthViewCell::enableScrollBars( bool enabled )
if ( enabled ) {
- QListBoxItem *fi = firstItem ();
+ Q3ListBoxItem *fi = firstItem ();
if (fi ) {
@@ -999,19 +1011,19 @@ void MonthViewCell::enableScrollBars( bool enabled )
if ( hei < height() - horizontalScrollBar()->height () ) {
- setVScrollBarMode(QScrollView::AlwaysOff);
+ setVScrollBarMode(Q3ScrollView::AlwaysOff);
}
else
- setVScrollBarMode(QScrollView::Auto);
+ setVScrollBarMode(Q3ScrollView::Auto);
if ( ihei *3 > height() ) {
- setHScrollBarMode(QScrollView::AlwaysOff);
+ setHScrollBarMode(Q3ScrollView::AlwaysOff);
}
else {
- setHScrollBarMode(QScrollView::Auto);
+ setHScrollBarMode(Q3ScrollView::Auto);
}
} else {
- setVScrollBarMode(QScrollView::Auto);
- setHScrollBarMode(QScrollView::Auto);
+ setVScrollBarMode(Q3ScrollView::Auto);
+ setHScrollBarMode(Q3ScrollView::Auto);
}
} else {
- setVScrollBarMode(QScrollView::AlwaysOff);
- setHScrollBarMode(QScrollView::AlwaysOff);
+ setVScrollBarMode(Q3ScrollView::AlwaysOff);
+ setHScrollBarMode(Q3ScrollView::AlwaysOff);
}
@@ -1085,3 +1097,3 @@ void MonthViewCell::resizeEvent ( QResizeEvent * e )
-void MonthViewCell::defaultAction( QListBoxItem *item )
+void MonthViewCell::defaultAction( Q3ListBoxItem *item )
{
@@ -1107,3 +1119,3 @@ void MonthViewCell::newEvent()
}
-void MonthViewCell::cellClicked( QListBoxItem *item )
+void MonthViewCell::cellClicked( Q3ListBoxItem *item )
{
@@ -1118,3 +1130,3 @@ void MonthViewCell::cellClicked( QListBoxItem *item )
-void MonthViewCell::contextMenu( QListBoxItem *item )
+void MonthViewCell::contextMenu( Q3ListBoxItem *item )
{
@@ -1135,3 +1147,3 @@ void MonthViewCell::contextMenu( QListBoxItem *item )
-void MonthViewCell::selection( QListBoxItem *item )
+void MonthViewCell::selection( Q3ListBoxItem *item )
{
@@ -1187,4 +1199,4 @@ KOMonthView::KOMonthView(Calendar *calendar, QWidget *parent, const char *name)
mNavigatorBar = new NavigatorBar( QDate::currentDate(), this, "useBigPixmaps" );
- mWidStack = new QWidgetStack( this );
- QVBoxLayout* hb = new QVBoxLayout( this );
+ mWidStack = new Q3WidgetStack( this );
+ Q3VBoxLayout* hb = new Q3VBoxLayout( this );
mMonthView = new QWidget( mWidStack );
@@ -1217,5 +1229,5 @@ KOMonthView::KOMonthView(Calendar *calendar, QWidget *parent, const char *name)
label->setFont(bfont);
- label->setFrameStyle(QFrame::Panel|QFrame::Raised);
+ label->setFrameStyle(Q3Frame::Panel|Q3Frame::Raised);
label->setLineWidth(1);
- label->setAlignment(AlignCenter);
+ label->setAlignment(Qt::AlignCenter);
mDayLabels.insert( i, label );
@@ -1223,5 +1235,5 @@ KOMonthView::KOMonthView(Calendar *calendar, QWidget *parent, const char *name)
label->setFont(bfont);
- label->setFrameStyle(QFrame::Panel|QFrame::Raised);
+ label->setFrameStyle(Q3Frame::Panel|Q3Frame::Raised);
label->setLineWidth(1);
- label->setAlignment(AlignCenter);
+ label->setAlignment(Qt::AlignCenter);
mDayLabelsW.insert( i, label );
@@ -1234,3 +1246,3 @@ KOMonthView::KOMonthView(Calendar *calendar, QWidget *parent, const char *name)
KOWeekButton *label = new KOWeekButton( mMonthView );
- label->setFocusPolicy(NoFocus);
+ label->setFocusPolicy(Qt::NoFocus);
label->setFont(bfont);
@@ -1238,3 +1250,3 @@ KOMonthView::KOMonthView(Calendar *calendar, QWidget *parent, const char *name)
label->setFlat(true);
- QWhatsThis::add(label,i18n("Click on the week number to\nshow week zoomed"));
+ Q3WhatsThis::add(label,i18n("Click on the week number to\nshow week zoomed"));
//label->setFrameStyle(QFrame::Panel|QFrame::Raised);
@@ -1245,4 +1257,4 @@ KOMonthView::KOMonthView(Calendar *calendar, QWidget *parent, const char *name)
mWeekLabels[mNumWeeks]->setText( i18n("W"));
- mWeekLabels[mNumWeeks]->setFocusPolicy(WheelFocus);
- QWhatsThis::add(mWeekLabels[mNumWeeks],i18n("Click on this to\nselect week number"));
+ mWeekLabels[mNumWeeks]->setFocusPolicy(Qt::WheelFocus);
+ Q3WhatsThis::add(mWeekLabels[mNumWeeks],i18n("Click on this to\nselect week number"));
@@ -1250,3 +1262,3 @@ KOMonthView::KOMonthView(Calendar *calendar, QWidget *parent, const char *name)
KOWeekButton *label = new KOWeekButton( mWeekView );
- label->setFocusPolicy(NoFocus);
+ label->setFocusPolicy(Qt::NoFocus);
label->setFont(bfont);
@@ -1254,3 +1266,3 @@ KOMonthView::KOMonthView(Calendar *calendar, QWidget *parent, const char *name)
label->setFlat(true);
- QWhatsThis::add(label,i18n("Click on the week number to\nshow week zoomed"));
+ Q3WhatsThis::add(label,i18n("Click on the week number to\nshow week zoomed"));
//label->setFrameStyle(QFrame::Panel|QFrame::Raised);
@@ -1261,3 +1273,3 @@ KOMonthView::KOMonthView(Calendar *calendar, QWidget *parent, const char *name)
mWeekLabelsW[1]->setText( i18n("W"));
- mWeekLabelsW[1]->setFocusPolicy(WheelFocus);
+ mWeekLabelsW[1]->setFocusPolicy(Qt::WheelFocus);
@@ -1307,9 +1319,9 @@ KOMonthView::KOMonthView(Calendar *calendar, QWidget *parent, const char *name)
mContextMenu = eventPopup();
- mContextMenu->addAdditionalItem(QIconSet(QPixmap()),
+ mContextMenu->addAdditionalItem(QIcon(QPixmap()),
i18n("New Event..."),this,
SLOT(slotNewEvent()),false);
- mContextMenu->addAdditionalItem(QIconSet(QPixmap()),
+ mContextMenu->addAdditionalItem(QIcon(QPixmap()),
i18n("New Todo..."),this,
SLOT(slotNewTodo()),false);
- mContextMenu->addAdditionalItem(QIconSet(QPixmap()),
+ mContextMenu->addAdditionalItem(QIcon(QPixmap()),
i18n("Journal"),this,
@@ -1327,3 +1339,3 @@ KOMonthView::KOMonthView(Calendar *calendar, QWidget *parent, const char *name)
pathString += "iconsmini/";
- mNewItemMenu = new QPopupMenu( this );
+ mNewItemMenu = new Q3PopupMenu( this );
mNewItemMenu->insertItem( SmallIcon( pathString +"newevent" ), i18n("New Event..."),this, SLOT(slotNewEvent()));
@@ -1399,3 +1411,3 @@ void KOMonthView::incidenceHighlighted( Incidence * inc , MonthViewCell* mc, int
}
- QPtrVector<MonthViewCell> *cells;
+ Q3PtrVector<MonthViewCell> *cells;
if ( weekview )
@@ -1497,5 +1509,5 @@ int KOMonthView::currentDateCount()
-QPtrList<Incidence> KOMonthView::selectedIncidences()
+Q3PtrList<Incidence> KOMonthView::selectedIncidences()
{
- QPtrList<Incidence> selected;
+ Q3PtrList<Incidence> selected;
@@ -1563,3 +1575,3 @@ void KOMonthView::updateConfig()
#ifdef DESKTOP_VERSION
- MonthViewCell::toolTipGroup()->setEnabled(KOPrefs::instance()->mEnableToolTips);
+ /* TODO:hacker: MonthViewCell::toolTipGroup()->setEnabled(KOPrefs::instance()->mEnableToolTips); */
#endif
@@ -1571,3 +1583,3 @@ void KOMonthView::updateDayLabels()
- QPtrVector<QLabel> *mDayLabelsT;
+ Q3PtrVector<QLabel> *mDayLabelsT;
@@ -1612,5 +1624,5 @@ void KOMonthView::showDates(const QDate &start, const QDate &)
- QPtrVector<MonthViewCell> *cells;
- QPtrVector<QLabel> *dayLabels;
- QPtrVector<KOWeekButton> *weekLabels;
+ Q3PtrVector<MonthViewCell> *cells;
+ Q3PtrVector<QLabel> *dayLabels;
+ Q3PtrVector<KOWeekButton> *weekLabels;
uint weekNum = 6;
@@ -1670,3 +1682,3 @@ void KOMonthView::showDates(const QDate &start, const QDate &)
-void KOMonthView::showEvents(QPtrList<Event>)
+void KOMonthView::showEvents(Q3PtrList<Event>)
{
@@ -1692,3 +1704,3 @@ void KOMonthView::updateView()
clearSelection();
- QPtrVector<MonthViewCell> *cells;
+ Q3PtrVector<MonthViewCell> *cells;
if ( mShowWeekView ) {
@@ -1707,3 +1719,3 @@ void KOMonthView::updateView()
- QPtrList<Event> events = calendar()->events();
+ Q3PtrList<Event> events = calendar()->events();
Event *event;
@@ -1771,3 +1783,3 @@ void KOMonthView::updateView()
// insert due todos
- QPtrList<Todo> todos = calendar()->todos( );
+ Q3PtrList<Todo> todos = calendar()->todos( );
Todo *todo;
@@ -2227,3 +2239,3 @@ void KOMonthView::processSelectionChange()
{
- QPtrList<Incidence> incidences = selectedIncidences();
+ Q3PtrList<Incidence> incidences = selectedIncidences();
if (incidences.count() > 0) {
@@ -2263,3 +2275,3 @@ void KOMonthView::keyPressEvent ( QKeyEvent * e )
switch(e->key()) {
- case Key_Up:
+ case Qt::Key_Up:
{
@@ -2274,3 +2286,3 @@ void KOMonthView::keyPressEvent ( QKeyEvent * e )
break;
- case Key_Down:
+ case Qt::Key_Down:
{
@@ -2286,4 +2298,4 @@ void KOMonthView::keyPressEvent ( QKeyEvent * e )
break;
- case Key_Return:
- case Key_Enter:
+ case Qt::Key_Return:
+ case Qt::Key_Enter:
{
@@ -2293,3 +2305,3 @@ void KOMonthView::keyPressEvent ( QKeyEvent * e )
break;
- case Key_D:
+ case Qt::Key_D:
if ( mSelectedCell ) {
diff --git a/korganizer/komonthview.h b/korganizer/komonthview.h
index 1a9d16d..bca76e5 100644
--- a/korganizer/komonthview.h
+++ b/korganizer/komonthview.h
@@ -23,13 +23,20 @@
#include <qlabel.h>
-#include <qframe.h>
+#include <q3frame.h>
#include <qdatetime.h>
-#include <qlistbox.h>
+#include <q3listbox.h>
#include <qpoint.h>
-#include <qwidgetstack.h>
+#include <q3widgetstack.h>
#include <qlayout.h>
#include <qtimer.h>
-#include <qintdict.h>
+#include <q3intdict.h>
#include <qpushbutton.h>
-#include <qvaluelist.h>
-#include <qptrvector.h>
+#include <q3valuelist.h>
+#include <q3ptrvector.h>
+//Added by qt3to4:
+#include <QResizeEvent>
+#include <QFocusEvent>
+#include <QMouseEvent>
+#include <Q3PtrList>
+#include <Q3PopupMenu>
+#include <QKeyEvent>
@@ -74,3 +81,3 @@ private slots :
-class KNoScrollListBox: public QListBox
+class KNoScrollListBox: public Q3ListBox
{
@@ -105,3 +112,3 @@ class KNoScrollListBox: public QListBox
-class MonthViewItem: public QListBoxItem
+class MonthViewItem: public Q3ListBoxItem
{
@@ -128,4 +135,4 @@ class MonthViewItem: public QListBoxItem
virtual void paint(QPainter *);
- virtual int height(const QListBox *) const;
- virtual int width(const QListBox *) const;
+ virtual int height(const Q3ListBox *) const;
+ virtual int width(const Q3ListBox *) const;
@@ -200,6 +207,6 @@ public slots:
protected slots:
- void defaultAction( QListBoxItem * );
- void contextMenu( QListBoxItem * );
- void selection( QListBoxItem * );
- void cellClicked( QListBoxItem * );
+ void defaultAction( Q3ListBoxItem * );
+ void contextMenu( Q3ListBoxItem * );
+ void selection( Q3ListBoxItem * );
+ void cellClicked( Q3ListBoxItem * );
void newEvent();
@@ -208,3 +215,3 @@ public slots:
int mdayCount;
- QPtrList <MonthViewItem> mAvailItemList;
+ Q3PtrList <MonthViewItem> mAvailItemList;
KOMonthView *mMonthView;
@@ -249,3 +256,3 @@ class KOMonthView: public KOEventView
/** returns the currently selected events */
- virtual QPtrList<Incidence> selectedIncidences();
+ virtual Q3PtrList<Incidence> selectedIncidences();
@@ -271,3 +278,3 @@ class KOMonthView: public KOEventView
virtual void showDates(const QDate &start, const QDate &end);
- virtual void showEvents(QPtrList<Event> eventList);
+ virtual void showEvents(Q3PtrList<Event> eventList);
@@ -313,3 +320,3 @@ class KOMonthView: public KOEventView
bool clPending;
- QWidgetStack * mWidStack;
+ Q3WidgetStack * mWidStack;
QWidget* mMonthView;
@@ -327,8 +334,8 @@ class KOMonthView: public KOEventView
- QPtrVector<MonthViewCell> mCells;
- QPtrVector<QLabel> mDayLabels;
- QPtrVector<KOWeekButton> mWeekLabels;
- QPtrVector<MonthViewCell> mCellsW;
- QPtrVector<QLabel> mDayLabelsW;
- QPtrVector<KOWeekButton> mWeekLabelsW;
+ Q3PtrVector<MonthViewCell> mCells;
+ Q3PtrVector<QLabel> mDayLabels;
+ Q3PtrVector<KOWeekButton> mWeekLabels;
+ Q3PtrVector<MonthViewCell> mCellsW;
+ Q3PtrVector<QLabel> mDayLabelsW;
+ Q3PtrVector<KOWeekButton> mWeekLabelsW;
@@ -344,3 +351,3 @@ class KOMonthView: public KOEventView
KOEventPopupMenu *mContextMenu;
- QPopupMenu *mNewItemMenu;
+ Q3PopupMenu *mNewItemMenu;
void keyPressEvent ( QKeyEvent * ) ;
diff --git a/korganizer/koprefs.cpp b/korganizer/koprefs.cpp
index 5078c57..0bd46ea 100644
--- a/korganizer/koprefs.cpp
+++ b/korganizer/koprefs.cpp
@@ -28,3 +28,3 @@
#include <qdir.h>
-#include <qtextstream.h>
+#include <q3textstream.h>
#include <qtextcodec.h>
@@ -307,3 +307,3 @@ KOPrefs::KOPrefs() :
- addItemStringList("SelectedPlugins",&mSelectedPlugins,"holidays");
+ addItemStringList("SelectedPlugins",&mSelectedPlugins,QStringList("holidays"));
@@ -313,3 +313,3 @@ KOPrefs::KOPrefs() :
addItemInt("IMIPSend",&mIMIPSend,IMIPdirectsend);
- addItemStringList("AdditionalMails",&mAdditionalMails,"");
+ addItemStringList("AdditionalMails",&mAdditionalMails,QStringList());
addItemInt("IMIP auto refresh",&mIMIPAutoRefresh,neverAuto);
@@ -568,3 +568,3 @@ void KOPrefs::usrWriteConfig()
config()->setGroup("Category Colors");
- QDictIterator<QColor> it(mCategoryColors);
+ Q3DictIterator<QColor> it(mCategoryColors);
while (it.current()) {
diff --git a/korganizer/koprefs.h b/korganizer/koprefs.h
index 94bdd33..35c6110 100644
--- a/korganizer/koprefs.h
+++ b/korganizer/koprefs.h
@@ -27,5 +27,8 @@
#include <libkdepim/kpimprefs.h>
-#include <qdict.h>
+#include <q3dict.h>
#include <qdir.h>
#include <qobject.h>
+#include <QDateTime>
+//Added by qt3to4:
+#include <Q3PtrList>
@@ -349,3 +352,3 @@ class KOPrefs : public KPimPrefs
int mCurrentDisplayedView;
- QPtrList<KopiCalendarFile> mCalendars;
+ Q3PtrList<KopiCalendarFile> mCalendars;
int mNextAvailableCalendar;
@@ -364,4 +367,4 @@ class KOPrefs : public KPimPrefs
private:
- QDict<QColor> mCategoryColors;
- QArray<KopiCalendarFile*> mDefCalColors;
+ Q3Dict<QColor> mCategoryColors;
+ QVector<KopiCalendarFile*> mDefCalColors;
QColor mDefaultCategoryColor;
diff --git a/korganizer/koprefsdialog.cpp b/korganizer/koprefsdialog.cpp
index f1a6c3d..43c488f 100644
--- a/korganizer/koprefsdialog.cpp
+++ b/korganizer/koprefsdialog.cpp
@@ -25,4 +25,4 @@
#include <qlabel.h>
-#include <qgroupbox.h>
-#include <qbuttongroup.h>
+#include <q3groupbox.h>
+#include <q3buttongroup.h>
#include <qlineedit.h>
@@ -31,6 +31,6 @@
#include <qfile.h>
-#include <qtextstream.h>
+#include <q3textstream.h>
#include <qcombobox.h>
-#include <qvbox.h>
-#include <qhbox.h>
+#include <q3vbox.h>
+#include <q3hbox.h>
#include <qregexp.h>
@@ -41,4 +41,10 @@
#include <qpushbutton.h>
-#include <qstrlist.h>
+#include <q3strlist.h>
#include <qapplication.h>
+#include <QDesktopWidget>
+//Added by qt3to4:
+#include <Q3HBoxLayout>
+#include <Q3GridLayout>
+#include <QPixmap>
+#include <Q3Frame>
@@ -118,4 +124,4 @@ void KOPrefsDialog::setupLocaleDateTab()
#if 0
-QFrame *topFrame = addPage(i18n("Date Format"),0,0);
- QGridLayout *topLayout = new QGridLayout(topFrame,3,2);
+Q3Frame *topFrame = addPage(i18n("Date Format"),0,0);
+ Q3GridLayout *topLayout = new Q3GridLayout(topFrame,3,2);
topLayout->setSpacing(mSpacingHint);
@@ -174,4 +180,4 @@ void KOPrefsDialog::setupLocaleTab()
#if 0
- QFrame *topFrame = addPage(i18n("Locale"),0,0);
- QGridLayout *topLayout = new QGridLayout(topFrame,4,2);
+ Q3Frame *topFrame = addPage(i18n("Locale"),0,0);
+ Q3GridLayout *topLayout = new Q3GridLayout(topFrame,4,2);
topLayout->setSpacing(mSpacingHint);
@@ -213,3 +219,3 @@ void KOPrefsDialog::setupLocaleTab()
QWidget * hb = new QWidget( topFrame );
- QHBoxLayout *hbLayout = new QHBoxLayout(hb);
+ Q3HBoxLayout *hbLayout = new Q3HBoxLayout(hb);
sb =
@@ -238,6 +244,6 @@ void KOPrefsDialog::setupMainTab()
{
- QFrame *topFrame = addPage(i18n("General"),0,0);
+ Q3Frame *topFrame = addPage(i18n("General"),0,0);
// DesktopIcon("identity",KIcon::SizeMedium));
- QGridLayout *topLayout = new QGridLayout(topFrame,5,2);
+ Q3GridLayout *topLayout = new Q3GridLayout(topFrame,5,2);
topLayout->setSpacing(mSpacingHint);
@@ -289,3 +295,3 @@ void KOPrefsDialog::setupMainTab()
topFrame = addPage(i18n("General") +" 2",0,0);
- topLayout = new QGridLayout(topFrame,4,2);
+ topLayout = new Q3GridLayout(topFrame,4,2);
topLayout->setSpacing(2);
@@ -294,3 +300,3 @@ void KOPrefsDialog::setupMainTab()
}
- QHBox *dummy = new QHBox(topFrame);
+ Q3HBox *dummy = new Q3HBox(topFrame);
new QLabel(i18n("Days in Next-X-Days:"),dummy);
@@ -315,3 +321,3 @@ void KOPrefsDialog::setupMainTab()
- QHBox *intervalBox = new QHBox(topFrame);
+ Q3HBox *intervalBox = new Q3HBox(topFrame);
// intervalBox->setSpacing(mSpacingHint);
@@ -404,6 +410,6 @@ void KOPrefsDialog::setupTimeTab()
{
- QFrame *topFrame = addPage(i18n("Time"),0,0);
+ Q3Frame *topFrame = addPage(i18n("Time"),0,0);
// DesktopIcon("clock",KIcon::SizeMedium));
- QGridLayout *topLayout = new QGridLayout(topFrame,4,2);
+ Q3GridLayout *topLayout = new Q3GridLayout(topFrame,4,2);
topLayout->setSpacing(mSpacingHint);
@@ -411,3 +417,3 @@ void KOPrefsDialog::setupTimeTab()
- QHBox *dummy = new QHBox(topFrame);
+ Q3HBox *dummy = new Q3HBox(topFrame);
KPrefsDialogWidTime *dayBegins =
@@ -443,3 +449,3 @@ void KOPrefsDialog::setupTimeTab()
topFrame = addPage(i18n("Time") +" 2",0,0);
- topLayout = new QGridLayout(topFrame,1,2);
+ topLayout = new Q3GridLayout(topFrame,1,2);
topLayout->setSpacing(2);
@@ -449,3 +455,3 @@ void KOPrefsDialog::setupTimeTab()
- QGroupBox *workingHoursGroup = new QGroupBox(1,Horizontal,
+ Q3GroupBox *workingHoursGroup = new Q3GroupBox(1,Qt::Horizontal,
i18n("Working Hours"),
@@ -455,3 +461,3 @@ void KOPrefsDialog::setupTimeTab()
workingHoursGroup->layout()->setMargin( 4 );
- QHBox *workStartBox = new QHBox(workingHoursGroup);
+ Q3HBox *workStartBox = new Q3HBox(workingHoursGroup);
// workStartBox->setMargin( 0 );
@@ -460,3 +466,3 @@ void KOPrefsDialog::setupTimeTab()
- QHBox *workEndBox = new QHBox(workingHoursGroup);
+ Q3HBox *workEndBox = new Q3HBox(workingHoursGroup);
//workEndBox->setMargin( 0 );
@@ -464,3 +470,3 @@ void KOPrefsDialog::setupTimeTab()
&(KOPrefs::instance()->mWorkingHoursEnd),workEndBox);
- QVBox *excludeBox = new QVBox(workingHoursGroup);
+ Q3VBox *excludeBox = new Q3VBox(workingHoursGroup);
//excludeBox->setMargin( 0 );
@@ -484,6 +490,6 @@ void KOPrefsDialog::setupViewsTab()
- QFrame *topFrame = addPage(i18n("Views"),0,0);
+ Q3Frame *topFrame = addPage(i18n("Views"),0,0);
// DesktopIcon("viewmag",KIcon::SizeMedium));
- QGridLayout *topLayout = new QGridLayout(topFrame,6,1);
+ Q3GridLayout *topLayout = new Q3GridLayout(topFrame,6,1);
topLayout->setSpacing(mSpacingHint);
@@ -532,3 +538,3 @@ void KOPrefsDialog::setupViewsTab()
- topLayout = new QGridLayout(topFrame,6,1);
+ topLayout = new Q3GridLayout(topFrame,6,1);
topLayout->setSpacing(mSpacingHint);
@@ -596,3 +602,3 @@ void KOPrefsDialog::setupViewsTab()
- topLayout = new QGridLayout(topFrame,5,1);
+ topLayout = new Q3GridLayout(topFrame,5,1);
topLayout->setSpacing(mSpacingHint);
@@ -654,3 +660,3 @@ void KOPrefsDialog::setupViewsTab()
- topLayout = new QGridLayout(topFrame,5,1);
+ topLayout = new Q3GridLayout(topFrame,5,1);
topLayout->setSpacing(mSpacingHint);
@@ -659,3 +665,3 @@ void KOPrefsDialog::setupViewsTab()
QLabel *lab;
- QHBox *habo = new QHBox( topFrame );
+ Q3HBox *habo = new Q3HBox( topFrame );
if ( QApplication::desktop()->width() <= 480 ) {
@@ -679,3 +685,3 @@ void KOPrefsDialog::setupViewsTab()
- habo = new QHBox( topFrame );
+ habo = new Q3HBox( topFrame );
if ( QApplication::desktop()->width() <= 480 ) {
@@ -732,3 +738,3 @@ void KOPrefsDialog::setupViewsTab()
topFrame = addPage(i18n("Month View") +" 2",0,0);
- topLayout = new QGridLayout(topFrame,4,1);
+ topLayout = new Q3GridLayout(topFrame,4,1);
topLayout->setSpacing(2);
@@ -766,3 +772,3 @@ void KOPrefsDialog::setupViewsTab()
- topLayout = new QGridLayout(topFrame,4,1);
+ topLayout = new Q3GridLayout(topFrame,4,1);
topLayout->setSpacing(mSpacingHint);
@@ -772,3 +778,3 @@ void KOPrefsDialog::setupViewsTab()
- QHBox* hdummy = new QHBox(topFrame);
+ Q3HBox* hdummy = new Q3HBox(topFrame);
new QLabel(i18n("Days in What's Next:"),hdummy);
@@ -778,3 +784,3 @@ void KOPrefsDialog::setupViewsTab()
- QHBox *prioBox = new QHBox(topFrame);
+ Q3HBox *prioBox = new Q3HBox(topFrame);
// intervalBox->setSpacing(mSpacingHint);
@@ -820,3 +826,3 @@ void KOPrefsDialog::setupViewsTab()
- topLayout = new QGridLayout(topFrame,4,1);
+ topLayout = new Q3GridLayout(topFrame,4,1);
topLayout->setSpacing(mSpacingHint);
@@ -857,3 +863,3 @@ dummy =
&(KOPrefs::instance()->mTodoRunColor),wid);
- QHBoxLayout *widLayout = new QHBoxLayout(wid);
+ Q3HBoxLayout *widLayout = new Q3HBoxLayout(wid);
widLayout->addWidget( todoRunColor->label() );
@@ -867,3 +873,3 @@ dummy =
&(KOPrefs::instance()->mTodoDueTodayColor),wid);
- widLayout = new QHBoxLayout(wid);
+ widLayout = new Q3HBoxLayout(wid);
widLayout->addWidget( todoDueTodayColor->label() );
@@ -875,3 +881,3 @@ dummy =
wid = new QWidget( topFrame );
- widLayout = new QHBoxLayout(wid);
+ widLayout = new Q3HBoxLayout(wid);
KPrefsDialogWidColor *todoOverdueColor =
@@ -892,3 +898,3 @@ dummy =
- topLayout = new QGridLayout(topFrame,4,1);
+ topLayout = new Q3GridLayout(topFrame,4,1);
topLayout->setSpacing(mSpacingHint);
@@ -931,3 +937,3 @@ dummy =
- topLayout = new QGridLayout(topFrame,2,1);
+ topLayout = new Q3GridLayout(topFrame,2,1);
topLayout->setSpacing(mSpacingHint);
@@ -938,5 +944,5 @@ dummy =
topLayout->addWidget(dummy->checkBox(), ii++,0);
- topFrame = new QFrame( topFrame );
+ topFrame = new Q3Frame( topFrame );
topLayout->addWidget(topFrame ,ii++,0);
- topLayout = new QGridLayout(topFrame,4,1);
+ topLayout = new Q3GridLayout(topFrame,4,1);
connect ( dummy->checkBox(), SIGNAL( toggled( bool ) ), topFrame, SLOT ( setEnabled( bool ) ) );
@@ -972,3 +978,3 @@ dummy =
- topLayout = new QGridLayout(topFrame,2,1);
+ topLayout = new Q3GridLayout(topFrame,2,1);
topLayout->setSpacing(mSpacingHint);
@@ -991,3 +997,3 @@ dummy =
#else
- lab->setAlignment( AlignLeft|BreakAnywhere|WordBreak|AlignTop);
+ lab->setAlignment( Qt::AlignLeft|Qt::TextWrapAnywhere|Qt::TextWordWrap|Qt::AlignTop);
lab->setSizePolicy( QSizePolicy( QSizePolicy::Ignored , QSizePolicy::Ignored,true) );
@@ -995,3 +1001,3 @@ dummy =
- QHBox* dummyBox = new QHBox(topFrame);
+ Q3HBox* dummyBox = new Q3HBox(topFrame);
new QLabel(i18n("Play beeps count:"),dummyBox);
@@ -1000,3 +1006,3 @@ dummy =
- dummyBox = new QHBox(topFrame);
+ dummyBox = new Q3HBox(topFrame);
new QLabel(i18n("Beeps interval in sec:"),dummyBox);
@@ -1005,3 +1011,3 @@ dummy =
- dummyBox = new QHBox(topFrame);
+ dummyBox = new Q3HBox(topFrame);
new QLabel(i18n("Default suspend time in min:"),dummyBox);
@@ -1010,3 +1016,3 @@ dummy =
- dummyBox = new QHBox(topFrame);
+ dummyBox = new Q3HBox(topFrame);
new QLabel(i18n("Auto suspend count:"),dummyBox);
@@ -1017,3 +1023,3 @@ dummy =
- QHBox* hbo = new QHBox ( topFrame );
+ Q3HBox* hbo = new Q3HBox ( topFrame );
mDefaultAlarmFile = new QLineEdit(hbo);
@@ -1057,6 +1063,6 @@ void KOPrefsDialog::setupFontsTab()
- QFrame *topFrame = addPage(i18n("Fonts"),0,0);
+ Q3Frame *topFrame = addPage(i18n("Fonts"),0,0);
// DesktopIcon("fonts",KIcon::SizeMedium));
- QGridLayout *topLayout = new QGridLayout(topFrame,7,3);
+ Q3GridLayout *topLayout = new Q3GridLayout(topFrame,7,3);
topLayout->setSpacing(1);
@@ -1127,3 +1133,3 @@ void KOPrefsDialog::setupFontsTab()
- topLayout = new QGridLayout(topFrame,7,3);
+ topLayout = new Q3GridLayout(topFrame,7,3);
topLayout->setSpacing(1);
@@ -1195,6 +1201,6 @@ void KOPrefsDialog::setupColorsTab()
{
- QFrame *topFrame = addPage(i18n("Colors"),0,0);
+ Q3Frame *topFrame = addPage(i18n("Colors"),0,0);
// DesktopIcon("colorize",KIcon::SizeMedium));
- QGridLayout *topLayout = new QGridLayout(topFrame,5,2);
+ Q3GridLayout *topLayout = new Q3GridLayout(topFrame,5,2);
// topLayout->setSpacing(mSpacingHint);
@@ -1206,5 +1212,5 @@ void KOPrefsDialog::setupColorsTab()
int ii = 1;
- QGroupBox *categoryGroup ;
+ Q3GroupBox *categoryGroup ;
- categoryGroup = new QGroupBox(1,Vertical,i18n("Categories"),
+ categoryGroup = new Q3GroupBox(1,Qt::Vertical,i18n("Categories"),
topFrame);
@@ -1252,3 +1258,3 @@ void KOPrefsDialog::setupColorsTab()
- topLayout = new QGridLayout(topFrame,5,2);
+ topLayout = new Q3GridLayout(topFrame,5,2);
// topLayout->setSpacing(mSpacingHint);
@@ -1319,3 +1325,3 @@ void KOPrefsDialog::setupPrinterTab()
- QGridLayout *topLayout = new QGridLayout(mPrinterTab,5,2);
+ Q3GridLayout *topLayout = new Q3GridLayout(mPrinterTab,5,2);
topLayout->setSpacing(mSpacingHint);
@@ -1329,6 +1335,6 @@ void KOPrefsDialog::setupGroupSchedulingTab()
#if 0
- QFrame *topFrame = addPage(i18n("Group Scheduling"),0,
+ Q3Frame *topFrame = addPage(i18n("Group Scheduling"),0,
DesktopIcon("personal",KIcon::SizeMedium));
- QGridLayout *topLayout = new QGridLayout(topFrame,6,2);
+ Q3GridLayout *topLayout = new Q3GridLayout(topFrame,6,2);
topLayout->setSpacing(mSpacingHint);
@@ -1355,3 +1361,3 @@ void KOPrefsDialog::setupGroupSchedulingTab()
topLayout->addMultiCellWidget(new QLabel(i18n("Additional email addresses:"),topFrame),2,2,0,1);
- mAMails = new QListView(topFrame);
+ mAMails = new Q3ListView(topFrame);
mAMails->addColumn(i18n("Email"),300);
@@ -1373,3 +1379,3 @@ void KOPrefsDialog::setupGroupSchedulingTab()
connect(aEmailsEdit,SIGNAL( textChanged(const QString&) ), this,SLOT(updateItem()));
- connect(mAMails,SIGNAL(selectionChanged(QListViewItem *)),SLOT(updateInput()));
+ connect(mAMails,SIGNAL(selectionChanged(Q3ListViewItem *)),SLOT(updateInput()));
#endif
@@ -1380,6 +1386,6 @@ void KOPrefsDialog::setupGroupAutomationTab()
return;
- QFrame *topFrame = addPage(i18n("Group Automation"),0,
+ Q3Frame *topFrame = addPage(i18n("Group Automation"),0,
DesktopIcon("personal",KIcon::SizeMedium));
- QGridLayout *topLayout = new QGridLayout(topFrame,5,1);
+ Q3GridLayout *topLayout = new Q3GridLayout(topFrame,5,1);
topLayout->setSpacing(mSpacingHint);
@@ -1517,3 +1523,3 @@ void KOPrefsDialog::usrWriteConfig()
}
- QDictIterator<QColor> it(mCategoryDict);
+ Q3DictIterator<QColor> it(mCategoryDict);
while (it.current()) {
diff --git a/korganizer/koprefsdialog.h b/korganizer/koprefsdialog.h
index ee7a7aa..ccc1726 100644
--- a/korganizer/koprefsdialog.h
+++ b/korganizer/koprefsdialog.h
@@ -25,6 +25,8 @@
-#include <qframe.h>
-#include <qdict.h>
+#include <q3frame.h>
+#include <q3dict.h>
#include <qcolor.h>
-#include <qlistview.h>
+#include <q3listview.h>
+//Added by qt3to4:
+#include <QLabel>
@@ -96,3 +98,3 @@ class KOPrefsDialog : public KPrefsDialog
- QFrame *mPrinterTab;
+ Q3Frame *mPrinterTab;
@@ -123,3 +125,3 @@ class KOPrefsDialog : public KPrefsDialog
KColorButton *mCategoryButton;
- QDict<QColor> mCategoryDict;
+ Q3Dict<QColor> mCategoryDict;
diff --git a/korganizer/korganizer.pro b/korganizer/korganizer.pro
index df8f8d7..0f3b328 100644
--- a/korganizer/korganizer.pro
+++ b/korganizer/korganizer.pro
@@ -1,3 +1,3 @@
TEMPLATE = app
-CONFIG = qt warn_on
+CONFIG += qt warn_on
TARGET = kopi
@@ -19,16 +19,16 @@ staticlib: {
TARGET = kopi_linux
-LIBS += ../bin/libmicrokabc_qtopia.a
-LIBS += ../bin/libmicrokabc_file.a
-LIBS += ../bin/libmicrokabc_dir.a
-LIBS += ../bin/libmicrokdepim.a
-LIBS += ../bin/libmicrokcal.a
-LIBS += ../bin/libmicrokabc.a
-LIBS += ../bin/libmicrokde.a
-LIBS += ../bin/libmicrokabc_qtopia.a
-LIBS += ../bin/libmicrokabc_file.a
-LIBS += ../bin/libmicrokabc_dir.a
-LIBS += ../bin/libmicrokdepim.a
-LIBS += ../bin/libmicrokcal.a
-LIBS += ../bin/libmicrokabc.a
-LIBS += ../bin/libmicrokde.a
+LIBS += ../bin/libxmicrokabc_qtopia.a
+LIBS += ../bin/libxmicrokabc_file.a
+LIBS += ../bin/libxmicrokabc_dir.a
+LIBS += ../bin/libxmicrokdepim.a
+LIBS += ../bin/libxmicrokcal.a
+LIBS += ../bin/libxmicrokabc.a
+LIBS += ../bin/libxmicrokde.a
+LIBS += ../bin/libxmicrokabc_qtopia.a
+LIBS += ../bin/libxmicrokabc_file.a
+LIBS += ../bin/libxmicrokabc_dir.a
+LIBS += ../bin/libxmicrokdepim.a
+LIBS += ../bin/libxmicrokcal.a
+LIBS += ../bin/libxmicrokabc.a
+LIBS += ../bin/libxmicrokde.a
LIBS += ../libical/lib/libical.a
@@ -36,6 +36,6 @@ LIBS += ../libical/lib/libicalss.a
} else {
-LIBS += ../bin/libmicrokdepim.so
-LIBS += ../bin/libmicrokcal.so
-LIBS += ../bin/libmicrokde.so
-LIBS += ../bin/libmicrokabc.so
+LIBS += ../bin/libxmicrokdepim.so
+LIBS += ../bin/libxmicrokcal.so
+LIBS += ../bin/libxmicrokde.so
+LIBS += ../bin/libxmicrokabc.so
#LIBS += -lbluetooth
@@ -51,6 +51,6 @@ RC_FILE = winicons.rc
DEFINES += _WIN32_
-LIBS += ../bin/microkdepim.lib
-LIBS += ../bin/microkcal.lib
-LIBS += ../bin/microkde.lib
-LIBS += ../bin/microkabc.lib
+LIBS += ../bin/xmicrokdepim.lib
+LIBS += ../bin/xmicrokcal.lib
+LIBS += ../bin/xmicrokde.lib
+LIBS += ../bin/xmicrokabc.lib
LIBS += ../libical/lib/ical.lib
@@ -87,3 +87,4 @@ TARGET = kopi_me
-INTERFACES = kofilterview_base.ui
+#The following line was changed from INTERFACES to FORMS3 by qt3to4
+FORMS3 = kofilterview_base.ui
#filteredit_base.ui
@@ -212,3 +213,4 @@ filteredit_base.cpp \
HEADERS += calprintbase.h calprinter.h calprintplugins.h cellitem.h
-INTERFACES += calprintdayconfig_base.ui \
+#The following line was changed from INTERFACES to FORMS3 by qt3to4
+FORMS3 += calprintdayconfig_base.ui \
calprintmonthconfig_base.ui \
@@ -218 +220,6 @@ SOURCES += calprintbase.cpp calprinter.cpp calprintplugins.cpp cellitem.cpp
+#The following line was inserted by qt3to4
+QT += xml qt3support
+#The following line was inserted by qt3to4
+CONFIG += uic3
+
diff --git a/korganizer/korganizerE.pro b/korganizer/korganizerE.pro
index 553c265..2c1cd42 100644
--- a/korganizer/korganizerE.pro
+++ b/korganizer/korganizerE.pro
@@ -13,5 +13,5 @@ DEFINES += KORG_NOLVALTERNATION
#KORG_NOKABC
-LIBS += -lmicrokdepim
-LIBS += -lmicrokcal
-LIBS += -lmicrokde
+LIBS += -lxmicrokdepim
+LIBS += -lxmicrokcal
+LIBS += -lxmicrokde
LIBS += -lmicroqtcompat
diff --git a/korganizer/kotimespanview.cpp b/korganizer/kotimespanview.cpp
index 3265a3a..a214720 100644
--- a/korganizer/kotimespanview.cpp
+++ b/korganizer/kotimespanview.cpp
@@ -1,2 +1,6 @@
#include <qlayout.h>
+//Added by qt3to4:
+#include <Q3VBoxLayout>
+#include <Q3ValueList>
+#include <Q3PtrList>
@@ -13,3 +17,3 @@ KOTimeSpanView::KOTimeSpanView(Calendar *calendar, QWidget *parent,
{
- QBoxLayout *topLayout = new QVBoxLayout( this );
+ Q3BoxLayout *topLayout = new Q3VBoxLayout( this );
@@ -36,3 +40,3 @@ void KOTimeSpanView::readSettings(KConfig *config)
- QValueList<int> sizes = config->readIntListEntry("Separator TimeSpanView");
+ Q3ValueList<int> sizes = config->readIntListEntry("Separator TimeSpanView");
if (sizes.count() == 2) {
@@ -48,3 +52,3 @@ void KOTimeSpanView::writeSettings(KConfig *config)
- QValueList<int> list = mTimeSpanView->splitterSizes();
+ Q3ValueList<int> list = mTimeSpanView->splitterSizes();
config->writeEntry("Separator TimeSpanView",list);
@@ -62,5 +66,5 @@ int KOTimeSpanView::currentDateCount()
-QPtrList<Incidence> KOTimeSpanView::selectedIncidences()
+Q3PtrList<Incidence> KOTimeSpanView::selectedIncidences()
{
- QPtrList<Incidence> selected;
+ Q3PtrList<Incidence> selected;
@@ -86,5 +90,5 @@ void KOTimeSpanView::insertItems(const QDate &start, const QDate &end)
mTimeSpanView->clear();
- mTimeSpanView->setDateRange( start, end );
+ mTimeSpanView->setDateRange( (QDateTime)start, (QDateTime)end );
- QPtrList<Event> events = calendar()->events( start, end );
+ Q3PtrList<Event> events = calendar()->events( start, end );
Event *event = events.first();
@@ -102,3 +106,3 @@ void KOTimeSpanView::insertItems(const QDate &start, const QDate &end)
-void KOTimeSpanView::showEvents(QPtrList<Event> eventList)
+void KOTimeSpanView::showEvents(Q3PtrList<Event> eventList)
{
diff --git a/korganizer/kotimespanview.h b/korganizer/kotimespanview.h
index c682ed8..c3e4b41 100644
--- a/korganizer/kotimespanview.h
+++ b/korganizer/kotimespanview.h
@@ -4,2 +4,4 @@
#include "koeventview.h"
+//Added by qt3to4:
+#include <Q3PtrList>
@@ -18,3 +20,3 @@ class KOTimeSpanView : public KOEventView
virtual int currentDateCount();
- virtual QPtrList<Incidence> selectedIncidences();
+ virtual Q3PtrList<Incidence> selectedIncidences();
DateList selectedDates()
@@ -30,3 +32,3 @@ class KOTimeSpanView : public KOEventView
virtual void showDates(const QDate &start, const QDate &end);
- virtual void showEvents(QPtrList<Event> eventList);
+ virtual void showEvents(Q3PtrList<Event> eventList);
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();
diff --git a/korganizer/kotodoview.cpp b/korganizer/kotodoview.cpp
index ba94057..2b8fbd3 100644
--- a/korganizer/kotodoview.cpp
+++ b/korganizer/kotodoview.cpp
@@ -23,6 +23,8 @@
+#include <QDesktopWidget>
+
#include <qlayout.h>
-#include <qheader.h>
+#include <q3header.h>
#include <qcursor.h>
-#include <qwhatsthis.h>
+#include <q3whatsthis.h>
#include <qdialog.h>
@@ -33,3 +35,17 @@
-#include <qvbox.h>
+#include <q3vbox.h>
+//Added by qt3to4:
+#include <QWheelEvent>
+#include <QFocusEvent>
+#include <QDragLeaveEvent>
+#include <QMouseEvent>
+#include <QDragEnterEvent>
+#include <QKeyEvent>
+#include <Q3HBoxLayout>
+#include <Q3VBoxLayout>
+#include <QDropEvent>
+#include <QDragMoveEvent>
+#include <QPaintEvent>
+#include <Q3PopupMenu>
+#include <Q3PtrList>
#include <kdebug.h>
@@ -70,3 +86,3 @@ KOStartTodoPrefs::KOStartTodoPrefs( QString sum, QWidget *parent, const char *na
setCaption( i18n("Start todo") );
- QVBoxLayout* lay = new QVBoxLayout( this );
+ Q3VBoxLayout* lay = new Q3VBoxLayout( this );
lay->setSpacing( 3 );
@@ -75,3 +91,3 @@ KOStartTodoPrefs::KOStartTodoPrefs( QString sum, QWidget *parent, const char *na
lay->addWidget( lab );
- lab->setAlignment( AlignCenter );
+ lab->setAlignment( Qt::AlignCenter );
@@ -100,3 +116,3 @@ KOStopTodoPrefs::KOStopTodoPrefs( Todo* todo, QWidget *parent, const char *name
setCaption( i18n("Stop todo") );
- QVBoxLayout* lay = new QVBoxLayout( this );
+ Q3VBoxLayout* lay = new Q3VBoxLayout( this );
lay->setSpacing( 3 );
@@ -105,3 +121,3 @@ KOStopTodoPrefs::KOStopTodoPrefs( Todo* todo, QWidget *parent, const char *name
lay->addWidget( lab );
- lab->setAlignment( AlignHCenter );
+ lab->setAlignment( Qt::AlignHCenter );
lab = new QLabel( i18n("Additional Comment:"), this );
@@ -110,6 +126,6 @@ KOStopTodoPrefs::KOStopTodoPrefs( Todo* todo, QWidget *parent, const char *name
lay->addWidget( mComment );
- QHBox * start = new QHBox ( this );
+ Q3HBox * start = new Q3HBox ( this );
lay->addWidget( start );
lab = new QLabel( i18n("Start:"), start );
- QHBox * end = new QHBox ( this );
+ Q3HBox * end = new Q3HBox ( this );
lay->addWidget( end );
@@ -175,6 +191,6 @@ void KOStopTodoPrefs::doNotSave()
-class KOTodoViewWhatsThis :public QWhatsThis
+class KOTodoViewWhatsThis :public Q3WhatsThis
{
public:
- KOTodoViewWhatsThis( QWidget *wid, KOTodoView* view ) : QWhatsThis( wid ), _wid(wid),_view (view) { };
+ KOTodoViewWhatsThis( QWidget *wid, KOTodoView* view ) : Q3WhatsThis( wid ), _wid(wid),_view (view) { };
@@ -216,3 +232,3 @@ void KOTodoListView::contentsDragEnterEvent(QDragEnterEvent *e)
if ( !ICalDrag::canDecode( e ) && !VCalDrag::canDecode( e ) &&
- !QTextDrag::canDecode( e ) ) {
+ !Q3TextDrag::canDecode( e ) ) {
e->ignore();
@@ -232,3 +248,3 @@ void KOTodoListView::contentsDragMoveEvent(QDragMoveEvent *e)
if ( !ICalDrag::canDecode( e ) && !VCalDrag::canDecode( e ) &&
- !QTextDrag::canDecode( e ) ) {
+ !Q3TextDrag::canDecode( e ) ) {
e->ignore();
@@ -257,3 +273,3 @@ void KOTodoListView::contentsDropEvent(QDropEvent *e)
if ( !ICalDrag::canDecode( e ) && !VCalDrag::canDecode( e ) &&
- !QTextDrag::canDecode( e ) ) {
+ !Q3TextDrag::canDecode( e ) ) {
e->ignore();
@@ -302,3 +318,3 @@ void KOTodoListView::contentsDropEvent(QDropEvent *e)
QString text;
- if (QTextDrag::decode(e,text)) {
+ if (Q3TextDrag::decode(e,text)) {
//QListViewItem *qlvi = itemAt( contentsToViewport(e->pos()) );
@@ -325,3 +341,3 @@ void KOTodoListView::wheelEvent (QWheelEvent *e)
{
- QListView::wheelEvent (e);
+ Q3ListView::wheelEvent (e);
}
@@ -332,3 +348,3 @@ void KOTodoListView::contentsMousePressEvent(QMouseEvent* e)
QPoint p(contentsToViewport(e->pos()));
- QListViewItem *i = itemAt(p);
+ Q3ListViewItem *i = itemAt(p);
bool rootClicked = true;
@@ -350,3 +366,3 @@ void KOTodoListView::contentsMousePressEvent(QMouseEvent* e)
mMousePressed = false;
- if (! rootClicked && !( e->button() == RightButton) ) {
+ if (! rootClicked && !( e->button() == Qt::RightButton) ) {
mPressPos = e->pos();
@@ -360,5 +376,5 @@ void KOTodoListView::contentsMousePressEvent(QMouseEvent* e)
if (!( e->button() == RightButton && rootClicked) )
- QListView::contentsMousePressEvent(e);
+ Q3ListView::contentsMousePressEvent(e);
#else
- QListView::contentsMousePressEvent(e);
+ Q3ListView::contentsMousePressEvent(e);
#endif
@@ -368,3 +384,3 @@ void KOTodoListView::paintEvent(QPaintEvent* e)
emit paintNeeded();
- QListView::paintEvent( e);
+ Q3ListView::paintEvent( e);
}
@@ -378,3 +394,3 @@ void KOTodoListView::contentsMouseMoveEvent(QMouseEvent* e)
mMousePressed = false;
- QListViewItem *item = itemAt(contentsToViewport(mPressPos));
+ Q3ListViewItem *item = itemAt(contentsToViewport(mPressPos));
if (item) {
@@ -424,3 +440,3 @@ void KOTodoListView::keyPressEvent ( QKeyEvent * e )
mFlagKeyPressed = true;
- QListViewItem* cn;
+ Q3ListViewItem* cn;
if ( (e->key() == Qt::Key_Return || e->key() == Qt::Key_Enter) && mName != "todolistsmall") {
@@ -430,3 +446,3 @@ void KOTodoListView::keyPressEvent ( QKeyEvent * e )
if ( ci ){
- if ( e->state() == ShiftButton )
+ if ( e->state() == Qt::ShiftButton )
ci->setOn( false );
@@ -451,3 +467,3 @@ void KOTodoListView::keyPressEvent ( QKeyEvent * e )
case Qt::Key_Up:
- QListView::keyPressEvent ( e );
+ Q3ListView::keyPressEvent ( e );
e->accept();
@@ -456,3 +472,3 @@ void KOTodoListView::keyPressEvent ( QKeyEvent * e )
case Qt::Key_Right:
- QListView::keyPressEvent ( e );
+ Q3ListView::keyPressEvent ( e );
e->accept();
@@ -470,3 +486,3 @@ void KOTodoListView::contentsMouseReleaseEvent(QMouseEvent *e)
{
- QListView::contentsMouseReleaseEvent(e);
+ Q3ListView::contentsMouseReleaseEvent(e);
mMousePressed = false;
@@ -480,3 +496,3 @@ void KOTodoListView::contentsMouseDoubleClickEvent(QMouseEvent *e)
- QListViewItem *item = itemAt(vp);
+ Q3ListViewItem *item = itemAt(vp);
@@ -494,3 +510,3 @@ KOQuickTodo::KOQuickTodo(QWidget *parent) :
setText(i18n("Click to add new Todo"));
- setFocusPolicy ( QWidget::ClickFocus );
+ setFocusPolicy ( Qt::ClickFocus );
}
@@ -525,3 +541,3 @@ KOTodoView::KOTodoView(Calendar *calendar,QWidget* parent,const char* name) :
mNavigator = 0;
- QBoxLayout *topLayout = new QVBoxLayout(this);
+ Q3BoxLayout *topLayout = new Q3VBoxLayout(this);
mName = QString ( name );
@@ -532,3 +548,3 @@ KOTodoView::KOTodoView(Calendar *calendar,QWidget* parent,const char* name) :
mQuickAdd = new KOQuickTodo(mQuickBar);
- QBoxLayout *quickLayout = new QHBoxLayout(mQuickBar);
+ Q3BoxLayout *quickLayout = new Q3HBoxLayout(mQuickBar);
quickLayout->addWidget( mQuickAdd );
@@ -570,15 +586,15 @@ KOTodoView::KOTodoView(Calendar *calendar,QWidget* parent,const char* name) :
- flat->setFocusPolicy( NoFocus );
- s_done->setFocusPolicy( NoFocus );
- allopen->setFocusPolicy( NoFocus );
- allclose->setFocusPolicy( NoFocus );
- s_run->setFocusPolicy( NoFocus );
- mNewSubBut->setFocusPolicy( NoFocus );
+ flat->setFocusPolicy( Qt::NoFocus );
+ s_done->setFocusPolicy( Qt::NoFocus );
+ allopen->setFocusPolicy( Qt::NoFocus );
+ allclose->setFocusPolicy( Qt::NoFocus );
+ s_run->setFocusPolicy( Qt::NoFocus );
+ mNewSubBut->setFocusPolicy( Qt::NoFocus );
- QWhatsThis::add( flat, i18n("Click this button to display all todos in a <b>flat</b> hierarchy" ) );
- QWhatsThis::add( allopen, i18n("Click this button to display all todos <b>openend</b>" ) );
- QWhatsThis::add( allclose, i18n("Click this button to display all todos <b>closed</b>" ) );
- QWhatsThis::add( s_run, i18n("Click this button to toggle show/hide <b>running</b> todos" ) );
- QWhatsThis::add( mNewSubBut, i18n("Click this button to add a new subtodo to the currently selected todo" ) );
- QWhatsThis::add( s_done, i18n("Click this button to toggle show/hide <b>completed</b> todos" ) );
+ Q3WhatsThis::add( flat, i18n("Click this button to display all todos in a <b>flat</b> hierarchy" ) );
+ Q3WhatsThis::add( allopen, i18n("Click this button to display all todos <b>openend</b>" ) );
+ Q3WhatsThis::add( allclose, i18n("Click this button to display all todos <b>closed</b>" ) );
+ Q3WhatsThis::add( s_run, i18n("Click this button to toggle show/hide <b>running</b> todos" ) );
+ Q3WhatsThis::add( mNewSubBut, i18n("Click this button to add a new subtodo to the currently selected todo" ) );
+ Q3WhatsThis::add( s_done, i18n("Click this button to toggle show/hide <b>completed</b> todos" ) );
@@ -603,15 +619,15 @@ KOTodoView::KOTodoView(Calendar *calendar,QWidget* parent,const char* name) :
mTodoListView->addColumn(i18n("Prio"));
- mTodoListView->setColumnAlignment(1,AlignHCenter);
+ mTodoListView->setColumnAlignment(1,Qt::AlignHCenter);
mTodoListView->addColumn(i18n("Complete"));
- mTodoListView->setColumnAlignment(2,AlignCenter);
+ mTodoListView->setColumnAlignment(2,Qt::AlignCenter);
mTodoListView->addColumn(i18n("Due Date"));
- mTodoListView->setColumnAlignment(3,AlignLeft);
+ mTodoListView->setColumnAlignment(3,Qt::AlignLeft);
mTodoListView->addColumn(i18n("Due Time"));
- mTodoListView->setColumnAlignment(4,AlignHCenter);
+ mTodoListView->setColumnAlignment(4,Qt::AlignHCenter);
mTodoListView->addColumn(i18n("Start Date"));
- mTodoListView->setColumnAlignment(5,AlignLeft);
+ mTodoListView->setColumnAlignment(5,Qt::AlignLeft);
mTodoListView->addColumn(i18n("Start Time"));
- mTodoListView->setColumnAlignment(6,AlignHCenter);
+ mTodoListView->setColumnAlignment(6,Qt::AlignHCenter);
@@ -625,3 +641,3 @@ KOTodoView::KOTodoView(Calendar *calendar,QWidget* parent,const char* name) :
mTodoListView->addColumn(i18n("Sort Id"));
- mTodoListView->setColumnAlignment(4,AlignHCenter);
+ mTodoListView->setColumnAlignment(4,Qt::AlignHCenter);
#endif
@@ -634,3 +650,3 @@ KOTodoView::KOTodoView(Calendar *calendar,QWidget* parent,const char* name) :
for ( iii = 0; iii< 12 ; ++iii )
- mTodoListView->setColumnWidthMode( iii, QListView::Manual );
+ mTodoListView->setColumnWidthMode( iii, Q3ListView::Manual );
@@ -639,3 +655,3 @@ KOTodoView::KOTodoView(Calendar *calendar,QWidget* parent,const char* name) :
- mPriorityPopupMenu = new QPopupMenu(this);
+ mPriorityPopupMenu = new Q3PopupMenu(this);
for (int i = 1; i <= 5; i++) {
@@ -646,3 +662,3 @@ KOTodoView::KOTodoView(Calendar *calendar,QWidget* parent,const char* name) :
- mPercentageCompletedPopupMenu = new QPopupMenu(this);
+ mPercentageCompletedPopupMenu = new Q3PopupMenu(this);
for (int i = 0; i <= 100; i+=20) {
@@ -654,3 +670,3 @@ KOTodoView::KOTodoView(Calendar *calendar,QWidget* parent,const char* name) :
- mCategoryPopupMenu = new QPopupMenu (this);
+ mCategoryPopupMenu = new Q3PopupMenu (this);
mCategoryPopupMenu->setCheckable (true);
@@ -659,3 +675,3 @@ KOTodoView::KOTodoView(Calendar *calendar,QWidget* parent,const char* name) :
- mCalPopupMenu = new QPopupMenu (this);
+ mCalPopupMenu = new Q3PopupMenu (this);
mCalPopupMenu->setCheckable (true);
@@ -667,3 +683,3 @@ KOTodoView::KOTodoView(Calendar *calendar,QWidget* parent,const char* name) :
- mItemPopupMenu = new QPopupMenu(this);
+ mItemPopupMenu = new Q3PopupMenu(this);
mItemPopupMenu->insertItem(i18n("Show"), this,
@@ -712,3 +728,3 @@ KOTodoView::KOTodoView(Calendar *calendar,QWidget* parent,const char* name) :
#endif
- mPopupMenu = new QPopupMenu(this);
+ mPopupMenu = new Q3PopupMenu(this);
mPopupMenu->insertItem(SmallIconSet("todo"), i18n("New Todo..."), this,
@@ -748,4 +764,4 @@ KOTodoView::KOTodoView(Calendar *calendar,QWidget* parent,const char* name) :
// Double clicking conflicts with opening/closing the subtree
- connect( mTodoListView, SIGNAL( doubleClicked( QListViewItem *) ),
- SLOT( editItem( QListViewItem *) ) );
+ connect( mTodoListView, SIGNAL( doubleClicked( Q3ListViewItem *) ),
+ SLOT( editItem( Q3ListViewItem *) ) );
/*
@@ -755,9 +771,9 @@ KOTodoView::KOTodoView(Calendar *calendar,QWidget* parent,const char* name) :
*/
- connect( mTodoListView, SIGNAL( contextRequest ( QListViewItem *,
+ connect( mTodoListView, SIGNAL( contextRequest ( Q3ListViewItem *,
const QPoint &,int ) ),
- SLOT( popupMenu( QListViewItem *, const QPoint & ,int) ) );
- connect( mTodoListView, SIGNAL( clicked( QListViewItem * ) ),
- SLOT( itemClicked( QListViewItem * ) ) );
- connect( mTodoListView, SIGNAL( double_Clicked( QListViewItem * ) ),
- SLOT( itemDoubleClicked( QListViewItem * ) ) );
+ SLOT( popupMenu( Q3ListViewItem *, const QPoint & ,int) ) );
+ connect( mTodoListView, SIGNAL( clicked( Q3ListViewItem * ) ),
+ SLOT( itemClicked( Q3ListViewItem * ) ) );
+ connect( mTodoListView, SIGNAL( double_Clicked( Q3ListViewItem * ) ),
+ SLOT( itemDoubleClicked( Q3ListViewItem * ) ) );
connect( mTodoListView, SIGNAL( todoDropped( Todo *, int ) ),
@@ -766,6 +782,6 @@ KOTodoView::KOTodoView(Calendar *calendar,QWidget* parent,const char* name) :
SLOT( todoModified(Todo *, int) ) );
- connect( mTodoListView, SIGNAL( expanded( QListViewItem * ) ),
- SLOT( itemStateChanged( QListViewItem * ) ) );
- connect( mTodoListView, SIGNAL( collapsed( QListViewItem * ) ),
- SLOT( itemStateChanged( QListViewItem * ) ) );
+ connect( mTodoListView, SIGNAL( expanded( Q3ListViewItem * ) ),
+ SLOT( itemStateChanged( Q3ListViewItem * ) ) );
+ connect( mTodoListView, SIGNAL( collapsed( Q3ListViewItem * ) ),
+ SLOT( itemStateChanged( Q3ListViewItem * ) ) );
connect( mTodoListView, SIGNAL( paintNeeded() ),
@@ -774,8 +790,8 @@ KOTodoView::KOTodoView(Calendar *calendar,QWidget* parent,const char* name) :
#if 0
- connect(mTodoListView,SIGNAL(selectionChanged(QListViewItem *)),
- SLOT(selectionChanged(QListViewItem *)));
- connect(mTodoListView,SIGNAL(clicked(QListViewItem *)),
- SLOT(selectionChanged(QListViewItem *)));
- connect(mTodoListView,SIGNAL(pressed(QListViewItem *)),
- SLOT(selectionChanged(QListViewItem *)));
+ connect(mTodoListView,SIGNAL(selectionChanged(Q3ListViewItem *)),
+ SLOT(selectionChanged(Q3ListViewItem *)));
+ connect(mTodoListView,SIGNAL(clicked(Q3ListViewItem *)),
+ SLOT(selectionChanged(Q3ListViewItem *)));
+ connect(mTodoListView,SIGNAL(pressed(Q3ListViewItem *)),
+ SLOT(selectionChanged(Q3ListViewItem *)));
#endif
@@ -883,3 +899,3 @@ void KOTodoView::updateView()
//mTodoListView->header()->setMaximumHeight(fm.height());
- QPtrList<Todo> todoList = calendar()->todos();
+ Q3PtrList<Todo> todoList = calendar()->todos();
@@ -1046,3 +1062,3 @@ bool KOTodoView::checkTodo( Todo * todo )
-void KOTodoView::restoreItemState( QListViewItem *item )
+void KOTodoView::restoreItemState( Q3ListViewItem *item )
{
@@ -1098,5 +1114,5 @@ void KOTodoView::updateConfig()
-QPtrList<Incidence> KOTodoView::selectedIncidences()
+Q3PtrList<Incidence> KOTodoView::selectedIncidences()
{
- QPtrList<Incidence> selected;
+ Q3PtrList<Incidence> selected;
@@ -1109,5 +1125,5 @@ QPtrList<Incidence> KOTodoView::selectedIncidences()
-QPtrList<Todo> KOTodoView::selectedTodos()
+Q3PtrList<Todo> KOTodoView::selectedTodos()
{
- QPtrList<Todo> selected;
+ Q3PtrList<Todo> selected;
@@ -1129,3 +1145,3 @@ void KOTodoView::showDates(const QDate &, const QDate &)
-void KOTodoView::showEvents(QPtrList<Event>)
+void KOTodoView::showEvents(Q3PtrList<Event>)
{
@@ -1142,3 +1158,3 @@ void KOTodoView::printPreview(CalPrinter *calPrinter, const QDate &fd,
-void KOTodoView::editItem(QListViewItem *item )
+void KOTodoView::editItem(Q3ListViewItem *item )
{
@@ -1148,3 +1164,3 @@ void KOTodoView::editItem(QListViewItem *item )
-void KOTodoView::showItem(QListViewItem *item,const QPoint &,int)
+void KOTodoView::showItem(Q3ListViewItem *item,const QPoint &,int)
{
@@ -1154,3 +1170,3 @@ void KOTodoView::showItem(QListViewItem *item,const QPoint &,int)
-void KOTodoView::popupMenu(QListViewItem *item,const QPoint &p,int column)
+void KOTodoView::popupMenu(Q3ListViewItem *item,const QPoint &p,int column)
{
@@ -1363,3 +1379,3 @@ void KOTodoView::toggleRunningItemQuick()
}
-void KOTodoView::itemDoubleClicked(QListViewItem *item)
+void KOTodoView::itemDoubleClicked(Q3ListViewItem *item)
{
@@ -1430,3 +1446,3 @@ void KOTodoView::toggleRunningItem()
-void KOTodoView::itemClicked(QListViewItem *item)
+void KOTodoView::itemClicked(Q3ListViewItem *item)
{
@@ -1443,3 +1459,3 @@ void KOTodoView::itemClicked(QListViewItem *item)
bool allowReparent = true;
- QListViewItem *par = item;
+ Q3ListViewItem *par = item;
while ( par ) {
@@ -1471,3 +1487,3 @@ void KOTodoView::setDocumentId( const QString &id )
-void KOTodoView::itemStateChanged( QListViewItem *item )
+void KOTodoView::itemStateChanged( Q3ListViewItem *item )
{
@@ -1544,3 +1560,3 @@ void KOTodoView::setAllClose()
}
-void KOTodoView::setOpen( QListViewItem* item, bool setOpenI)
+void KOTodoView::setOpen( Q3ListViewItem* item, bool setOpenI)
{
@@ -1565,3 +1581,3 @@ void KOTodoView::displayAllFlat()
isFlatDisplay = true;
- QPtrList<Todo> todoList = calendar()->todos();
+ Q3PtrList<Todo> todoList = calendar()->todos();
Todo *todo;
diff --git a/korganizer/kotodoview.h b/korganizer/kotodoview.h
index 0cbc087..a9e7f30 100644
--- a/korganizer/kotodoview.h
+++ b/korganizer/kotodoview.h
@@ -28,6 +28,6 @@
#include <qlineedit.h>
-#include <qptrlist.h>
-#include <qstrlist.h>
-#include <qlistbox.h>
-#include <qpopupmenu.h>
+#include <q3ptrlist.h>
+#include <q3strlist.h>
+#include <q3listbox.h>
+#include <q3popupmenu.h>
#include <qlabel.h>
@@ -36,3 +36,13 @@
#include <qlabel.h>
-#include <qlistview.h>
+#include <q3listview.h>
+//Added by qt3to4:
+#include <QDragMoveEvent>
+#include <QDropEvent>
+#include <QDragLeaveEvent>
+#include <QWheelEvent>
+#include <QPaintEvent>
+#include <QFocusEvent>
+#include <QMouseEvent>
+#include <QKeyEvent>
+#include <QDragEnterEvent>
#include <klistview.h>
@@ -103,3 +113,3 @@ class KOTodoListView : public KListView
void todoDropped(Todo *, int);
- void double_Clicked(QListViewItem *item);
+ void double_Clicked(Q3ListViewItem *item);
void reparentTodoSignal( Todo *,Todo * );
@@ -126,3 +136,3 @@ class KOTodoListView : public KListView
bool mMousePressed;
- QListViewItem *mOldCurrent;
+ Q3ListViewItem *mOldCurrent;
bool mFlagKeyPressed;
@@ -159,4 +169,4 @@ class KOTodoView : public KOrg::BaseView
- QPtrList<Incidence> selectedIncidences();
- QPtrList<Todo> selectedTodos();
+ Q3PtrList<Incidence> selectedIncidences();
+ Q3PtrList<Todo> selectedTodos();
@@ -186,3 +196,3 @@ class KOTodoView : public KOrg::BaseView
void showDates(const QDate &start, const QDate &end);
- void showEvents(QPtrList<Event> eventList);
+ void showEvents(Q3PtrList<Event> eventList);
@@ -191,5 +201,5 @@ class KOTodoView : public KOrg::BaseView
- void editItem(QListViewItem *item);
- void showItem(QListViewItem *item,const QPoint &,int);
- void popupMenu(QListViewItem *item,const QPoint &,int);
+ void editItem(Q3ListViewItem *item);
+ void showItem(Q3ListViewItem *item,const QPoint &,int);
+ void popupMenu(Q3ListViewItem *item,const QPoint &,int);
void newTodo();
@@ -221,6 +231,6 @@ class KOTodoView : public KOrg::BaseView
- void itemClicked(QListViewItem *);
- void itemStateChanged(QListViewItem *);
+ void itemClicked(Q3ListViewItem *);
+ void itemStateChanged(Q3ListViewItem *);
void modified(bool);
- void itemDoubleClicked(QListViewItem *item);
+ void itemDoubleClicked(Q3ListViewItem *item);
void resetFocusToList();
@@ -275,3 +285,3 @@ class KOTodoView : public KOrg::BaseView
QMap<Todo *,KOTodoViewItem *>::ConstIterator insertTodoItem(Todo *todo);
- void restoreItemState( QListViewItem * );
+ void restoreItemState( Q3ListViewItem * );
@@ -279,10 +289,10 @@ class KOTodoView : public KOrg::BaseView
bool isFlatDisplay;
- void setOpen( QListViewItem*, bool setOpen);
+ void setOpen( Q3ListViewItem*, bool setOpen);
KOTodoListView *mTodoListView;
- QPopupMenu *mItemPopupMenu;
- QPopupMenu *mPopupMenu;
- QPopupMenu *mPriorityPopupMenu;
- QPopupMenu *mPercentageCompletedPopupMenu;
- QPopupMenu *mCategoryPopupMenu;
- QPopupMenu *mCalPopupMenu;
+ Q3PopupMenu *mItemPopupMenu;
+ Q3PopupMenu *mPopupMenu;
+ Q3PopupMenu *mPriorityPopupMenu;
+ Q3PopupMenu *mPercentageCompletedPopupMenu;
+ Q3PopupMenu *mCategoryPopupMenu;
+ Q3PopupMenu *mCalPopupMenu;
diff --git a/korganizer/kotodoviewitem.cpp b/korganizer/kotodoviewitem.cpp
index 519bb16..c21816d 100644
--- a/korganizer/kotodoviewitem.cpp
+++ b/korganizer/kotodoviewitem.cpp
@@ -21,3 +21,7 @@
#include <kdebug.h>
-#include <qapp.h>
+#include <qapplication.h>
+#include <QDesktopWidget>
+//Added by qt3to4:
+#include <Q3PointArray>
+#include <QPixmap>
#include <kglobal.h>
@@ -29,4 +33,4 @@
-KOTodoViewItem::KOTodoViewItem( QListView *parent, Todo *todo, KOTodoView *kotodo)
- : QCheckListItem( parent , "", CheckBox ), mTodo( todo ), mTodoView( kotodo )
+KOTodoViewItem::KOTodoViewItem( Q3ListView *parent, Todo *todo, KOTodoView *kotodo)
+ : Q3CheckListItem( parent , "", CheckBox ), mTodo( todo ), mTodoView( kotodo )
{
@@ -36,3 +40,3 @@ KOTodoViewItem::KOTodoViewItem( QListView *parent, Todo *todo, KOTodoView *kotod
KOTodoViewItem::KOTodoViewItem( KOTodoViewItem *parent, Todo *todo, KOTodoView *kotodo )
- : QCheckListItem( parent, "", CheckBox ), mTodo( todo ), mTodoView( kotodo )
+ : Q3CheckListItem( parent, "", CheckBox ), mTodo( todo ), mTodoView( kotodo )
{
@@ -82,3 +86,3 @@ void KOTodoViewItem::paintBranches(QPainter *p,const QColorGroup & cg,int w,
{
- QListViewItem::paintBranches(p,cg,w,y,h);
+ Q3ListViewItem::paintBranches(p,cg,w,y,h);
}
@@ -318,3 +322,3 @@ void KOTodoViewItem::stateChange(bool state)
if ( state ) {
- QListViewItem * myChild = firstChild();
+ Q3ListViewItem * myChild = firstChild();
KOTodoViewItem *item;
@@ -327,3 +331,3 @@ void KOTodoViewItem::stateChange(bool state)
} else {
- QListViewItem * myChild = parent();
+ Q3ListViewItem * myChild = parent();
if ( myChild )
@@ -385,8 +389,8 @@ bool KOTodoViewItem::isAlternate()
bool previous = true;
- if (QListViewItem::parent())
+ if (Q3ListViewItem::parent())
{
- item = static_cast<KOTodoViewItem *>(QListViewItem::parent());
+ item = static_cast<KOTodoViewItem *>(Q3ListViewItem::parent());
if (item)
previous = item->m_odd;
- item = static_cast<KOTodoViewItem *>(QListViewItem::parent()->firstChild());
+ item = static_cast<KOTodoViewItem *>(Q3ListViewItem::parent()->firstChild());
}
@@ -478,3 +482,3 @@ void KOTodoViewItem::paintCell(QPainter *p, const QColorGroup &cg, int column, i
if ( mTodo->percentComplete() == 100 )
- fc = darkGreen;
+ fc = Qt::darkGreen;
p->drawRect( 2, 2, width-4, height()-4);
@@ -484,3 +488,3 @@ void KOTodoViewItem::paintCell(QPainter *p, const QColorGroup &cg, int column, i
} else {
- QCheckListItem::paintCell(p, _cg, column, width, alignment);
+ Q3CheckListItem::paintCell(p, _cg, column, width, alignment);
}
@@ -496,3 +500,3 @@ void KOTodoViewItem::paintCell(QPainter *p, const QColorGroup &cg, int column, i
- QListView *lv = listView();
+ Q3ListView *lv = listView();
if ( !lv )
@@ -501,3 +505,3 @@ void KOTodoViewItem::paintCell(QPainter *p, const QColorGroup &cg, int column, i
int r = 0;
- QCheckListItem::Type myType = QCheckListItem::CheckBox;
+ Q3CheckListItem::Type myType = Q3CheckListItem::CheckBox;
int BoxSize = 20;
@@ -524,3 +528,3 @@ void KOTodoViewItem::paintCell(QPainter *p, const QColorGroup &cg, int column, i
} else {
- ASSERT( lv ); //###
+ Q_ASSERT( lv ); //###
// QFontMetrics fm( lv->font() );
@@ -541,3 +545,3 @@ void KOTodoViewItem::paintCell(QPainter *p, const QColorGroup &cg, int column, i
if ( isOn() ) {
- QPointArray a( 7*2 );
+ Q3PointArray a( 7*2 );
int i, xx, yy;
@@ -557,3 +561,3 @@ void KOTodoViewItem::paintCell(QPainter *p, const QColorGroup &cg, int column, i
}
- p->setPen( darkGreen );
+ p->setPen( Qt::darkGreen );
p->drawLineSegments( a );
@@ -567,5 +571,5 @@ void KOTodoViewItem::paintCell(QPainter *p, const QColorGroup &cg, int column, i
p->setPen( QPen( _cg.text() ) );
- QListViewItem::paintCell( p, _cg, column, width - r, align );
+ Q3ListViewItem::paintCell( p, _cg, column, width - r, align );
if ( mTodo->cancelled () ) {
- p->setPen( black );
+ p->setPen( Qt::black );
QRect br = p->boundingRect( 1,1,1,1,0,mTodo->summary() );
diff --git a/korganizer/kotodoviewitem.h b/korganizer/kotodoviewitem.h
index bd024c8..62a635c 100644
--- a/korganizer/kotodoviewitem.h
+++ b/korganizer/kotodoviewitem.h
@@ -24,9 +24,9 @@
#include <qlineedit.h>
-#include <qptrlist.h>
-#include <qstrlist.h>
-#include <qlistbox.h>
-#include <qpopupmenu.h>
+#include <q3ptrlist.h>
+#include <q3strlist.h>
+#include <q3listbox.h>
+#include <q3popupmenu.h>
#include <qlabel.h>
#include <qmap.h>
-#include <qlistview.h>
+#include <q3listview.h>
#include <qpainter.h>
@@ -47,3 +47,3 @@ class KOTodoView;
*/
-class KOTodoViewItem : public QCheckListItem
+class KOTodoViewItem : public Q3CheckListItem
{
@@ -56,3 +56,3 @@ class KOTodoViewItem : public QCheckListItem
*/
- KOTodoViewItem(QListView *parent, Todo *todo, KOTodoView *kotodo);
+ KOTodoViewItem(Q3ListView *parent, Todo *todo, KOTodoView *kotodo);
KOTodoViewItem(KOTodoViewItem *parent, Todo *todo, KOTodoView *kotodo);
diff --git a/korganizer/koviewmanager.cpp b/korganizer/koviewmanager.cpp
index 4057ae0..07c4295 100644
--- a/korganizer/koviewmanager.cpp
+++ b/korganizer/koviewmanager.cpp
@@ -25,3 +25,5 @@
-#include <qwidgetstack.h>
+#include <q3widgetstack.h>
+//Added by qt3to4:
+#include <Q3PtrList>
@@ -459,4 +461,4 @@ void KOViewManager::showListView()
mMainView, SLOT ( beamIncidence( Incidence * ) ) );
- connect( mListView, SIGNAL( beamIncidenceList( QPtrList<Incidence> ) ),
- mMainView, SLOT ( beamIncidenceList( QPtrList<Incidence> ) ) );
+ connect( mListView, SIGNAL( beamIncidenceList( Q3PtrList<Incidence> ) ),
+ mMainView, SLOT ( beamIncidenceList( Q3PtrList<Incidence> ) ) );
}
diff --git a/korganizer/kowhatsnextview.cpp b/korganizer/kowhatsnextview.cpp
index f88403c..bfe930f 100644
--- a/korganizer/kowhatsnextview.cpp
+++ b/korganizer/kowhatsnextview.cpp
@@ -20,3 +20,3 @@
#include <qlayout.h>
-#include <qtextbrowser.h>
+#include <q3textbrowser.h>
#include <qtextcodec.h>
@@ -26,4 +26,10 @@
#include <qapplication.h>
+#include <QDesktopWidget>
#ifdef DESKTOP_VERSION
-#include <qpaintdevicemetrics.h>
+#include <q3paintdevicemetrics.h>
+//Added by qt3to4:
+#include <Q3PtrList>
+#include <QHideEvent>
+#include <Q3VBoxLayout>
+#include <QShowEvent>
#endif
@@ -44,3 +50,3 @@
#include "koeventviewer.h"
-#include <qstylesheet.h>
+#include <q3stylesheet.h>
#include "kowhatsnextview.h"
@@ -58,3 +64,3 @@ void WhatsNextTextBrowser::setSource(const QString& n)
} else {
- QTextBrowser::setSource(n);
+ Q3TextBrowser::setSource(n);
}
@@ -74,3 +80,3 @@ void WhatsNextTextBrowser::printMe()
p.begin ( &printer );
- QPaintDeviceMetrics m = QPaintDeviceMetrics ( &printer );
+ Q3PaintDeviceMetrics m = Q3PaintDeviceMetrics ( &printer );
float dx, dy;
@@ -105,7 +111,7 @@ KOWhatsNextView::KOWhatsNextView(Calendar *calendar, QWidget *parent,
connect(mView,SIGNAL(showIncidence(const QString &)),SLOT(showIncidence(const QString &)));
- QStyleSheet* stsh = mView->styleSheet();
- QStyleSheetItem * style ;
+ Q3StyleSheet* stsh = mView->styleSheet();
+ Q3StyleSheetItem * style ;
style = stsh->item ("h2" );
if ( style ) {
- style->setMargin(QStyleSheetItem::MarginAll,0);
+ style->setMargin(Q3StyleSheetItem::MarginAll,0);
}
@@ -113,3 +119,3 @@ KOWhatsNextView::KOWhatsNextView(Calendar *calendar, QWidget *parent,
if ( style ) {
- style->setMargin(QStyleSheetItem::MarginAll,0);
+ style->setMargin(Q3StyleSheetItem::MarginAll,0);
}
@@ -117,3 +123,3 @@ KOWhatsNextView::KOWhatsNextView(Calendar *calendar, QWidget *parent,
- QBoxLayout *topLayout = new QVBoxLayout(this);
+ Q3BoxLayout *topLayout = new Q3VBoxLayout(this);
// topLayout->addWidget(mDateLabel);
@@ -146,5 +152,5 @@ void KOWhatsNextView::clearList()
}
-QPtrList<Incidence> KOWhatsNextView::selectedIncidences()
+Q3PtrList<Incidence> KOWhatsNextView::selectedIncidences()
{
- QPtrList<Incidence> eventList;
+ Q3PtrList<Incidence> eventList;
@@ -221,4 +227,4 @@ void KOWhatsNextView::updateView()
mTodos.clear();
- QPtrList<Event> events;
- QPtrList<Todo> todos = calendar()->todos();
+ Q3PtrList<Event> events;
+ Q3PtrList<Todo> todos = calendar()->todos();
Todo * todo;
@@ -456,3 +462,3 @@ void KOWhatsNextView::showDates(const QDate &, const QDate &)
-void KOWhatsNextView::showEvents(QPtrList<Event>)
+void KOWhatsNextView::showEvents(Q3PtrList<Event>)
{
@@ -743,3 +749,3 @@ bool KOWhatsNextView::appendTodo(Incidence *ev, QString ind , bool isSub )
}
- QPtrList<Incidence> Relations = ev->relations();
+ Q3PtrList<Incidence> Relations = ev->relations();
Incidence *to;
diff --git a/korganizer/kowhatsnextview.h b/korganizer/kowhatsnextview.h
index 93574ef..49fc448 100644
--- a/korganizer/kowhatsnextview.h
+++ b/korganizer/kowhatsnextview.h
@@ -21,4 +21,10 @@
-#include <qtextbrowser.h>
+#include <q3textbrowser.h>
#include <qtimer.h>
+//Added by qt3to4:
+#include <QShowEvent>
+#include <QHideEvent>
+#include <QLabel>
+#include <Q3ValueList>
+#include <Q3PtrList>
@@ -26,3 +32,3 @@
-class QListView;
+class Q3ListView;
class QLabel;
@@ -33,6 +39,6 @@ class KOEventViewerDialog;
#include <qwidget.h>
-class WhatsNextTextBrowser : public QTextBrowser {
+class WhatsNextTextBrowser : public Q3TextBrowser {
Q_OBJECT
public:
- WhatsNextTextBrowser(QWidget *parent) : QTextBrowser(parent) {};
+ WhatsNextTextBrowser(QWidget *parent) : Q3TextBrowser(parent) {};
@@ -60,3 +66,3 @@ class KOWhatsNextView : public KOrg::BaseView
void setEventViewer(KOEventViewerDialog* v );
- virtual QPtrList<Incidence> selectedIncidences();
+ virtual Q3PtrList<Incidence> selectedIncidences();
void clearList();
@@ -72,3 +78,3 @@ class KOWhatsNextView : public KOrg::BaseView
virtual void showDates(const QDate &start, const QDate &end);
- virtual void showEvents(QPtrList<Event> eventList);
+ virtual void showEvents(Q3PtrList<Event> eventList);
void updateConfig();
@@ -98,3 +104,3 @@ class KOWhatsNextView : public KOrg::BaseView
- QValueList<Incidence *> mTodos;
+ Q3ValueList<Incidence *> mTodos;
};
diff --git a/korganizer/ktimeedit.cpp b/korganizer/ktimeedit.cpp
index df9b2fc..e2ae4a6 100644
--- a/korganizer/ktimeedit.cpp
+++ b/korganizer/ktimeedit.cpp
@@ -23,3 +23,3 @@
-#include <qkeycode.h>
+#include <qnamespace.h>
#include <qcombobox.h>
@@ -27,4 +27,7 @@
#include <qlineedit.h>
-#include <qlistbox.h>
+#include <q3listbox.h>
#include <qapplication.h>
+#include <QDesktopWidget>
+//Added by qt3to4:
+#include <QKeyEvent>
@@ -47,3 +50,3 @@
KOTimeEdit::KOTimeEdit(QWidget *parent, QTime qt, const char *name)
- : QComboBox(TRUE, parent, name)
+ : Q3ComboBox(TRUE, parent, name)
{
@@ -66,3 +69,3 @@ KOTimeEdit::KOTimeEdit(QWidget *parent, QTime qt, const char *name)
timeEntry = timeEntry.addSecs(60*15);
- } while (!timeEntry.isNull());
+ } while ( !( timeEntry.hour() || timeEntry.minute() ) );
// Add end of day.
@@ -71,3 +74,3 @@ KOTimeEdit::KOTimeEdit(QWidget *parent, QTime qt, const char *name)
updateText();
- setFocusPolicy(QWidget::StrongFocus);
+ setFocusPolicy(Qt::StrongFocus);
@@ -210,4 +213,4 @@ void KOTimeEdit::keyPressEvent(QKeyEvent *e)
// Tap -> Focus Next Widget
- if ( e->key() == Key_Tab ) {
- QComboBox::keyPressEvent(e);
+ if ( e->key() == Qt::Key_Tab ) {
+ Q3ComboBox::keyPressEvent(e);
return;
@@ -222,8 +225,8 @@ void KOTimeEdit::keyPressEvent(QKeyEvent *e)
switch(e->key()) {
- case Key_Escape:
+ case Qt::Key_Escape:
lineEdit()->deselect();
- case Key_Tab:
- QComboBox::keyPressEvent(e);
+ case Qt::Key_Tab:
+ Q3ComboBox::keyPressEvent(e);
break;
- case Key_Up:
+ case Qt::Key_Up:
if ( e->state () == Qt::ControlButton ) {
@@ -269,3 +272,3 @@ void KOTimeEdit::keyPressEvent(QKeyEvent *e)
break;
- case Key_Down:
+ case Qt::Key_Down:
if ( e->state () == Qt::ControlButton ) {
@@ -312,3 +315,3 @@ void KOTimeEdit::keyPressEvent(QKeyEvent *e)
// set cursor to correct place
- case Key_Left:
+ case Qt::Key_Left:
if ( cpos == 3 )
@@ -323,3 +326,3 @@ void KOTimeEdit::keyPressEvent(QKeyEvent *e)
// set cursor to correct place
- case Key_Right:
+ case Qt::Key_Right:
if ( cpos == 1 )
@@ -332,9 +335,9 @@ void KOTimeEdit::keyPressEvent(QKeyEvent *e)
// rest
- case Key_Prior:
+ case Qt::Key_Prior:
subTime(QTime(1,0,0));
break;
- case Key_Next:
+ case Qt::Key_Next:
addTime(QTime(1,0,0));
break;
- case Key_Backspace:
+ case Qt::Key_Backspace:
if ( cpos > 0) {
@@ -344,3 +347,3 @@ void KOTimeEdit::keyPressEvent(QKeyEvent *e)
cpos = 5;
- text.at( cpos-1 ) = '0';
+ text[ cpos-1 ] = '0';
lineEdit()->setText( text );
@@ -354,3 +357,3 @@ void KOTimeEdit::keyPressEvent(QKeyEvent *e)
// if cursor at string end, alltext market and keyEvent don't ArrowLeft -> deselect and cpos
- if( cpos > 4 && lineEdit()->markedText().length() == 5 && e->key() != Key_Left ) {
+ if( cpos > 4 && lineEdit()->markedText().length() == 5 && e->key() != Qt::Key_Left ) {
lineEdit()->deselect();
@@ -369,4 +372,4 @@ void KOTimeEdit::keyPressEvent(QKeyEvent *e)
switch(e->key()) {
- case Key_Delete:
- text.at( cpos ) = '0';
+ case Qt::Key_Delete:
+ text[ cpos ] = '0';
lineEdit()->setText( text );
@@ -376,6 +379,6 @@ void KOTimeEdit::keyPressEvent(QKeyEvent *e)
break;
- case Key_9:
- case Key_8:
- case Key_7:
- case Key_6:
+ case Qt::Key_9:
+ case Qt::Key_8:
+ case Qt::Key_7:
+ case Qt::Key_6:
if ( !(cpos == 1 || cpos == 4) )
@@ -383,6 +386,6 @@ void KOTimeEdit::keyPressEvent(QKeyEvent *e)
if ( cpos == 1 && text.at( 0 ) > '1')
- text.at( 0 ) = '1';
- case Key_5:
- case Key_4:
- case Key_3:
+ text[ 0 ] = '1';
+ case Qt::Key_5:
+ case Qt::Key_4:
+ case Qt::Key_3:
if ( cpos < 1 )
@@ -391,3 +394,3 @@ void KOTimeEdit::keyPressEvent(QKeyEvent *e)
return;
- case Key_2:
+ case Qt::Key_2:
if ( hour12Format && cpos == 0 )
@@ -395,12 +398,12 @@ void KOTimeEdit::keyPressEvent(QKeyEvent *e)
if ( cpos == 0 && text.at( 1 ) > '3')
- text.at( 1 ) = '3';
- case Key_1:
- case Key_0:
+ text[ 1 ] = '3';
+ case Qt::Key_1:
+ case Qt::Key_0:
if ( hour12Format ) {
- if ( e->key() == Key_0 && cpos == 1 && text.at( 0 ) == '0' )
+ if ( e->key() == Qt::Key_0 && cpos == 1 && text.at( 0 ) == '0' )
return;
- if ( e->key() == Key_0 && cpos == 0 && text.at( 1 ) == '0' )
- text.at( 1 ) = '1';
+ if ( e->key() == Qt::Key_0 && cpos == 0 && text.at( 1 ) == '0' )
+ text[ 1 ] = '1';
}
- text.at( cpos ) = QChar ( e->key() );
+ text[ cpos ] = QChar ( e->key() );
lineEdit()->setText( text );
@@ -413,3 +416,3 @@ void KOTimeEdit::keyPressEvent(QKeyEvent *e)
break;
- case Key_Home:
+ case Qt::Key_Home:
lineEdit()->setCursorPosition(0);
@@ -417,3 +420,3 @@ void KOTimeEdit::keyPressEvent(QKeyEvent *e)
break;
- case Key_End:
+ case Qt::Key_End:
lineEdit()->setCursorPosition(5);
@@ -427,4 +430,4 @@ void KOTimeEdit::keyPressEvent(QKeyEvent *e)
if ( hour12Format ) {
- if ( e->key() == Key_A ) {
- text.at( 5 ) = 'a';
+ if ( e->key() == Qt::Key_A ) {
+ text[ 5 ] = 'a';
lineEdit()->setText( text );
@@ -432,4 +435,4 @@ void KOTimeEdit::keyPressEvent(QKeyEvent *e)
- } else if ( e->key() == Key_P ) {
- text.at( 5 ) = 'p';
+ } else if ( e->key() == Qt::Key_P ) {
+ text[ 5 ] = 'p';
lineEdit()->setText( text );
diff --git a/korganizer/ktimeedit.h b/korganizer/ktimeedit.h
index b3d842d..1c7d18d 100644
--- a/korganizer/ktimeedit.h
+++ b/korganizer/ktimeedit.h
@@ -26,3 +26,3 @@
#include <qevent.h>
-#include <qkeycode.h>
+#include <qnamespace.h>
#include <qstring.h>
@@ -30,2 +30,5 @@
#include <qcombobox.h>
+#include <Q3ComboBox>
+//Added by qt3to4:
+#include <QKeyEvent>
@@ -40,3 +43,3 @@
*/
-class KOTimeEdit : public QComboBox
+class KOTimeEdit : public Q3ComboBox
{
diff --git a/korganizer/lineview.cpp b/korganizer/lineview.cpp
index e72e41c..012455e 100644
--- a/korganizer/lineview.cpp
+++ b/korganizer/lineview.cpp
@@ -9,3 +9,3 @@
LineView::LineView( QWidget *parent, const char *name ) :
- QScrollView( parent, name )
+ Q3ScrollView( parent, name )
{
diff --git a/korganizer/lineview.h b/korganizer/lineview.h
index aa34dbc..52ae9cf 100644
--- a/korganizer/lineview.h
+++ b/korganizer/lineview.h
@@ -3,6 +3,6 @@
-#include <qscrollview.h>
-#include <qptrlist.h>
+#include <q3scrollview.h>
+#include <q3ptrlist.h>
-class LineView : public QScrollView
+class LineView : public Q3ScrollView
{
@@ -30,3 +30,3 @@ class LineView : public QScrollView
- QPtrList<Line> mLines;
+ Q3PtrList<Line> mLines;
int mPixelWidth;
diff --git a/korganizer/main.cpp b/korganizer/main.cpp
index 4a0e24f..211fde6 100644
--- a/korganizer/main.cpp
+++ b/korganizer/main.cpp
@@ -6,2 +6,4 @@
#include <qpe/global.h>
+//Added by qt3to4:
+#include <Q3CString>
#include <stdlib.h>
@@ -11,4 +13,2 @@
#include <qwindowsstyle.h>
-#include <qplatinumstyle.h>
-#include <qsgistyle.h>
#include <stdlib.h>
@@ -28,2 +28,3 @@ int main( int argc, char **argv )
{
+ if(!getenv("QPEDIR")) putenv("QPEDIR=/usr/lib/kdepimpi");
#ifndef DESKTOP_VERSION
@@ -33,3 +34,2 @@ int main( int argc, char **argv )
QApplication a( argc, argv );
- QApplication::setStyle( new QPlatinumStyle ());
#ifdef _WIN32_
@@ -91,3 +91,3 @@ int main( int argc, char **argv )
- QObject::connect( &a, SIGNAL (appMessage ( const QCString &, const QByteArray & )),&m, SLOT(receiveStart( const QCString&, const QByteArray& )));
+ QObject::connect( &a, SIGNAL (appMessage ( const Q3CString &, const QByteArray & )),&m, SLOT(receiveStart( const Q3CString&, const QByteArray& )));
a.showMainWidget(&m );
@@ -100,3 +100,3 @@ int main( int argc, char **argv )
if ( argc > 1 ) {
- QCString command = argv[1];
+ Q3CString command = argv[1];
if ( argc > 2 )
diff --git a/korganizer/mainwindow.cpp b/korganizer/mainwindow.cpp
index 69ccde1..2004939 100644
--- a/korganizer/mainwindow.cpp
+++ b/korganizer/mainwindow.cpp
@@ -3,5 +3,6 @@
#include <qaction.h>
-#include <qpopupmenu.h>
+#include <Q3Action>
+#include <q3popupmenu.h>
#include <qpainter.h>
-#include <qwhatsthis.h>
+#include <q3whatsthis.h>
#include <qpushbutton.h>
@@ -12,3 +13,3 @@
#include <qdir.h>
-#include <qapp.h>
+#include <qapplication.h>
#include <qfileinfo.h>
@@ -18,5 +19,5 @@
#include <qmap.h>
-#include <qwmatrix.h>
-#include <qtextbrowser.h>
-#include <qtextstream.h>
+#include <qmatrix.h>
+#include <q3textbrowser.h>
+#include <q3textstream.h>
#ifndef DESKTOP_VERSION
@@ -30,4 +31,13 @@
#else
-#include <qtoolbar.h>
+#include <q3toolbar.h>
#include <qapplication.h>
+//Added by qt3to4:
+#include <QResizeEvent>
+#include <QPixmap>
+#include <QCloseEvent>
+#include <QKeyEvent>
+#include <Q3VBoxLayout>
+#include <QHideEvent>
+#include <Q3CString>
+#include <Q3PtrList>
//#include <resource.h>
@@ -82,3 +92,3 @@ class KOex2phonePrefs : public QDialog
setCaption( i18n("Export to phone options") );
- QVBoxLayout* lay = new QVBoxLayout( this );
+ Q3VBoxLayout* lay = new Q3VBoxLayout( this );
lay->setSpacing( 3 );
@@ -87,5 +97,5 @@ class KOex2phonePrefs : public QDialog
lay->addWidget(lab = new QLabel( i18n("Please read Help-Sync Howto\nto know what settings to use."), this ) );
- lab->setAlignment (AlignHCenter );
- QHBox* temphb;
- temphb = new QHBox( this );
+ lab->setAlignment (Qt::AlignHCenter );
+ Q3HBox* temphb;
+ temphb = new Q3HBox( this );
new QLabel( i18n("I/O device: "), temphb );
@@ -93,3 +103,3 @@ class KOex2phonePrefs : public QDialog
lay->addWidget( temphb );
- temphb = new QHBox( this );
+ temphb = new Q3HBox( this );
new QLabel( i18n("Connection: "), temphb );
@@ -97,3 +107,3 @@ class KOex2phonePrefs : public QDialog
lay->addWidget( temphb );
- temphb = new QHBox( this );
+ temphb = new Q3HBox( this );
new QLabel( i18n("Model(opt.): "), temphb );
@@ -104,3 +114,3 @@ class KOex2phonePrefs : public QDialog
lay->addWidget( mWriteBackFuture );
- temphb = new QHBox( this );
+ temphb = new Q3HBox( this );
new QLabel( i18n("Max. weeks in future: ") , temphb );
@@ -110,3 +120,3 @@ class KOex2phonePrefs : public QDialog
lay->addWidget(lab = new QLabel( i18n("NOTE: This will remove all old\ntodo/calendar data on phone!"), this ) );
- lab->setAlignment (AlignHCenter );
+ lab->setAlignment (Qt::AlignHCenter );
QPushButton * ok = new QPushButton( i18n("Export to mobile phone!"), this );
@@ -136,3 +146,3 @@ int globalFlagBlockStartup;
MainWindow::MainWindow( QWidget *parent, const char *name ) :
- QMainWindow( parent, name )
+ Q3MainWindow( parent, name )
{
@@ -187,8 +197,8 @@ MainWindow::MainWindow( QWidget *parent, const char *name ) :
p->mHourSize = 22;
- QMainWindow::ToolBarDock tbd;
+ Qt::ToolBarDock tbd;
if ( p->mToolBarHor ) {
if ( p->mToolBarUp )
- tbd = Bottom;
+ tbd = Qt::Bottom;
else
- tbd = Top;
+ tbd = Qt::Top;
}
@@ -196,5 +206,5 @@ MainWindow::MainWindow( QWidget *parent, const char *name ) :
if ( p->mToolBarUp )
- tbd = Right;
+ tbd = Qt::Right;
else
- tbd = Left;
+ tbd = Qt::Left;
}
@@ -215,5 +225,5 @@ MainWindow::MainWindow( QWidget *parent, const char *name ) :
if ( p->mToolBarUpF )
- tbd = Bottom;
+ tbd = Qt::Bottom;
else
- tbd = Top;
+ tbd = Qt::Top;
}
@@ -221,5 +231,5 @@ MainWindow::MainWindow( QWidget *parent, const char *name ) :
if ( p->mToolBarUpF )
- tbd = Right;
+ tbd = Qt::Right;
else
- tbd = Left;
+ tbd = Qt::Left;
}
@@ -232,3 +242,3 @@ MainWindow::MainWindow( QWidget *parent, const char *name ) :
#endif
- filterPopupMenu = new QPopupMenu( this );
+ filterPopupMenu = new Q3PopupMenu( this );
filterMenubar->insertItem( i18n("No Filter"), filterPopupMenu,0 );
@@ -261,5 +271,5 @@ MainWindow::MainWindow( QWidget *parent, const char *name ) :
if ( p->mToolBarUpV )
- tbd = Bottom;
+ tbd = Qt::Bottom;
else
- tbd = Top;
+ tbd = Qt::Top;
}
@@ -267,5 +277,5 @@ MainWindow::MainWindow( QWidget *parent, const char *name ) :
if ( p->mToolBarUpV )
- tbd = Right;
+ tbd = Qt::Right;
else
- tbd = Left;
+ tbd = Qt::Left;
}
@@ -275,5 +285,5 @@ MainWindow::MainWindow( QWidget *parent, const char *name ) :
if ( p->mToolBarUpN )
- tbd = Bottom;
+ tbd = Qt::Bottom;
else
- tbd = Top;
+ tbd = Qt::Top;
}
@@ -281,5 +291,5 @@ MainWindow::MainWindow( QWidget *parent, const char *name ) :
if ( p->mToolBarUpN )
- tbd = Right;
+ tbd = Qt::Right;
else
- tbd = Left;
+ tbd = Qt::Left;
}
@@ -442,5 +452,5 @@ void MainWindow::loadDataAfterStart()
#ifndef DESKTOP_VERSION
- connect(qApp, SIGNAL (appMessage ( const QCString &, const QByteArray & )), ExternalAppHandler::instance(), SLOT (appMessage ( const QCString &, const QByteArray & )));
- connect( qApp, SIGNAL (appMessage ( const QCString &, const QByteArray & )), this, SLOT(recieve( const QCString&, const QByteArray& )));
- disconnect( qApp, SIGNAL (appMessage ( const QCString &, const QByteArray & )), this, SLOT(receiveStart( const QCString&, const QByteArray& )));
+ connect(qApp, SIGNAL (appMessage ( const Q3CString &, const QByteArray & )), ExternalAppHandler::instance(), SLOT (appMessage ( const Q3CString &, const QByteArray & )));
+ connect( qApp, SIGNAL (appMessage ( const Q3CString &, const QByteArray & )), this, SLOT(recieve( const Q3CString&, const QByteArray& )));
+ disconnect( qApp, SIGNAL (appMessage ( const Q3CString &, const QByteArray & )), this, SLOT(receiveStart( const Q3CString&, const QByteArray& )));
if ( !mCStringMess.isEmpty() )
@@ -511,3 +521,3 @@ void MainWindow::toggleBeamReceive()
infrared = new QCopChannel("QPE/Application/datebook",this, "channel" ) ;
- QObject::connect( infrared, SIGNAL (received ( const QCString &, const QByteArray & )),this, SLOT(recieve( const QCString&, const QByteArray& )));
+ QObject::connect( infrared, SIGNAL (received ( const Q3CString &, const QByteArray & )),this, SLOT(recieve( const Q3CString&, const QByteArray& )));
#endif
@@ -602,3 +612,3 @@ void MainWindow::closeEvent( QCloseEvent* ce )
}
-void MainWindow::receiveStart( const QCString& cmsg, const QByteArray& data )
+void MainWindow::receiveStart( const Q3CString& cmsg, const QByteArray& data )
{
@@ -608,5 +618,5 @@ void MainWindow::receiveStart( const QCString& cmsg, const QByteArray& data )
}
-void MainWindow::recieve( const QCString& cmsg, const QByteArray& data )
+void MainWindow::recieve( const Q3CString& cmsg, const QByteArray& data )
{
- QDataStream stream( data, IO_ReadOnly );
+ QDataStream stream( const_cast<QByteArray*>(&data), QIODevice::ReadOnly );
// QMessageBox::about( this, "About KOrganizer/Pi", "*" +msg +"*" );
@@ -617,3 +627,3 @@ void MainWindow::recieve( const QCString& cmsg, const QByteArray& data )
if ( cmsg == "setDocument(QString)" ) {
- QDataStream stream( data, IO_ReadOnly );
+ QDataStream stream( const_cast<QByteArray*>(&data), QIODevice::ReadOnly );
QString fileName;
@@ -746,17 +756,17 @@ void MainWindow::initActions()
- QPopupMenu *viewMenu = new QPopupMenu( this );
- QPopupMenu *actionMenu = new QPopupMenu( this );
- mCurrentItemMenu = new QPopupMenu ( this );
- QPopupMenu *nextConflictMenu = new QPopupMenu ( this );
- QPopupMenu *importMenu = new QPopupMenu( this );
- QPopupMenu *importMenu_X = new QPopupMenu( this );
- QPopupMenu *exportMenu_X = new QPopupMenu( this );
- QPopupMenu *beamMenu_X = new QPopupMenu( this );
- selectFilterMenu = new QPopupMenu( this );
+ Q3PopupMenu *viewMenu = new Q3PopupMenu( this );
+ Q3PopupMenu *actionMenu = new Q3PopupMenu( this );
+ mCurrentItemMenu = new Q3PopupMenu ( this );
+ Q3PopupMenu *nextConflictMenu = new Q3PopupMenu ( this );
+ Q3PopupMenu *importMenu = new Q3PopupMenu( this );
+ Q3PopupMenu *importMenu_X = new Q3PopupMenu( this );
+ Q3PopupMenu *exportMenu_X = new Q3PopupMenu( this );
+ Q3PopupMenu *beamMenu_X = new Q3PopupMenu( this );
+ selectFilterMenu = new Q3PopupMenu( this );
selectFilterMenu->setCheckable( true );
- syncMenu = new QPopupMenu( this );
- configureAgendaMenu = new QPopupMenu( this );
- configureToolBarMenu = new QPopupMenu( this );
- QPopupMenu *helpMenu = new QPopupMenu( this );
- QIconSet icon;
+ syncMenu = new Q3PopupMenu( this );
+ configureAgendaMenu = new Q3PopupMenu( this );
+ configureToolBarMenu = new Q3PopupMenu( this );
+ Q3PopupMenu *helpMenu = new Q3PopupMenu( this );
+ QIcon icon;
int pixWid = 22, pixHei = 22;
@@ -793,3 +803,3 @@ void MainWindow::initActions()
menuBar1 = new KMenuBar( iconToolBar );
- QPopupMenu *menuBar = new QPopupMenu( this );
+ Q3PopupMenu *menuBar = new Q3PopupMenu( this );
icon = loadPixmap( pathString + "z_menu" );
@@ -820,3 +830,3 @@ void MainWindow::initActions()
icon = mWeekPixmap;
- mWeekAction = new QAction( i18n("Select week number"),icon, i18n("Select week number"), 0, this );
+ mWeekAction = new Q3Action( i18n("Select week number"),icon, i18n("Select week number"), 0, this );
if ( p-> mShowIconWeekNum )
@@ -842,3 +852,3 @@ void MainWindow::initActions()
icon = loadPixmap( pathString + "filter" );
- actionFilterMenuTB = new QAction( i18n("Filter selector"), icon, i18n("Filter selector"), 0, this );
+ actionFilterMenuTB = new Q3Action( i18n("Filter selector"), icon, i18n("Filter selector"), 0, this );
connect( actionFilterMenuTB, SIGNAL( activated() ),
@@ -846,3 +856,3 @@ void MainWindow::initActions()
actionFilterMenuTB->addTo( iconToolBar );
- selectFilterMenuTB = new QPopupMenu( this );
+ selectFilterMenuTB = new Q3PopupMenu( this );
selectFilterMenuTB->setCheckable( true );
@@ -853,3 +863,3 @@ void MainWindow::initActions()
// ******************
- QAction *action;
+ Q3Action *action;
// QPopupMenu *configureMenu= new QPopupMenu( menuBar );
@@ -868,3 +878,3 @@ void MainWindow::initActions()
icon = loadPixmap( pathString + "today" );
- QAction* today_action = new QAction( i18n("Go to Today"), icon, i18n("Go to Today"), 0, this );
+ Q3Action* today_action = new Q3Action( i18n("Go to Today"), icon, i18n("Go to Today"), 0, this );
today_action->addTo( actionMenu );
@@ -874,3 +884,3 @@ void MainWindow::initActions()
icon = loadPixmap( pathString + "picker" );
- QAction* dPickerAction = new QAction( i18n("Select Date..."), icon, i18n("Select Date..."), 0, this );
+ Q3Action* dPickerAction = new Q3Action( i18n("Select Date..."), icon, i18n("Select Date..."), 0, this );
dPickerAction->addTo( actionMenu );
@@ -880,3 +890,3 @@ void MainWindow::initActions()
icon = loadPixmap( pathString + "search" );
- QAction* search_action = new QAction( i18n("Search"), icon, i18n("Search..."), 0, this );
+ Q3Action* search_action = new Q3Action( i18n("Search"), icon, i18n("Search..."), 0, this );
search_action->addTo( actionMenu );
@@ -886,3 +896,3 @@ void MainWindow::initActions()
- action = new QAction( "Undo Delete", i18n("All events"), 0, this );
+ action = new Q3Action( "Undo Delete", i18n("All events"), 0, this );
action->addTo( nextConflictMenu );
@@ -891,3 +901,3 @@ void MainWindow::initActions()
- action = new QAction( "Undo Delete", i18n("Allday events"), 0, this );
+ action = new Q3Action( "Undo Delete", i18n("Allday events"), 0, this );
action->addTo( nextConflictMenu );
@@ -896,3 +906,3 @@ void MainWindow::initActions()
- action = new QAction( "Undo Delete", i18n("Events with time"), 0, this );
+ action = new Q3Action( "Undo Delete", i18n("Events with time"), 0, this );
action->addTo( nextConflictMenu );
@@ -904,3 +914,3 @@ void MainWindow::initActions()
icon = loadPixmap( pathString + "newevent" );
- QAction* ne_action = new QAction( i18n("New Event..."), icon, i18n("New Event..."), 0, this );
+ Q3Action* ne_action = new Q3Action( i18n("New Event..."), icon, i18n("New Event..."), 0, this );
ne_action->addTo( mCurrentItemMenu );
@@ -909,3 +919,3 @@ void MainWindow::initActions()
icon = loadPixmap( pathString + "newtodo" );
- QAction* nt_action = new QAction( i18n("New Todo..."), icon, i18n("New Todo..."), 0, this );
+ Q3Action* nt_action = new Q3Action( i18n("New Todo..."), icon, i18n("New Todo..."), 0, this );
nt_action->addTo( mCurrentItemMenu );
@@ -913,3 +923,3 @@ void MainWindow::initActions()
mView, SLOT( newTodo() ) );
- mNewSubTodoAction = new QAction( "new_subtodo", i18n("New Sub-Todo..."), 0,
+ mNewSubTodoAction = new Q3Action( "new_subtodo", i18n("New Sub-Todo..."), 0,
this );
@@ -932,3 +942,3 @@ void MainWindow::initActions()
//actionMenu->insertItem ( i18n("Selected Item"), mCurrentItemMenu);
- mShowAction = new QAction( "show_incidence", i18n("Show"), 0, this );
+ mShowAction = new Q3Action( "show_incidence", i18n("Show"), 0, this );
mShowAction->addTo( mCurrentItemMenu );
@@ -937,3 +947,3 @@ void MainWindow::initActions()
- mEditAction = new QAction( "edit_incidence", i18n("Edit..."), 0, this );
+ mEditAction = new Q3Action( "edit_incidence", i18n("Edit..."), 0, this );
mEditAction->addTo( mCurrentItemMenu );
@@ -942,3 +952,3 @@ void MainWindow::initActions()
- mDeleteAction = new QAction( "delete_incidence", i18n("Delete..."), 0, this );
+ mDeleteAction = new Q3Action( "delete_incidence", i18n("Delete..."), 0, this );
mDeleteAction->addTo( mCurrentItemMenu );
@@ -948,3 +958,3 @@ void MainWindow::initActions()
- mCloneAction = new QAction( "clone_incidence", i18n("Clone..."), 0, this );
+ mCloneAction = new Q3Action( "clone_incidence", i18n("Clone..."), 0, this );
mCloneAction->addTo( mCurrentItemMenu );
@@ -952,3 +962,3 @@ void MainWindow::initActions()
mView, SLOT( cloneIncidence() ) );
- mMoveAction = new QAction( "Move_incidence", i18n("Move..."), 0, this );
+ mMoveAction = new Q3Action( "Move_incidence", i18n("Move..."), 0, this );
mMoveAction->addTo( mCurrentItemMenu );
@@ -957,3 +967,3 @@ void MainWindow::initActions()
#ifndef DESKTOP_VERSION
- mBeamAction = new QAction( "Beam_incidence", i18n("Beam..."), 0, this );
+ mBeamAction = new Q3Action( "Beam_incidence", i18n("Beam..."), 0, this );
mBeamAction->addTo(mCurrentItemMenu );
@@ -962,3 +972,3 @@ void MainWindow::initActions()
#endif
- mCancelAction = new QAction( "Cancel_incidence", i18n("Toggle Cancel"), 0, this );
+ mCancelAction = new Q3Action( "Cancel_incidence", i18n("Toggle Cancel"), 0, this );
mCancelAction->addTo( mCurrentItemMenu );
@@ -969,3 +979,3 @@ void MainWindow::initActions()
mCurrentItemMenu->insertSeparator();
- action = new QAction( i18n("Undo Delete"), i18n("Undo Delete..."), 0, this );
+ action = new Q3Action( i18n("Undo Delete"), i18n("Undo Delete..."), 0, this );
action->addTo( mCurrentItemMenu );
@@ -981,3 +991,3 @@ void MainWindow::initActions()
configureToolBarMenu->insertItem(icon, i18n("Toggle Fullscreen"), 28 );
- QAction* FSaction = new QAction( i18n("Toggle Fullscreen"), icon, i18n("Toggle Fullscreen"), 0, this );
+ Q3Action* FSaction = new Q3Action( i18n("Toggle Fullscreen"), icon, i18n("Toggle Fullscreen"), 0, this );
FSaction->addTo( viewMenu );
@@ -989,3 +999,3 @@ void MainWindow::initActions()
icon = loadPixmap( pathString + "configure" );
- action = new QAction( i18n("Toggle Resource View"), icon, i18n("Toggle Resource View"), 0, this );
+ action = new Q3Action( i18n("Toggle Resource View"), icon, i18n("Toggle Resource View"), 0, this );
action->addTo( viewMenu );
@@ -996,3 +1006,3 @@ void MainWindow::initActions()
configureToolBarMenu->insertItem(icon, i18n("Toggle DateNavigator"), 22 );
- action = new QAction( i18n("Toggle DateNavigator"), icon, i18n("Toggle DateNavigator"), 0, this );
+ action = new Q3Action( i18n("Toggle DateNavigator"), icon, i18n("Toggle DateNavigator"), 0, this );
action->addTo( viewMenu );
@@ -1003,3 +1013,3 @@ void MainWindow::initActions()
configureToolBarMenu->insertItem(icon, i18n("Toggle Allday"), 24 );
- action = new QAction( i18n("Toggle Allday"), icon,i18n("Toggle Allday"), 0, this );
+ action = new Q3Action( i18n("Toggle Allday"), icon,i18n("Toggle Allday"), 0, this );
action->addTo( viewMenu );
@@ -1033,3 +1043,3 @@ void MainWindow::initActions()
configureToolBarMenu->insertItem(icon, i18n("What's Next"), 110 );
- QAction* whatsnext_action = new QAction( i18n("What's Next"), icon, i18n("What's Next"), 0, this );
+ Q3Action* whatsnext_action = new Q3Action( i18n("What's Next"), icon, i18n("What's Next"), 0, this );
whatsnext_action->addTo( viewMenu );
@@ -1040,3 +1050,3 @@ void MainWindow::initActions()
configureToolBarMenu->insertItem(icon, i18n("Next days"), 100 );
- QAction* xdays_action = new QAction( i18n("Next days"), icon, i18n("Next days"), 0, this );
+ Q3Action* xdays_action = new Q3Action( i18n("Next days"), icon, i18n("Next days"), 0, this );
xdays_action->addTo( viewMenu );
@@ -1048,3 +1058,3 @@ void MainWindow::initActions()
configureToolBarMenu->insertItem(icon, i18n("Journal"), 90 );
- QAction* viewjournal_action = new QAction( i18n("Journal"), icon, i18n("Journal"), 0, this );
+ Q3Action* viewjournal_action = new Q3Action( i18n("Journal"), icon, i18n("Journal"), 0, this );
viewjournal_action->addTo( viewMenu );
@@ -1056,3 +1066,3 @@ void MainWindow::initActions()
configureToolBarMenu->insertItem(icon, i18n("Day View"), 40 );
- QAction* day1_action = new QAction( i18n("Day View"), icon, i18n("Day View"), 0, this );
+ Q3Action* day1_action = new Q3Action( i18n("Day View"), icon, i18n("Day View"), 0, this );
day1_action->addTo( viewMenu );
@@ -1064,3 +1074,3 @@ void MainWindow::initActions()
configureToolBarMenu->insertItem(icon, i18n("Work Week"), 50 );
- QAction* day5_action = new QAction( i18n("Work Week"), icon, i18n("Work Week"), 0, this );
+ Q3Action* day5_action = new Q3Action( i18n("Work Week"), icon, i18n("Work Week"), 0, this );
day5_action->addTo( viewMenu );
@@ -1071,3 +1081,3 @@ void MainWindow::initActions()
configureToolBarMenu->insertItem(icon, i18n("Week"), 60 );
- QAction* day7_action = new QAction( i18n("Week"), icon, i18n("Week"), 0, this );
+ Q3Action* day7_action = new Q3Action( i18n("Week"), icon, i18n("Week"), 0, this );
day7_action->addTo( viewMenu );
@@ -1078,3 +1088,3 @@ void MainWindow::initActions()
configureToolBarMenu->insertItem(icon, i18n("List week view"), 75 );
- QAction* day6_action = new QAction( i18n("List week"), icon, i18n("List week"), 0, this );
+ Q3Action* day6_action = new Q3Action( i18n("List week"), icon, i18n("List week"), 0, this );
day6_action->addTo( viewMenu );
@@ -1085,3 +1095,3 @@ void MainWindow::initActions()
configureToolBarMenu->insertItem(icon, i18n("Month"), 70 );
- QAction* month_action = new QAction( i18n("Month"), icon, i18n("Month"), 0, this );
+ Q3Action* month_action = new Q3Action( i18n("Month"), icon, i18n("Month"), 0, this );
month_action->addTo( viewMenu );
@@ -1092,3 +1102,3 @@ void MainWindow::initActions()
configureToolBarMenu->insertItem(icon, i18n("List View"), 30 );
- QAction* showlist_action = new QAction( i18n("List View"), icon, i18n("List View"), 0, this );
+ Q3Action* showlist_action = new Q3Action( i18n("List View"), icon, i18n("List View"), 0, this );
showlist_action->addTo( viewMenu );
@@ -1099,3 +1109,3 @@ void MainWindow::initActions()
configureToolBarMenu->insertItem(icon, i18n("Todo View"), 80 );
- QAction* todoview_action = new QAction( i18n("Todo View"), icon, i18n("Todo View"), 0, this );
+ Q3Action* todoview_action = new Q3Action( i18n("Todo View"), icon, i18n("Todo View"), 0, this );
todoview_action->addTo( viewMenu );
@@ -1107,3 +1117,3 @@ void MainWindow::initActions()
#if 0
- action = new QAction( "view_timespan", "Time Span", 0, this );
+ action = new Q3Action( "view_timespan", "Time Span", 0, this );
action->addTo( viewMenu );
@@ -1115,3 +1125,3 @@ void MainWindow::initActions()
- action = new QAction( "purge_completed", i18n("Purge Completed..."), 0,
+ action = new Q3Action( "purge_completed", i18n("Purge Completed..."), 0,
this );
@@ -1127,3 +1137,3 @@ void MainWindow::initActions()
actionMenu->insertSeparator();
- action = new QAction( "manage cat", i18n("Edit category list..."), 0,
+ action = new Q3Action( "manage cat", i18n("Edit category list..."), 0,
this );
@@ -1132,3 +1142,3 @@ void MainWindow::initActions()
- action = new QAction( "manage cat", i18n("Manage new categories..."), 0,
+ action = new Q3Action( "manage cat", i18n("Manage new categories..."), 0,
this );
@@ -1140,3 +1150,3 @@ void MainWindow::initActions()
icon = loadPixmap( pathString + "configure" );
- action = new QAction( i18n("Configure"),icon, i18n("Configure KO/Pi..."), 0, this );
+ action = new Q3Action( i18n("Configure"),icon, i18n("Configure KO/Pi..."), 0, this );
action->addTo( actionMenu );
@@ -1144,3 +1154,3 @@ void MainWindow::initActions()
mView, SLOT( edit_options() ) );
- action = new QAction( i18n("Configure"),icon, i18n("Configure Calendar Files..."), 0, this );
+ action = new Q3Action( i18n("Configure"),icon, i18n("Configure Calendar Files..."), 0, this );
action->addTo( actionMenu );
@@ -1148,3 +1158,3 @@ void MainWindow::initActions()
this, SLOT( calHint() ) );
- action = new QAction( i18n("Configure"),icon, i18n("Global Settings..."), 0, this );
+ action = new Q3Action( i18n("Configure"),icon, i18n("Global Settings..."), 0, this );
action->addTo( actionMenu );
@@ -1157,3 +1167,3 @@ void MainWindow::initActions()
// actionMenu->insertSeparator();
- action = new QAction( "import_qtopia", i18n("Import (*.ics/*.vcs) file"), 0,
+ action = new Q3Action( "import_qtopia", i18n("Import (*.ics/*.vcs) file"), 0,
this );
@@ -1161,3 +1171,3 @@ void MainWindow::initActions()
connect( action, SIGNAL( activated() ), SLOT( importIcal() ) );
- action = new QAction( "import_quick", i18n("Import last file"), 0,
+ action = new Q3Action( "import_quick", i18n("Import last file"), 0,
this );
@@ -1166,3 +1176,3 @@ void MainWindow::initActions()
importMenu_X->insertSeparator();
- action = new QAction( "import_bday", i18n("Import Birthdays (KA/Pi)"), 0,
+ action = new Q3Action( "import_bday", i18n("Import Birthdays (KA/Pi)"), 0,
this );
@@ -1172,3 +1182,3 @@ void MainWindow::initActions()
importMenu_X->insertSeparator();
- action = new QAction( "import_qtopia", i18n("Import Opie/Qtopia Cal."), 0,
+ action = new Q3Action( "import_qtopia", i18n("Import Opie/Qtopia Cal."), 0,
this );
@@ -1179,3 +1189,3 @@ void MainWindow::initActions()
importMenu_X->insertSeparator();
- action = new QAction( "import_ol", i18n("Import from OL"), 0,
+ action = new Q3Action( "import_ol", i18n("Import from OL"), 0,
this );
@@ -1188,3 +1198,3 @@ void MainWindow::initActions()
#if 0
- action = new QAction( "load_cal", i18n("Load Calendar Backup"), 0,
+ action = new Q3Action( "load_cal", i18n("Load Calendar Backup"), 0,
this );
@@ -1193,3 +1203,3 @@ void MainWindow::initActions()
#endif
- action = new QAction( "save_cal", i18n("Save Backup..."), 0,
+ action = new Q3Action( "save_cal", i18n("Save Backup..."), 0,
this );
@@ -1200,3 +1210,3 @@ void MainWindow::initActions()
//importMenu->insertSeparator();
- action = new QAction( "export ical", i18n("Export All Data"), 0,
+ action = new Q3Action( "export ical", i18n("Export All Data"), 0,
this );
@@ -1204,3 +1214,3 @@ void MainWindow::initActions()
connect( action, SIGNAL( activated() ), SLOT( exportICalendar() ) );
- action = new QAction( "import_qtopia", i18n("Export VCalendar"), 0,
+ action = new Q3Action( "import_qtopia", i18n("Export VCalendar"), 0,
this );
@@ -1211,3 +1221,3 @@ void MainWindow::initActions()
//LR
- QPopupMenu *ex2phone = new QPopupMenu( this );
+ Q3PopupMenu *ex2phone = new Q3PopupMenu( this );
ex2phone->insertItem(i18n("Complete calendar..."), 1 );
@@ -1221,3 +1231,3 @@ void MainWindow::initActions()
//importMenu->insertSeparator();
- brAction = new QAction( "beam toggle", i18n("Beam receive enabled"), 0,
+ brAction = new Q3Action( "beam toggle", i18n("Beam receive enabled"), 0,
this );
@@ -1227,3 +1237,3 @@ void MainWindow::initActions()
- action = new QAction( "beam all", i18n("Beam complete calendar..."), 0,
+ action = new Q3Action( "beam all", i18n("Beam complete calendar..."), 0,
this );
@@ -1232,3 +1242,3 @@ void MainWindow::initActions()
- action = new QAction( "beam all", i18n("Beam filtered calendar..."), 0,
+ action = new Q3Action( "beam all", i18n("Beam filtered calendar..."), 0,
this );
@@ -1240,3 +1250,3 @@ void MainWindow::initActions()
icon = loadPixmap( pathString + "print" );
- action = new QAction( i18n("Print calendar..."),icon,i18n("Print calendar..."), 0, this );
+ action = new Q3Action( i18n("Print calendar..."),icon,i18n("Print calendar..."), 0, this );
action->addTo( beamMenu_X );
@@ -1246,3 +1256,3 @@ void MainWindow::initActions()
icon = loadPixmap( pathString + "week" );
- action = new QAction( i18n("Print agenda selection..."),icon,i18n("Print agenda selection..."), 0, this );
+ action = new Q3Action( i18n("Print agenda selection..."),icon,i18n("Print agenda selection..."), 0, this );
action->addTo( beamMenu_X );
@@ -1251,3 +1261,3 @@ void MainWindow::initActions()
icon = loadPixmap( pathString + "whatsnext" );
- action = new QAction( i18n("Print What's Next View..."),icon,i18n("Print What's Next View..."), 0, this );
+ action = new Q3Action( i18n("Print What's Next View..."),icon,i18n("Print What's Next View..."), 0, this );
action->addTo( beamMenu_X );
@@ -1258,3 +1268,3 @@ void MainWindow::initActions()
icon = loadPixmap( pathString + "list" );
- action = new QAction( i18n("Print List View..."),icon,i18n("Print List View..."), 0, this );
+ action = new Q3Action( i18n("Print List View..."),icon,i18n("Print List View..."), 0, this );
action->addTo( beamMenu_X );
@@ -1264,3 +1274,3 @@ void MainWindow::initActions()
icon = loadPixmap( pathString + "newevent" );
- action = new QAction( i18n("Print selected event / todo..."),icon,i18n("Print selected event / todo..."), 0, this );
+ action = new Q3Action( i18n("Print selected event / todo..."),icon,i18n("Print selected event / todo..."), 0, this );
action->addTo( beamMenu_X );
@@ -1273,3 +1283,3 @@ void MainWindow::initActions()
importMenu->insertSeparator();
- action = new QAction( "beam all", i18n("Save"), 0,
+ action = new Q3Action( "beam all", i18n("Save"), 0,
this );
@@ -1277,3 +1287,3 @@ void MainWindow::initActions()
connect( action, SIGNAL( activated() ), this, SLOT( save() ) );
- action = new QAction( "beam all", i18n("Exit (+save)"), 0,
+ action = new Q3Action( "beam all", i18n("Exit (+save)"), 0,
this );
@@ -1286,3 +1296,3 @@ void MainWindow::initActions()
- action = new QAction( "Whats New", i18n("What's new?"), 0,this );
+ action = new Q3Action( "Whats New", i18n("What's new?"), 0,this );
action->addTo( helpMenu );
@@ -1290,3 +1300,3 @@ void MainWindow::initActions()
SLOT( whatsNew() ) );
- action = new QAction( "featureHowto", i18n("Features + hints..."), 0,this );
+ action = new Q3Action( "featureHowto", i18n("Features + hints..."), 0,this );
action->addTo( helpMenu );
@@ -1294,3 +1304,3 @@ void MainWindow::initActions()
SLOT( features() ) );
- action = new QAction( "Keys + Colors", i18n("Keys + Colors..."), 0, this );
+ action = new Q3Action( "Keys + Colors", i18n("Keys + Colors..."), 0, this );
action->addTo( helpMenu );
@@ -1298,3 +1308,3 @@ void MainWindow::initActions()
SLOT( keyBindings() ) );
- action = new QAction( "Storage Howto", i18n("Storage HowTo..."), 0,this );
+ action = new Q3Action( "Storage Howto", i18n("Storage HowTo..."), 0,this );
action->addTo( helpMenu );
@@ -1302,3 +1312,3 @@ void MainWindow::initActions()
SLOT( storagehowto() ) );
- action = new QAction( "Timetracking Howto", i18n("Timetracking HowTo..."), 0,this );
+ action = new Q3Action( "Timetracking Howto", i18n("Timetracking HowTo..."), 0,this );
action->addTo( helpMenu );
@@ -1306,3 +1316,3 @@ void MainWindow::initActions()
SLOT( timetrackinghowto() ) );
- action = new QAction( "Sync Howto", i18n("Sync HowTo..."), 0,this );
+ action = new Q3Action( "Sync Howto", i18n("Sync HowTo..."), 0,this );
action->addTo( helpMenu );
@@ -1310,3 +1320,3 @@ void MainWindow::initActions()
SLOT( synchowto() ) );
- action = new QAction( "KDE Sync Howto", i18n("KDE Sync HowTo..."), 0,this );
+ action = new Q3Action( "KDE Sync Howto", i18n("KDE Sync HowTo..."), 0,this );
action->addTo( helpMenu );
@@ -1314,3 +1324,3 @@ void MainWindow::initActions()
SLOT( kdesynchowto() ) );
- action = new QAction( "Multi Sync Howto", i18n("Multi Sync HowTo..."), 0,this );
+ action = new Q3Action( "Multi Sync Howto", i18n("Multi Sync HowTo..."), 0,this );
action->addTo( helpMenu );
@@ -1318,3 +1328,3 @@ void MainWindow::initActions()
SLOT( multisynchowto() ) );
- action = new QAction( "Auto saving", i18n("Auto saving..."), 0, this );
+ action = new Q3Action( "Auto saving", i18n("Auto saving..."), 0, this );
action->addTo( helpMenu );
@@ -1322,3 +1332,3 @@ void MainWindow::initActions()
SLOT( aboutAutoSaving() ) );
- action = new QAction( "Problemd", i18n("Known Problems..."), 0,this );
+ action = new Q3Action( "Problemd", i18n("Known Problems..."), 0,this );
action->addTo( helpMenu );
@@ -1326,3 +1336,3 @@ void MainWindow::initActions()
SLOT( aboutKnownBugs() ) );
- action = new QAction( "Translate Howto", i18n("User translation..."), 0,this );
+ action = new Q3Action( "Translate Howto", i18n("User translation..."), 0,this );
action->addTo( helpMenu );
@@ -1330,3 +1340,3 @@ void MainWindow::initActions()
SLOT( usertrans() ) );
- action = new QAction( "Frequently asked questions", i18n("FAQ..."), 0,this );
+ action = new Q3Action( "Frequently asked questions", i18n("FAQ..."), 0,this );
action->addTo( helpMenu );
@@ -1334,3 +1344,3 @@ void MainWindow::initActions()
SLOT( faq() ) );
- action = new QAction( "licence", i18n("Licence..."), 0, this );
+ action = new Q3Action( "licence", i18n("Licence..."), 0, this );
action->addTo( helpMenu );
@@ -1338,3 +1348,3 @@ void MainWindow::initActions()
SLOT( licence() ) );
- action = new QAction( "about", i18n("About..."), 0, this );
+ action = new Q3Action( "about", i18n("About..."), 0, this );
action->addTo( helpMenu );
@@ -1358,3 +1368,3 @@ void MainWindow::initActions()
if (p-> mShowIconWhatsThis)
- QWhatsThis::whatsThisButton ( iconToolBar );
+ Q3WhatsThis::whatsThisButton ( iconToolBar );
if (p-> mShowIconNext)
@@ -1383,3 +1393,3 @@ void MainWindow::initActions()
if (p-> mShowIconBackFast) {
- action = new QAction( i18n("Prev. month"), icon, i18n("Prev. month"),0 , this );
+ action = new Q3Action( i18n("Prev. month"), icon, i18n("Prev. month"),0 , this );
connect( action, SIGNAL( activated() ),
@@ -1391,3 +1401,3 @@ void MainWindow::initActions()
if (p-> mShowIconBack) {
- action = new QAction( i18n("Go backward"), icon, i18n("Go backward"),0 , this );
+ action = new Q3Action( i18n("Go backward"), icon, i18n("Go backward"),0 , this );
connect( action, SIGNAL( activated() ),
@@ -1403,3 +1413,3 @@ void MainWindow::initActions()
if (p-> mShowIconForward) {
- action = new QAction( i18n("Go forward"), icon, i18n("Go forward"),0 , this );
+ action = new Q3Action( i18n("Go forward"), icon, i18n("Go forward"),0 , this );
connect( action, SIGNAL( activated() ),
@@ -1411,3 +1421,3 @@ void MainWindow::initActions()
if (p-> mShowIconForwardFast) {
- action = new QAction( i18n("Next month"), icon, i18n("Next month"),0 , this );
+ action = new Q3Action( i18n("Next month"), icon, i18n("Next month"),0 , this );
connect( action, SIGNAL( activated() ),
@@ -1526,3 +1536,3 @@ void MainWindow::exportToPhone( int mode )
inFuture = ex2phone.mWriteBackFutureWeeks->value();
- QPtrList<Incidence> delSel;
+ Q3PtrList<Incidence> delSel;
if ( mode == 1 )
@@ -1597,6 +1607,6 @@ void MainWindow::displayText( QString text ,QString cap )
dia.setCaption( cap );
- QVBoxLayout* lay = new QVBoxLayout( &dia );
+ Q3VBoxLayout* lay = new Q3VBoxLayout( &dia );
lay->setSpacing( 3 );
lay->setMargin( 3 );
- QTextBrowser tb ( &dia );
+ Q3TextBrowser tb ( &dia );
lay->addWidget( &tb );
@@ -1779,5 +1789,5 @@ void MainWindow::updateWeek(QDate seda)
p.setFont( mWeekFont );
- p.drawText( 0,0,mWeekPixmap.width(), mWeekPixmap.height(),AlignCenter, QString::number( weekNum) );
+ p.drawText( 0,0,mWeekPixmap.width(), mWeekPixmap.height(),Qt::AlignCenter, QString::number( weekNum) );
p.end();
- QIconSet icon3 ( mWeekPixmap );
+ QIcon icon3 ( mWeekPixmap );
mWeekAction->setIconSet ( icon3 );
@@ -1814,3 +1824,3 @@ void MainWindow::processIncidenceSelection( Incidence *incidence )
bool ok;
- QDateTime noc = incidence->getNextOccurence( mView->startDate().addDays(-1), &ok );
+ QDateTime noc = incidence->getNextOccurence( (QDateTime)mView->startDate().addDays(-1), &ok );
if ( ok ) {
@@ -1848,9 +1858,9 @@ void MainWindow::processIncidenceSelection( Incidence *incidence )
static QPixmap tP = SmallIcon( "newtodo" );
- QIconSet icon;
+ QIcon icon;
if ( incidence->typeID() == todoID )
- icon = QIconSet ( tP );
+ icon = QIcon ( tP );
else if ( incidence->typeID() == eventID )
- icon = QIconSet ( eP );
+ icon = QIcon ( eP );
else if ( incidence->typeID() == journalID )
- icon = QIconSet ( jP );
+ icon = QIcon ( jP );
mPrintSelAction->setIconSet ( icon );
@@ -2047,3 +2057,3 @@ void MainWindow::backupAllFiles()
// backup ok
- QPtrList<KopiCalendarFile> calendars = KOPrefs::instance()->mCalendars;
+ Q3PtrList<KopiCalendarFile> calendars = KOPrefs::instance()->mCalendars;
KopiCalendarFile * cal = calendars.first();
@@ -2343,3 +2353,3 @@ void MainWindow::fillFilterMenuTB()
selectFilterMenuTB->insertSeparator();
- QPtrList<CalFilter> fili = mView->filters();
+ Q3PtrList<CalFilter> fili = mView->filters();
CalFilter *curfilter = mView->filterView()->selectedFilter();
@@ -2388,3 +2398,3 @@ void MainWindow::fillFilterMenu()
selectFilterMenu->insertSeparator();
- QPtrList<CalFilter> fili = mView->filters();
+ Q3PtrList<CalFilter> fili = mView->filters();
CalFilter *curfilter = mView->filterView()->selectedFilter();
@@ -2409,3 +2419,3 @@ void MainWindow::fillFilterMenuPopup()
filterPopupMenu->insertSeparator();
- QPtrList<CalFilter> fili = mView->filters();
+ Q3PtrList<CalFilter> fili = mView->filters();
CalFilter *curfilter = mView->filterView()->selectedFilter();
@@ -2821,3 +2831,3 @@ void MainWindow::resizeEvent( QResizeEvent* e)
#endif
- QMainWindow::resizeEvent( e);
+ Q3MainWindow::resizeEvent( e);
}
diff --git a/korganizer/mainwindow.h b/korganizer/mainwindow.h
index a533d8b..6756216 100644
--- a/korganizer/mainwindow.h
+++ b/korganizer/mainwindow.h
@@ -3,9 +3,17 @@
-#include <qmainwindow.h>
+#include <q3mainwindow.h>
#include <qtimer.h>
-#include <qdict.h>
+#include <q3dict.h>
#include <qfile.h>
#include <qmenubar.h>
-#include <qtextstream.h>
+#include <q3textstream.h>
#include <qregexp.h>
+//Added by qt3to4:
+#include <Q3CString>
+#include <QCloseEvent>
+#include <QResizeEvent>
+#include <QPixmap>
+#include <Q3PopupMenu>
+#include <QHideEvent>
+#include <QKeyEvent>
@@ -17,3 +25,3 @@
#endif
-class QAction;
+class Q3Action;
class CalendarView;
@@ -22,3 +30,3 @@ class KSyncProfile;
-#define QPEToolBar QToolBar
+#define QPEToolBar Q3ToolBar
#endif
@@ -33,3 +41,3 @@ using namespace KCal;
-class MainWindow : public QMainWindow
+class MainWindow : public Q3MainWindow
{
@@ -51,4 +59,4 @@ class MainWindow : public QMainWindow
void configureAgenda( int );
- void recieve( const QCString& msg, const QByteArray& data );
- void receiveStart( const QCString& msg, const QByteArray& data );
+ void recieve( const Q3CString& msg, const QByteArray& data );
+ void receiveStart( const Q3CString& msg, const QByteArray& data );
protected slots:
@@ -126,3 +134,3 @@ class MainWindow : public QMainWindow
bool checkAutosave();
- QCString mCStringMess;
+ Q3CString mCStringMess;
QByteArray mByteData;
@@ -134,3 +142,3 @@ class MainWindow : public QMainWindow
#endif
- QAction* brAction;
+ Q3Action* brAction;
KSyncManager* mSyncManager;
@@ -146,4 +154,4 @@ class MainWindow : public QMainWindow
KMenuBar *filterMenubar;
- QPopupMenu * filterPopupMenu;
- QPopupMenu * mCurrentItemMenu;
+ Q3PopupMenu * filterPopupMenu;
+ Q3PopupMenu * mCurrentItemMenu;
void initActions();
@@ -153,10 +161,10 @@ class MainWindow : public QMainWindow
void keyReleaseEvent ( QKeyEvent * ) ;
- QPopupMenu *configureToolBarMenu;
- QPopupMenu *selectFilterMenu;
- QPopupMenu *selectFilterMenuTB;
- QPopupMenu *configureAgendaMenu, *syncMenu;
+ Q3PopupMenu *configureToolBarMenu;
+ Q3PopupMenu *selectFilterMenu;
+ Q3PopupMenu *selectFilterMenuTB;
+ Q3PopupMenu *configureAgendaMenu, *syncMenu;
CalendarLocal *mCalendar;
CalendarView *mView;
- QAction *mNewSubTodoAction;
- QAction *mWeekAction;
+ Q3Action *mNewSubTodoAction;
+ Q3Action *mWeekAction;
QFont mWeekFont;
@@ -165,15 +173,15 @@ class MainWindow : public QMainWindow
- QAction *mShowAction;
- QAction *mEditAction;
- QAction *mDeleteAction;
- QAction *mCloneAction;
- QAction *mMoveAction;
- QAction *mBeamAction;
- QAction *mCancelAction;
- QAction *mPrintSelAction;
+ Q3Action *mShowAction;
+ Q3Action *mEditAction;
+ Q3Action *mDeleteAction;
+ Q3Action *mCloneAction;
+ Q3Action *mMoveAction;
+ Q3Action *mBeamAction;
+ Q3Action *mCancelAction;
+ Q3Action *mPrintSelAction;
- QAction *mToggleNav;
- QAction *mToggleFilter;
- QAction *mToggleAllday;
- QAction *actionFilterMenuTB;
+ Q3Action *mToggleNav;
+ Q3Action *mToggleFilter;
+ Q3Action *mToggleAllday;
+ Q3Action *actionFilterMenuTB;
diff --git a/korganizer/navigatorbar.cpp b/korganizer/navigatorbar.cpp
index f6a1a6a..59c3e45 100644
--- a/korganizer/navigatorbar.cpp
+++ b/korganizer/navigatorbar.cpp
@@ -28,6 +28,9 @@
#include <qlayout.h>
-#include <qframe.h>
+#include <q3frame.h>
#include <qlabel.h>
-#include <qpopupmenu.h>
+#include <q3popupmenu.h>
#include <qapplication.h>
+#include <QDesktopWidget>
+//Added by qt3to4:
+#include <Q3HBoxLayout>
@@ -55,7 +58,7 @@ NavigatorBar::NavigatorBar( const QDate & date, QWidget *parent, const char *nam
{
- QBoxLayout *topLayout = new QHBoxLayout( this );
+ Q3BoxLayout *topLayout = new Q3HBoxLayout( this );
// Set up the control buttons and date label
- mCtrlFrame = new QFrame( this );
- mCtrlFrame->setFrameStyle(QFrame::Panel|QFrame::Raised);
+ mCtrlFrame = new Q3Frame( this );
+ mCtrlFrame->setFrameStyle(Q3Frame::Panel|Q3Frame::Raised);
mCtrlFrame->setLineWidth(1);
@@ -131,3 +134,3 @@ NavigatorBar::NavigatorBar( const QDate & date, QWidget *parent, const char *nam
// set up control frame layout
- QBoxLayout *ctrlLayout = new QHBoxLayout( mCtrlFrame, 1 );
+ Q3BoxLayout *ctrlLayout = new Q3HBoxLayout( mCtrlFrame, 1 );
ctrlLayout->addWidget( mPrevYear, 3 );
@@ -152,9 +155,9 @@ NavigatorBar::NavigatorBar( const QDate & date, QWidget *parent, const char *nam
connect( mSelectMonth, SIGNAL( clicked() ),SLOT( selectMonth() ) );
- mPrevYear->setFocusPolicy(NoFocus);
- mPrevMonth->setFocusPolicy(NoFocus);
- mNextMonth->setFocusPolicy(NoFocus);
- mPrevWeek->setFocusPolicy(NoFocus);
- mNextWeek->setFocusPolicy(NoFocus);
- mNextYear->setFocusPolicy(NoFocus);
- mSelectMonth->setFocusPolicy(NoFocus);
+ mPrevYear->setFocusPolicy(Qt::NoFocus);
+ mPrevMonth->setFocusPolicy(Qt::NoFocus);
+ mNextMonth->setFocusPolicy(Qt::NoFocus);
+ mPrevWeek->setFocusPolicy(Qt::NoFocus);
+ mNextWeek->setFocusPolicy(Qt::NoFocus);
+ mNextYear->setFocusPolicy(Qt::NoFocus);
+ mSelectMonth->setFocusPolicy(Qt::NoFocus);
setSizePolicy( QSizePolicy ( QSizePolicy::Expanding ,QSizePolicy::Fixed ) );
diff --git a/korganizer/navigatorbar.h b/korganizer/navigatorbar.h
index 9ccef14..a1880f5 100644
--- a/korganizer/navigatorbar.h
+++ b/korganizer/navigatorbar.h
@@ -29,5 +29,8 @@
#include <qwidget.h>
+//Added by qt3to4:
+#include <Q3Frame>
+#include <QLabel>
class QPushButton;
-class QFrame;
+class Q3Frame;
class QLabel;
@@ -62,3 +65,3 @@ class NavigatorBar: public QWidget
int mCurrentButtonMinWid;
- QFrame *mCtrlFrame;
+ Q3Frame *mCtrlFrame;
diff --git a/korganizer/outgoingdialog.cpp b/korganizer/outgoingdialog.cpp
index 7253c8e..ab31274 100644
--- a/korganizer/outgoingdialog.cpp
+++ b/korganizer/outgoingdialog.cpp
@@ -23,3 +23,3 @@
#include <qdir.h>
-#include <qtextstream.h>
+#include <q3textstream.h>
@@ -46,6 +46,6 @@
-ScheduleItemOut::ScheduleItemOut(QListView *parent,IncidenceBase *ev,
+ScheduleItemOut::ScheduleItemOut(Q3ListView *parent,IncidenceBase *ev,
Scheduler::Method method,
const QString &recipients)
- : QListViewItem(parent)
+ : Q3ListViewItem(parent)
{
@@ -125,3 +125,3 @@ OutgoingDialog::OutgoingDialog(Calendar *calendar,QWidget* parent,
const char* name,bool modal,
- WFlags fl)
+ Qt::WFlags fl)
: OutgoingDialog_base(parent,name,modal,fl)
@@ -141,8 +141,8 @@ OutgoingDialog::OutgoingDialog(Calendar *calendar,QWidget* parent,
}
- mMessageListView->setColumnAlignment(1,AlignHCenter);
- mMessageListView->setColumnAlignment(2,AlignHCenter);
- mMessageListView->setColumnAlignment(3,AlignHCenter);
- mMessageListView->setColumnAlignment(4,AlignHCenter);
- QObject::connect(mMessageListView,SIGNAL(doubleClicked(QListViewItem *)),
- this,SLOT(showEvent(QListViewItem *)));
+ mMessageListView->setColumnAlignment(1,Qt::AlignHCenter);
+ mMessageListView->setColumnAlignment(2,Qt::AlignHCenter);
+ mMessageListView->setColumnAlignment(3,Qt::AlignHCenter);
+ mMessageListView->setColumnAlignment(4,Qt::AlignHCenter);
+ QObject::connect(mMessageListView,SIGNAL(doubleClicked(Q3ListViewItem *)),
+ this,SLOT(showEvent(Q3ListViewItem *)));
mDocPrefs = new DocPrefs("groupschedule");
@@ -238,3 +238,3 @@ void OutgoingDialog::deleteItem()
-void OutgoingDialog::showEvent(QListViewItem *qitem)
+void OutgoingDialog::showEvent(Q3ListViewItem *qitem)
{
@@ -296,3 +296,3 @@ bool OutgoingDialog::saveMessage(IncidenceBase *incidence,Scheduler::Method meth
QString messageText = mFormat->createScheduleMessage(incidence,method);
- QTextStream *qts = ktfile.textStream();
+ Q3TextStream *qts = ktfile.textStream();
*qts << messageText;
@@ -332,3 +332,3 @@ void OutgoingDialog::loadMessages()
if (!inserted) {
- if (!f.open(IO_ReadOnly)) {
+ if (!f.open(QIODevice::ReadOnly)) {
kdDebug() << "OutgoingDialog::loadMessage(): Can't open file'"
@@ -336,3 +336,3 @@ void OutgoingDialog::loadMessages()
} else {
- QTextStream t(&f);
+ Q3TextStream t(&f);
QString messageString = t.read();
diff --git a/korganizer/outgoingdialog.h b/korganizer/outgoingdialog.h
index a3d561a..e727087 100644
--- a/korganizer/outgoingdialog.h
+++ b/korganizer/outgoingdialog.h
@@ -25,3 +25,3 @@
-#include <qlistview.h>
+#include <q3listview.h>
#include <qmap.h>
@@ -36,6 +36,6 @@ using namespace KCal;
-class ScheduleItemOut : public QListViewItem
+class ScheduleItemOut : public Q3ListViewItem
{
public:
- ScheduleItemOut(QListView *parent,IncidenceBase *ev,
+ ScheduleItemOut(Q3ListView *parent,IncidenceBase *ev,
Scheduler::Method method, const QString &recipients=QString::null);
@@ -58,3 +58,3 @@ class OutgoingDialog : public OutgoingDialog_base
OutgoingDialog(Calendar *,QWidget* parent=0,const char* name=0,
- bool modal=false,WFlags fl=0);
+ bool modal=false,Qt::WFlags fl=0);
~OutgoingDialog();
@@ -74,3 +74,3 @@ class OutgoingDialog : public OutgoingDialog_base
void deleteItem();
- void showEvent(QListViewItem *);
+ void showEvent(Q3ListViewItem *);
diff --git a/korganizer/outgoingdialog_base.cpp b/korganizer/outgoingdialog_base.cpp
index 1873b44..be8a870 100644
--- a/korganizer/outgoingdialog_base.cpp
+++ b/korganizer/outgoingdialog_base.cpp
@@ -13,4 +13,4 @@
#include <qvariant.h>
-#include <qheader.h>
-#include <qlistview.h>
+#include <q3header.h>
+#include <q3listview.h>
#include <qpushbutton.h>
@@ -18,3 +18,5 @@
#include <qtooltip.h>
-#include <qwhatsthis.h>
+#include <q3whatsthis.h>
+//Added by qt3to4:
+#include <Q3GridLayout>
@@ -27,3 +29,3 @@
*/
-OutgoingDialog_base::OutgoingDialog_base( QWidget* parent, const char* name, bool modal, WFlags fl )
+OutgoingDialog_base::OutgoingDialog_base( QWidget* parent, const char* name, bool modal, Qt::WFlags fl )
: QDialog( parent, name, modal, fl )
@@ -33,5 +35,5 @@ OutgoingDialog_base::OutgoingDialog_base( QWidget* parent, const char* name, boo
setName( "OutgoingDialog_base" );
- OutgoingDialog_baseLayout = new QGridLayout( this, 1, 1, 11, 6, "OutgoingDialog_baseLayout");
+ OutgoingDialog_baseLayout = new Q3GridLayout( this, 1, 1, 11, 6, "OutgoingDialog_baseLayout");
- mMessageListView = new QListView( this, "mMessageListView" );
+ mMessageListView = new Q3ListView( this, "mMessageListView" );
mMessageListView->addColumn( tr2i18n( "Summary" ) );
@@ -42,4 +44,4 @@ OutgoingDialog_base::OutgoingDialog_base( QWidget* parent, const char* name, boo
mMessageListView->addColumn( tr2i18n( "Method" ) );
- mMessageListView->setFrameShape( QListView::StyledPanel );
- mMessageListView->setFrameShadow( QListView::Sunken );
+ mMessageListView->setFrameShape( Q3ListView::StyledPanel );
+ mMessageListView->setFrameShadow( Q3ListView::Sunken );
mMessageListView->setAllColumnsShowFocus( TRUE );
diff --git a/korganizer/outgoingdialog_base.h b/korganizer/outgoingdialog_base.h
index af71bb1..5e81725 100644
--- a/korganizer/outgoingdialog_base.h
+++ b/korganizer/outgoingdialog_base.h
@@ -14,8 +14,12 @@
#include <qdialog.h>
-
-class QVBoxLayout;
-class QHBoxLayout;
-class QGridLayout;
-class QListView;
-class QListViewItem;
+//Added by qt3to4:
+#include <Q3GridLayout>
+#include <Q3HBoxLayout>
+#include <Q3VBoxLayout>
+
+class Q3VBoxLayout;
+class Q3HBoxLayout;
+class Q3GridLayout;
+class Q3ListView;
+class Q3ListViewItem;
class QPushButton;
@@ -27,6 +31,6 @@ class OutgoingDialog_base : public QDialog
public:
- OutgoingDialog_base( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
+ OutgoingDialog_base( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, Qt::WFlags fl = 0 );
~OutgoingDialog_base();
- QListView* mMessageListView;
+ Q3ListView* mMessageListView;
QPushButton* PushButton5;
@@ -36,3 +40,3 @@ public:
protected:
- QGridLayout* OutgoingDialog_baseLayout;
+ Q3GridLayout* OutgoingDialog_baseLayout;
diff --git a/korganizer/publishdialog.cpp b/korganizer/publishdialog.cpp
index 2ae6720..ede9840 100644
--- a/korganizer/publishdialog.cpp
+++ b/korganizer/publishdialog.cpp
@@ -37,3 +37,3 @@
PublishDialog::PublishDialog(QWidget* parent, const char* name,
- bool modal, WFlags fl)
+ bool modal, Qt::WFlags fl)
: PublishDialog_base(parent,name,modal,fl)
@@ -43,3 +43,3 @@ PublishDialog::PublishDialog(QWidget* parent, const char* name,
mEmailLineEdit->setEnabled(false);
- connect(mAddressListView,SIGNAL(selectionChanged(QListViewItem *)),
+ connect(mAddressListView,SIGNAL(selectionChanged(Q3ListViewItem *)),
SLOT(updateInput()));
@@ -55,3 +55,3 @@ void PublishDialog::addAttendee(Attendee *attendee)
mEmailLineEdit->setEnabled(true);
- QListViewItem *item = new QListViewItem(mAddressListView);
+ Q3ListViewItem *item = new Q3ListViewItem(mAddressListView);
item->setText(0,attendee->name());
@@ -64,3 +64,3 @@ QString PublishDialog::addresses()
QString to = "";
- QListViewItem *item;
+ Q3ListViewItem *item;
int i, count;
@@ -82,3 +82,3 @@ void PublishDialog::addItem()
mEmailLineEdit->setEnabled(true);
- QListViewItem *item = new QListViewItem(mAddressListView);
+ Q3ListViewItem *item = new Q3ListViewItem(mAddressListView);
mAddressListView->insertItem(item);
@@ -91,3 +91,3 @@ void PublishDialog::removeItem()
{
- QListViewItem *item;
+ Q3ListViewItem *item;
item = mAddressListView->selectedItem();
@@ -121,3 +121,3 @@ void PublishDialog::openAddressbook()
mEmailLineEdit->setEnabled(true);
- QListViewItem *item = new QListViewItem(mAddressListView);
+ Q3ListViewItem *item = new Q3ListViewItem(mAddressListView);
mAddressListView->setSelected(item,true);
@@ -133,3 +133,3 @@ void PublishDialog::updateItem()
{
- QListViewItem *item;
+ Q3ListViewItem *item;
item = mAddressListView->selectedItem();
@@ -142,3 +142,3 @@ void PublishDialog::updateInput()
{
- QListViewItem *item;
+ Q3ListViewItem *item;
item = mAddressListView->selectedItem();
diff --git a/korganizer/publishdialog.h b/korganizer/publishdialog.h
index 338603c..3ffeec4 100644
--- a/korganizer/publishdialog.h
+++ b/korganizer/publishdialog.h
@@ -25,3 +25,3 @@
-#include <qlistview.h>
+#include <q3listview.h>
#include <libkcal/attendee.h>
@@ -37,3 +37,3 @@ class PublishDialog : public PublishDialog_base
PublishDialog(QWidget* parent=0,const char* name=0,
- bool modal=true,WFlags fl=0);
+ bool modal=true,Qt::WFlags fl=0);
~PublishDialog();
diff --git a/korganizer/publishdialog_base.cpp b/korganizer/publishdialog_base.cpp
index 683f7e9..ce5c542 100644
--- a/korganizer/publishdialog_base.cpp
+++ b/korganizer/publishdialog_base.cpp
@@ -13,7 +13,7 @@
#include <qvariant.h>
-#include <qframe.h>
-#include <qheader.h>
+#include <q3frame.h>
+#include <q3header.h>
#include <qlabel.h>
#include <qlineedit.h>
-#include <qlistview.h>
+#include <q3listview.h>
#include <qpushbutton.h>
@@ -21,3 +21,6 @@
#include <qtooltip.h>
-#include <qwhatsthis.h>
+#include <q3whatsthis.h>
+//Added by qt3to4:
+#include <Q3GridLayout>
+#include <Q3HBoxLayout>
@@ -30,3 +33,3 @@
*/
-PublishDialog_base::PublishDialog_base( QWidget* parent, const char* name, bool modal, WFlags fl )
+PublishDialog_base::PublishDialog_base( QWidget* parent, const char* name, bool modal, Qt::WFlags fl )
: QDialog( parent, name, modal, fl )
@@ -36,5 +39,5 @@ PublishDialog_base::PublishDialog_base( QWidget* parent, const char* name, bool
setName( "PublishDialog_base" );
- PublishDialog_baseLayout = new QGridLayout( this, 1, 1, 11, 6, "PublishDialog_baseLayout");
+ PublishDialog_baseLayout = new Q3GridLayout( this, 1, 1, 11, 6, "PublishDialog_baseLayout");
- mAddressListView = new QListView( this, "mAddressListView" );
+ mAddressListView = new Q3ListView( this, "mAddressListView" );
mAddressListView->addColumn( tr2i18n( "Name" ) );
@@ -74,6 +77,6 @@ PublishDialog_base::PublishDialog_base( QWidget* parent, const char* name, bool
- Line2 = new QFrame( this, "Line2" );
- Line2->setFrameShape( QFrame::HLine );
- Line2->setFrameShadow( QFrame::Sunken );
- Line2->setFrameShape( QFrame::HLine );
+ Line2 = new Q3Frame( this, "Line2" );
+ Line2->setFrameShape( Q3Frame::HLine );
+ Line2->setFrameShadow( Q3Frame::Sunken );
+ Line2->setFrameShape( Q3Frame::HLine );
@@ -81,3 +84,3 @@ PublishDialog_base::PublishDialog_base( QWidget* parent, const char* name, bool
- layout95 = new QHBoxLayout( 0, 0, 6, "layout95");
+ layout95 = new Q3HBoxLayout( 0, 0, 6, "layout95");
QSpacerItem* spacer_2 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
diff --git a/korganizer/publishdialog_base.h b/korganizer/publishdialog_base.h
index 932474e..d1b40ae 100644
--- a/korganizer/publishdialog_base.h
+++ b/korganizer/publishdialog_base.h
@@ -14,11 +14,17 @@
#include <qdialog.h>
+//Added by qt3to4:
+#include <Q3VBoxLayout>
+#include <Q3Frame>
+#include <Q3GridLayout>
+#include <Q3HBoxLayout>
+#include <QLabel>
-class QVBoxLayout;
-class QHBoxLayout;
-class QGridLayout;
-class QFrame;
+class Q3VBoxLayout;
+class Q3HBoxLayout;
+class Q3GridLayout;
+class Q3Frame;
class QLabel;
class QLineEdit;
-class QListView;
-class QListViewItem;
+class Q3ListView;
+class Q3ListViewItem;
class QPushButton;
@@ -30,6 +36,6 @@ class PublishDialog_base : public QDialog
public:
- PublishDialog_base( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
+ PublishDialog_base( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, Qt::WFlags fl = 0 );
~PublishDialog_base();
- QListView* mAddressListView;
+ Q3ListView* mAddressListView;
QLabel* TextLabel1;
@@ -41,3 +47,3 @@ public:
QPushButton* PushButton11;
- QFrame* Line2;
+ Q3Frame* Line2;
QPushButton* PushButton9;
@@ -46,4 +52,4 @@ public:
protected:
- QGridLayout* PublishDialog_baseLayout;
- QHBoxLayout* layout95;
+ Q3GridLayout* PublishDialog_baseLayout;
+ Q3HBoxLayout* layout95;
diff --git a/korganizer/savetemplatedialog.cpp b/korganizer/savetemplatedialog.cpp
index 3544081..35bedba 100644
--- a/korganizer/savetemplatedialog.cpp
+++ b/korganizer/savetemplatedialog.cpp
@@ -24,2 +24,5 @@
#include <qlayout.h>
+//Added by qt3to4:
+#include <Q3VBoxLayout>
+#include <Q3Frame>
@@ -37,4 +40,4 @@ SaveTemplateDialog::SaveTemplateDialog( IncidenceType type, QWidget *parent )
{
- QFrame *topFrame = plainPage();
- QVBoxLayout *topLayout = new QVBoxLayout( topFrame, 0, spacingHint() );
+ Q3Frame *topFrame = plainPage();
+ Q3VBoxLayout *topLayout = new Q3VBoxLayout( topFrame, 0, spacingHint() );
diff --git a/korganizer/searchdialog.cpp b/korganizer/searchdialog.cpp
index 9cfdc35..105b844 100644
--- a/korganizer/searchdialog.cpp
+++ b/korganizer/searchdialog.cpp
@@ -26,10 +26,17 @@
#include <qcheckbox.h>
-#include <qgroupbox.h>
+#include <q3groupbox.h>
#include <qapplication.h>
+#include <QDesktopWidget>
#include <qlabel.h>
-#include <qlistview.h>
-#include <qwhatsthis.h>
+#include <q3listview.h>
+#include <q3whatsthis.h>
#include <qlineedit.h>
#include <qpushbutton.h>
-#include <qhbuttongroup.h>
+//#include <qhbuttongroup.h>
+//Added by qt3to4:
+#include <Q3HBoxLayout>
+#include <Q3Frame>
+#include <Q3PtrList>
+#include <QKeyEvent>
+#include <Q3VBoxLayout>
#include <klocale.h>
@@ -48,3 +55,3 @@
SearchDialog::SearchDialog(Calendar *calendar,CalendarView *parent)
- : QVBox( 0 )
+ : Q3VBox( 0 )
@@ -52,7 +59,7 @@ SearchDialog::SearchDialog(Calendar *calendar,CalendarView *parent)
mCalendar = calendar;
- QFrame *topFrame = new QFrame( this ) ;//plainPage();
- QVBoxLayout *layout = new QVBoxLayout(topFrame,KDialog::marginHint(),KDialog::spacingHint());
+ Q3Frame *topFrame = new Q3Frame( this ) ;//plainPage();
+ Q3VBoxLayout *layout = new Q3VBoxLayout(topFrame,KDialog::marginHint(),KDialog::spacingHint());
// Search expression
- QHBoxLayout *subLayout = new QHBoxLayout();
+ Q3HBoxLayout *subLayout = new Q3HBoxLayout();
layout->addLayout(subLayout);
@@ -100,3 +107,3 @@ SearchDialog::SearchDialog(Calendar *calendar,CalendarView *parent)
- incidenceGroup = new QHBox( topFrame );
+ incidenceGroup = new Q3HBox( topFrame );
layout->addWidget(incidenceGroup);
@@ -108,3 +115,3 @@ SearchDialog::SearchDialog(Calendar *calendar,CalendarView *parent)
- subjectGroup = new QHBox( topFrame );
+ subjectGroup = new Q3HBox( topFrame );
layout->addWidget(subjectGroup);
@@ -116,3 +123,3 @@ SearchDialog::SearchDialog(Calendar *calendar,CalendarView *parent)
- attendeeGroup = new QHBox( topFrame );
+ attendeeGroup = new Q3HBox( topFrame );
layout->addWidget(attendeeGroup );
@@ -129,3 +136,3 @@ SearchDialog::SearchDialog(Calendar *calendar,CalendarView *parent)
if ( QApplication::desktop()->width() <= 240 ) space = 1;
- QHBoxLayout *rangeLayout = new QHBoxLayout(rangeWidget,0,space);
+ Q3HBoxLayout *rangeLayout = new Q3HBoxLayout(rangeWidget,0,space);
rangeLayout->addWidget(new QLabel(i18n("From:"),rangeWidget));
@@ -137,3 +144,3 @@ SearchDialog::SearchDialog(Calendar *calendar,CalendarView *parent)
rangeLayout->addWidget(mEndDate);
- QToolButton *wt = QWhatsThis::whatsThisButton ( rangeWidget );
+ QToolButton *wt = Q3WhatsThis::whatsThisButton ( rangeWidget );
rangeLayout->addWidget( (QWidget*)wt );
@@ -343,3 +350,3 @@ void SearchDialog::search(const QRegExp &re)
{
- QPtrList<Event> events;
+ Q3PtrList<Event> events;
if ( !mAddItems->isChecked() && !mSubItems->isChecked() ) {
@@ -421,3 +428,3 @@ void SearchDialog::search(const QRegExp &re)
if ( mSearchAName->isChecked() || mSearchAEmail->isChecked() ) {
- QPtrList<Attendee> tmpAList = ev->attendees();
+ Q3PtrList<Attendee> tmpAList = ev->attendees();
Attendee *a;
@@ -460,3 +467,3 @@ void SearchDialog::search(const QRegExp &re)
}
- QPtrList<Todo> todos;
+ Q3PtrList<Todo> todos;
@@ -514,3 +521,3 @@ void SearchDialog::search(const QRegExp &re)
if ( mSearchAName->isChecked() || mSearchAEmail->isChecked() ) {
- QPtrList<Attendee> tmpAList = tod->attendees();
+ Q3PtrList<Attendee> tmpAList = tod->attendees();
Attendee *a;
@@ -550,3 +557,3 @@ void SearchDialog::search(const QRegExp &re)
- QPtrList<Journal> journals;
+ Q3PtrList<Journal> journals;
if ( !mAddItems->isChecked() && !mSubItems->isChecked() ) {
diff --git a/korganizer/searchdialog.h b/korganizer/searchdialog.h
index 945ff65..5df6116 100644
--- a/korganizer/searchdialog.h
+++ b/korganizer/searchdialog.h
@@ -28,4 +28,8 @@
#include <qradiobutton.h>
+//Added by qt3to4:
+#include <QLabel>
+#include <QKeyEvent>
+#include <Q3PtrList>
#include <kdialogbase.h>
-#include <qvbox.h>
+#include <q3vbox.h>
@@ -43,3 +47,3 @@ class CalendarView;
using namespace KCal;
-class SearchDialog : public QVBox
+class SearchDialog : public Q3VBox
{
@@ -74,3 +78,3 @@ class SearchDialog : public QVBox
- QHBox *incidenceGroup ,*subjectGroup ,*attendeeGroup;
+ Q3HBox *incidenceGroup ,*subjectGroup ,*attendeeGroup;
void search(const QRegExp &);
@@ -79,5 +83,5 @@ class SearchDialog : public QVBox
- QPtrList<Event> mMatchedEvents;
- QPtrList<Todo> mMatchedTodos;
- QPtrList<Journal> mMatchedJournals;
+ Q3PtrList<Event> mMatchedEvents;
+ Q3PtrList<Todo> mMatchedTodos;
+ Q3PtrList<Journal> mMatchedJournals;
diff --git a/korganizer/statusdialog.cpp b/korganizer/statusdialog.cpp
index 7137c49..8186ebb 100644
--- a/korganizer/statusdialog.cpp
+++ b/korganizer/statusdialog.cpp
@@ -23,2 +23,5 @@
#include <qlayout.h>
+//Added by qt3to4:
+#include <Q3VBoxLayout>
+#include <Q3HBoxLayout>
@@ -34,3 +37,3 @@ StatusDialog::StatusDialog(QWidget* parent, const char* name) :
- QBoxLayout *topLayout = new QVBoxLayout( this );
+ Q3BoxLayout *topLayout = new Q3VBoxLayout( this );
topLayout->setSpacing( spacingHint() );
@@ -38,3 +41,3 @@ StatusDialog::StatusDialog(QWidget* parent, const char* name) :
- QBoxLayout *statusLayout = new QHBoxLayout( topLayout );
+ Q3BoxLayout *statusLayout = new Q3HBoxLayout( topLayout );
@@ -47,3 +50,3 @@ StatusDialog::StatusDialog(QWidget* parent, const char* name) :
- QBoxLayout *buttonLayout = new QHBoxLayout( topLayout );
+ Q3BoxLayout *buttonLayout = new Q3HBoxLayout( topLayout );
diff --git a/korganizer/timeline.cpp b/korganizer/timeline.cpp
index 11be432..a6c3cdc 100644
--- a/korganizer/timeline.cpp
+++ b/korganizer/timeline.cpp
@@ -7,3 +7,3 @@
TimeLine::TimeLine( QWidget *parent, const char *name ) :
- QScrollView( parent, name )
+ Q3ScrollView( parent, name )
{
@@ -13,3 +13,3 @@ TimeLine::TimeLine( QWidget *parent, const char *name ) :
- viewport()->setBackgroundMode( PaletteBackground );
+ viewport()->setBackgroundMode( Qt::PaletteBackground );
@@ -60,3 +60,3 @@ void TimeLine::setContentsPos( int pos )
{
- QScrollView::setContentsPos ( pos, 0 );
+ Q3ScrollView::setContentsPos ( pos, 0 );
}
diff --git a/korganizer/timeline.h b/korganizer/timeline.h
index ab3e5d3..bf301fa 100644
--- a/korganizer/timeline.h
+++ b/korganizer/timeline.h
@@ -3,6 +3,6 @@
-#include <qscrollview.h>
+#include <q3scrollview.h>
#include <qdatetime.h>
-class TimeLine : public QScrollView
+class TimeLine : public Q3ScrollView
{
diff --git a/korganizer/timespanview.cpp b/korganizer/timespanview.cpp
index df8ff88..0908056 100644
--- a/korganizer/timespanview.cpp
+++ b/korganizer/timespanview.cpp
@@ -6,6 +6,10 @@
#endif
-#include <qlistview.h>
+#include <q3listview.h>
#include <qlayout.h>
-#include <qheader.h>
+#include <q3header.h>
#include <qpushbutton.h>
+//Added by qt3to4:
+#include <Q3HBoxLayout>
+#include <Q3VBoxLayout>
+#include <Q3ValueList>
@@ -23,3 +27,3 @@ TimeSpanView::TimeSpanView( QWidget *parent, const char *name ) :
{
- QBoxLayout *topLayout = new QVBoxLayout( this );
+ Q3BoxLayout *topLayout = new Q3VBoxLayout( this );
#ifndef DESKTOP_VERSION
@@ -31,3 +35,3 @@ TimeSpanView::TimeSpanView( QWidget *parent, const char *name ) :
- mList = new QListView( mSplitter );
+ mList = new Q3ListView( mSplitter );
mList->addColumn( i18n("Summary") );
@@ -35,3 +39,3 @@ TimeSpanView::TimeSpanView( QWidget *parent, const char *name ) :
QWidget *rightPane = new QWidget( mSplitter );
- QBoxLayout *rightPaneLayout = new QVBoxLayout( rightPane );
+ Q3BoxLayout *rightPaneLayout = new Q3VBoxLayout( rightPane );
@@ -44,3 +48,3 @@ TimeSpanView::TimeSpanView( QWidget *parent, const char *name ) :
- QBoxLayout *buttonLayout = new QHBoxLayout( rightPaneLayout );
+ Q3BoxLayout *buttonLayout = new Q3HBoxLayout( rightPaneLayout );
@@ -66,3 +70,3 @@ TimeSpanView::~TimeSpanView()
-QValueList<int> TimeSpanView::splitterSizes()
+Q3ValueList<int> TimeSpanView::splitterSizes()
{
@@ -71,3 +75,3 @@ QValueList<int> TimeSpanView::splitterSizes()
-void TimeSpanView::setSplitterSizes( QValueList<int> sizes )
+void TimeSpanView::setSplitterSizes( Q3ValueList<int> sizes )
{
@@ -78,3 +82,3 @@ void TimeSpanView::addItem( KCal::Event *event )
{
- new QListViewItem( mList, event->summary() );
+ new Q3ListViewItem( mList, event->summary() );
diff --git a/korganizer/timespanview.h b/korganizer/timespanview.h
index 34cb1f7..f652374 100644
--- a/korganizer/timespanview.h
+++ b/korganizer/timespanview.h
@@ -4,2 +4,4 @@
#include <qwidget.h>
+//Added by qt3to4:
+#include <Q3ValueList>
@@ -14,3 +16,3 @@ class QSplitter;
#endif
-class QListView;
+class Q3ListView;
class LineView;
@@ -28,4 +30,4 @@ class TimeSpanView : public QWidget
- QValueList<int> splitterSizes();
- void setSplitterSizes( QValueList<int> );
+ Q3ValueList<int> splitterSizes();
+ void setSplitterSizes( Q3ValueList<int> );
@@ -50,3 +52,3 @@ class TimeSpanView : public QWidget
QKSplitter *mSplitter;
- QListView *mList;
+ Q3ListView *mList;
TimeLine *mTimeLine;