From e63beeb5bdb82987b1e00bc35178667786fbad48 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Mon, 5 Dec 2011 16:20:48 -0600 Subject: Fix incorrect conversion --- xparts/xpart_notepad/xp_notepad.cpp | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'xparts/xpart_notepad/xp_notepad.cpp') diff --git a/xparts/xpart_notepad/xp_notepad.cpp b/xparts/xpart_notepad/xp_notepad.cpp index 98f9d5dc..5dc7157c 100644 --- a/xparts/xpart_notepad/xp_notepad.cpp +++ b/xparts/xpart_notepad/xp_notepad.cpp @@ -10,7 +10,7 @@ #include "xparthost_stub.h" -class XPartNotepad : public TTQMultiLineEdit, virtual public XPart +class XPartNotepad : public TQMultiLineEdit, virtual public XPart { public: @@ -19,7 +19,7 @@ public: setText("This is a xpart component editor"); setReadOnly( false ); resize( 200, 200 ); - TTQMultiLineEdit::setFocus(); + TQMultiLineEdit::setFocus(); } /** needed by XPartManager to embed the part */ @@ -28,17 +28,17 @@ public: /** used by XPartManager to show the part */ void show() - { printf("show()\n"); TTQWidget::show(); } + { printf("show()\n"); TQWidget::show(); } /** sent by the XPartHost to query an url */ - bool openURL( const TTQCString& url ) + bool openURL( const TQCString& url ) { printf("openURL %s\n", (const char *) url ); - TTQFile f(url); - TTQString s; + TQFile f(url); + TQString s; if ( ! f.open(IO_ReadOnly) ) { return false; } - TTQTextStream t( &f ); + TQTextStream t( &f ); while ( !t.eof() ) { s += t.readLine() + "\n"; } @@ -56,20 +56,20 @@ public: * * action, state is used with Toggle actions to * precise the current state. * */ - void activateAction( const TTQString &name, int state ) + void activateAction( const TQString &name, int state ) { printf("activateAction: %s, %d\n", name.latin1(), state ); } /** are extentions available -> browser extension * / TextEditor ? */ - DCOPRef queryExtension( const TTQCString& extension ) + DCOPRef queryExtension( const TQCString& extension ) { printf("query Extension : %s\n", (const char * ) extension ); return DCOPRef(); } protected: - void focusInEvent( TTQFocusEvent * ) - { kdDebug() << "Focus in" << endl; TTQMultiLineEdit::setFocus(); } - void focusOutEvent( TTQFocusEvent * ) - { kdDebug() << "Focus Out" << endl;TTQMultiLineEdit::setFocus(); } + void focusInEvent( TQFocusEvent * ) + { kdDebug() << "Focus in" << endl; TQMultiLineEdit::setFocus(); } + void focusOutEvent( TQFocusEvent * ) + { kdDebug() << "Focus Out" << endl;TQMultiLineEdit::setFocus(); } }; int main( int argc, char **argv ) @@ -84,7 +84,7 @@ int main( int argc, char **argv ) XPartNotepad * xpn = new XPartNotepad("xp_notepad"); app.setMainWidget( xpn ); app.dcopClient()->attach(); - TTQCString appId = app.dcopClient()->registerAs("xp_notepad", true); + TQCString appId = app.dcopClient()->registerAs("xp_notepad", true); XPartHost_stub xph_stub( argv[1], argv[2] ); DCOPRef xpn_dcopref( xpn ); -- cgit v1.2.1