summaryrefslogtreecommitdiffstats
path: root/korganizer/plugins/timespanview
diff options
context:
space:
mode:
Diffstat (limited to 'korganizer/plugins/timespanview')
-rw-r--r--korganizer/plugins/timespanview/kotimespanview.cpp8
-rw-r--r--korganizer/plugins/timespanview/kotimespanview.h7
-rw-r--r--korganizer/plugins/timespanview/lineview.cpp8
-rw-r--r--korganizer/plugins/timespanview/lineview.h9
-rw-r--r--korganizer/plugins/timespanview/timeline.cpp8
-rw-r--r--korganizer/plugins/timespanview/timeline.h9
-rw-r--r--korganizer/plugins/timespanview/timespanview.cpp8
-rw-r--r--korganizer/plugins/timespanview/timespanview.h1
-rw-r--r--korganizer/plugins/timespanview/timespanwidget.cpp11
-rw-r--r--korganizer/plugins/timespanview/timespanwidget.h9
10 files changed, 40 insertions, 38 deletions
diff --git a/korganizer/plugins/timespanview/kotimespanview.cpp b/korganizer/plugins/timespanview/kotimespanview.cpp
index 01fc0cb4..7f70f12e 100644
--- a/korganizer/plugins/timespanview/kotimespanview.cpp
+++ b/korganizer/plugins/timespanview/kotimespanview.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.
*/
#include <tqlayout.h>
@@ -35,9 +35,9 @@
#include "kotimespanview.h"
#include "kotimespanview.moc"
-KOTimeSpanView::KOTimeSpanView(Calendar *calendar, TQWidget *parent,
+KOTimeSpanView::KOTimeSpanView(Calendar *calendar, TQWidget *tqparent,
const char *name) :
- KOEventView( calendar, parent, name )
+ KOEventView( calendar, tqparent, name )
{
TQBoxLayout *topLayout = new TQVBoxLayout( this );
diff --git a/korganizer/plugins/timespanview/kotimespanview.h b/korganizer/plugins/timespanview/kotimespanview.h
index 49e54ab6..f0d6c6ce 100644
--- a/korganizer/plugins/timespanview/kotimespanview.h
+++ b/korganizer/plugins/timespanview/kotimespanview.h
@@ -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.
*/
#ifndef KOTIMESPANVIEW_H
#define KOTIMESPANVIEW_H
@@ -32,8 +32,9 @@ class TimeSpanWidget;
class KOTimeSpanView : public KOEventView
{
Q_OBJECT
+ TQ_OBJECT
public:
- KOTimeSpanView( Calendar *calendar, TQWidget *parent = 0,
+ KOTimeSpanView( Calendar *calendar, TQWidget *tqparent = 0,
const char *name = 0 );
~KOTimeSpanView();
diff --git a/korganizer/plugins/timespanview/lineview.cpp b/korganizer/plugins/timespanview/lineview.cpp
index 93a2f0bf..fe337f4e 100644
--- a/korganizer/plugins/timespanview/lineview.cpp
+++ b/korganizer/plugins/timespanview/lineview.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.
*/
#include <tqpainter.h>
@@ -31,8 +31,8 @@
#include "lineview.h"
#include "lineview.moc"
-LineView::LineView( TQWidget *parent, const char *name ) :
- TQScrollView( parent, name )
+LineView::LineView( TQWidget *tqparent, const char *name ) :
+ TQScrollView( tqparent, name )
{
mPixelWidth = 1000;
diff --git a/korganizer/plugins/timespanview/lineview.h b/korganizer/plugins/timespanview/lineview.h
index e98d905b..df028cdb 100644
--- a/korganizer/plugins/timespanview/lineview.h
+++ b/korganizer/plugins/timespanview/lineview.h
@@ -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.
*/
#ifndef LINEVIEW_H
#define LINEVIEW_H
@@ -27,11 +27,12 @@
#include <tqscrollview.h>
#include <tqptrlist.h>
-class LineView : public QScrollView
+class LineView : public TQScrollView
{
Q_OBJECT
+ TQ_OBJECT
public:
- LineView( TQWidget *parent = 0, const char *name = 0 );
+ LineView( TQWidget *tqparent = 0, const char *name = 0 );
virtual ~LineView();
int pixelWidth();
diff --git a/korganizer/plugins/timespanview/timeline.cpp b/korganizer/plugins/timespanview/timeline.cpp
index 19ed7581..513701cd 100644
--- a/korganizer/plugins/timespanview/timeline.cpp
+++ b/korganizer/plugins/timespanview/timeline.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.
*/
#include <tqpainter.h>
@@ -29,8 +29,8 @@
#include "timeline.h"
#include "timeline.moc"
-TimeLine::TimeLine( TQWidget *parent, const char *name ) :
- TQScrollView( parent, name )
+TimeLine::TimeLine( TQWidget *tqparent, const char *name ) :
+ TQScrollView( tqparent, name )
{
mPixelWidth = 1000;
diff --git a/korganizer/plugins/timespanview/timeline.h b/korganizer/plugins/timespanview/timeline.h
index 031763f7..d7718928 100644
--- a/korganizer/plugins/timespanview/timeline.h
+++ b/korganizer/plugins/timespanview/timeline.h
@@ -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.
*/
#ifndef TIMELINE_H
#define TIMELINE_H
@@ -27,11 +27,12 @@
#include <tqscrollview.h>
#include <tqdatetime.h>
-class TimeLine : public QScrollView
+class TimeLine : public TQScrollView
{
Q_OBJECT
+ TQ_OBJECT
public:
- TimeLine( TQWidget *parent = 0, const char *name = 0 );
+ TimeLine( TQWidget *tqparent = 0, const char *name = 0 );
virtual ~TimeLine();
void setDateRange( const TQDateTime &start, const TQDateTime &end );
diff --git a/korganizer/plugins/timespanview/timespanview.cpp b/korganizer/plugins/timespanview/timespanview.cpp
index 24a45abb..3f9e2ee5 100644
--- a/korganizer/plugins/timespanview/timespanview.cpp
+++ b/korganizer/plugins/timespanview/timespanview.cpp
@@ -35,17 +35,17 @@ using namespace KOrg;
class TimespanViewFactory : public KOrg::PartFactory {
public:
- KOrg::Part *create( KOrg::MainWindow *parent, const char *name )
+ KOrg::Part *create( KOrg::MainWindow *tqparent, const char *name )
{
- return new TimespanView( parent, name );
+ return new TimespanView( tqparent, name );
}
};
K_EXPORT_COMPONENT_FACTORY( libkorg_timespanview, TimespanViewFactory )
-TimespanView::TimespanView(KOrg::MainWindow *parent, const char *name) :
- KOrg::Part(parent,name), mView(0)
+TimespanView::TimespanView(KOrg::MainWindow *tqparent, const char *name) :
+ KOrg::Part(tqparent,name), mView(0)
{
setInstance( new KInstance( "korganizer" ) );
diff --git a/korganizer/plugins/timespanview/timespanview.h b/korganizer/plugins/timespanview/timespanview.h
index cb2d17f7..5338e8ff 100644
--- a/korganizer/plugins/timespanview/timespanview.h
+++ b/korganizer/plugins/timespanview/timespanview.h
@@ -25,6 +25,7 @@
class TimespanView : public KOrg::Part {
Q_OBJECT
+ TQ_OBJECT
public:
TimespanView(KOrg::MainWindow *, const char *);
~TimespanView();
diff --git a/korganizer/plugins/timespanview/timespanwidget.cpp b/korganizer/plugins/timespanview/timespanwidget.cpp
index 0e8f0c4b..e208c088 100644
--- a/korganizer/plugins/timespanview/timespanwidget.cpp
+++ b/korganizer/plugins/timespanview/timespanwidget.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.
*/
#include <tqsplitter.h>
@@ -39,8 +39,8 @@
#include "timespanwidget.h"
#include "timespanwidget.moc"
-TimeSpanWidget::TimeSpanWidget( TQWidget *parent, const char *name ) :
- TQWidget( parent, name )
+TimeSpanWidget::TimeSpanWidget( TQWidget *tqparent, const char *name ) :
+ TQWidget( tqparent, name )
{
TQBoxLayout *topLayout = new TQVBoxLayout( this );
@@ -123,11 +123,8 @@ void TimeSpanWidget::clear()
void TimeSpanWidget::updateView()
{
-#if QT_VERSION >= 300
mLineView->updateContents();
mTimeLine->updateContents();
-#else
-#endif
}
void TimeSpanWidget::setDateRange( const TQDateTime &start, const TQDateTime &end )
diff --git a/korganizer/plugins/timespanview/timespanwidget.h b/korganizer/plugins/timespanview/timespanwidget.h
index fa037872..103efc5f 100644
--- a/korganizer/plugins/timespanview/timespanwidget.h
+++ b/korganizer/plugins/timespanview/timespanwidget.h
@@ -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.
*/
#ifndef TimeSpanWidget_H
#define TimeSpanWidget_H
@@ -35,11 +35,12 @@ class TQListView;
class LineView;
class TimeLine;
-class TimeSpanWidget : public QWidget
+class TimeSpanWidget : public TQWidget
{
Q_OBJECT
+ TQ_OBJECT
public:
- TimeSpanWidget( TQWidget *parent=0, const char *name=0 );
+ TimeSpanWidget( TQWidget *tqparent=0, const char *name=0 );
virtual ~TimeSpanWidget();
void addItem( KCal::Event * );