diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-11-04 22:03:54 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-11-05 11:34:05 +0900 |
| commit | 420fcb6c991b2c21d5919db2af202e7f444f9326 (patch) | |
| tree | c6a2c38cdd7ab8a193f25a0a51ebb5aa7fe8c386 /src/drawparts/dpline.cpp | |
| parent | 4f72176a0ff3c10fa366a67a45a11cf538d1c4eb (diff) | |
| download | ktechlab-420fcb6c.tar.gz ktechlab-420fcb6c.zip | |
Replace Qt with TQt
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit c5554a5f82ebc79fbda3940ee904e71490fb13d6)
Diffstat (limited to 'src/drawparts/dpline.cpp')
| -rw-r--r-- | src/drawparts/dpline.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/drawparts/dpline.cpp b/src/drawparts/dpline.cpp index 5127a0e..0a9d019 100644 --- a/src/drawparts/dpline.cpp +++ b/src/drawparts/dpline.cpp @@ -56,12 +56,12 @@ DPLine::DPLine( ItemDocument *itemDocument, bool newItem, const char *id ) createProperty( "line-style", Variant::Type::PenStyle ); property("line-style")->setCaption( i18n("Line Style") ); property("line-style")->setAdvanced(true); - setDataPenStyle( "line-style", Qt::SolidLine ); + setDataPenStyle( "line-style", TQt::SolidLine ); createProperty( "cap-style", Variant::Type::PenCapStyle ); property("cap-style")->setCaption( i18n("Cap Style") ); property("cap-style")->setAdvanced(true); - setDataPenCapStyle( "cap-style", Qt::FlatCap ); + setDataPenCapStyle( "cap-style", TQt::FlatCap ); } DPLine::~DPLine() @@ -84,7 +84,7 @@ void DPLine::dataChanged() unsigned( dataInt("line-width") ), getDataPenStyle("line-style"), getDataPenCapStyle("cap-style"), - Qt::MiterJoin ) ); + TQt::MiterJoin ) ); postResize(); // in case the pen width has changed update(); @@ -171,7 +171,7 @@ DPArrow::DPArrow( ItemDocument *itemDocument, bool newItem, const char *id ) // We don't want to use the square cap style as it screws up drawing our arrow head TQStringList allowed = property("cap-style")->allowed(); - allowed.remove( DrawPart::penCapStyleToName( Qt::SquareCap ) ); + allowed.remove( DrawPart::penCapStyleToName( TQt::SquareCap ) ); property("cap-style")->setAllowed(allowed); } @@ -211,7 +211,7 @@ void DPArrow::drawShape( TQPainter & p ) // Draw arrowhead TQPen pen = p.pen(); - pen.setCapStyle( Qt::RoundCap ); + pen.setCapStyle( TQt::RoundCap ); p.setPen(pen); p.setBrush(pen.color()); TQPointArray pa(3); |
