summaryrefslogtreecommitdiffstats
path: root/knotes/knote.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'knotes/knote.cpp')
-rw-r--r--knotes/knote.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/knotes/knote.cpp b/knotes/knote.cpp
index 17d482e37..f5ebfe3bf 100644
--- a/knotes/knote.cpp
+++ b/knotes/knote.cpp
@@ -82,7 +82,7 @@ int KNote::s_ppOffset = 0;
KNote::KNote( TQDomDocument buildDoc, Journal *j, TQWidget *tqparent, const char *name )
: TQFrame( tqparent, name, WStyle_Customize | WStyle_NoBorder | WDestructiveClose ),
m_label( 0 ), m_pushpin( 0 ), m_fold( 0 ), m_button( 0 ), m_tool( 0 ), m_editor( 0 ),
- m_config( 0 ), m_journal( j ), m_tqfind( 0 ),
+ m_config( 0 ), m_journal( j ), m_find( 0 ),
m_kwinConf( KSharedConfig::openConfig( "kwinrc", true ) ),
m_busy( 0 ), m_deleteWhenIdle( false ), m_blockEmitDataChanged( false )
{
@@ -264,7 +264,7 @@ KNote::KNote( TQDomDocument buildDoc, Journal *j, TQWidget *tqparent, const char
bool closeLeft = false;
m_kwinConf->setGroup( "Style" );
if ( m_kwinConf->readBoolEntry( "CustomButtonPositions" ) )
- closeLeft = m_kwinConf->readEntry( "ButtonsOnLeft" ).tqfind( 'X' ) > -1;
+ closeLeft = m_kwinConf->readEntry( "ButtonsOnLeft" ).find( 'X' ) > -1;
TQPixmap pushpin_pix;
if ( closeLeft )
@@ -575,33 +575,33 @@ void KNote::setColor( const TQColor& fg, const TQColor& bg )
emit sigColorChanged();
}
-void KNote::tqfind( const TQString& pattern, long options )
+void KNote::find( const TQString& pattern, long options )
{
- delete m_tqfind;
- m_tqfind = new KFind( pattern, options, this );
+ delete m_find;
+ m_find = new KFind( pattern, options, this );
- connect( m_tqfind, TQT_SIGNAL(highlight( const TQString &, int, int )),
+ connect( m_find, TQT_SIGNAL(highlight( const TQString &, int, int )),
TQT_TQOBJECT(this), TQT_SLOT(slotHighlight( const TQString &, int, int )) );
- connect( m_tqfind, TQT_SIGNAL(findNext()), TQT_TQOBJECT(this), TQT_SLOT(slotFindNext()) );
+ connect( m_find, TQT_SIGNAL(findNext()), TQT_TQOBJECT(this), TQT_SLOT(slotFindNext()) );
- m_tqfind->setData( plainText() );
+ m_find->setData( plainText() );
slotFindNext();
}
void KNote::slotFindNext()
{
// TODO: honor FindBackwards
- // TODO: dialogClosed() -> delete m_tqfind
+ // TODO: dialogClosed() -> delete m_find
// Let KFind inspect the text fragment, and display a dialog if a match is found
- KFind::Result res = m_tqfind->find();
+ KFind::Result res = m_find->find();
if ( res == KFind::NoMatch ) // i.e. at end-pos
{
m_editor->removeSelection( 1 );
emit sigFindFinished();
- delete m_tqfind;
- m_tqfind = 0;
+ delete m_find;
+ m_find = 0;
}
else
{
@@ -1167,7 +1167,7 @@ void KNote::updateLayout()
m_kwinConf->setGroup( "Style" );
if ( m_kwinConf->readBoolEntry( "CustomButtonPositions" ) )
- closeLeft = m_kwinConf->readEntry( "ButtonsOnLeft" ).tqfind( 'X' ) > -1;
+ closeLeft = m_kwinConf->readEntry( "ButtonsOnLeft" ).find( 'X' ) > -1;
if ( s_ppOffset )
{