diff options
author | Michele Calgaro <[email protected]> | 2023-11-05 11:54:42 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2023-11-16 23:41:00 +0900 |
commit | c0d03513869ef81f83ab5a6a7497b6e6dfa07dbf (patch) | |
tree | fc06a8929e8ab3e3ca7bd5e8066f93d99d2bdfdd /koffice-i18n-nl/docs/koffice/chalk/developers-plugins.docbook | |
parent | 0340f1522f03b8ea0b09b69911668bc41a47ac0f (diff) | |
download | koffice-i18n-c0d03513869ef81f83ab5a6a7497b6e6dfa07dbf.tar.gz koffice-i18n-c0d03513869ef81f83ab5a6a7497b6e6dfa07dbf.zip |
Replace Qt with TQt
Signed-off-by: Michele Calgaro <[email protected]>
(cherry picked from commit 050c10cdbd4f42edd6fe5d68cce2765e56adb157)
Diffstat (limited to 'koffice-i18n-nl/docs/koffice/chalk/developers-plugins.docbook')
-rw-r--r-- | koffice-i18n-nl/docs/koffice/chalk/developers-plugins.docbook | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/koffice-i18n-nl/docs/koffice/chalk/developers-plugins.docbook b/koffice-i18n-nl/docs/koffice/chalk/developers-plugins.docbook index 8b1a2628..2bda8c23 100644 --- a/koffice-i18n-nl/docs/koffice/chalk/developers-plugins.docbook +++ b/koffice-i18n-nl/docs/koffice/chalk/developers-plugins.docbook @@ -982,7 +982,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; @@ -1050,7 +1050,7 @@ void KisToolStar::buttonRelease(KisButtonReleaseEvent *event) > and draws the outline of the star. We call this from the <methodname >move()</methodname > method to give the user feedback of the size and shape of their star. Note that we use the <varname ->Qt::NotROP</varname +>TQt::NotROP</varname > raster operation, which means that calling <methodname >draw()</methodname > a second time with the same start and end point the previously drawn star will be deleted. </para> @@ -1064,14 +1064,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()); @@ -1097,8 +1097,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, |