

Definition at line 108 of file q3toolbar.cpp.
Public Member Functions | |
| Q3ToolBarExtensionWidget (QWidget *w) | |
| void | setOrientation (Qt::Orientation o) |
| QToolButton * | button () const |
Protected Member Functions | |
| void | resizeEvent (QResizeEvent *e) |
Private Member Functions | |
| void | layOut () |
Private Attributes | |
| QToolButton * | tb |
| Qt::Orientation | orient |
| Q3ToolBarExtensionWidget::Q3ToolBarExtensionWidget | ( | QWidget * | w | ) |
Definition at line 130 of file q3toolbar.cpp.
References Qt::Horizontal, QWidget::setAutoFillBackground(), QToolButton::setAutoRaise(), setOrientation(), and tb.
00131 : QWidget(w, "qt_dockwidget_internal") 00132 { 00133 tb = new QToolButton(this, "qt_toolbar_ext_button"); 00134 tb->setAutoRaise(true); 00135 setOrientation(Qt::Horizontal); 00136 setAutoFillBackground(true); 00137 }
Here is the call graph for this function:

| void Q3ToolBarExtensionWidget::setOrientation | ( | Qt::Orientation | o | ) |
Definition at line 139 of file q3toolbar.cpp.
References arrow_h_xpm, arrow_v_xpm, Qt::Horizontal, layOut(), orient, QWidget::QPixmap, QAbstractButton::setIcon(), and tb.
Referenced by Q3ToolBar::createPopup(), Q3ToolBarExtensionWidget(), and Q3ToolBar::setOrientation().
00140 { 00141 orient = o; 00142 if (orient == Qt::Horizontal) 00143 tb->setIcon(QPixmap((const char **)arrow_h_xpm)); 00144 else 00145 tb->setIcon(QPixmap((const char **)arrow_v_xpm)); 00146 layOut(); 00147 }
Here is the call graph for this function:

| QToolButton* Q3ToolBarExtensionWidget::button | ( | ) | const [inline] |
Definition at line 115 of file q3toolbar.cpp.
References tb.
Referenced by Q3ToolBar::createPopup().
00115 { return tb; }
| void Q3ToolBarExtensionWidget::resizeEvent | ( | QResizeEvent * | e | ) | [inline, protected, virtual] |
This event handler can be reimplemented in a subclass to receive widget resize events which are passed in the event parameter. When resizeEvent() is called, the widget already has its new geometry. The old size is accessible through QResizeEvent::oldSize().
The widget will be erased and receive a paint event immediately after processing the resize event. No drawing need be (or should be) done inside this handler.
Reimplemented from QWidget.
Definition at line 118 of file q3toolbar.cpp.
References layOut(), and QWidget::resizeEvent().
00118 { 00119 QWidget::resizeEvent(e); 00120 layOut(); 00121 }
Here is the call graph for this function:

| void Q3ToolBarExtensionWidget::layOut | ( | ) | [private] |
Definition at line 149 of file q3toolbar.cpp.
References QWidget::height(), QWidget::setGeometry(), tb, and QWidget::width().
Referenced by resizeEvent(), and setOrientation().
00150 { 00151 tb->setGeometry(2, 2, width() - 4, height() - 4); 00152 }
Here is the call graph for this function:

QToolButton* Q3ToolBarExtensionWidget::tb [private] |
Definition at line 125 of file q3toolbar.cpp.
Referenced by button(), layOut(), Q3ToolBarExtensionWidget(), and setOrientation().
1.5.1