summaryrefslogtreecommitdiffstats
path: root/korganizer/koagendaview.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-02-16 20:17:18 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-02-16 20:17:18 +0000
commitf4fae92b6768541e2952173c3d4b09040f95bf7e (patch)
treed8c5d93232235cd635f3310b4d95490df181ba2d /korganizer/koagendaview.cpp
parent125c0a08265b75a133644d3b55f47e37c919f45d (diff)
downloadtdepim-f4fae92b6768541e2952173c3d4b09040f95bf7e.tar.gz
tdepim-f4fae92b6768541e2952173c3d4b09040f95bf7e.zip
Moved kpilot from kdepim to applications, as the core Trinity libraries should not contain hardware-dependent software
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1221127 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'korganizer/koagendaview.cpp')
-rw-r--r--korganizer/koagendaview.cpp40
1 files changed, 20 insertions, 20 deletions
diff --git a/korganizer/koagendaview.cpp b/korganizer/koagendaview.cpp
index c60546f7b..8cc7c5616 100644
--- a/korganizer/koagendaview.cpp
+++ b/korganizer/koagendaview.cpp
@@ -137,7 +137,7 @@ KOAlternateLabel::KOAlternateLabel(const TQString &shortlabel, const TQString &l
: TQLabel(parent, name), mTextTypeFixed(false), mShortText(shortlabel),
mLongText(longlabel), mExtensiveText(extensivelabel)
{
- setSizePolicy(TQSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Fixed ));
+ tqsetSizePolicy(TQSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Fixed ));
if (mExtensiveText.isEmpty()) mExtensiveText = mLongText;
squeezeTextToLabel();
}
@@ -235,9 +235,9 @@ void KOAlternateLabel::resizeEvent( TQResizeEvent * )
squeezeTextToLabel();
}
-TQSize KOAlternateLabel::minimumSizeHint() const
+TQSize KOAlternateLabel::tqminimumSizeHint() const
{
- TQSize sh = TQLabel::minimumSizeHint();
+ TQSize sh = TQLabel::tqminimumSizeHint();
sh.setWidth(-1);
return sh;
}
@@ -258,7 +258,7 @@ KOAgendaView::KOAgendaView( Calendar *cal,
mPendingChanges( true ),
mAreDatesInitialized( false )
{
- mSelectedDates.append(TQDate::currentDate());
+ mSelectedDates.append(TQDate::tqcurrentDate());
mLayoutDayLabels = 0;
mDayLabelsFrame = 0;
@@ -313,12 +313,12 @@ KOAgendaView::KOAgendaView( Calendar *cal,
if ( KOPrefs::instance()->compactDialogs() ) {
mExpandButton = new TQPushButton(mDummyAllDayLeft);
mExpandButton->setPixmap( mNotExpandedPixmap );
- mExpandButton->setSizePolicy( TQSizePolicy( TQSizePolicy::Fixed,
+ mExpandButton->tqsetSizePolicy( TQSizePolicy( TQSizePolicy::Fixed,
TQSizePolicy::Fixed ) );
connect( mExpandButton, TQT_SIGNAL( clicked() ), TQT_SIGNAL( toggleExpand() ) );
} else {
TQLabel *label = new TQLabel( i18n("All Day"), mDummyAllDayLeft );
- label->setAlignment( Qt::AlignRight | Qt::AlignVCenter | Qt::WordBreak );
+ label->tqsetAlignment( Qt::AlignRight | Qt::AlignVCenter | Qt::WordBreak );
}
mAllDayAgenda = new KOAgenda( 1, calendarView, mAllDayFrame );
@@ -476,7 +476,7 @@ void KOAgendaView::zoomInVertically( )
mTimeLabels->updateConfig();
mTimeLabels->positionChanged();
- mTimeLabels->repaint();
+ mTimeLabels->tqrepaint();
updateView();
}
@@ -493,7 +493,7 @@ void KOAgendaView::zoomOutVertically( )
mTimeLabels->updateConfig();
mTimeLabels->positionChanged();
- mTimeLabels->repaint();
+ mTimeLabels->tqrepaint();
updateView();
}
@@ -635,8 +635,8 @@ void KOAgendaView::createDayLabels( bool force )
longstr, veryLongStr, mDayLabels);
dayLabel->useShortText(); // will be recalculated in updateDayLabelSizes() anyway
dayLabel->setMinimumWidth(1);
- dayLabel->setAlignment(TQLabel::AlignHCenter);
- if (date == TQDate::currentDate()) {
+ dayLabel->tqsetAlignment(TQLabel::AlignHCenter);
+ if (date == TQDate::tqcurrentDate()) {
TQFont font = dayLabel->font();
font.setBold(true);
dayLabel->setFont(font);
@@ -651,7 +651,7 @@ void KOAgendaView::createDayLabels( bool force )
// use a KOAlternateLabel so when the text doesn't fit any more a tooltip is used
KOAlternateLabel*label = new KOAlternateLabel( (*textit), (*textit), TQString::null, mDayLabels );
label->setMinimumWidth(1);
- label->setAlignment(AlignCenter);
+ label->tqsetAlignment(AlignCenter);
dayLayout->addWidget(label);
}
@@ -664,7 +664,7 @@ void KOAgendaView::createDayLabels( bool force )
// use a KOAlternateLabel so when the text doesn't fit any more a tooltip is used
KOAlternateLabel*label = new KOAlternateLabel( text, text, TQString::null, mDayLabels );
label->setMinimumWidth(1);
- label->setAlignment(AlignCenter);
+ label->tqsetAlignment(AlignCenter);
dayLayout->addWidget(label);
}
}
@@ -696,7 +696,7 @@ int KOAgendaView::maxDatesHint()
return 0;
}
-int KOAgendaView::currentDateCount()
+int KOAgendaView::tqcurrentDateCount()
{
return mSelectedDates.count();
}
@@ -793,7 +793,7 @@ void KOAgendaView::updateConfig()
mTimeLabels->positionChanged();
// for some reason, this needs to be called explicitly
- mTimeLabels->repaint();
+ mTimeLabels->tqrepaint();
updateTimeBarWidth();
@@ -1343,7 +1343,7 @@ void KOAgendaView::changeIncidenceDisplay( Incidence *incidence, int mode )
}
// HACK: Update the view if the all-day agenda has been modified.
- // Do this because there are some layout problems in the
+ // Do this because there are some tqlayout problems in the
// all-day agenda that are not easily solved, but clearing
// and redrawing works ok.
if ( incidence->doesFloat() ) {
@@ -1420,7 +1420,7 @@ void KOAgendaView::fillAgenda()
void KOAgendaView::displayIncidence( Incidence *incidence )
{
- TQDate today = TQDate::currentDate();
+ TQDate today = TQDate::tqcurrentDate();
DateTimeList::iterator t;
// FIXME: use a visitor here
@@ -1523,7 +1523,7 @@ void KOAgendaView::clearView()
CalPrinterBase::PrintType KOAgendaView::printType()
{
- if ( currentDateCount() == 1 ) return CalPrinterBase::Day;
+ if ( tqcurrentDateCount() == 1 ) return CalPrinterBase::Day;
else return CalPrinterBase::Week;
}
@@ -1639,7 +1639,7 @@ void KOAgendaView::setHolidayMasks()
}
// Store the information about the day before the visible area (needed for
- // overnight working hours) in the last bit of the mask:
+ // overnight working hours) in the last bit of the tqmask:
bool showDay = !KOGlobals::self()->isWorkDay( mSelectedDates[ 0 ].addDays( -1 ) );
mHolidayMask[ mSelectedDates.count() ] = showDay;
@@ -1754,8 +1754,8 @@ bool KOAgendaView::filterByResource( Incidence *incidence )
if ( resourceCalendar()->subresourceType( subRes ) == "todo" ) {
TQString calmatch = "/.INBOX.directory/Calendar";
TQString i18nmatch = "/.INBOX.directory/" + i18n( "Calendar" );
- if ( subResourceCalendar().contains( calmatch ) ||
- subResourceCalendar().contains( i18nmatch ) ) {
+ if ( subResourceCalendar().tqcontains( calmatch ) ||
+ subResourceCalendar().tqcontains( i18nmatch ) ) {
return true;
}
}