summaryrefslogtreecommitdiffstats
path: root/kicker/libkicker/panelbutton.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-09-03 20:49:48 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-09-03 20:49:48 +0000
commitfd7a608ffe99df747f0496300276b95f766c18b9 (patch)
treec54dfe97fb682af9705d2cb09c424c60db861228 /kicker/libkicker/panelbutton.h
parent27856879bf962f178d88e79144e37a47e731b122 (diff)
downloadtdebase-fd7a608ffe99df747f0496300276b95f766c18b9.tar.gz
tdebase-fd7a608ffe99df747f0496300276b95f766c18b9.zip
* Added Kickoff menu
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1171422 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kicker/libkicker/panelbutton.h')
-rw-r--r--kicker/libkicker/panelbutton.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/kicker/libkicker/panelbutton.h b/kicker/libkicker/panelbutton.h
index 78f36ed5c..770d0e1be 100644
--- a/kicker/libkicker/panelbutton.h
+++ b/kicker/libkicker/panelbutton.h
@@ -254,9 +254,11 @@ public slots:
/**
* Sets the direction to pop up the contents of the button.
*/
- void setPopupDirection(KPanelApplet::Direction d);
+ virtual void setPopupDirection(KPanelApplet::Direction d);
protected:
+
+ void setIconAlignment(AlignmentFlags align);
/**
* Subclasses must implement this to define the name of the button which is
* used to identify this button for saving and loading. It must be unique
@@ -391,6 +393,7 @@ private:
TQPixmap m_iconz; // mouse over
KPanelExtension::Position m_arrowDirection;
KPanelApplet::Direction m_popupDirection;
+ AlignmentFlags m_iconAlignment;
Orientation m_orientation;
int m_size;
double m_fontPercent;
@@ -419,12 +422,12 @@ public:
* Sets the button's popup menu.
* @param popup the menu to pop up
*/
- void setPopup(TQPopupMenu *popup);
+ void setPopup(TQWidget *popup);
/**
* @return the button's popup menu
*/
- TQPopupMenu *popup() const;
+ TQWidget *popup() const;
bool eventFilter(TQObject *, TQEvent *);
virtual void showMenu();
@@ -459,8 +462,8 @@ protected slots:
private slots:
void menuAboutToHide();
-private:
- TQPopupMenu *m_popup;
+protected:
+ TQWidget *m_popup;
bool m_pressedDuringPopup;
bool m_initialized;