summaryrefslogtreecommitdiffstats
path: root/qtjava/javalib/examples/textedit/TextEdit.java
diff options
context:
space:
mode:
Diffstat (limited to 'qtjava/javalib/examples/textedit/TextEdit.java')
-rw-r--r--qtjava/javalib/examples/textedit/TextEdit.java178
1 files changed, 89 insertions, 89 deletions
diff --git a/qtjava/javalib/examples/textedit/TextEdit.java b/qtjava/javalib/examples/textedit/TextEdit.java
index c4adfa7a..2b4f9a3a 100644
--- a/qtjava/javalib/examples/textedit/TextEdit.java
+++ b/qtjava/javalib/examples/textedit/TextEdit.java
@@ -11,11 +11,11 @@
import org.kde.qt.*;
import java.util.HashMap;
-class TextEdit extends QMainWindow
+class TextEdit extends TQMainWindow
{
-private QAction actionTextBold,
+private TQAction actionTextBold,
actionTextUnderline,
actionTextItalic,
actionTextColor,
@@ -23,10 +23,10 @@ private QAction actionTextBold,
actionAlignCenter,
actionAlignRight,
actionAlignJustify;
- QComboBox comboStyle,
+ TQComboBox comboStyle,
comboFont,
comboSize;
-private QTabWidget tabWidget;
+private TQTabWidget tabWidget;
private HashMap filenames = new HashMap();
@@ -36,16 +36,16 @@ TextEdit( )
this(null, null);
}
-TextEdit( QWidget parent, String name )
+TextEdit( TQWidget parent, String name )
{
super( parent, name );
setupFileActions();
setupEditActions();
setupTextActions();
- tabWidget = new QTabWidget( this );
- connect( tabWidget, SIGNAL(" currentChanged( QWidget )"),
- this, SLOT(" editorChanged( QWidget )") );
+ tabWidget = new TQTabWidget( this );
+ connect( tabWidget, SIGNAL(" currentChanged( TQWidget )"),
+ this, SLOT(" editorChanged( TQWidget )") );
setCentralWidget( tabWidget );
if ( qApp().args().length == 0 ) {
@@ -58,67 +58,67 @@ TextEdit( QWidget parent, String name )
void setupFileActions()
{
- QToolBar tb = new QToolBar( this );
+ TQToolBar tb = new TQToolBar( this );
tb.setLabel( "File Actions" );
- QPopupMenu menu = new QPopupMenu( this );
+ TQPopupMenu menu = new TQPopupMenu( this );
menuBar().insertItem( tr( "&File" ), menu );
- QAction a;
- a = new QAction( tr( "New" ), new QIconSet(new QPixmap( "filenew.xpm" )), tr( "&New..." ), new QKeySequence(CTRL + Key_N), this, "fileNew" );
+ TQAction a;
+ a = new TQAction( tr( "New" ), new TQIconSet(new TQPixmap( "filenew.xpm" )), tr( "&New..." ), new TQKeySequence(CTRL + Key_N), this, "fileNew" );
connect( a, SIGNAL(" activated()"), this, SLOT(" fileNew()") );
a.addTo( tb );
a.addTo( menu );
- a = new QAction( tr( "Open" ), new QIconSet(new QPixmap( "fileopen.xpm" )), tr( "&Open..." ), new QKeySequence(CTRL + Key_O), this, "fileOpen" );
+ a = new TQAction( tr( "Open" ), new TQIconSet(new TQPixmap( "fileopen.xpm" )), tr( "&Open..." ), new TQKeySequence(CTRL + Key_O), this, "fileOpen" );
connect( a, SIGNAL(" activated()"), this, SLOT(" fileOpen()") );
a.addTo( tb );
a.addTo( menu );
menu.insertSeparator();
- a = new QAction( tr( "Save" ), new QIconSet(new QPixmap( "filesave.xpm" )), tr( "&Save..." ), new QKeySequence(CTRL + Key_S), this, "fileSave" );
+ a = new TQAction( tr( "Save" ), new TQIconSet(new TQPixmap( "filesave.xpm" )), tr( "&Save..." ), new TQKeySequence(CTRL + Key_S), this, "fileSave" );
connect( a, SIGNAL(" activated()"), this, SLOT(" fileSave()") );
a.addTo( tb );
a.addTo( menu );
- a = new QAction( tr( "Save As" ), new QIconSet(new QPixmap()), tr( "Save &As..." ), new QKeySequence(0), this, "fileSaveAs" );
+ a = new TQAction( tr( "Save As" ), new TQIconSet(new TQPixmap()), tr( "Save &As..." ), new TQKeySequence(0), this, "fileSaveAs" );
connect( a, SIGNAL(" activated()"), this, SLOT(" fileSaveAs()") );
a.addTo( menu );
menu.insertSeparator();
- a = new QAction( tr( "Print" ), new QIconSet(new QPixmap( "fileprint.xpm" )), tr( "&Print..." ), new QKeySequence(CTRL + Key_P), this, "filePrint" );
+ a = new TQAction( tr( "Print" ), new TQIconSet(new TQPixmap( "fileprint.xpm" )), tr( "&Print..." ), new TQKeySequence(CTRL + Key_P), this, "filePrint" );
connect( a, SIGNAL(" activated()"), this, SLOT(" filePrint()") );
a.addTo( tb );
a.addTo( menu );
- a = new QAction( tr( "Close" ), new QIconSet(new QPixmap()), tr( "&Close" ), new QKeySequence(0), this, "fileClose" );
+ a = new TQAction( tr( "Close" ), new TQIconSet(new TQPixmap()), tr( "&Close" ), new TQKeySequence(0), this, "fileClose" );
connect( a, SIGNAL(" activated()"), this, SLOT(" fileClose()") );
a.addTo( menu );
- a = new QAction( tr( "Exit" ), new QIconSet(new QPixmap()), tr( "E&xit" ), new QKeySequence(0), this, "fileExit" );
+ a = new TQAction( tr( "Exit" ), new TQIconSet(new TQPixmap()), tr( "E&xit" ), new TQKeySequence(0), this, "fileExit" );
connect( a, SIGNAL(" activated()"), this, SLOT(" fileExit()") );
a.addTo( menu );
}
void setupEditActions()
{
- QToolBar tb = new QToolBar( this );
+ TQToolBar tb = new TQToolBar( this );
tb.setLabel( "Edit Actions" );
- QPopupMenu menu = new QPopupMenu( this );
+ TQPopupMenu menu = new TQPopupMenu( this );
menuBar().insertItem( tr( "&Edit" ), menu );
- QAction a;
- a = new QAction( tr( "Undo" ), new QIconSet(new QPixmap( "editundo.xpm" )), tr( "&Undo" ), new QKeySequence(CTRL + Key_Z), this, "editUndo" );
+ TQAction a;
+ a = new TQAction( tr( "Undo" ), new TQIconSet(new TQPixmap( "editundo.xpm" )), tr( "&Undo" ), new TQKeySequence(CTRL + Key_Z), this, "editUndo" );
connect( a, SIGNAL(" activated()"), this, SLOT(" editUndo()") );
a.addTo( tb );
a.addTo( menu );
- a = new QAction( tr( "Redo" ), new QIconSet(new QPixmap( "editredo.xpm" )), tr( "&Redo" ), new QKeySequence(CTRL + Key_Y), this, "editRedo" );
+ a = new TQAction( tr( "Redo" ), new TQIconSet(new TQPixmap( "editredo.xpm" )), tr( "&Redo" ), new TQKeySequence(CTRL + Key_Y), this, "editRedo" );
connect( a, SIGNAL(" activated()"), this, SLOT(" editRedo()") );
a.addTo( tb );
a.addTo( menu );
menu.insertSeparator();
- a = new QAction( tr( "Copy" ), new QIconSet(new QPixmap( "editcopy.xpm" )), tr( "&Copy" ), new QKeySequence(CTRL + Key_C), this, "editCopy" );
+ a = new TQAction( tr( "Copy" ), new TQIconSet(new TQPixmap( "editcopy.xpm" )), tr( "&Copy" ), new TQKeySequence(CTRL + Key_C), this, "editCopy" );
connect( a, SIGNAL(" activated()"), this, SLOT(" editCopy()") );
a.addTo( tb );
a.addTo( menu );
- a = new QAction( tr( "Cut" ), new QIconSet(new QPixmap( "editcut.xpm" )), tr( "Cu&t" ), new QKeySequence(CTRL + Key_X), this, "editCut" );
+ a = new TQAction( tr( "Cut" ), new TQIconSet(new TQPixmap( "editcut.xpm" )), tr( "Cu&t" ), new TQKeySequence(CTRL + Key_X), this, "editCut" );
connect( a, SIGNAL(" activated()"), this, SLOT(" editCut()") );
a.addTo( tb );
a.addTo( menu );
- a = new QAction( tr( "Paste" ), new QIconSet(new QPixmap( "editpaste.xpm" )), tr( "&Paste" ), new QKeySequence(CTRL + Key_V), this, "editPaste" );
+ a = new TQAction( tr( "Paste" ), new TQIconSet(new TQPixmap( "editpaste.xpm" )), tr( "&Paste" ), new TQKeySequence(CTRL + Key_V), this, "editPaste" );
connect( a, SIGNAL(" activated()"), this, SLOT(" editPaste()") );
a.addTo( tb );
a.addTo( menu );
@@ -126,12 +126,12 @@ void setupEditActions()
void setupTextActions()
{
- QToolBar tb = new QToolBar( this );
+ TQToolBar tb = new TQToolBar( this );
tb.setLabel( "Format Actions" );
- QPopupMenu menu = new QPopupMenu( this );
+ TQPopupMenu menu = new TQPopupMenu( this );
menuBar().insertItem( tr( "F&ormat" ), menu );
- comboStyle = new QComboBox( false, tb );
+ comboStyle = new TQComboBox( false, tb );
comboStyle.insertItem( "Standard" );
comboStyle.insertItem( "Bullet List (Disc)" );
comboStyle.insertItem( "Bullet List (Circle)" );
@@ -142,64 +142,64 @@ void setupTextActions()
connect( comboStyle, SIGNAL(" activated( int )"),
this, SLOT(" textStyle( int )") );
- comboFont = new QComboBox( true, tb );
- QFontDatabase db = new QFontDatabase();
+ comboFont = new TQComboBox( true, tb );
+ TQFontDatabase db = new TQFontDatabase();
comboFont.insertStringList( (String[]) db.families().toArray(new String[0]) );
connect( comboFont, SIGNAL(" activated( String )"),
this, SLOT(" textFamily( String )") );
- comboFont.lineEdit().setText( QApplication.font().family() );
+ comboFont.lineEdit().setText( TQApplication.font().family() );
- comboSize = new QComboBox( true, tb );
+ comboSize = new TQComboBox( true, tb );
int[] sizes = db.standardSizes();
for (int i = 0; i < sizes.length; i++ )
comboSize.insertItem( Integer.toString(sizes[i]) );
connect( comboSize, SIGNAL(" activated( String )"),
this, SLOT(" textSize( String )") );
- comboSize.lineEdit().setText( Integer.toString( QApplication.font().pointSize() ) );
+ comboSize.lineEdit().setText( Integer.toString( TQApplication.font().pointSize() ) );
- actionTextBold = new QAction( tr( "Bold" ), new QIconSet(new QPixmap( "textbold.xpm" )), tr( "&Bold" ), new QKeySequence(CTRL + Key_B), this, "textBold" );
+ actionTextBold = new TQAction( tr( "Bold" ), new TQIconSet(new TQPixmap( "textbold.xpm" )), tr( "&Bold" ), new TQKeySequence(CTRL + Key_B), this, "textBold" );
connect( actionTextBold, SIGNAL(" activated()"), this, SLOT(" textBold()") );
actionTextBold.addTo( tb );
actionTextBold.addTo( menu );
actionTextBold.setToggleAction( true );
- actionTextItalic = new QAction( tr( "Italic" ), new QIconSet(new QPixmap( "textitalic.xpm" )), tr( "&Italic" ), new QKeySequence(CTRL + Key_I), this, "textItalic" );
+ actionTextItalic = new TQAction( tr( "Italic" ), new TQIconSet(new TQPixmap( "textitalic.xpm" )), tr( "&Italic" ), new TQKeySequence(CTRL + Key_I), this, "textItalic" );
connect( actionTextItalic, SIGNAL(" activated()"), this, SLOT(" textItalic()") );
actionTextItalic.addTo( tb );
actionTextItalic.addTo( menu );
actionTextItalic.setToggleAction( true );
- actionTextUnderline = new QAction( tr( "Underline" ), new QIconSet(new QPixmap( "textunder.xpm" )), tr( "&Underline" ), new QKeySequence(CTRL + Key_U), this, "textUnderline" );
+ actionTextUnderline = new TQAction( tr( "Underline" ), new TQIconSet(new TQPixmap( "textunder.xpm" )), tr( "&Underline" ), new TQKeySequence(CTRL + Key_U), this, "textUnderline" );
connect( actionTextUnderline, SIGNAL(" activated()"), this, SLOT(" textUnderline()") );
actionTextUnderline.addTo( tb );
actionTextUnderline.addTo( menu );
actionTextUnderline.setToggleAction( true );
menu.insertSeparator();
- QActionGroup grp = new QActionGroup( this );
+ TQActionGroup grp = new TQActionGroup( this );
grp.setExclusive( true );
- connect( grp, SIGNAL(" selected( QAction )"), this, SLOT(" textAlign( QAction )") );
+ connect( grp, SIGNAL(" selected( TQAction )"), this, SLOT(" textAlign( TQAction )") );
- actionAlignLeft = new QAction( tr( "Left" ), new QIconSet(new QPixmap( "textleft.xpm" )), tr( "&Left" ), new QKeySequence(CTRL + Key_L), grp, "textLeft" );
+ actionAlignLeft = new TQAction( tr( "Left" ), new TQIconSet(new TQPixmap( "textleft.xpm" )), tr( "&Left" ), new TQKeySequence(CTRL + Key_L), grp, "textLeft" );
actionAlignLeft.addTo( tb );
actionAlignLeft.addTo( menu );
actionAlignLeft.setToggleAction( true );
- actionAlignCenter = new QAction( tr( "Center" ), new QIconSet(new QPixmap( "textcenter.xpm" )), tr( "C&enter" ), new QKeySequence(CTRL + Key_E), grp, "textCenter" );
+ actionAlignCenter = new TQAction( tr( "Center" ), new TQIconSet(new TQPixmap( "textcenter.xpm" )), tr( "C&enter" ), new TQKeySequence(CTRL + Key_E), grp, "textCenter" );
actionAlignCenter.addTo( tb );
actionAlignCenter.addTo( menu );
actionAlignCenter.setToggleAction( true );
- actionAlignRight = new QAction( tr( "Right" ), new QIconSet(new QPixmap( "textright.xpm" )), tr( "&Right" ), new QKeySequence(CTRL + Key_R), grp, "textRight" );
+ actionAlignRight = new TQAction( tr( "Right" ), new TQIconSet(new TQPixmap( "textright.xpm" )), tr( "&Right" ), new TQKeySequence(CTRL + Key_R), grp, "textRight" );
actionAlignRight.addTo( tb );
actionAlignRight.addTo( menu );
actionAlignRight.setToggleAction( true );
- actionAlignJustify = new QAction( tr( "Justify" ), new QIconSet(new QPixmap( "textjustify.xpm" )), tr( "&Justify" ), new QKeySequence(CTRL + Key_J), grp, "textjustify" );
+ actionAlignJustify = new TQAction( tr( "Justify" ), new TQIconSet(new TQPixmap( "textjustify.xpm" )), tr( "&Justify" ), new TQKeySequence(CTRL + Key_J), grp, "textjustify" );
actionAlignJustify.addTo( tb );
actionAlignJustify.addTo( menu );
actionAlignJustify.setToggleAction( true );
menu.insertSeparator();
- QPixmap pix = new QPixmap( 16, 16 );
+ TQPixmap pix = new TQPixmap( 16, 16 );
pix.fill( black() );
- actionTextColor = new QAction( tr( "Color" ), new QIconSet(pix), tr( "&Color..." ), new QKeySequence(0), this, "textColor" );
+ actionTextColor = new TQAction( tr( "Color" ), new TQIconSet(pix), tr( "&Color..." ), new TQKeySequence(0), this, "textColor" );
connect( actionTextColor, SIGNAL(" activated()"), this, SLOT(" textColor()") );
actionTextColor.addTo( tb );
actionTextColor.addTo( menu );
@@ -207,42 +207,42 @@ void setupTextActions()
void load( String f )
{
- if ( !QFile.exists( f ) )
+ if ( !TQFile.exists( f ) )
return;
- QTextEdit edit = new QTextEdit( tabWidget );
+ TQTextEdit edit = new TQTextEdit( tabWidget );
doConnections( edit );
- tabWidget.addTab( edit, new QFileInfo( f ).fileName() );
- QFile file = new QFile( f );
- if ( !file.open( QIODevice.IO_ReadOnly ) )
+ tabWidget.addTab( edit, new TQFileInfo( f ).fileName() );
+ TQFile file = new TQFile( f );
+ if ( !file.open( TQIODevice.IO_ReadOnly ) )
return;
- QTextStream ts = new QTextStream( file );
+ TQTextStream ts = new TQTextStream( file );
edit.setText( ts.read() );
tabWidget.showPage( edit );
edit.viewport().setFocus();
filenames.put( edit, f );
}
-QTextEdit currentEditor()
+TTQTextEdit currentEditor()
{
if ( tabWidget.currentPage() != null &&
- tabWidget.currentPage().inherits( "QTextEdit" ) )
- return (QTextEdit)tabWidget.currentPage();
+ tabWidget.currentPage().inherits( "TQTextEdit" ) )
+ return (TQTextEdit)tabWidget.currentPage();
return null;
}
-void doConnections( QTextEdit e )
+void doConnections( TQTextEdit e )
{
- connect( e, SIGNAL(" currentFontChanged( QFont )"),
- this, SLOT(" fontChanged( QFont )") );
- connect( e, SIGNAL(" currentColorChanged( QColor )"),
- this, SLOT(" colorChanged( QColor )") );
+ connect( e, SIGNAL(" currentFontChanged( TQFont )"),
+ this, SLOT(" fontChanged( TQFont )") );
+ connect( e, SIGNAL(" currentColorChanged( TQColor )"),
+ this, SLOT(" colorChanged( TQColor )") );
connect( e, SIGNAL(" currentAlignmentChanged( int )"),
this, SLOT(" alignmentChanged( int )") );
}
void fileNew()
{
- QTextEdit edit = new QTextEdit( tabWidget );
+ TQTextEdit edit = new TQTextEdit( tabWidget );
edit.setTextFormat( RichText );
doConnections( edit );
tabWidget.addTab( edit, tr( "noname" ) );
@@ -252,7 +252,7 @@ void fileNew()
void fileOpen()
{
- String fn = QFileDialog.getOpenFileName( "", tr( "HTML-Files (*.htm *.html);;All Files (*)" ), this );
+ String fn = TQFileDialog.getOpenFileName( "", tr( "HTML-Files (*.htm *.html);;All Files (*)" ), this );
if ( !fn.equals("") )
load( fn );
}
@@ -265,10 +265,10 @@ void fileSave()
if ( !filenames.containsKey( currentEditor() ) ) {
fileSaveAs();
} else {
- QFile file = new QFile( (String) filenames.get( currentEditor() ) );
- if ( !file.open( QIODevice.IO_WriteOnly ) )
+ TQFile file = new TQFile( (String) filenames.get( currentEditor() ) );
+ if ( !file.open( TQIODevice.IO_WriteOnly ) )
return;
- QTextStream ts = new QTextStream( file );
+ TQTextStream ts = new TQTextStream( file );
ts.writeRawBytes(currentEditor().text(), currentEditor().text().length());
}
}
@@ -277,11 +277,11 @@ void fileSaveAs()
{
if ( currentEditor() == null )
return;
- String fn = QFileDialog.getSaveFileName( "", tr( "HTML-Files (*.htm *.html);;All Files (*)" ), this );
+ String fn = TQFileDialog.getSaveFileName( "", tr( "HTML-Files (*.htm *.html);;All Files (*)" ), this );
if ( !fn.equals("") ) {
filenames.put( currentEditor(), fn );
fileSave();
- tabWidget.setTabLabel( currentEditor(), new QFileInfo( fn ).fileName() );
+ tabWidget.setTabLabel( currentEditor(), new TQFileInfo( fn ).fileName() );
}
}
@@ -289,24 +289,24 @@ void filePrint()
{
if ( currentEditor() == null )
return;
- QPrinter printer = new QPrinter();
+ TQPrinter printer = new TQPrinter();
printer.setFullPage(true);
if ( printer.setup( this ) ) {
- QPainter p = new QPainter( printer );
+ TQPainter p = new TQPainter( printer );
// Check that there is a valid device to print to.
if ( p.device() == null ) return;
- QPaintDeviceMetrics metrics = new QPaintDeviceMetrics( p.device() );
+ TQPaintDeviceMetrics metrics = new TQPaintDeviceMetrics( p.device() );
int dpix = metrics.logicalDpiX();
int dpiy = metrics.logicalDpiY();
int margin = 72; // pt
- QRect body = new QRect( margin * dpix / 72, margin * dpiy / 72,
+ TQRect body = new TQRect( margin * dpix / 72, margin * dpiy / 72,
metrics.width() - margin * dpix / 72 * 2,
metrics.height() - margin * dpiy / 72 * 2 );
- QFont font = new QFont( "times", 10 );
- QSimpleRichText richText = new QSimpleRichText( currentEditor().text(), font, currentEditor().context(), currentEditor().styleSheet(),
+ TQFont font = new TQFont( "times", 10 );
+ TQSimpleRichText richText = new TQSimpleRichText( currentEditor().text(), font, currentEditor().context(), currentEditor().styleSheet(),
currentEditor().mimeSourceFactory(), body.height() );
richText.setWidth( p, body.width() );
- QRect view = new QRect( body.topLeft(), body.bottomRight() );
+ TQRect view = new TQRect( body.topLeft(), body.bottomRight() );
int page = 1;
do {
richText.draw( p, body.left(), body.top(), view, colorGroup() );
@@ -412,19 +412,19 @@ void textStyle( int i )
if ( currentEditor() == null )
return;
if ( i == 0 )
- currentEditor().setParagType( QStyleSheetItem.DisplayBlock, QStyleSheetItem.ListDisc );
+ currentEditor().setParagType( TQStyleSheetItem.DisplayBlock, TQStyleSheetItem.ListDisc );
else if ( i == 1 )
- currentEditor().setParagType( QStyleSheetItem.DisplayListItem, QStyleSheetItem.ListDisc );
+ currentEditor().setParagType( TQStyleSheetItem.DisplayListItem, TQStyleSheetItem.ListDisc );
else if ( i == 2 )
- currentEditor().setParagType( QStyleSheetItem.DisplayListItem, QStyleSheetItem.ListCircle );
+ currentEditor().setParagType( TQStyleSheetItem.DisplayListItem, TQStyleSheetItem.ListCircle );
else if ( i == 3 )
- currentEditor().setParagType( QStyleSheetItem.DisplayListItem, QStyleSheetItem.ListSquare );
+ currentEditor().setParagType( TQStyleSheetItem.DisplayListItem, TQStyleSheetItem.ListSquare );
else if ( i == 4 )
- currentEditor().setParagType( QStyleSheetItem.DisplayListItem, QStyleSheetItem.ListDecimal );
+ currentEditor().setParagType( TQStyleSheetItem.DisplayListItem, TQStyleSheetItem.ListDecimal );
else if ( i == 5 )
- currentEditor().setParagType( QStyleSheetItem.DisplayListItem, QStyleSheetItem.ListLowerAlpha );
+ currentEditor().setParagType( TQStyleSheetItem.DisplayListItem, TQStyleSheetItem.ListLowerAlpha );
else if ( i == 6 )
- currentEditor().setParagType( QStyleSheetItem.DisplayListItem, QStyleSheetItem.ListUpperAlpha );
+ currentEditor().setParagType( TQStyleSheetItem.DisplayListItem, TQStyleSheetItem.ListUpperAlpha );
currentEditor().viewport().setFocus();
}
@@ -432,16 +432,16 @@ void textColor()
{
if ( currentEditor() == null )
return;
- QColor col = QColorDialog.getColor( currentEditor().color(), this );
+ TQColor col = TQColorDialog.getColor( currentEditor().color(), this );
if ( !col.isValid() )
return;
currentEditor().setColor( col );
- QPixmap pix = new QPixmap( 16, 16 );
+ TQPixmap pix = new TQPixmap( 16, 16 );
pix.fill( black() );
- actionTextColor.setIconSet( new QIconSet(pix) );
+ actionTextColor.setIconSet( new TQIconSet(pix) );
}
-void textAlign( QAction a )
+void textAlign( TQAction a )
{
if ( currentEditor() == null )
return;
@@ -455,7 +455,7 @@ void textAlign( QAction a )
currentEditor().setAlignment( AlignJustify );
}
-void fontChanged( QFont f )
+void fontChanged( TQFont f )
{
comboFont.lineEdit().setText( f.family() );
comboSize.lineEdit().setText( Integer.toString( f.pointSize() ) );
@@ -464,11 +464,11 @@ void fontChanged( QFont f )
actionTextUnderline.setOn( f.underline() );
}
-void colorChanged( QColor c )
+void colorChanged( TQColor c )
{
- QPixmap pix = new QPixmap( 16, 16 );
+ TQPixmap pix = new TQPixmap( 16, 16 );
pix.fill( c );
- actionTextColor.setIconSet( new QIconSet(pix) );
+ actionTextColor.setIconSet( new TQIconSet(pix) );
}
void alignmentChanged( int a )
@@ -483,7 +483,7 @@ void alignmentChanged( int a )
actionAlignJustify.setOn( true );
}
-void editorChanged( QWidget w )
+void editorChanged( TQWidget w )
{
if ( currentEditor() == null )
return;