diff options
Diffstat (limited to 'korganizer/datenavigatorcontainer.cpp')
-rw-r--r-- | korganizer/datenavigatorcontainer.cpp | 76 |
1 files changed, 38 insertions, 38 deletions
diff --git a/korganizer/datenavigatorcontainer.cpp b/korganizer/datenavigatorcontainer.cpp index 61be083b4..e3c092fc0 100644 --- a/korganizer/datenavigatorcontainer.cpp +++ b/korganizer/datenavigatorcontainer.cpp @@ -35,19 +35,19 @@ #include "datenavigatorcontainer.h" -#include <qwhatsthis.h> -#include <qtimer.h> +#include <tqwhatsthis.h> +#include <tqtimer.h> -DateNavigatorContainer::DateNavigatorContainer( QWidget *parent, +DateNavigatorContainer::DateNavigatorContainer( TQWidget *parent, const char *name ) - : QFrame( parent, name ), mCalendar( 0 ), + : TQFrame( parent, name ), mCalendar( 0 ), mHorizontalCount( 1 ), mVerticalCount( 1 ) { mExtraViews.setAutoDelete( true ); - setFrameStyle( QFrame::Sunken | QFrame::StyledPanel ); + setFrameStyle( TQFrame::Sunken | TQFrame::StyledPanel ); mNavigatorView = new KDateNavigator( this, name ); - QWhatsThis::add( mNavigatorView, + TQWhatsThis::add( mNavigatorView, i18n( "<qt><p>Select the dates you want to " "display in KOrganizer's main view here. Hold down the " "mouse button to select more than one day.</p>" @@ -67,24 +67,24 @@ DateNavigatorContainer::~DateNavigatorContainer() void DateNavigatorContainer::connectNavigatorView( KDateNavigator *v ) { - connect( v, SIGNAL( datesSelected( const KCal::DateList & ) ), - SIGNAL( datesSelected( const KCal::DateList & ) ) ); - connect( v, SIGNAL( incidenceDropped( Incidence *, const QDate & ) ), - SIGNAL( incidenceDropped( Incidence *, const QDate & ) ) ); - connect( v, SIGNAL( incidenceDroppedMove( Incidence *, const QDate & ) ), - SIGNAL( incidenceDroppedMove( Incidence *, const QDate & ) ) ); - connect( v, SIGNAL( weekClicked( const QDate & ) ), - SIGNAL( weekClicked( const QDate & ) ) ); - - connect( v, SIGNAL( goPrevious() ), SIGNAL( goPrevious() ) ); - connect( v, SIGNAL( goNext() ), SIGNAL( goNext() ) ); - - connect( v, SIGNAL( goNextMonth() ), SIGNAL( goNextMonth() ) ); - connect( v, SIGNAL( goPrevMonth() ), SIGNAL( goPrevMonth() ) ); - connect( v, SIGNAL( goNextYear() ), SIGNAL( goNextYear() ) ); - connect( v, SIGNAL( goPrevYear() ), SIGNAL( goPrevYear() ) ); - - connect( v, SIGNAL( goMonth( int ) ), SIGNAL( goMonth( int ) ) ); + connect( v, TQT_SIGNAL( datesSelected( const KCal::DateList & ) ), + TQT_SIGNAL( datesSelected( const KCal::DateList & ) ) ); + connect( v, TQT_SIGNAL( incidenceDropped( Incidence *, const TQDate & ) ), + TQT_SIGNAL( incidenceDropped( Incidence *, const TQDate & ) ) ); + connect( v, TQT_SIGNAL( incidenceDroppedMove( Incidence *, const TQDate & ) ), + TQT_SIGNAL( incidenceDroppedMove( Incidence *, const TQDate & ) ) ); + connect( v, TQT_SIGNAL( weekClicked( const TQDate & ) ), + TQT_SIGNAL( weekClicked( const TQDate & ) ) ); + + connect( v, TQT_SIGNAL( goPrevious() ), TQT_SIGNAL( goPrevious() ) ); + connect( v, TQT_SIGNAL( goNext() ), TQT_SIGNAL( goNext() ) ); + + connect( v, TQT_SIGNAL( goNextMonth() ), TQT_SIGNAL( goNextMonth() ) ); + connect( v, TQT_SIGNAL( goPrevMonth() ), TQT_SIGNAL( goPrevMonth() ) ); + connect( v, TQT_SIGNAL( goNextYear() ), TQT_SIGNAL( goNextYear() ) ); + connect( v, TQT_SIGNAL( goPrevYear() ), TQT_SIGNAL( goPrevYear() ) ); + + connect( v, TQT_SIGNAL( goMonth( int ) ), TQT_SIGNAL( goMonth( int ) ) ); } void DateNavigatorContainer::setCalendar( Calendar *cal ) @@ -139,11 +139,11 @@ void DateNavigatorContainer::updateConfig() void DateNavigatorContainer::selectDates( const DateList &dateList ) { if ( !dateList.isEmpty() ) { - QDate start( dateList.first() ); - QDate end( dateList.last() ); - QDate navfirst( mNavigatorView->startDate() ); - QDate navsecond; // start of the second shown month if existant - QDate navlast; + TQDate start( dateList.first() ); + TQDate end( dateList.last() ); + TQDate navfirst( mNavigatorView->startDate() ); + TQDate navsecond; // start of the second shown month if existant + TQDate navlast; if ( !mExtraViews.isEmpty() ) { navlast = mExtraViews.last()->endDate(); navsecond = mExtraViews.first()->startDate(); @@ -167,9 +167,9 @@ void DateNavigatorContainer::selectDates( const DateList &dateList ) } } -void DateNavigatorContainer::setBaseDates( const QDate &start ) +void DateNavigatorContainer::setBaseDates( const TQDate &start ) { - QDate baseDate = start; + TQDate baseDate = start; mNavigatorView->setBaseDate( baseDate ); for( KDateNavigator *n = mExtraViews.first(); n; n = mExtraViews.next() ) { baseDate = KOGlobals::self()->calendarSystem()->addMonths( baseDate, 1 ); @@ -177,7 +177,7 @@ void DateNavigatorContainer::setBaseDates( const QDate &start ) } } -void DateNavigatorContainer::resizeEvent( QResizeEvent * ) +void DateNavigatorContainer::resizeEvent( TQResizeEvent * ) { #if 0 kdDebug(5850) << "DateNavigatorContainer::resizeEvent()" << endl; @@ -186,12 +186,12 @@ void DateNavigatorContainer::resizeEvent( QResizeEvent * ) kdDebug(5850) << " SIZEHINT: " << sizeHint() << endl; kdDebug(5850) << " MINIMUM SIZE: " << minimumSize() << endl; #endif - QTimer::singleShot( 0, this, SLOT( resizeAllContents() ) ); + TQTimer::singleShot( 0, this, TQT_SLOT( resizeAllContents() ) ); } void DateNavigatorContainer::resizeAllContents() { - QSize minSize = mNavigatorView->minimumSizeHint(); + TQSize minSize = mNavigatorView->minimumSizeHint(); // kdDebug(5850) << " NAVIGATORVIEW minimumSizeHint: " << minSize << endl; @@ -251,16 +251,16 @@ void DateNavigatorContainer::resizeAllContents() } } -QSize DateNavigatorContainer::minimumSizeHint() const +TQSize DateNavigatorContainer::minimumSizeHint() const { int margin = KDialog::spacingHint() * 2; - return mNavigatorView->minimumSizeHint() + QSize( margin, margin ); + return mNavigatorView->minimumSizeHint() + TQSize( margin, margin ); } -QSize DateNavigatorContainer::sizeHint() const +TQSize DateNavigatorContainer::sizeHint() const { int margin = KDialog::spacingHint() * 2; - return mNavigatorView->sizeHint() + QSize( margin, margin ); + return mNavigatorView->sizeHint() + TQSize( margin, margin ); } #include "datenavigatorcontainer.moc" |