summaryrefslogtreecommitdiffstats
path: root/extra/kde315/ktoolbarbutton.h
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-03 22:23:44 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-03 22:23:44 -0600
commit203ba231d0276943aae36111f9ec1e949f3c6a4c (patch)
treef039f7a5b5fc2da88a96876971bac580d87f6788 /extra/kde315/ktoolbarbutton.h
parentfd35f4a8382b7d223bc0325b9ca3f88515778aa0 (diff)
downloadpytde-203ba231d0276943aae36111f9ec1e949f3c6a4c.tar.gz
pytde-203ba231d0276943aae36111f9ec1e949f3c6a4c.zip
Initial TQt conversion
Diffstat (limited to 'extra/kde315/ktoolbarbutton.h')
-rw-r--r--extra/kde315/ktoolbarbutton.h70
1 files changed, 35 insertions, 35 deletions
diff --git a/extra/kde315/ktoolbarbutton.h b/extra/kde315/ktoolbarbutton.h
index 121ecc6..3abf695 100644
--- a/extra/kde315/ktoolbarbutton.h
+++ b/extra/kde315/ktoolbarbutton.h
@@ -33,16 +33,16 @@
class KToolBar;
class KToolBarButtonPrivate;
class KInstance;
-class QEvent;
-class QPopupMenu;
-class QPainter;
+class TQEvent;
+class TQPopupMenu;
+class TQPainter;
/**
* A toolbar button. This is used internally by @ref KToolBar, use the
* KToolBar methods instead.
* @internal
*/
-class KToolBarButton : public QToolButton
+class KToolBarButton : public TQToolButton
{
Q_OBJECT
@@ -58,8 +58,8 @@ public:
* @param name This button's internal name
* @param txt This button's text (in a tooltip or otherwise)
*/
- KToolBarButton(const QString& icon, int id, QWidget *parent,
- const char *name=0L, const QString &txt=QString::null,
+ KToolBarButton(const TQString& icon, int id, TQWidget *parent,
+ const char *name=0L, const TQString &txt=TQString::null,
KInstance *_instance = KGlobal::instance());
/**
@@ -73,8 +73,8 @@ public:
* @param name This button's internal name
* @param txt This button's text (in a tooltip or otherwise)
*/
- KToolBarButton(const QPixmap& pixmap, int id, QWidget *parent,
- const char *name=0L, const QString &txt=QString::null);
+ KToolBarButton(const TQPixmap& pixmap, int id, TQWidget *parent,
+ const char *name=0L, const TQString &txt=TQString::null);
/**
* Construct a separator button
@@ -82,7 +82,7 @@ public:
* @param parent This button's parent
* @param name This button's internal name
*/
- KToolBarButton(QWidget *parent=0L, const char *name=0L);
+ KToolBarButton(TQWidget *parent=0L, const char *name=0L);
/**
* Standard destructor
@@ -99,8 +99,8 @@ public:
*
* @param pixmap The active pixmap
*/
- // this one is from QButton, so #ifdef-ing it out doesn't break BC
- virtual void setPixmap(const QPixmap &pixmap);
+ // this one is from TQButton, so #ifdef-ing it out doesn't break BC
+ virtual void setPixmap(const TQPixmap &pixmap);
/**
* @deprecated
@@ -109,7 +109,7 @@ public:
*
* @param pixmap The pixmap to use as the default (normal) one
*/
- void setDefaultPixmap(const QPixmap& pixmap);
+ void setDefaultPixmap(const TQPixmap& pixmap);
/**
* @deprecated
@@ -118,7 +118,7 @@ public:
*
* @param pixmap The pixmap to use when disabled
*/
- void setDisabledPixmap(const QPixmap& pixmap);
+ void setDisabledPixmap(const TQPixmap& pixmap);
#endif
/**
@@ -127,7 +127,7 @@ public:
*
* @param text The button (or tooltip) text
*/
- virtual void setText(const QString &text);
+ virtual void setText(const TQString &text);
/**
* Set the icon for this button. The icon will be loaded internally
@@ -135,19 +135,19 @@ public:
*
* @param icon The name of the icon
*/
- virtual void setIcon(const QString &icon);
+ virtual void setIcon(const TQString &icon);
/// @since 3.1
- virtual void setIcon( const QPixmap &pixmap )
- { QToolButton::setIcon( pixmap ); }
+ virtual void setIcon( const TQPixmap &pixmap )
+ { TQToolButton::setIcon( pixmap ); }
/**
- * Set the pixmaps for this toolbar button from a QIconSet.
+ * Set the pixmaps for this toolbar button from a TQIconSet.
* If you call this you don't need to call any of the other methods
* that set icons or pixmaps.
* @param iconset The iconset to use
*/
- virtual void setIconSet( const QIconSet &iconset );
+ virtual void setIconSet( const TQIconSet &iconset );
#ifndef KDE_NO_COMPAT
/**
@@ -161,7 +161,7 @@ public:
* @param generate If true, then the other icons are automagically
* generated from this one
*/
- void setIcon(const QString &icon, bool /*generate*/ ) { setIcon( icon ); }
+ void setIcon(const TQString &icon, bool /*generate*/ ) { setIcon( icon ); }
/**
* @deprecated
@@ -170,7 +170,7 @@ public:
*
* @param icon The icon to use as the default (normal) one
*/
- void setDefaultIcon(const QString& icon);
+ void setDefaultIcon(const TQString& icon);
/**
* @deprecated
@@ -179,7 +179,7 @@ public:
*
* @param icon The icon to use when disabled
*/
- void setDisabledIcon(const QString& icon);
+ void setDisabledIcon(const TQString& icon);
#endif
/**
@@ -206,7 +206,7 @@ public:
/**
* Return a pointer to this button's popup menu (if it exists)
*/
- QPopupMenu *popup();
+ TQPopupMenu *popup();
/**
* Give this button a popup menu. There will not be a delay when
@@ -220,7 +220,7 @@ public:
* @param p The new popup menu
* @param toggle if true, makes the button "sticky" (toggled)
*/
- void setPopup (QPopupMenu *p, bool toggle = false);
+ void setPopup (TQPopupMenu *p, bool toggle = false);
/**
* Gives this button a delayed popup menu.
@@ -236,7 +236,7 @@ public:
* @param p the new popup menu
* @param toggle if true, makes the button "sticky" (toggled)
*/
- void setDelayedPopup(QPopupMenu *p, bool toggle = false);
+ void setDelayedPopup(TQPopupMenu *p, bool toggle = false);
/**
* Turn this button into a radio button
@@ -269,18 +269,18 @@ public slots:
* orientation changing, etc.
*/
void modeChange();
- virtual void setTextLabel(const QString&, bool tipToo);
+ virtual void setTextLabel(const TQString&, bool tipToo);
protected:
- void paletteChange(const QPalette &);
- void leaveEvent(QEvent *e);
- void enterEvent(QEvent *e);
- void drawButton(QPainter *p);
- bool eventFilter (QObject *o, QEvent *e);
+ void paletteChange(const TQPalette &);
+ void leaveEvent(TQEvent *e);
+ void enterEvent(TQEvent *e);
+ void drawButton(TQPainter *p);
+ bool eventFilter (TQObject *o, TQEvent *e);
void showMenu();
- QSize sizeHint() const;
- QSize minimumSizeHint() const;
- QSize minimumSize() const;
+ TQSize sizeHint() const;
+ TQSize minimumSizeHint() const;
+ TQSize minimumSize() const;
/// @since 3.1
bool isRaised() const;
@@ -307,7 +307,7 @@ private:
* @internal
* @version $Id: ktoolbarbutton.h,v 1.26 2002/09/28 15:16:22 tjansen Exp $
*/
-class KToolBarButtonList : public QIntDict<KToolBarButton>
+class KToolBarButtonList : public TQIntDict<KToolBarButton>
{
public:
KToolBarButtonList();