summaryrefslogtreecommitdiffstats
path: root/kontact/interfaces
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-18 18:34:45 -0600
committerSlávek Banko <slavek.banko@axis.cz>2012-06-03 04:24:29 +0200
commite3649f744289c180537d2d8474dc0e39050e654f (patch)
tree5d3d773985c0bfdfed5e0aed35fe8b2441d60787 /kontact/interfaces
parent4b4a3f32d8e71d79626206211ee6e23ee1e968b8 (diff)
downloadtdepim-e3649f744289c180537d2d8474dc0e39050e654f.tar.gz
tdepim-e3649f744289c180537d2d8474dc0e39050e654f.zip
Rename old tq methods that no longer need a unique name
(cherry picked from commit 0e00c0a86a4c9d7e80c7b66d91940cc7dcb79f78)
Diffstat (limited to 'kontact/interfaces')
-rw-r--r--kontact/interfaces/core.cpp8
-rw-r--r--kontact/interfaces/summary.cpp14
2 files changed, 11 insertions, 11 deletions
diff --git a/kontact/interfaces/core.cpp b/kontact/interfaces/core.cpp
index e4e44e70..ed8848c6 100644
--- a/kontact/interfaces/core.cpp
+++ b/kontact/interfaces/core.cpp
@@ -42,7 +42,7 @@ Core::Core( TQWidget *parent, const char *name )
{
d = new Private;
TQTimer* timer = new TQTimer( this );
- mLastDate = TQDate::tqcurrentDate();
+ mLastDate = TQDate::currentDate();
connect(timer, TQT_SIGNAL( timeout() ), TQT_SLOT( checkNewDay() ) );
timer->start( 1000*60 );
}
@@ -114,10 +114,10 @@ void Core::slotPartDestroyed( TQObject * obj )
void Core::checkNewDay()
{
- if ( mLastDate != TQDate::tqcurrentDate() )
- emit dayChanged( TQDate::tqcurrentDate() );
+ if ( mLastDate != TQDate::currentDate() )
+ emit dayChanged( TQDate::currentDate() );
- mLastDate = TQDate::tqcurrentDate();
+ mLastDate = TQDate::currentDate();
}
TQString Core::lastErrorMessage() const
diff --git a/kontact/interfaces/summary.cpp b/kontact/interfaces/summary.cpp
index 08512522..ece3a577 100644
--- a/kontact/interfaces/summary.cpp
+++ b/kontact/interfaces/summary.cpp
@@ -55,20 +55,20 @@ TQWidget* Summary::createHeader(TQWidget *parent, const TQPixmap& icon, const TQ
TQLabel *label = new TQLabel( hbox );
label->setPixmap( icon );
- label->setFixedSize( label->tqsizeHint() );
- label->setPaletteBackgroundColor( tqcolorGroup().mid() );
+ label->setFixedSize( label->sizeHint() );
+ label->setPaletteBackgroundColor( colorGroup().mid() );
label->setAcceptDrops( true );
label = new TQLabel( heading, hbox );
- label->tqsetAlignment( AlignLeft|AlignVCenter );
+ label->setAlignment( AlignLeft|AlignVCenter );
label->setIndent( KDialog::spacingHint() );
label->setFont( boldFont );
- label->setPaletteForegroundColor( tqcolorGroup().light() );
- label->setPaletteBackgroundColor( tqcolorGroup().mid() );
+ label->setPaletteForegroundColor( colorGroup().light() );
+ label->setPaletteBackgroundColor( colorGroup().mid() );
- hbox->setPaletteBackgroundColor( tqcolorGroup().mid() );
+ hbox->setPaletteBackgroundColor( colorGroup().mid() );
- hbox->setMaximumHeight( hbox->tqminimumSizeHint().height() );
+ hbox->setMaximumHeight( hbox->minimumSizeHint().height() );
return hbox;
}