diff options
Diffstat (limited to 'koffice-i18n-ca/docs/koffice/chalk')
-rw-r--r-- | koffice-i18n-ca/docs/koffice/chalk/developers-plugins.docbook | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/koffice-i18n-ca/docs/koffice/chalk/developers-plugins.docbook b/koffice-i18n-ca/docs/koffice/chalk/developers-plugins.docbook index af2c07e6..22d3a517 100644 --- a/koffice-i18n-ca/docs/koffice/chalk/developers-plugins.docbook +++ b/koffice-i18n-ca/docs/koffice/chalk/developers-plugins.docbook @@ -981,7 +981,7 @@ void KisToolStar::move(KisMoveEvent *event) // erase old lines on canvas draw(m_dragStart, m_dragEnd); // move (alt) or resize star - if (event->state() & Qt::AltButton) { + if (event->state() & TQt::AltButton) { KisPoint trans = event->pos() - m_dragEnd; m_dragStart += trans; m_dragEnd += trans; @@ -1049,7 +1049,7 @@ void KisToolStar::buttonRelease(KisButtonReleaseEvent *event) > i dibuixa la vora d'una estrella. Ho cridem amb el mètode <methodname >move()</methodname > per a donar retroalimentació a l'usuari de la mida i forma de la seva estrella. Noteu que usem l'operació <varname ->Qt::NotROP</varname +>TQt::NotROP</varname >, que vol dir que cridant <methodname >draw()</methodname > per segon cop amb el mateix començament i el punt final, s'esborrarà l'estrella dibuixada prèviament. </para> @@ -1063,14 +1063,14 @@ void KisToolStar::buttonRelease(KisButtonReleaseEvent *event) KisCanvasController *controller = m_subject->canvasController(); KisCanvas *canvas = controller->kiscanvas(); KisCanvasPainter p (canvas); - QPen pen(Qt::SolidLine); + QPen pen(TQt::SolidLine); KisPoint startPos; KisPoint endPos; startPos = controller->windowToView(start); endPos = controller->windowToView(end); - p.setRasterOp(Qt::NotROP); + p.setRasterOp(TQt::NotROP); vKisPoint points = starCoordinates(m_vertices, startPos.x(), startPos.y(), endPos.x(), endPos.y()); @@ -1096,8 +1096,8 @@ void KisToolStar::buttonRelease(KisButtonReleaseEvent *event) m_action = static_cast<TDERadioAction *>(collection->action(name())); if (m_action == 0) { - TDEShortcut shortcut(Qt::Key_Plus); - shortcut.append(TDEShortcut(Qt::Key_F9)); + TDEShortcut shortcut(TQt::Key_Plus); + shortcut.append(TDEShortcut(TQt::Key_F9)); m_action = new TDERadioAction(i18n("&Star"), "tool_star", shortcut, |