diff options
author | Timothy Pearson <[email protected]> | 2013-04-12 16:49:43 -0500 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2013-04-12 16:49:43 -0500 |
commit | 18098b4c7042e7ce2f965964bb8977b4f17b9842 (patch) | |
tree | 5208af2813df58ff9ef7d5c878a516bd54c368d9 /kicker/libkicker/panelbutton.cpp | |
parent | b28da13a4da674958eea60d6be6594766e42c757 (diff) | |
download | tdebase-18098b4c7042e7ce2f965964bb8977b4f17b9842.tar.gz tdebase-18098b4c7042e7ce2f965964bb8977b4f17b9842.zip |
Add initial taskbar drag and drop support
This partially resolves Bug 1103
Save horizontal space around TDE Menu button when text is in use and Kicker is greater than one line in height
Diffstat (limited to 'kicker/libkicker/panelbutton.cpp')
-rw-r--r-- | kicker/libkicker/panelbutton.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/kicker/libkicker/panelbutton.cpp b/kicker/libkicker/panelbutton.cpp index 9f05d1f90..0bd13ac7b 100644 --- a/kicker/libkicker/panelbutton.cpp +++ b/kicker/libkicker/panelbutton.cpp @@ -70,6 +70,7 @@ PanelButton::PanelButton( TQWidget* parent, const char* name, bool forceStandard m_highlight(false), m_changeCursorOverItem(forceStandardCursor?false:true), m_hasAcceptedDrag(false), + m_centerInContainer(true), m_arrowDirection(KPanelExtension::Bottom), m_popupDirection(KPanelApplet::Up), m_iconAlignment(AlignCenter), @@ -938,6 +939,10 @@ bool PanelButton::calculateIconSize() return false; } +void PanelButton::setCenterButtonInContainer(bool center) { + m_centerInContainer = center; +} + void PanelButton::updateKickerTip(KickerTip::Data& data) { data.message = TQStyleSheet::escape(title()); @@ -946,6 +951,11 @@ void PanelButton::updateKickerTip(KickerTip::Data& data) data.direction = popupDirection(); } +bool PanelButton::centerButtonInContainer() +{ + return m_centerInContainer; +} + // // PanelPopupButton class // |