summaryrefslogtreecommitdiffstats
path: root/knotes/knote.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'knotes/knote.cpp')
-rw-r--r--knotes/knote.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/knotes/knote.cpp b/knotes/knote.cpp
index 430a5dca5..0571bb1bc 100644
--- a/knotes/knote.cpp
+++ b/knotes/knote.cpp
@@ -772,7 +772,7 @@ void KNote::slotClose()
void KNote::slotInsDate()
{
- m_editor->insert( KGlobal::locale()->formatDateTime(TQDateTime::tqcurrentDateTime()) );
+ m_editor->insert( KGlobal::locale()->formatDateTime(TQDateTime::currentDateTime()) );
}
void KNote::slotSetAlarm()
@@ -859,7 +859,7 @@ void KNote::slotPrint()
printer.setFont( m_config->font() );
printer.setContext( m_editor->context() );
printer.setStyleSheet( m_editor->styleSheet() );
- printer.tqsetColorGroup( tqcolorGroup() );
+ printer.setColorGroup( colorGroup() );
printer.printNote( TQString(), content );
}
@@ -1033,9 +1033,9 @@ void KNote::updateLabelAlignment()
// if the name is too long to fit, left-align it, otherwise center it (#59028)
TQString labelText = m_label->text();
if ( m_label->fontMetrics().boundingRect( labelText ).width() > m_label->width() )
- m_label->tqsetAlignment( AlignLeft );
+ m_label->setAlignment( AlignLeft );
else
- m_label->tqsetAlignment( AlignHCenter );
+ m_label->setAlignment( AlignHCenter );
}
void KNote::updateFocus()
@@ -1121,7 +1121,7 @@ void KNote::updateBackground( int y_offset )
{
if ( !s_ppOffset )
{
- m_editor->setPaper( TQBrush( tqcolorGroup().background() ) );
+ m_editor->setPaper( TQBrush( colorGroup().background() ) );
return;
}
@@ -1161,7 +1161,7 @@ void KNote::updateBackground( int y_offset )
void KNote::updateLayout()
{
- const int headerHeight = m_label->tqsizeHint().height();
+ const int headerHeight = m_label->sizeHint().height();
const int margin = m_editor->margin();
bool closeLeft = false;
@@ -1241,9 +1241,9 @@ void KNote::drawFrame( TQPainter *p )
TQRect r = frameRect();
r.setTop( s_ppOffset );
if ( s_ppOffset )
- qDrawShadePanel( p, r, tqcolorGroup(), false, lineWidth() );
+ qDrawShadePanel( p, r, colorGroup(), false, lineWidth() );
else
- qDrawWinPanel( p, r, tqcolorGroup(), false );
+ qDrawWinPanel( p, r, colorGroup(), false );
}
void KNote::showEvent( TQShowEvent * )