![]() |
HAL
|
A button of in the DockerBar. More...
#include <dock_button.h>
Public Slots | |
void | handleClicked (bool mChecked) |
Public Member Functions | |
DockButton (ContentWidget *widget, button_orientation orientation, QObject *eventFilter, QWidget *parent) | |
void | paintEvent (QPaintEvent *event) override |
void | adjustSize () |
int | relativeWidth () |
ContentWidget * | widget () |
bool | hidden () |
bool | available () |
void | setAvailable (bool available) |
void | setRelativeHeight (int height) |
void | hide () |
void | show () |
Q_PROPERTY READ Functions | |
QColor | textColor () |
QColor | checkedColor () |
QColor | hoverColor () |
Q_PROPERTY WRITE Functions | |
void | setTextColor (const QColor &color) |
void | setCheckedColor (const QColor &color) |
void | setHoverColor (const QColor &color) |
![]() | |
QToolButton (QWidget *parent) | |
virtual | ~QToolButton () |
virtual QSize | sizeHint () const const override |
virtual QSize | minimumSizeHint () const const override |
Qt::ToolButtonStyle | toolButtonStyle () const const |
Qt::ArrowType | arrowType () const const |
void | setArrowType (Qt::ArrowType type) |
void | setMenu (QMenu *menu) |
QMenu * | menu () const const |
void | setPopupMode (QToolButton::ToolButtonPopupMode mode) |
QToolButton::ToolButtonPopupMode | popupMode () const const |
QAction * | defaultAction () const const |
void | setAutoRaise (bool enable) |
bool | autoRaise () const const |
void | showMenu () |
void | setToolButtonStyle (Qt::ToolButtonStyle style) |
void | setDefaultAction (QAction *action) |
void | triggered (QAction *action) |
![]() | |
QAbstractButton (QWidget *parent) | |
virtual | ~QAbstractButton () |
void | setText (const QString &text) |
QString | text () const const |
void | setIcon (const QIcon &icon) |
QIcon | icon () const const |
QSize | iconSize () const const |
void | setShortcut (const QKeySequence &key) |
QKeySequence | shortcut () const const |
void | setCheckable (bool) |
bool | isCheckable () const const |
bool | isChecked () const const |
void | setDown (bool) |
bool | isDown () const const |
void | setAutoRepeat (bool) |
bool | autoRepeat () const const |
void | setAutoRepeatDelay (int) |
int | autoRepeatDelay () const const |
void | setAutoRepeatInterval (int) |
int | autoRepeatInterval () const const |
void | setAutoExclusive (bool) |
bool | autoExclusive () const const |
QButtonGroup * | group () const const |
void | setIconSize (const QSize &size) |
void | animateClick (int msec) |
void | click () |
void | toggle () |
void | setChecked (bool) |
void | pressed () |
void | released () |
void | clicked (bool checked) |
void | toggled (bool checked) |
![]() | |
QWidget (QWidget *parent, Qt::WindowFlags f) | |
virtual | ~QWidget () |
WId | winId () const const |
WId | effectiveWinId () const const |
QStyle * | style () const const |
void | setStyle (QStyle *style) |
bool | isTopLevel () const const |
bool | isWindow () const const |
bool | isModal () const const |
Qt::WindowModality | windowModality () const const |
void | setWindowModality (Qt::WindowModality windowModality) |
bool | isEnabled () const const |
bool | isEnabledTo (const QWidget *ancestor) const const |
bool | isEnabledToTLW () const const |
void | setEnabled (bool) |
void | setDisabled (bool disable) |
void | setWindowModified (bool) |
QRect | frameGeometry () const const |
const QRect & | geometry () const const |
QRect | normalGeometry () const const |
int | x () const const |
int | y () const const |
QPoint | pos () const const |
QSize | frameSize () const const |
QSize | size () const const |
int | width () const const |
int | height () const const |
QRect | rect () const const |
QRect | childrenRect () const const |
QRegion | childrenRegion () const const |
QSize | minimumSize () const const |
QSize | maximumSize () const const |
int | minimumWidth () const const |
int | minimumHeight () const const |
int | maximumWidth () const const |
int | maximumHeight () const const |
void | setMinimumSize (const QSize &) |
void | setMinimumSize (int minw, int minh) |
void | setMaximumSize (const QSize &) |
void | setMaximumSize (int maxw, int maxh) |
void | setMinimumWidth (int minw) |
void | setMinimumHeight (int minh) |
void | setMaximumWidth (int maxw) |
void | setMaximumHeight (int maxh) |
void | setupUi (QWidget *widget) |
QSize | sizeIncrement () const const |
void | setSizeIncrement (const QSize &) |
void | setSizeIncrement (int w, int h) |
QSize | baseSize () const const |
void | setBaseSize (const QSize &) |
void | setBaseSize (int basew, int baseh) |
void | setFixedSize (const QSize &s) |
void | setFixedSize (int w, int h) |
void | setFixedWidth (int w) |
void | setFixedHeight (int h) |
QPoint | mapToGlobal (const QPoint &pos) const const |
QPoint | mapFromGlobal (const QPoint &pos) const const |
QPoint | mapToParent (const QPoint &pos) const const |
QPoint | mapFromParent (const QPoint &pos) const const |
QPoint | mapTo (const QWidget *parent, const QPoint &pos) const const |
QPoint | mapFrom (const QWidget *parent, const QPoint &pos) const const |
QWidget * | window () const const |
QWidget * | nativeParentWidget () const const |
QWidget * | topLevelWidget () const const |
const QPalette & | palette () const const |
void | setPalette (const QPalette &) |
void | setBackgroundRole (QPalette::ColorRole role) |
QPalette::ColorRole | backgroundRole () const const |
void | setForegroundRole (QPalette::ColorRole role) |
QPalette::ColorRole | foregroundRole () const const |
const QFont & | font () const const |
void | setFont (const QFont &) |
QFontMetrics | fontMetrics () const const |
QFontInfo | fontInfo () const const |
QCursor | cursor () const const |
void | setCursor (const QCursor &) |
void | unsetCursor () |
void | setMouseTracking (bool enable) |
bool | hasMouseTracking () const const |
bool | underMouse () const const |
void | setTabletTracking (bool enable) |
bool | hasTabletTracking () const const |
void | setMask (const QBitmap &bitmap) |
void | setMask (const QRegion ®ion) |
QRegion | mask () const const |
void | clearMask () |
void | render (QPaintDevice *target, const QPoint &targetOffset, const QRegion &sourceRegion, QWidget::RenderFlags renderFlags) |
void | render (QPainter *painter, const QPoint &targetOffset, const QRegion &sourceRegion, QWidget::RenderFlags renderFlags) |
QPixmap | grab (const QRect &rectangle) |
QGraphicsEffect * | graphicsEffect () const const |
void | setGraphicsEffect (QGraphicsEffect *effect) |
void | grabGesture (Qt::GestureType gesture, Qt::GestureFlags flags) |
void | ungrabGesture (Qt::GestureType gesture) |
void | setWindowTitle (const QString &) |
void | setStyleSheet (const QString &styleSheet) |
QString | styleSheet () const const |
QString | windowTitle () const const |
void | setWindowIcon (const QIcon &icon) |
QIcon | windowIcon () const const |
void | setWindowIconText (const QString &) |
QString | windowIconText () const const |
void | setWindowRole (const QString &role) |
QString | windowRole () const const |
void | setWindowFilePath (const QString &filePath) |
QString | windowFilePath () const const |
void | setWindowOpacity (qreal level) |
qreal | windowOpacity () const const |
bool | isWindowModified () const const |
void | setToolTip (const QString &) |
QString | toolTip () const const |
void | setToolTipDuration (int msec) |
int | toolTipDuration () const const |
void | setStatusTip (const QString &) |
QString | statusTip () const const |
void | setWhatsThis (const QString &) |
QString | whatsThis () const const |
QString | accessibleName () const const |
void | setAccessibleName (const QString &name) |
QString | accessibleDescription () const const |
void | setAccessibleDescription (const QString &description) |
void | setLayoutDirection (Qt::LayoutDirection direction) |
Qt::LayoutDirection | layoutDirection () const const |
void | unsetLayoutDirection () |
void | setLocale (const QLocale &locale) |
QLocale | locale () const const |
void | unsetLocale () |
void | setFocus () |
bool | isActiveWindow () const const |
void | activateWindow () |
void | clearFocus () |
void | setFocus (Qt::FocusReason reason) |
Qt::FocusPolicy | focusPolicy () const const |
void | setFocusPolicy (Qt::FocusPolicy policy) |
bool | hasFocus () const const |
void | setFocusProxy (QWidget *w) |
QWidget * | focusProxy () const const |
Qt::ContextMenuPolicy | contextMenuPolicy () const const |
void | setContextMenuPolicy (Qt::ContextMenuPolicy policy) |
void | grabMouse () |
void | grabMouse (const QCursor &cursor) |
void | releaseMouse () |
void | grabKeyboard () |
void | releaseKeyboard () |
int | grabShortcut (const QKeySequence &key, Qt::ShortcutContext context) |
void | releaseShortcut (int id) |
void | setShortcutEnabled (int id, bool enable) |
void | setShortcutAutoRepeat (int id, bool enable) |
bool | updatesEnabled () const const |
void | setUpdatesEnabled (bool enable) |
QGraphicsProxyWidget * | graphicsProxyWidget () const const |
void | update () |
void | repaint () |
void | update (int x, int y, int w, int h) |
void | update (const QRect &rect) |
void | update (const QRegion &rgn) |
void | repaint (int x, int y, int w, int h) |
void | repaint (const QRect &rect) |
void | repaint (const QRegion &rgn) |
virtual void | setVisible (bool visible) |
void | setHidden (bool hidden) |
void | show () |
void | hide () |
void | showMinimized () |
void | showMaximized () |
void | showFullScreen () |
void | showNormal () |
bool | close () |
void | raise () |
void | lower () |
void | stackUnder (QWidget *w) |
void | move (int x, int y) |
void | move (const QPoint &) |
void | resize (int w, int h) |
void | resize (const QSize &) |
void | setGeometry (int x, int y, int w, int h) |
void | setGeometry (const QRect &) |
QByteArray | saveGeometry () const const |
bool | restoreGeometry (const QByteArray &geometry) |
void | adjustSize () |
bool | isVisible () const const |
bool | isVisibleTo (const QWidget *ancestor) const const |
bool | isHidden () const const |
bool | isMinimized () const const |
bool | isMaximized () const const |
bool | isFullScreen () const const |
Qt::WindowStates | windowState () const const |
void | setWindowState (Qt::WindowStates windowState) |
QSizePolicy | sizePolicy () const const |
void | setSizePolicy (QSizePolicy) |
void | setSizePolicy (QSizePolicy::Policy horizontal, QSizePolicy::Policy vertical) |
virtual int | heightForWidth (int w) const const |
virtual bool | hasHeightForWidth () const const |
QRegion | visibleRegion () const const |
void | setContentsMargins (int left, int top, int right, int bottom) |
void | setContentsMargins (const QMargins &margins) |
void | getContentsMargins (int *left, int *top, int *right, int *bottom) const const |
QMargins | contentsMargins () const const |
QRect | contentsRect () const const |
QLayout * | layout () const const |
void | setLayout (QLayout *layout) |
void | updateGeometry () |
void | setParent (QWidget *parent) |
void | setParent (QWidget *parent, Qt::WindowFlags f) |
void | scroll (int dx, int dy) |
void | scroll (int dx, int dy, const QRect &r) |
QWidget * | focusWidget () const const |
QWidget * | nextInFocusChain () const const |
QWidget * | previousInFocusChain () const const |
bool | acceptDrops () const const |
void | setAcceptDrops (bool on) |
void | addAction (QAction *action) |
void | addActions (QList< QAction * > actions) |
void | insertActions (QAction *before, QList< QAction * > actions) |
void | insertAction (QAction *before, QAction *action) |
void | removeAction (QAction *action) |
QList< QAction * > | actions () const const |
QWidget * | parentWidget () const const |
void | setWindowFlags (Qt::WindowFlags type) |
Qt::WindowFlags | windowFlags () const const |
void | setWindowFlag (Qt::WindowType flag, bool on) |
void | overrideWindowFlags (Qt::WindowFlags flags) |
Qt::WindowType | windowType () const const |
QWidget * | childAt (int x, int y) const const |
QWidget * | childAt (const QPoint &p) const const |
void | setAttribute (Qt::WidgetAttribute attribute, bool on) |
bool | testAttribute (Qt::WidgetAttribute attribute) const const |
virtual QPaintEngine * | paintEngine () const const override |
void | ensurePolished () const const |
bool | isAncestorOf (const QWidget *child) const const |
bool | hasEditFocus () const const |
void | setEditFocus (bool enable) |
bool | autoFillBackground () const const |
void | setAutoFillBackground (bool enabled) |
QBackingStore * | backingStore () const const |
QWindow * | windowHandle () const const |
QScreen * | screen () const const |
void | windowTitleChanged (const QString &title) |
void | windowIconChanged (const QIcon &icon) |
void | windowIconTextChanged (const QString &iconText) |
void | customContextMenuRequested (const QPoint &pos) |
virtual QVariant | inputMethodQuery (Qt::InputMethodQuery query) const const |
Qt::InputMethodHints | inputMethodHints () const const |
void | setInputMethodHints (Qt::InputMethodHints hints) |
QWIDGETSIZE_MAX QWIDGETSIZE_MAX | |
![]() | |
virtual const QMetaObject * | metaObject () const const |
QObject (QObject *parent) | |
virtual | ~QObject () |
virtual bool | eventFilter (QObject *watched, QEvent *event) |
QString | objectName () const const |
void | setObjectName (const QString &name) |
bool | isWidgetType () const const |
bool | isWindowType () const const |
bool | signalsBlocked () const const |
bool | blockSignals (bool block) |
QThread * | thread () const const |
void | moveToThread (QThread *targetThread) |
int | startTimer (int interval, Qt::TimerType timerType) |
int | startTimer (std::chrono::milliseconds time, Qt::TimerType timerType) |
void | killTimer (int id) |
T | findChild (const QString &name, Qt::FindChildOptions options) const const |
QList< T > | findChildren (const QString &name, Qt::FindChildOptions options) const const |
QList< T > | findChildren (const QRegExp ®Exp, Qt::FindChildOptions options) const const |
QList< T > | findChildren (const QRegularExpression &re, Qt::FindChildOptions options) const const |
const QObjectList & | children () const const |
void | setParent (QObject *parent) |
void | installEventFilter (QObject *filterObj) |
void | removeEventFilter (QObject *obj) |
QMetaObject::Connection | connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const const |
bool | disconnect (const char *signal, const QObject *receiver, const char *method) const const |
bool | disconnect (const QObject *receiver, const char *method) const const |
void | dumpObjectTree () |
void | dumpObjectInfo () |
void | dumpObjectTree () const const |
void | dumpObjectInfo () const const |
bool | setProperty (const char *name, const QVariant &value) |
QVariant | property (const char *name) const const |
QList< QByteArray > | dynamicPropertyNames () const const |
void | destroyed (QObject *obj) |
void | objectNameChanged (const QString &objectName) |
QObject * | parent () const const |
bool | inherits (const char *className) const const |
void | deleteLater () |
Q_DISABLE_COPY (Class) | |
Q_DISABLE_MOVE (Class) | |
Q_DISABLE_COPY_MOVE (Class) | |
T | qobject_cast (QObject *object) |
T | qobject_cast (const QObject *object) |
T | qFindChild (const QObject *obj, const QString &name) |
QList< T > | qFindChildren (const QObject *obj, const QString &name) |
QList< T > | qFindChildren (const QObject *obj, const QRegExp ®Exp) |
Q_CLASSINFO (Name, Value) | |
Q_INTERFACES (...) | |
Q_PROPERTY (...) | |
Q_ENUMS (...) | |
Q_FLAGS (...) | |
Q_ENUM (...) | |
Q_FLAG (...) | |
Q_ENUM_NS (...) | |
Q_FLAG_NS (...) | |
Q_OBJECT Q_OBJECT | |
Q_GADGET Q_GADGET | |
Q_NAMESPACE Q_NAMESPACE | |
Q_NAMESPACE_EXPORT (EXPORT_MACRO) | |
Q_SIGNALS Q_SIGNALS | |
Q_SIGNAL Q_SIGNAL | |
Q_SLOTS Q_SLOTS | |
Q_SLOT Q_SLOT | |
Q_EMIT Q_EMIT | |
Q_INVOKABLE Q_INVOKABLE | |
Q_REVISION Q_REVISION | |
Q_SET_OBJECT_NAME (Object) | |
QT_NO_NARROWING_CONVERSIONS_IN_CONNECT QT_NO_NARROWING_CONVERSIONS_IN_CONNECT | |
![]() | |
virtual | ~QPaintDevice () |
bool | paintingActive () const const |
int | width () const const |
int | height () const const |
int | widthMM () const const |
int | heightMM () const const |
int | logicalDpiX () const const |
int | logicalDpiY () const const |
int | physicalDpiX () const const |
int | physicalDpiY () const const |
int | devicePixelRatio () const const |
qreal | devicePixelRatioF () const const |
int | colorCount () const const |
int | depth () const const |
Additional Inherited Members | |
![]() | |
enum | ToolButtonPopupMode |
![]() | |
enum | RenderFlag |
![]() | |
enum | PaintDeviceMetric |
![]() | |
void | setTabOrder (QWidget *first, QWidget *second) |
QWidget * | mouseGrabber () |
QWidget * | keyboardGrabber () |
QWidget * | find (WId id) |
QWidget * | createWindowContainer (QWindow *window, QWidget *parent, Qt::WindowFlags flags) |
![]() | |
QString | tr (const char *sourceText, const char *disambiguation, int n) |
QString | trUtf8 (const char *sourceText, const char *disambiguation, int n) |
QMetaObject::Connection | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type) |
QMetaObject::Connection | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type) |
QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method, Qt::ConnectionType type) |
QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, Functor functor) |
QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, const QObject *context, Functor functor, Qt::ConnectionType type) |
bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method) |
bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method) |
bool | disconnect (const QMetaObject::Connection &connection) |
bool | disconnect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method) |
![]() | |
DelayedPopup | |
MenuButtonPopup | |
InstantPopup | |
![]() | |
typedef | RenderFlags |
DrawWindowBackground | |
DrawChildren | |
IgnoreMask | |
![]() | |
typedef | QObjectList |
![]() | |
PdmWidth | |
PdmHeight | |
PdmWidthMM | |
PdmHeightMM | |
PdmNumColors | |
PdmDepth | |
PdmDpiX | |
PdmDpiY | |
PdmPhysicalDpiX | |
PdmPhysicalDpiY | |
PdmDevicePixelRatio | |
PdmDevicePixelRatioScaled | |
![]() | |
virtual bool | event (QEvent *event) override |
virtual void | mousePressEvent (QMouseEvent *e) override |
virtual void | mouseReleaseEvent (QMouseEvent *e) override |
virtual void | actionEvent (QActionEvent *event) override |
virtual void | enterEvent (QEvent *e) override |
virtual void | leaveEvent (QEvent *e) override |
virtual void | timerEvent (QTimerEvent *e) override |
virtual void | changeEvent (QEvent *e) override |
virtual bool | hitButton (const QPoint &pos) const const override |
virtual void | nextCheckState () override |
void | initStyleOption (QStyleOptionToolButton *option) const const |
![]() | |
virtual void | checkStateSet () |
virtual void | keyPressEvent (QKeyEvent *e) override |
virtual void | keyReleaseEvent (QKeyEvent *e) override |
virtual void | mouseMoveEvent (QMouseEvent *e) override |
virtual void | focusInEvent (QFocusEvent *e) override |
virtual void | focusOutEvent (QFocusEvent *e) override |
![]() | |
virtual void | mouseDoubleClickEvent (QMouseEvent *event) |
virtual void | wheelEvent (QWheelEvent *event) |
virtual void | moveEvent (QMoveEvent *event) |
virtual void | resizeEvent (QResizeEvent *event) |
virtual void | closeEvent (QCloseEvent *event) |
virtual void | contextMenuEvent (QContextMenuEvent *event) |
virtual void | tabletEvent (QTabletEvent *event) |
virtual void | dragEnterEvent (QDragEnterEvent *event) |
virtual void | dragMoveEvent (QDragMoveEvent *event) |
virtual void | dragLeaveEvent (QDragLeaveEvent *event) |
virtual void | dropEvent (QDropEvent *event) |
virtual void | showEvent (QShowEvent *event) |
virtual void | hideEvent (QHideEvent *event) |
virtual bool | nativeEvent (const QByteArray &eventType, void *message, long *result) |
virtual int | metric (QPaintDevice::PaintDeviceMetric m) const const override |
virtual void | initPainter (QPainter *painter) const const override |
virtual void | inputMethodEvent (QInputMethodEvent *event) |
void | updateMicroFocus () |
void | create (WId window, bool initializeWindow, bool destroyOldWindow) |
void | destroy (bool destroyWindow, bool destroySubWindows) |
virtual bool | focusNextPrevChild (bool next) |
bool | focusNextChild () |
bool | focusPreviousChild () |
![]() | |
QObject * | sender () const const |
int | senderSignalIndex () const const |
int | receivers (const char *signal) const const |
bool | isSignalConnected (const QMetaMethod &signal) const const |
virtual void | childEvent (QChildEvent *event) |
virtual void | customEvent (QEvent *event) |
virtual void | connectNotify (const QMetaMethod &signal) |
virtual void | disconnectNotify (const QMetaMethod &signal) |
![]() | |
QPaintDevice () | |
A button of in the DockerBar.
The DockButton is placed and displayed in a DockBar to determine the position and appearance of a content widget. It computes and holds necessary information for the docking system such as its size, the associated content widget as well as his hidden/show status.
Definition at line 55 of file dock_button.h.
hal::DockButton::DockButton | ( | ContentWidget * | widget, |
button_orientation | orientation, | ||
QObject * | eventFilter, | ||
QWidget * | parent | ||
) |
The constructor.
widget | - The associated content widget that is displayed in the corresponding area of the dockbutton. |
orientation | - The dockbutton's orientation. This is set depending if the dockbar its placed in is horizontal or vertical. |
eventFilter | - The eventfilter to be installed on the dockbutton. Mainly used by the dockbar to set a button as the current dragbutton. |
parent | - The dockbutton's parent. |
Definition at line 12 of file dock_button.cpp.
References adjustSize(), QAbstractButton::clicked(), QObject::connect(), QObject::eventFilter(), handleClicked(), hal::ContentWidget::icon(), QObject::installEventFilter(), hal::ContentWidget::name(), QAbstractButton::setCheckable(), QAbstractButton::setIcon(), QWidget::setStyleSheet(), and QAbstractButton::setText().
void hal::DockButton::adjustSize | ( | ) |
Calculates its size and sets the height and width as fixed values.
Definition at line 93 of file dock_button.cpp.
References QWidget::font, hal::horizontal, QObject::property(), QWidget::setFixedHeight(), QWidget::setFixedWidth(), QAbstractButton::text, and QVariant::value().
Referenced by DockButton(), and setRelativeHeight().
bool hal::DockButton::available | ( | ) |
Get the available status of the dockbutton. This status is set to false when the dockbutton is dragged.
Definition at line 151 of file dock_button.cpp.
Referenced by setAvailable().
QColor hal::DockButton::checkedColor | ( | ) |
Returns the checked color
|
slot |
The main purpose of this function is to be connected to the buttons's own clicked signal. When the button is checked and therefore mChecked = true (remember, it is a toolbutton), the associated widget is opened and therefore visible. Otherwise it is closed.
mChecked | - The boolean wether the dockbutton is checked or not checked. |
Definition at line 121 of file dock_button.cpp.
References hal::ContentWidget::close(), and hal::ContentWidget::open().
Referenced by DockButton().
bool hal::DockButton::hidden | ( | ) |
Get the visible status of the associated content widget wether it is currently shown or hidden. Does the same as QWidget::isHidden() when combined with the overriden hide() method.
Definition at line 146 of file dock_button.cpp.
void hal::DockButton::hide | ( | ) |
Overrides the QWidget's hide method. Does the same as QWidget::hide().
Definition at line 134 of file dock_button.cpp.
References QWidget::hide().
Referenced by hal::DockBar::mouseMoveEvent(), and hal::DockBar::removeButton().
QColor hal::DockButton::hoverColor | ( | ) |
Returns the hover color
|
overridevirtual |
Overwritten qt function.
event | - The paint event. |
Reimplemented from QToolButton.
Definition at line 29 of file dock_button.cpp.
References Qt::AlignVCenter, QToolButton::event(), QWidget::font, hal::horizontal, QAbstractButton::icon, QAbstractButton::isChecked(), QObject::property(), QAbstractButton::text, QWidget::underMouse(), QVariant::value(), hal::vertical_down, and hal::vertical_up.
int hal::DockButton::relativeWidth | ( | ) |
Get the relative width of the button. This value is used in the adjustSize() calculation.
Definition at line 116 of file dock_button.cpp.
Referenced by hal::DockBar::mouseMoveEvent().
void hal::DockButton::setAvailable | ( | bool | available | ) |
Sets the available status of the button. This status is to be set to false at the start of the buttondragging and set to true at the end of it.
available | - The new available status of the widget. |
Definition at line 156 of file dock_button.cpp.
References available().
Referenced by hal::DockBar::mouseMoveEvent().
void hal::DockButton::setCheckedColor | ( | const QColor & | color | ) |
Set the checked color
color | - The new color. |
Definition at line 83 of file dock_button.cpp.
void hal::DockButton::setHoverColor | ( | const QColor & | color | ) |
void hal::DockButton::setRelativeHeight | ( | int | height | ) |
Sets the relative height.
height | - The ’new’ height. |
Definition at line 161 of file dock_button.cpp.
References adjustSize(), and QWidget::height.
Referenced by hal::DockBar::addButton().
void hal::DockButton::setTextColor | ( | const QColor & | color | ) |
void hal::DockButton::show | ( | ) |
Overrides the QWidgets show method. Does the same as QWidget::show().
Definition at line 140 of file dock_button.cpp.
References QWidget::show().
Referenced by hal::DockBar::addButton(), and hal::DockBar::mouseMoveEvent().
QColor hal::DockButton::textColor | ( | ) |
Returns the text color
ContentWidget * hal::DockButton::widget | ( | ) |
Get the associated content widget.
Definition at line 129 of file dock_button.cpp.
Referenced by hal::DockBar::mouseMoveEvent().
|
readwrite |
Definition at line 1 of file dock_button.h.
|
readwrite |
Definition at line 1 of file dock_button.h.
|
readwrite |
Definition at line 1 of file dock_button.h.