From fef846914f8db6dc117e206ef913d519bf6bb33e Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Mon, 29 Jul 2024 12:43:23 +0900 Subject: Rename basic widget nt* related files to equivalent tq* Signed-off-by: Michele Calgaro --- doc/html/themes-example.html | 72 ++++++++++++++++++++++---------------------- 1 file changed, 36 insertions(+), 36 deletions(-) (limited to 'doc/html/themes-example.html') diff --git a/doc/html/themes-example.html b/doc/html/themes-example.html index d598910f..b74b3029 100644 --- a/doc/html/themes-example.html +++ b/doc/html/themes-example.html @@ -149,7 +149,7 @@ private: #ifndef TQT_NO_STYLE_WINDOWS #include "ntqapplication.h" -#include "ntqcombobox.h" +#include "tqcombobox.h" #include "tqpainter.h" #include "ntqdrawutil.h" // for now #include "tqpixmap.h" // for now @@ -157,10 +157,10 @@ private: #include "tqwidget.h" #include "tqlabel.h" #include "tqimage.h" -#include "ntqpushbutton.h" +#include "tqpushbutton.h" #include "tqwidget.h" #include "ntqrangecontrol.h" -#include "ntqscrollbar.h" +#include "tqscrollbar.h" #include <limits.h> #include "tqstylefactory.h" @@ -1133,8 +1133,8 @@ void NorwegianWoodStyle::unPolish( TQPushButton *btn; - btn = ( const TQPushButton * )widget; + const TQPushButton *btn; + btn = ( const TQPushButton * )widget; TQColorGroup myCg( cg ); SFlags flags = Style_Default; if ( btn->isOn() ) @@ -1143,9 +1143,9 @@ void NorwegianWoodStyle::unPolish( isOn() || btn->isDown() ) flags |= Style_Sunken; - if ( btn->isDefault() ) + if ( btn->isDefault() ) flags |= Style_Default; - if ( ! btn->isFlat() && !(flags & Style_Down) ) + if ( ! btn->isFlat() && !(flags & Style_Down) ) flags |= Style_Raised; int x1, y1, x2, y2; @@ -1163,7 +1163,7 @@ void NorwegianWoodStyle::unPolish( brush( TQColorGroup::Button ); myCg.setBrush( TQColorGroup::Mid, fill ); - if ( btn->isDefault() ) { + if ( btn->isDefault() ) { x1 += 2; y1 += 2; x2 -= 2; @@ -1174,7 +1174,7 @@ void NorwegianWoodStyle::unPolish( isDefault() ) { + if ( btn->isDefault() ) { TQPen pen( TQt::black, 4 ); pen.setCapStyle( TQt::RoundCap ); pen.setJoinStyle( TQt::RoundJoin ); @@ -1182,7 +1182,7 @@ void NorwegianWoodStyle::unPolish( if ( btn->isMenuButton() ) { + if ( btn->isMenuButton() ) { int dx = ( y1 - y2 - 4 ) / 3; // reset the flags @@ -1200,8 +1200,8 @@ void NorwegianWoodStyle::unPolish( TQPushButton *btn; - btn = (const TQPushButton*)widget; + const TQPushButton *btn; + btn = (const TQPushButton*)widget; int x, y, w, h; r.rect( &x, &y, &w, &h ); @@ -1209,7 +1209,7 @@ void NorwegianWoodStyle::unPolish( coords( &x1, &y1, &x2, &y2 ); int dx = 0; int dy = 0; - if ( btn->isMenuButton() ) + if ( btn->isMenuButton() ) dx = ( y2 - y1 ) / 3; if ( dx || dy ) p->translate( dx, dy ); @@ -1268,8 +1268,8 @@ void NorwegianWoodStyle::unPolish( TQComboBox *cmb; - cmb = (const TQComboBox*)widget; + const TQComboBox *cmb; + cmb = (const TQComboBox*)widget; int awh, ax, ay, sh, sy, dh, ew; get_combo_parameters( subRect(SR_PushButtonContents, widget), @@ -1292,7 +1292,7 @@ void NorwegianWoodStyle::unPolish( drawLine( ax + awh - 1, sy + 1, ax + awh - 1, sy + sh - 1 ); p->setPen( oldPen ); - if ( cmb->editable() ) { + if ( cmb->editable() ) { TQRect r( querySubControlMetrics(CC_ComboBox, widget, SC_ComboBoxEditField, opt) ); qDrawShadePanel( p, r, cg, TRUE, 1, @@ -1356,9 +1356,9 @@ void NorwegianWoodStyle::unPolish( TQScrollBar* sb; - sb = (const TQScrollBar*)widget; - bool horz = sb->orientation() == TQScrollBar::Horizontal; + const TQScrollBar* sb; + sb = (const TQScrollBar*)widget; + bool horz = sb->orientation() == TQScrollBar::Horizontal; int b = 2; int w = horz ? sb->height() : sb->width(); @@ -1394,8 +1394,8 @@ void NorwegianWoodStyle::unPolish( TQPushButton *btn; - btn = (const TQPushButton*)widget; + const TQPushButton *btn; + btn = (const TQPushButton*)widget; r = btn->rect(); int d = TQMIN( r.width(), r.height() ) / 2; int b = buttonthickness( d ); @@ -1645,7 +1645,7 @@ private: #ifndef TQT_NO_STYLE_WINDOWS #include "ntqapplication.h" -#include "ntqcombobox.h" +#include "tqcombobox.h" #include "tqpainter.h" #include "ntqdrawutil.h" // for now #include "tqpixmap.h" // for now @@ -1653,11 +1653,11 @@ private: #include "tqwidget.h" #include "tqlabel.h" #include "tqimage.h" -#include "ntqpushbutton.h" +#include "tqpushbutton.h" #include "tqwidget.h" #include "ntqrangecontrol.h" -#include "ntqscrollbar.h" -#include "ntqslider.h" +#include "tqscrollbar.h" +#include "tqslider.h" #include <limits.h> @@ -1834,8 +1834,8 @@ void MetalStyle::unPolish( TQPushButton *btn; - btn = (const TQPushButton*)widget; + const TQPushButton *btn; + btn = (const TQPushButton*)widget; int x1, y1, x2, y2; r.coords( &x1, &y1, &x2, &y2 ); @@ -1852,7 +1852,7 @@ void MetalStyle::unPolish( brush( TQColorGroup::Button ); - if ( btn->isDefault() ) { + if ( btn->isDefault() ) { TQPointArray a; a.setPoints( 9, x1, y1, x2, y1, x2, y2, x1, y2, x1, y1+1, @@ -1869,13 +1869,13 @@ void MetalStyle::unPolish( isDown() ) flags |= Style_Down; - if ( !btn->isFlat() && !btn->isDown() ) + if ( !btn->isFlat() && !btn->isDown() ) flags |= Style_Raised; drawPrimitive( PE_ButtonCommand, p, TQRect( x1, y1, x2 - x1 + 1, y2 - y1 + 1), cg, flags, opt ); - if ( btn->isMenuButton() ) { + if ( btn->isMenuButton() ) { flags = Style_Default; if ( btn->isEnabled() ) flags |= Style_Enabled; @@ -1891,8 +1891,8 @@ void MetalStyle::unPolish( TQPushButton *btn; - btn = (const TQPushButton*)widget; + const TQPushButton *btn; + btn = (const TQPushButton*)widget; int x, y, w, h; r.rect( &x, &y, &w, &h ); @@ -1900,7 +1900,7 @@ void MetalStyle::unPolish( coords( &x1, &y1, &x2, &y2 ); int dx = 0; int dy = 0; - if ( btn->isMenuButton() ) + if ( btn->isMenuButton() ) dx = ( y2 - y1 ) / 3; if ( btn->isOn() || btn->isDown() ) { dx--; @@ -1939,7 +1939,7 @@ void MetalStyle::unPolish( TQSlider *slider = ( const TQSlider* ) widget; + const TQSlider *slider = ( const TQSlider* ) widget; TQRect handle = querySubControlMetrics( CC_Slider, widget, SC_SliderHandle, opt); if ( sub & SC_SliderGroove ) @@ -1948,13 +1948,13 @@ void MetalStyle::unPolish( if ( (sub & SC_SliderHandle) && handle.isValid() ) drawMetalButton( p, handle.x(), handle.y(), handle.width(), handle.height(), FALSE, - slider->orientation() == TQSlider::Horizontal); + slider->orientation() == TQSlider::Horizontal); break; } case CC_ComboBox: { // not exactly correct... - const TQComboBox *cmb = ( const TQComboBox* ) widget; + const TQComboBox *cmb = ( const TQComboBox* ) widget; qDrawWinPanel( p, r.x(), r.y(), r.width(), r.height(), cg, TRUE, cmb->isEnabled() ? &cg.brush( TQColorGroup::Base ) : -- cgit v1.2.1