Replace Qt with TQt

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

@ -825,7 +825,7 @@ int TQtCTDEStyle::pixelMetric(PixelMetric m, TQStyleControlElementData ceData, C
case PM_SliderControlThickness: { case PM_SliderControlThickness: {
const TQSlider* slider = (const TQSlider*)widget; const TQSlider* slider = (const TQSlider*)widget;
TQSlider::TickSetting ts = slider->tickmarks(); TQSlider::TickSetting ts = slider->tickmarks();
int thickness = (slider->orientation() == Qt::Horizontal) ? int thickness = (slider->orientation() == TQt::Horizontal) ?
slider->height() : slider->width(); slider->height() : slider->width();
switch (ts) { switch (ts) {
case TQSlider::NoMarks: // Use total area. case TQSlider::NoMarks: // Use total area.
@ -910,7 +910,7 @@ void TQtCTDEStyle::drawComplexControl( ComplexControl control,
const TQScrollBar *sb = (const TQScrollBar*)widget; const TQScrollBar *sb = (const TQScrollBar*)widget;
bool maxedOut = (sb->minValue() == sb->maxValue()); bool maxedOut = (sb->minValue() == sb->maxValue());
bool horizontal = (sb->orientation() == Qt::Horizontal); bool horizontal = (sb->orientation() == TQt::Horizontal);
SFlags sflags = ((horizontal ? Style_Horizontal : Style_Default) | SFlags sflags = ((horizontal ? Style_Horizontal : Style_Default) |
(maxedOut ? Style_Default : Style_Enabled)); (maxedOut ? Style_Default : Style_Enabled));
@ -1220,7 +1220,7 @@ TQRect TQtCTDEStyle::querySubControlMetrics( ComplexControl control,
bool nextScrollBar = d->scrollbarType & NextStyleScrollBar; bool nextScrollBar = d->scrollbarType & NextStyleScrollBar;
const TQScrollBar *sb = (const TQScrollBar*)widget; const TQScrollBar *sb = (const TQScrollBar*)widget;
bool horizontal = sb->orientation() == Qt::Horizontal; bool horizontal = sb->orientation() == TQt::Horizontal;
int sliderstart = sb->sliderStart(); int sliderstart = sb->sliderStart();
int sbextent = pixelMetric(PM_ScrollBarExtent, ceData, elementFlags, widget); int sbextent = pixelMetric(PM_ScrollBarExtent, ceData, elementFlags, widget);
int maxlen = (horizontal ? sb->width() : sb->height()) int maxlen = (horizontal ? sb->width() : sb->height())
@ -1706,7 +1706,7 @@ bool TQtCTDEStyle::objectEventHandler( TQStyleControlElementData ceData, Control
TQToolBar *toolbar = ::tqqt_cast< TQToolBar *>( frame ); TQToolBar *toolbar = ::tqqt_cast< TQToolBar *>( frame );
TQRect r = pe->rect(); TQRect r = pe->rect();
if (toolbar && toolbar->orientation() == Qt::Vertical) if (toolbar && toolbar->orientation() == TQt::Vertical)
horizontal = false; horizontal = false;
if (horizontal) { if (horizontal) {

@ -2368,7 +2368,7 @@ bool QtCurveStyle::objectEventHandler( const TQStyleControlElementData &ceData,
if(isWindowDragWidget(object, mev->pos())) if(isWindowDragWidget(object, mev->pos()))
{ {
if(/*TQt::NoModifier==mev->modifiers() && */ Qt::LeftButton==mev->button()) if(/*TQt::NoModifier==mev->modifiers() && */ TQt::LeftButton==mev->button())
{ {
TQWidget *wid = TQT_TQWIDGET(object); TQWidget *wid = TQT_TQWIDGET(object);
itsDragWidget=wid; itsDragWidget=wid;
@ -5281,12 +5281,12 @@ void QtCurveStyle::drawControl(ControlElement control, TQPainter *p, const TQSty
TQPixmap *pixmap(mi->pixmap()); TQPixmap *pixmap(mi->pixmap());
if(1==pixmap->depth()) if(1==pixmap->depth())
p->setBackgroundMode(Qt::OpaqueMode); p->setBackgroundMode(TQt::OpaqueMode);
int diffw(((r.width() - pixmap->width())/2) + int diffw(((r.width() - pixmap->width())/2) +
((r.width() - pixmap->width())%2)); ((r.width() - pixmap->width())%2));
p->drawPixmap(r.x()+diffw, r.y()+1, *pixmap ); p->drawPixmap(r.x()+diffw, r.y()+1, *pixmap );
if(1==pixmap->depth()) if(1==pixmap->depth())
p->setBackgroundMode(Qt::TransparentMode); p->setBackgroundMode(TQt::TransparentMode);
} }
if(mi->popup()) if(mi->popup())
@ -5787,7 +5787,7 @@ void QtCurveStyle::drawComplexControl(ComplexControl control, TQPainter *p, cons
{ {
if(TBTN_JOINED==opts.tbarBtns) if(TBTN_JOINED==opts.tbarBtns)
{ {
horizTBar=Qt::Horizontal==tb->orientation(); horizTBar=TQt::Horizontal==tb->orientation();
adjustToolbarButtons(widget, tb, leftAdjust, topAdjust, rightAdjust, bottomAdjust, round); adjustToolbarButtons(widget, tb, leftAdjust, topAdjust, rightAdjust, bottomAdjust, round);
} }
} }

Loading…
Cancel
Save