diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-04-13 00:46:47 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-04-13 00:46:47 +0000 |
commit | 67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 (patch) | |
tree | 5f52a9eada2e9f3654fc327d7c14dfef570a6ecb /korganizer/koagendaview.cpp | |
parent | 2ee4bf4fd5eff93b2fbef0ff8e8063edffc5da5c (diff) | |
download | tdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.tar.gz tdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.zip |
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
Diffstat (limited to 'korganizer/koagendaview.cpp')
-rw-r--r-- | korganizer/koagendaview.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/korganizer/koagendaview.cpp b/korganizer/koagendaview.cpp index 8cc7c5616..49a21acf7 100644 --- a/korganizer/koagendaview.cpp +++ b/korganizer/koagendaview.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 <tqhbox.h> @@ -76,8 +76,8 @@ using namespace KOrg; -EventIndicator::EventIndicator(Location loc,TQWidget *parent,const char *name) - : TQFrame(parent,name) +EventIndicator::EventIndicator(Location loc,TQWidget *tqparent,const char *name) + : TQFrame(tqparent,name) { mColumns = 1; mEnabled.resize( mColumns ); @@ -133,8 +133,8 @@ void EventIndicator::enableColumn(int column, bool enable) KOAlternateLabel::KOAlternateLabel(const TQString &shortlabel, const TQString &longlabel, - const TQString &extensivelabel, TQWidget *parent, const char *name ) - : TQLabel(parent, name), mTextTypeFixed(false), mShortText(shortlabel), + const TQString &extensivelabel, TQWidget *tqparent, const char *name ) + : TQLabel(tqparent, name), mTextTypeFixed(false), mShortText(shortlabel), mLongText(longlabel), mExtensiveText(extensivelabel) { tqsetSizePolicy(TQSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Fixed )); @@ -248,10 +248,10 @@ TQSize KOAlternateLabel::tqminimumSizeHint() const KOAgendaView::KOAgendaView( Calendar *cal, CalendarView *calendarView, - TQWidget *parent, + TQWidget *tqparent, const char *name, bool isSideBySide ) : - KOrg::AgendaView (cal, parent,name), mExpandButton( 0 ), + KOrg::AgendaView (cal, tqparent,name), mExpandButton( 0 ), mAllowAgendaUpdate( true ), mUpdateItem( 0 ), mIsSideBySide( isSideBySide ), @@ -318,7 +318,7 @@ KOAgendaView::KOAgendaView( Calendar *cal, connect( mExpandButton, TQT_SIGNAL( clicked() ), TQT_SIGNAL( toggleExpand() ) ); } else { TQLabel *label = new TQLabel( i18n("All Day"), mDummyAllDayLeft ); - label->tqsetAlignment( Qt::AlignRight | Qt::AlignVCenter | Qt::WordBreak ); + label->tqsetAlignment( TQt::AlignRight | TQt::AlignVCenter | TQt::WordBreak ); } mAllDayAgenda = new KOAgenda( 1, calendarView, mAllDayFrame ); @@ -569,7 +569,7 @@ void KOAgendaView::zoomView( const int delta, const TQPoint &pos, //Zoom to the selected incidence, on the other way // zoom to the date on screen after the first mousewheel move. - if ( orient == Qt::Horizontal ) { + if ( orient == TQt::Horizontal ) { TQDate date=mAgenda->selectedIncidenceDate(); if ( date.isValid() ) zoomDate=date; @@ -649,7 +649,7 @@ void KOAgendaView::createDayLabels( bool force ) TQStringList::ConstIterator textit = texts.begin(); for ( ; textit != texts.end(); ++textit ) { // 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 ); + KOAlternateLabel*label = new KOAlternateLabel( (*textit), (*textit), TQString(), mDayLabels ); label->setMinimumWidth(1); label->tqsetAlignment(AlignCenter); dayLayout->addWidget(label); @@ -662,7 +662,7 @@ void KOAgendaView::createDayLabels( bool force ) TQString text = it->shortText( date ); if ( !text.isEmpty() ) { // 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 ); + KOAlternateLabel*label = new KOAlternateLabel( text, text, TQString(), mDayLabels ); label->setMinimumWidth(1); label->tqsetAlignment(AlignCenter); dayLayout->addWidget(label); @@ -783,7 +783,7 @@ void KOAgendaView::updateConfig() { // kdDebug(5850) << "KOAgendaView::updateConfig()" << endl; - // update config for children + // update config for tqchildren mTimeLabels->updateConfig(); mAgenda->updateConfig(); mAllDayAgenda->updateConfig(); @@ -813,7 +813,7 @@ void KOAgendaView::updateTimeBarWidth() int width; width = mDummyAllDayLeft->fontMetrics().width( i18n("All Day") ); - width = QMAX( width, mTimeLabels->width() ); + width = TQMAX( width, mTimeLabels->width() ); mDummyAllDayLeft->setFixedWidth( width ); mTimeLabels->setFixedWidth( width ); |