From 67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 13 Apr 2011 00:46:47 +0000 Subject: Initial conversion of kdepim to TQt This will probably require some tweaking before it will build under Qt4, however Qt3 builds are OK. Any alterations this commit makes to kdepim behaviour under Qt3 are unintentional and should be fixed. git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1227832 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- korganizer/kotimelineview.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'korganizer/kotimelineview.cpp') diff --git a/korganizer/kotimelineview.cpp b/korganizer/kotimelineview.cpp index ea987ccf5..93296daaf 100644 --- a/korganizer/kotimelineview.cpp +++ b/korganizer/kotimelineview.cpp @@ -18,8 +18,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. As a special exception, permission is given to link this program - with any edition of Qt, and distribute the resulting executable, - without including the source code for Qt in the source distribution. + with any edition of TQt, and distribute the resulting executable, + without including the source code for TQt in the source distribution. */ @@ -41,9 +41,9 @@ using namespace KOrg; using namespace KCal; -KOTimelineView::KOTimelineView(Calendar *calendar, TQWidget *parent, +KOTimelineView::KOTimelineView(Calendar *calendar, TQWidget *tqparent, const char *name) - : KOEventView(calendar, parent, name), + : KOEventView(calendar, tqparent, name), mEventPopup( 0 ) { TQVBoxLayout* vbox = new TQVBoxLayout(this); @@ -340,8 +340,8 @@ void KOTimelineView::itemMoved(KDGanttViewItem * item) if ( duration < 0 ) duration = 0; } i->setDuration( duration ); - TimelineItem *parent = static_cast( tlit->parent() ); - parent->moveItems( i, tlit->originalStart().secsTo( newStart ), duration + allDayOffset ); + TimelineItem *tqparent = static_cast( tlit->tqparent() ); + tqparent->moveItems( i, tlit->originalStart().secsTo( newStart ), duration + allDayOffset ); mChanger->endChange( i, 0, TQString() ); } -- cgit v1.2.1