Replace various tqtinterface's TQ_* defines with actual types

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/12/head
Michele Calgaro 1 year ago
parent 49df580e12
commit 3d3dc041a5
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -173,7 +173,7 @@ SegmentSelector::handleMouseButtonPress(TQMouseEvent *e)
// Add on middle button or ctrl+left - bounding box on rest // Add on middle button or ctrl+left - bounding box on rest
// //
if (e->button() == Qt::MidButton || if (e->button() == Qt::MidButton ||
(e->button() == Qt::LeftButton && (e->state() & TQ_ControlButton))) { (e->button() == Qt::LeftButton && (e->state() & ControlButton))) {
m_dispatchTool = getToolBox()->getTool(SegmentPencil::ToolName); m_dispatchTool = getToolBox()->getTool(SegmentPencil::ToolName);

@ -1206,7 +1206,7 @@ void KlearlookStyle::drawLightBevel(
} }
void KlearlookStyle::drawArrow( TQPainter *p, const TQRect &r, const TQColorGroup &cg, TQStyle::SFlags flags, void KlearlookStyle::drawArrow( TQPainter *p, const TQRect &r, const TQColorGroup &cg, TQStyle::SFlags flags,
TQStyle::TQ_PrimitiveElement pe, bool small, bool checkActive ) const { TQStyle::PrimitiveElement pe, bool small, bool checkActive ) const {
TQPointArray a; TQPointArray a;
const TQColor &col = flags & Style_Enabled const TQColor &col = flags & Style_Enabled
? checkActive && flags & Style_Active ? checkActive && flags & Style_Active
@ -1296,7 +1296,7 @@ void KlearlookStyle::drawArrow( TQPainter *p, const TQRect &r, const TQColorGrou
p->restore(); p->restore();
} }
void KlearlookStyle::drawPrimitiveMenu( TQ_PrimitiveElement pe, TQPainter *p, const TQStyleControlElementData &ceData, ControlElementFlags elementFlags, const TQRect &r, const TQColorGroup &cg, void KlearlookStyle::drawPrimitiveMenu( PrimitiveElement pe, TQPainter *p, const TQStyleControlElementData &ceData, ControlElementFlags elementFlags, const TQRect &r, const TQColorGroup &cg,
SFlags flags, const TQStyleOption &data ) const { SFlags flags, const TQStyleOption &data ) const {
switch ( pe ) { switch ( pe ) {
case PE_CheckMark: case PE_CheckMark:
@ -1335,7 +1335,7 @@ void KlearlookStyle::drawPrimitiveMenu( TQ_PrimitiveElement pe, TQPainter *p, co
} }
} }
void KlearlookStyle::drawPrimitive( TQ_PrimitiveElement pe, TQPainter *p, const TQStyleControlElementData &ceData, ControlElementFlags elementFlags, const TQRect &r, const TQColorGroup &cg, void KlearlookStyle::drawPrimitive( PrimitiveElement pe, TQPainter *p, const TQStyleControlElementData &ceData, ControlElementFlags elementFlags, const TQRect &r, const TQColorGroup &cg,
SFlags flags, const TQStyleOption &data ) const { SFlags flags, const TQStyleOption &data ) const {
int x, y, w, h; int x, y, w, h;
@ -3259,7 +3259,7 @@ void KlearlookStyle::drawComplexControl(
); );
if ( ( controls & SC_SpinWidgetUp ) && up.isValid() ) { if ( ( controls & SC_SpinWidgetUp ) && up.isValid() ) {
TQ_PrimitiveElement pe = PE_SpinWidgetUp; PrimitiveElement pe = PE_SpinWidgetUp;
SFlags upflags = flags; SFlags upflags = flags;
if ( spinwidget->buttonSymbols() == TQSpinWidget::PlusMinus ) if ( spinwidget->buttonSymbols() == TQSpinWidget::PlusMinus )
@ -3273,7 +3273,7 @@ void KlearlookStyle::drawComplexControl(
} }
if ( ( controls & SC_SpinWidgetDown ) && down.isValid() ) { if ( ( controls & SC_SpinWidgetDown ) && down.isValid() ) {
TQ_PrimitiveElement pe = PE_SpinWidgetDown; PrimitiveElement pe = PE_SpinWidgetDown;
SFlags downflags = flags; SFlags downflags = flags;
if ( spinwidget->buttonSymbols() == TQSpinWidget::PlusMinus ) if ( spinwidget->buttonSymbols() == TQSpinWidget::PlusMinus )

@ -252,11 +252,11 @@ class KlearlookStyle : public TDEStyle {
const TQColor &fill, const TQColor *custom = NULL, bool light = false ) const; const TQColor &fill, const TQColor *custom = NULL, bool light = false ) const;
void drawLightBevelButton( TQPainter *p, const TQRect &r, const TQColorGroup &cg, TQStyle::SFlags flags, bool useGrad, ERound round, void drawLightBevelButton( TQPainter *p, const TQRect &r, const TQColorGroup &cg, TQStyle::SFlags flags, bool useGrad, ERound round,
const TQColor &fill, const TQColor *custom = NULL, bool light = false ) const; const TQColor &fill, const TQColor *custom = NULL, bool light = false ) const;
void drawArrow( TQPainter *p, const TQRect &r, const TQColorGroup &cg, TQStyle::SFlags flags, TQStyle::TQ_PrimitiveElement pe, void drawArrow( TQPainter *p, const TQRect &r, const TQColorGroup &cg, TQStyle::SFlags flags, TQStyle::PrimitiveElement pe,
bool small = false, bool checkActive = false ) const; bool small = false, bool checkActive = false ) const;
void drawPrimitive( TQ_PrimitiveElement, TQPainter *, const TQStyleControlElementData &ceData, ControlElementFlags elementFlags, const TQRect &, const TQColorGroup &, SFlags = Style_Default, void drawPrimitive( PrimitiveElement, TQPainter *, const TQStyleControlElementData &ceData, ControlElementFlags elementFlags, const TQRect &, const TQColorGroup &, SFlags = Style_Default,
const TQStyleOption & = TQStyleOption::Default ) const; const TQStyleOption & = TQStyleOption::Default ) const;
void drawPrimitiveMenu( TQ_PrimitiveElement, TQPainter *, const TQStyleControlElementData &ceData, ControlElementFlags elementFlags, const TQRect &, const TQColorGroup &, SFlags = Style_Default, void drawPrimitiveMenu( PrimitiveElement, TQPainter *, const TQStyleControlElementData &ceData, ControlElementFlags elementFlags, const TQRect &, const TQColorGroup &, SFlags = Style_Default,
const TQStyleOption & = TQStyleOption::Default ) const; const TQStyleOption & = TQStyleOption::Default ) const;
void drawTDEStylePrimitive( TDEStylePrimitive kpe, TQPainter* p, const TQStyleControlElementData &ceData, ControlElementFlags elementFlags, const TQRect &r, void drawTDEStylePrimitive( TDEStylePrimitive kpe, TQPainter* p, const TQStyleControlElementData &ceData, ControlElementFlags elementFlags, const TQRect &r,
const TQColorGroup &cg, SFlags flags, const TQStyleOption &opt, const TQWidget* widget = 0 ) const; const TQColorGroup &cg, SFlags flags, const TQStyleOption &opt, const TQWidget* widget = 0 ) const;

@ -184,7 +184,7 @@ void ControlRuler::contentsMousePressEvent(TQMouseEvent* e)
// clear selection unless control was pressed, in which case // clear selection unless control was pressed, in which case
// add the event to the current selection // add the event to the current selection
if (!(e->state() && TQ_ControlButton)) { if (!(e->state() && ControlButton)) {
clearSelectedItems(); clearSelectedItems();
} }
@ -214,7 +214,7 @@ void ControlRuler::contentsMousePressEvent(TQMouseEvent* e)
} else { // select it } else { // select it
if (!(e->state() && TQ_ControlButton)) { if (!(e->state() && ControlButton)) {
if (item->z() > topItem->z()) if (item->z() > topItem->z())
topItem = item; topItem = item;

Loading…
Cancel
Save