diff options
Diffstat (limited to 'sip/qt/qstyle.sip')
-rw-r--r-- | sip/qt/qstyle.sip | 446 |
1 files changed, 223 insertions, 223 deletions
diff --git a/sip/qt/qstyle.sip b/sip/qt/qstyle.sip index bbef81c..358327b 100644 --- a/sip/qt/qstyle.sip +++ b/sip/qt/qstyle.sip @@ -1,27 +1,27 @@ -// This is the SIP interface definition for QStyle and QStyleOption. +// This is the SIP interface definition for TQStyle and TQStyleOption. // // Copyright (c) 2007 // Riverbank Computing Limited <[email protected]> // -// This file is part of PyQt. +// This file is part of PyTQt. // -// This copy of PyQt is free software; you can redistribute it and/or modify it +// This copy of PyTQt is free software; you can redistribute it and/or modify it // under the terms of the GNU General Public License as published by the Free // Software Foundation; either version 2, or (at your option) any later // version. // -// PyQt is supplied in the hope that it will be useful, but WITHOUT ANY +// PyTQt is supplied in the hope that it will be useful, but WITHOUT ANY // WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS // FOR A PARTICULAR PURPOSE. See the GNU General Public License for more // details. // // You should have received a copy of the GNU General Public License along with -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, +// PyTQt; see the file LICENSE. If not, write to the Free Software Foundation, // Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. %ExportedDoc -<Sect2><Title>QStyle (Qt v2+)</Title> +<Sect2><Title>TQStyle (TQt v2+)</Title> <FuncSynopsis> <FuncDef>virtual void <Function>getButtonShift</Function></FuncDef> <ParamDef>int &<Parameter>x</Parameter></ParamDef> @@ -29,12 +29,12 @@ </FuncSynopsis> <Para> This takes no parameters and returns a tuple of the <Literal>x</Literal> and -<Literal>y</Literal> values. (Qt v2) +<Literal>y</Literal> values. (TQt v2) </Para> <FuncSynopsis> <FuncDef>virtual void <Function>scrollBarMetrics</Function></FuncDef> - <ParamDef>const QScrollBar *<Parameter>b</Parameter></ParamDef> + <ParamDef>const TQScrollBar *<Parameter>b</Parameter></ParamDef> <ParamDef>int &<Parameter>sliderMin</Parameter></ParamDef> <ParamDef>int &<Parameter>sliderMax</Parameter></ParamDef> <ParamDef>int &<Parameter>sliderLength</Parameter></ParamDef> @@ -44,12 +44,12 @@ This takes no parameters and returns a tuple of the <Literal>x</Literal> and Thus takes only the <Literal>b</Literal> parameter and returns a tuple of the <Literal>sliderMin</Literal>, <Literal>sliderMax</Literal>, <Literal>sliderLength</Literal> and <Literal>buttonDim</Literal> values. -(Qt v2) +(TQt v2) </Para> <FuncSynopsis> <FuncDef>virtual void <Function>tabbarMetrics</Function></FuncDef> - <ParamDef>const QTabBar *<Parameter>t</Parameter></ParamDef> + <ParamDef>const TQTabBar *<Parameter>t</Parameter></ParamDef> <ParamDef>int &<Parameter>hframe</Parameter></ParamDef> <ParamDef>int &<Parameter>vframe</Parameter></ParamDef> <ParamDef>int &<Parameter>overlap</Parameter></ParamDef> @@ -57,21 +57,21 @@ Thus takes only the <Literal>b</Literal> parameter and returns a tuple of the <Para> This takes only the <Literal>t</Literal> parameter and returns a tuple of the <Literal>hframe</Literal>, <Literal>vframe</Literal> and -<Literal>overlap</Literal> values. (Qt v2) +<Literal>overlap</Literal> values. (TQt v2) </Para> </Sect2> -<Sect2><Title>QStyleOption (Qt v3+)</Title> +<Sect2><Title>TQStyleOption (TQt v3+)</Title> <Para> -<Literal>QStyleOption</Literal> is fully implemented. +<Literal>TQStyleOption</Literal> is fully implemented. </Para> </Sect2> %End -%If (Qt_3_0_0 -) +%If (TQt_3_0_0 -) -class QStyleOption +class TQStyleOption { %TypeHeaderCode #include <qstyle.h> @@ -82,31 +82,31 @@ public: Default }; - QStyleOption(StyleOptionDefault /Constrained/ = Default); + TQStyleOption(StyleOptionDefault /Constrained/ = Default); -%If (Qt_3_2_0 -) - QStyleOption(int); -%End - QStyleOption(int,int); - QStyleOption(int,int,int,int); - QStyleOption(QMenuItem *); - QStyleOption(QMenuItem *,int); - QStyleOption(QMenuItem *,int,int); - QStyleOption(const QColor &); - QStyleOption(QTab *); - QStyleOption(QListViewItem *); -%If (Qt_3_1_0 -) - QStyleOption(QCheckListItem *); -%End - QStyleOption(Qt::ArrowType /Constrained/); -%If (Qt_3_1_0 -) - QStyleOption(const QRect &); - QStyleOption(QWidget *); +%If (TQt_3_2_0 -) + TQStyleOption(int); +%End + TQStyleOption(int,int); + TQStyleOption(int,int,int,int); + TQStyleOption(TQMenuItem *); + TQStyleOption(TQMenuItem *,int); + TQStyleOption(TQMenuItem *,int,int); + TQStyleOption(const TQColor &); + TQStyleOption(TQTab *); + TQStyleOption(TQListViewItem *); +%If (TQt_3_1_0 -) + TQStyleOption(TQCheckListItem *); +%End + TQStyleOption(TQt::ArrowType /Constrained/); +%If (TQt_3_1_0 -) + TQStyleOption(const TQRect &); + TQStyleOption(TQWidget *); %End bool isDefault() const; -%If (Qt_3_3_0 -) +%If (TQt_3_3_0 -) int day() const; %End @@ -115,149 +115,149 @@ public: int frameShape() const; int frameShadow() const; -%If (Qt_3_2_0 -) +%If (TQt_3_2_0 -) int headerSection() const; %End - QMenuItem* menuItem() const; + TQMenuItem* menuItem() const; int maxIconWidth() const; int tabWidth() const; - const QColor& color() const; + const TQColor& color() const; - QTab *tab() const; + TQTab *tab() const; -%If (Qt_3_1_0 -) - QCheckListItem *checkListItem() const; +%If (TQt_3_1_0 -) + TQCheckListItem *checkListItem() const; %End - QListViewItem *listViewItem() const; + TQListViewItem *listViewItem() const; - Qt::ArrowType arrowType() const; -%If (Qt_3_1_0 -) - QRect rect() const; - QWidget *widget() const; + TQt::ArrowType arrowType() const; +%If (TQt_3_1_0 -) + TQRect rect() const; + TQWidget *widget() const; %End }; %End -%If (Qt_3_0_0 -) -// Not yet defined in Qt v3Beta5. -class QStyleHintReturn; +%If (TQt_3_0_0 -) +// Not yet defined in TQt v3Beta5. +class TQStyleHintReturn; %End -%If (Qt_2_00 -) +%If (TQt_2_00 -) -class QStyle : QObject +class TQStyle : TQObject { %TypeHeaderCode #include <qstyle.h> %End public: -%If (Qt_3_0_0 -) - QStyle(); +%If (TQt_3_0_0 -) + TQStyle(); %End -%If (- Qt_3_0_0) +%If (- TQt_3_0_0) GUIStyle guiStyle() const; %End - virtual void polish(QWidget *); - virtual void unPolish(QWidget *); + virtual void polish(TQWidget *); + virtual void unPolish(TQWidget *); - virtual void polish(QApplication *); - virtual void unPolish(QApplication *); + virtual void polish(TQApplication *); + virtual void unPolish(TQApplication *); - virtual void polish(QPalette &); + virtual void polish(TQPalette &); -%If (Qt_3_0_0 -) - virtual void polishPopupMenu(QPopupMenu *) = 0; +%If (TQt_3_0_0 -) + virtual void polishPopupMenu(TQPopupMenu *) = 0; %End -%If (- Qt_3_0_0) - virtual QRect itemRect(QPainter *,int,int,int,int,int,bool, - const QPixmap *,const QString &,int = -1); +%If (- TQt_3_0_0) + virtual TQRect itemRect(TQPainter *,int,int,int,int,int,bool, + const TQPixmap *,const TQString &,int = -1); - virtual void drawItem(QPainter *,int,int,int,int,int, - const QColorGroup &,bool,const QPixmap *, - const QString &,int = -1,const QColor * = 0); + virtual void drawItem(TQPainter *,int,int,int,int,int, + const TQColorGroup &,bool,const TQPixmap *, + const TQString &,int = -1,const TQColor * = 0); %End -%If (Qt_3_0_0 -) - virtual QRect itemRect(QPainter *,const QRect &,int,bool, - const QPixmap *,const QString &,int = -1) const; +%If (TQt_3_0_0 -) + virtual TQRect itemRect(TQPainter *,const TQRect &,int,bool, + const TQPixmap *,const TQString &,int = -1) const; - virtual void drawItem(QPainter *,const QRect &,int,const QColorGroup &, - bool,const QPixmap *,const QString &,int = -1, - const QColor * = 0) const; + virtual void drawItem(TQPainter *,const TQRect &,int,const TQColorGroup &, + bool,const TQPixmap *,const TQString &,int = -1, + const TQColor * = 0) const; %End -%If (- Qt_3_0_0) - virtual void drawSeparator(QPainter *,int,int,int,int, - const QColorGroup &,bool = 1,int = 1, +%If (- TQt_3_0_0) + virtual void drawSeparator(TQPainter *,int,int,int,int, + const TQColorGroup &,bool = 1,int = 1, int = 0); - virtual void drawRect(QPainter *,int,int,int,int,const QColor &, - int = 1,const QBrush * = 0); - virtual void drawRectStrong(QPainter *,int,int,int,int, - const QColorGroup &,bool = 0,int = 1, - int = 0,const QBrush * = 0); - virtual void drawButton(QPainter *,int,int,int,int,const QColorGroup &, - bool = 0,const QBrush * = 0) = 0; - virtual QRect buttonRect(int,int,int,int); - virtual void drawButtonMask(QPainter *,int,int,int,int); - virtual void drawBevelButton(QPainter *,int,int,int,int, - const QColorGroup &,bool = 0, - const QBrush * = 0) = 0; -%If (Qt_2_1_0 -) - QRect bevelButtonRect(int,int,int,int); -%End - virtual void drawToolButton(QPainter *,int,int,int,int, - const QColorGroup &,bool = 0, - const QBrush * = 0); -%If (Qt_2_1_0 -) - void drawToolButton(QToolButton *,QPainter *); - QRect toolButtonRect(int,int,int,int); -%End - virtual void drawPanel(QPainter *,int,int,int,int,const QColorGroup &, - bool = 0,int = 1,const QBrush * = 0); - virtual void drawPopupPanel(QPainter *,int,int,int,int, - const QColorGroup &,int = 2, - const QBrush * = 0); - virtual void drawArrow(QPainter *,Qt::ArrowType,bool,int,int,int,int, - const QColorGroup &,bool,const QBrush * = 0) = 0; - virtual QSize exclusiveIndicatorSize() const = 0; - virtual void drawExclusiveIndicator(QPainter *,int,int,int,int, - const QColorGroup &,bool,bool = 0, + virtual void drawRect(TQPainter *,int,int,int,int,const TQColor &, + int = 1,const TQBrush * = 0); + virtual void drawRectStrong(TQPainter *,int,int,int,int, + const TQColorGroup &,bool = 0,int = 1, + int = 0,const TQBrush * = 0); + virtual void drawButton(TQPainter *,int,int,int,int,const TQColorGroup &, + bool = 0,const TQBrush * = 0) = 0; + virtual TQRect buttonRect(int,int,int,int); + virtual void drawButtonMask(TQPainter *,int,int,int,int); + virtual void drawBevelButton(TQPainter *,int,int,int,int, + const TQColorGroup &,bool = 0, + const TQBrush * = 0) = 0; +%If (TQt_2_1_0 -) + TQRect bevelButtonRect(int,int,int,int); +%End + virtual void drawToolButton(TQPainter *,int,int,int,int, + const TQColorGroup &,bool = 0, + const TQBrush * = 0); +%If (TQt_2_1_0 -) + void drawToolButton(TQToolButton *,TQPainter *); + TQRect toolButtonRect(int,int,int,int); +%End + virtual void drawPanel(TQPainter *,int,int,int,int,const TQColorGroup &, + bool = 0,int = 1,const TQBrush * = 0); + virtual void drawPopupPanel(TQPainter *,int,int,int,int, + const TQColorGroup &,int = 2, + const TQBrush * = 0); + virtual void drawArrow(TQPainter *,TQt::ArrowType,bool,int,int,int,int, + const TQColorGroup &,bool,const TQBrush * = 0) = 0; + virtual TQSize exclusiveIndicatorSize() const = 0; + virtual void drawExclusiveIndicator(TQPainter *,int,int,int,int, + const TQColorGroup &,bool,bool = 0, bool = 1) = 0; - virtual void drawExclusiveIndicatorMask(QPainter *,int,int,int,int, + virtual void drawExclusiveIndicatorMask(TQPainter *,int,int,int,int, bool); - virtual QSize indicatorSize() const = 0; - virtual void drawIndicator(QPainter *,int,int,int,int, - const QColorGroup &,int,bool = 0, + virtual TQSize indicatorSize() const = 0; + virtual void drawIndicator(TQPainter *,int,int,int,int, + const TQColorGroup &,int,bool = 0, bool = 1) = 0; - virtual void drawIndicatorMask(QPainter *,int,int,int,int,int); - virtual void drawFocusRect(QPainter *,const QRect &,const QColorGroup &, - const QColor * = 0,bool = 0) = 0; - virtual void drawComboButton(QPainter *,int,int,int,int, - const QColorGroup &,bool = 0,bool = 0, - bool = 1,const QBrush * = 0) = 0; - virtual QRect comboButtonRect(int,int,int,int) = 0; - virtual QRect comboButtonFocusRect(int,int,int,int) = 0; - virtual void drawComboButtonMask(QPainter *,int,int,int,int) = 0; - virtual void drawPushButton(QPushButton *,QPainter *) = 0; - virtual void drawPushButtonLabel(QPushButton *,QPainter *) = 0; - -%If (Qt_2_1_0 -) - QRect pushButtonContentsRect(QPushButton *); + virtual void drawIndicatorMask(TQPainter *,int,int,int,int,int); + virtual void drawFocusRect(TQPainter *,const TQRect &,const TQColorGroup &, + const TQColor * = 0,bool = 0) = 0; + virtual void drawComboButton(TQPainter *,int,int,int,int, + const TQColorGroup &,bool = 0,bool = 0, + bool = 1,const TQBrush * = 0) = 0; + virtual TQRect comboButtonRect(int,int,int,int) = 0; + virtual TQRect comboButtonFocusRect(int,int,int,int) = 0; + virtual void drawComboButtonMask(TQPainter *,int,int,int,int) = 0; + virtual void drawPushButton(TQPushButton *,TQPainter *) = 0; + virtual void drawPushButtonLabel(TQPushButton *,TQPainter *) = 0; + +%If (TQt_2_1_0 -) + TQRect pushButtonContentsRect(TQPushButton *); int menuButtonIndicatorWidth(int); %End virtual void getButtonShift(int &,int &) = 0; virtual int defaultFrameWidth() const = 0; - virtual void tabbarMetrics(const QTabBar *,int &,int &,int &) = 0; - virtual void drawTab(QPainter *,const QTabBar *,QTab *,bool) = 0; - virtual void drawTabMask(QPainter *,const QTabBar* ,QTab* ,bool) = 0; + virtual void tabbarMetrics(const TQTabBar *,int &,int &,int &) = 0; + virtual void drawTab(TQPainter *,const TQTabBar *,TQTab *,bool) = 0; + virtual void drawTabMask(TQPainter *,const TQTabBar* ,TQTab* ,bool) = 0; enum ScrollControl { @@ -271,57 +271,57 @@ public: NoScroll = 0x80 }; - virtual void scrollBarMetrics(const QScrollBar *,int &,int &,int &, + virtual void scrollBarMetrics(const TQScrollBar *,int &,int &,int &, int &) = 0; - virtual void drawScrollBarControls(QPainter *,const QScrollBar *,int, + virtual void drawScrollBarControls(TQPainter *,const TQScrollBar *,int, uint,uint) = 0; - virtual ScrollControl scrollBarPointOver(const QScrollBar *,int, - const QPoint &) = 0; + virtual ScrollControl scrollBarPointOver(const TQScrollBar *,int, + const TQPoint &) = 0; virtual int sliderLength() const = 0; - virtual void drawSlider(QPainter *,int,int,int,int,const QColorGroup &, + virtual void drawSlider(TQPainter *,int,int,int,int,const TQColorGroup &, Orientation,bool,bool) = 0; - virtual void drawSliderMask(QPainter *,int,int,int,int,Orientation, + virtual void drawSliderMask(TQPainter *,int,int,int,int,Orientation, bool,bool) = 0; - virtual void drawSliderGroove(QPainter *,int,int,int,int, - const QColorGroup &,QCOORD, + virtual void drawSliderGroove(TQPainter *,int,int,int,int, + const TQColorGroup &,TQCOORD, Orientation) = 0; - virtual void drawSliderGrooveMask(QPainter *,int,int,int,int,QCOORD, + virtual void drawSliderGrooveMask(TQPainter *,int,int,int,int,TQCOORD, Orientation) = 0; virtual int maximumSliderDragDistance() const = 0; virtual int splitterWidth() const = 0; - virtual void drawSplitter(QPainter *,int,int,int,int, - const QColorGroup &,Orientation) = 0; - virtual void drawCheckMark(QPainter *,int,int,int,int, - const QColorGroup &,bool,bool) = 0; - virtual void polishPopupMenu(QPopupMenu *) = 0; - virtual int extraPopupMenuItemWidth(bool,int,QMenuItem *, - const QFontMetrics &) = 0; - virtual int popupSubmenuIndicatorWidth(const QFontMetrics &) = 0; - virtual int popupMenuItemHeight(bool,QMenuItem *, - const QFontMetrics &) = 0; - virtual void drawPopupMenuItem(QPainter *,bool,int,int,QMenuItem *, - const QPalette &,bool, bool,int,int,int, + virtual void drawSplitter(TQPainter *,int,int,int,int, + const TQColorGroup &,Orientation) = 0; + virtual void drawCheckMark(TQPainter *,int,int,int,int, + const TQColorGroup &,bool,bool) = 0; + virtual void polishPopupMenu(TQPopupMenu *) = 0; + virtual int extraPopupMenuItemWidth(bool,int,TQMenuItem *, + const TQFontMetrics &) = 0; + virtual int popupSubmenuIndicatorWidth(const TQFontMetrics &) = 0; + virtual int popupMenuItemHeight(bool,TQMenuItem *, + const TQFontMetrics &) = 0; + virtual void drawPopupMenuItem(TQPainter *,bool,int,int,TQMenuItem *, + const TQPalette &,bool, bool,int,int,int, int) = 0; -%If (Qt_2_2_0 -) - virtual void drawMenuBarItem(QPainter *,int,int,int,int,QMenuItem *, - QColorGroup &,bool,bool); +%If (TQt_2_2_0 -) + virtual void drawMenuBarItem(TQPainter *,int,int,int,int,TQMenuItem *, + TQColorGroup &,bool,bool); %End -%If (Qt_2_1_0 -) - QSize scrollBarExtent(); +%If (TQt_2_1_0 -) + TQSize scrollBarExtent(); int buttonDefaultIndicatorWidth() const; -%If (Qt_2_2_0 -) +%If (TQt_2_2_0 -) int buttonMargin() const; int toolBarHandleExtent() const; int sliderThickness() const; %End int toolBarHandleExtend() const; - void drawToolBarHandle(QPainter *,const QRect &,Qt::Orientation,bool, - const QColorGroup &,bool = 0); + void drawToolBarHandle(TQPainter *,const TQRect &,TQt::Orientation,bool, + const TQColorGroup &,bool = 0); %End %End -%If (Qt_3_0_0 -) +%If (TQt_3_0_0 -) enum PrimitiveElement { PE_ButtonCommand, PE_ButtonDefault, @@ -381,23 +381,23 @@ public: PE_ProgressBarChunk, -%If (Qt_3_0_1 -) +%If (TQt_3_0_1 -) PE_PanelLineEdit, PE_PanelTabWidget, PE_WindowFrame, %End -%If (Qt_3_1_0 -) +%If (TQt_3_1_0 -) PE_CheckListController, PE_CheckListIndicator, PE_CheckListExclusiveIndicator, PE_PanelGroupBox, %End -%If (Qt_3_0_4 - Qt_3_0_5) +%If (TQt_3_0_4 - TQt_3_0_5) PE_PopupMenuScroller, %End -%If (Qt_3_3_0 -) +%If (TQt_3_3_0 -) PE_RubberBand, %End @@ -428,9 +428,9 @@ public: typedef uint SFlags; - virtual void drawPrimitive(PrimitiveElement,QPainter *,const QRect &, - const QColorGroup &,SFlags = Style_Default, - const QStyleOption & = QStyleOption()) const = 0; + virtual void drawPrimitive(PrimitiveElement,TQPainter *,const TQRect &, + const TQColorGroup &,SFlags = Style_Default, + const TQStyleOption & = TQStyleOption()) const = 0; enum ControlElement { CE_PushButton, @@ -453,16 +453,16 @@ public: CE_MenuBarItem, CE_ToolButtonLabel, -%If (Qt_3_1_0 -) +%If (TQt_3_1_0 -) CE_MenuBarEmptyArea, %End -%If (Qt_3_0_5 -) +%If (TQt_3_0_5 -) CE_PopupMenuScroller, %End -%If (Qt_3_1_0 -) +%If (TQt_3_1_0 -) CE_DockWindowEmptyArea, %End -%If (Qt_3_2_0 -) +%If (TQt_3_2_0 -) CE_PopupMenuVerticalExtra, CE_PopupMenuHorizontalExtra, @@ -473,13 +473,13 @@ public: CE_CustomBase }; - virtual void drawControl(ControlElement,QPainter *,const QWidget *, - const QRect &,const QColorGroup &, + virtual void drawControl(ControlElement,TQPainter *,const TQWidget *, + const TQRect &,const TQColorGroup &, SFlags = Style_Default, - const QStyleOption & = QStyleOption()) const = 0; - virtual void drawControlMask(ControlElement,QPainter *,const QWidget *, - const QRect &, - const QStyleOption & = QStyleOption()) const = 0; + const TQStyleOption & = TQStyleOption()) const = 0; + virtual void drawControlMask(ControlElement,TQPainter *,const TQWidget *, + const TQRect &, + const TQStyleOption & = TQStyleOption()) const = 0; enum SubRect { SR_PushButtonContents, @@ -505,7 +505,7 @@ public: SR_ToolButtonContents, -%If (Qt_3_2_0 -) +%If (TQt_3_2_0 -) SR_DialogButtonAccept, SR_DialogButtonReject, SR_DialogButtonApply, @@ -522,7 +522,7 @@ public: SR_CustomBase }; - virtual QRect subRect(SubRect,const QWidget *) const = 0; + virtual TQRect subRect(SubRect,const TQWidget *) const = 0; enum ComplexControl{ CC_SpinWidget, @@ -557,7 +557,7 @@ public: SC_ComboBoxFrame, SC_ComboBoxEditField, SC_ComboBoxArrow, -%If (Qt_3_1_0 -) +%If (TQt_3_1_0 -) SC_ComboBoxListBoxPopup, %End @@ -586,22 +586,22 @@ public: typedef uint SCFlags; - virtual void drawComplexControl(ComplexControl,QPainter *, - const QWidget *,const QRect &, - const QColorGroup &, + virtual void drawComplexControl(ComplexControl,TQPainter *, + const TQWidget *,const TQRect &, + const TQColorGroup &, SFlags = Style_Default, SCFlags = SC_All,SCFlags = SC_None, - const QStyleOption & = QStyleOption()) const = 0; - virtual void drawComplexControlMask(ComplexControl,QPainter *, - const QWidget *,const QRect &, - const QStyleOption & = QStyleOption()) const = 0; - - virtual QRect querySubControlMetrics(ComplexControl, - const QWidget *,SubControl, - const QStyleOption & = QStyleOption()) const = 0; - virtual SubControl querySubControl(ComplexControl,const QWidget *, - const QPoint &, - const QStyleOption & = QStyleOption()) const = 0; + const TQStyleOption & = TQStyleOption()) const = 0; + virtual void drawComplexControlMask(ComplexControl,TQPainter *, + const TQWidget *,const TQRect &, + const TQStyleOption & = TQStyleOption()) const = 0; + + virtual TQRect querySubControlMetrics(ComplexControl, + const TQWidget *,SubControl, + const TQStyleOption & = TQStyleOption()) const = 0; + virtual SubControl querySubControl(ComplexControl,const TQWidget *, + const TQPoint &, + const TQStyleOption & = TQStyleOption()) const = 0; enum PixelMetric { PM_ButtonMargin, @@ -645,13 +645,13 @@ public: PM_IndicatorHeight, PM_ExclusiveIndicatorWidth, PM_ExclusiveIndicatorHeight, -%If (Qt_3_0_4 -) +%If (TQt_3_0_4 -) PM_PopupMenuScrollerHeight, %End -%If (Qt_3_1_0 -) +%If (TQt_3_1_0 -) PM_CheckListButtonSize, %End -%If (Qt_3_2_0 -) +%If (TQt_3_2_0 -) PM_CheckListControllerSize, PM_PopupMenuFrameHorizontalExtra, PM_PopupMenuFrameVerticalExtra, @@ -668,7 +668,7 @@ public: PM_TabBarTabShiftHorizontal, PM_TabBarTabShiftVertical, %End -%If (Qt_3_3_0 -) +%If (TQt_3_3_0 -) PM_TabBarScrollButtonWidth, PM_MenuBarItemSpacing, @@ -678,7 +678,7 @@ public: PM_CustomBase }; - virtual int pixelMetric(PixelMetric,const QWidget * = 0) const = 0; + virtual int pixelMetric(PixelMetric,const TQWidget * = 0) const = 0; enum ContentsType { CT_PushButton, @@ -690,7 +690,7 @@ public: CT_DockWindow, CT_ProgressBar, CT_PopupMenuItem, -%If (Qt_3_1_0 -) +%If (TQt_3_1_0 -) CT_TabBarTab, CT_Slider, CT_Header, @@ -698,7 +698,7 @@ public: CT_MenuBar, CT_SpinBox, %End -%If (Qt_3_2_0 -) +%If (TQt_3_2_0 -) CT_SizeGrip, CT_TabWidget, CT_DialogButtons, @@ -707,9 +707,9 @@ public: CT_CustomBase }; - virtual QSize sizeFromContents(ContentsType,const QWidget *, - const QSize &, - const QStyleOption & = QStyleOption()) const = 0; + virtual TQSize sizeFromContents(ContentsType,const TQWidget *, + const TQSize &, + const TQStyleOption & = TQStyleOption()) const = 0; enum StyleHint { SH_EtchDisabledText, @@ -764,23 +764,23 @@ public: SH_ComboBox_Popup, -%If (Qt_3_0_1 -) +%If (TQt_3_0_1 -) SH_TitleBar_NoBorder, SH_ScrollBar_StopMouseOverSlider, %End -%If (Qt_3_0_2 -) +%If (TQt_3_0_2 -) SH_BlinkCursorWhenTextSelected, SH_RichText_FullWidthSelection, %End -%If (Qt_3_0_4 -) +%If (TQt_3_0_4 -) SH_PopupMenu_Scrollable, %End -%If (Qt_3_1_0 -) +%If (TQt_3_1_0 -) SH_GroupBox_TextLabelVerticalAlignment, SH_GroupBox_TextLabelColor, @@ -788,7 +788,7 @@ public: SH_PopupMenu_SloppySubMenus, %End -%If (Qt_3_2_0 -) +%If (TQt_3_2_0 -) SH_Table_GridLineColor, SH_LineEdit_PasswordCharacter, @@ -804,7 +804,7 @@ public: SH_ListViewExpand_SelectMouseType, %End -%If (Qt_3_3_0 -) +%If (TQt_3_3_0 -) SH_UnderlineAccelerator, SH_ToolButton_Uses3D, @@ -813,9 +813,9 @@ public: SH_CustomBase }; - virtual int styleHint(StyleHint,const QWidget * = 0, - const QStyleOption & = QStyleOption(), - QStyleHintReturn * = 0) const = 0; + virtual int styleHint(StyleHint,const TQWidget * = 0, + const TQStyleOption & = TQStyleOption(), + TQStyleHintReturn * = 0) const = 0; enum StylePixmap { SP_TitleBarMinButton, @@ -828,34 +828,34 @@ public: SP_MessageBoxInformation, SP_MessageBoxWarning, SP_MessageBoxCritical, -%If (Qt_3_2_0 -) +%If (TQt_3_2_0 -) SP_MessageBoxQuestion, %End SP_CustomBase }; - virtual QPixmap stylePixmap(StylePixmap,const QWidget * = 0, - const QStyleOption & = QStyleOption()) const = 0; + virtual TQPixmap stylePixmap(StylePixmap,const TQWidget * = 0, + const TQStyleOption & = TQStyleOption()) const = 0; - static QRect visualRect(const QRect &,const QWidget *); + static TQRect visualRect(const TQRect &,const TQWidget *); - static QRect visualRect(const QRect &,const QRect &); + static TQRect visualRect(const TQRect &,const TQRect &); %End protected: -%If (Qt_2_1_0 - Qt_3_0_0) +%If (TQt_2_1_0 - TQt_3_0_0) void setScrollBarExtent(int,int = -1); void setButtonDefaultIndicatorWidth(int); %End private: -%If (- Qt_3_0_0) - QStyle(); - QStyle(GUIStyle); +%If (- TQt_3_0_0) + TQStyle(); + TQStyle(GUIStyle); %End -%If (Qt_2_1_0 -) - QStyle(const QStyle &); +%If (TQt_2_1_0 -) + TQStyle(const TQStyle &); %End }; |