QtGui/qtoolbutton.h Source File
Go to the documentation of this file.
53 #ifndef QT_NO_TOOLBUTTON
55 class QToolButtonPrivate;
64 Q_PROPERTY(ToolButtonPopupMode popupMode READ popupMode WRITE setPopupMode)
67 Q_PROPERTY(
bool autoRaise READ autoRaise WRITE setAutoRaise)
71 enum ToolButtonPopupMode {
89 void setMenu(
QMenu* menu);
92 void setPopupMode(ToolButtonPopupMode
mode);
93 ToolButtonPopupMode popupMode()
const;
98 void setAutoRaise(
bool enable);
99 bool autoRaise()
const;
106 void setDefaultAction(
QAction *);
143 , Right = BesideIcon,
151 QObject * receiver,
const char* slot,
153 inline QT3_SUPPORT
void setPixmap(
const QPixmap &
pixmap) {
setIcon(static_cast<QIcon>(pixmap)); }
154 QT3_SUPPORT
void setOnIconSet(
const QIcon&);
155 QT3_SUPPORT
void setOffIconSet(
const QIcon&);
156 inline QT3_SUPPORT
void setIconSet(
const QIcon &icon){
setIcon(icon);}
157 QT3_SUPPORT
void setIconSet(
const QIcon &,
bool on);
158 inline QT3_SUPPORT
void setTextLabel(
const QString &text,
bool tooltip =
true) {
160 #ifndef QT_NO_TOOLTIP
167 inline QT3_SUPPORT
QString textLabel()
const {
return text(); }
168 QT3_SUPPORT
QIcon onIconSet()
const;
169 QT3_SUPPORT
QIcon offIconSet()
const;
170 QT3_SUPPORT
QIcon iconSet(
bool on)
const;
171 inline QT3_SUPPORT
QIcon iconSet()
const {
return icon(); }
172 inline QT3_SUPPORT
void openPopup() { showMenu(); }
173 inline QT3_SUPPORT
void setPopup(
QMenu* popup) {setMenu(popup); }
174 inline QT3_SUPPORT
QMenu* popup()
const {
return menu(); }
175 inline QT3_SUPPORT
bool usesBigPixmap()
const {
return iconSize().
height() > 22; }
177 inline QT3_SUPPORT TextPosition textPosition()
const
179 QT3_SUPPORT
void setPopupDelay(
int delay);
180 QT3_SUPPORT
int popupDelay()
const;
183 QT_MOC_COMPAT
void setUsesBigPixmap(
bool enable)
185 QT_MOC_COMPAT
void setUsesTextLabel(
bool enable)
187 QT_MOC_COMPAT
void setTextPosition(QToolButton::TextPosition pos)
193 #endif // QT_NO_TOOLBUTTON
199 #endif // QTOOLBUTTON_H
GLuint GLuint GLsizei GLenum type
GLXFBConfig Pixmap pixmap
#define Q_PRIVATE_SLOT(d, signature)
#define QT_BEGIN_NAMESPACE
GLuint const GLchar * name