summaryrefslogtreecommitdiffstats
path: root/kontact/plugins/knotes/summarywidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kontact/plugins/knotes/summarywidget.cpp')
-rw-r--r--kontact/plugins/knotes/summarywidget.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/kontact/plugins/knotes/summarywidget.cpp b/kontact/plugins/knotes/summarywidget.cpp
index 2bd0456ca..0fbd7d9a9 100644
--- a/kontact/plugins/knotes/summarywidget.cpp
+++ b/kontact/plugins/knotes/summarywidget.cpp
@@ -23,7 +23,7 @@
#include <tqobject.h>
#include <tqlabel.h>
-#include <tqlayout.h>
+#include <layout.h>
#include <tqtooltip.h>
#include <dcopclient.h>
@@ -58,7 +58,7 @@ KNotesSummaryWidget::KNotesSummaryWidget( Kontact::Plugin *plugin,
mLayout = new TQGridLayout( mainLayout, 7, 3, 3 );
mLayout->setRowStretch( 6, 1 );
- mCalendar = new KCal::CalendarLocal( TQString::tqfromLatin1("UTC") );
+ mCalendar = new KCal::CalendarLocal( TQString::fromLatin1("UTC") );
KNotesResourceManager *manager = new KNotesResourceManager();
TQObject::connect( manager, TQT_SIGNAL( sigRegisteredNote( KCal::Journal* ) ),
@@ -92,8 +92,8 @@ void KNotesSummaryWidget::updateView()
// Fill Note Pixmap Field
label = new TQLabel( this );
label->setPixmap( pm );
- label->setMaximumWidth( label->tqminimumSizeHint().width() );
- label->tqsetAlignment( AlignVCenter );
+ label->setMaximumWidth( label->minimumSizeHint().width() );
+ label->setAlignment( AlignVCenter );
mLayout->addWidget( label, counter, 0 );
mLabels.append( label );
@@ -103,7 +103,7 @@ void KNotesSummaryWidget::updateView()
KURLLabel *urlLabel = new KURLLabel( (*it)->uid(), newtext, this );
urlLabel->installEventFilter( this );
urlLabel->setTextFormat(RichText);
- urlLabel->tqsetAlignment( urlLabel->tqalignment() | TQt::WordBreak );
+ urlLabel->setAlignment( urlLabel->alignment() | TQt::WordBreak );
mLayout->addWidget( urlLabel, counter, 1 );
mLabels.append( urlLabel );
@@ -118,7 +118,7 @@ void KNotesSummaryWidget::updateView()
} else {
TQLabel *noNotes = new TQLabel( i18n( "No Notes Available" ), this );
- noNotes->tqsetAlignment( AlignHCenter | AlignVCenter );
+ noNotes->setAlignment( AlignHCenter | AlignVCenter );
mLayout->addWidget( noNotes, 0, 1 );
mLabels.append( noNotes );
}
@@ -140,7 +140,7 @@ bool KNotesSummaryWidget::eventFilter( TQObject *obj, TQEvent* e )
if ( obj->inherits( "KURLLabel" ) ) {
KURLLabel* label = static_cast<KURLLabel*>( TQT_TQWIDGET(obj) );
if ( e->type() == TQEvent::Enter )
- emit message( i18n( "Read Note: \"%1\"" ).tqarg( label->text() ) );
+ emit message( i18n( "Read Note: \"%1\"" ).arg( label->text() ) );
if ( e->type() == TQEvent::Leave )
emit message( TQString() );
}