Fix FTBFS from Q_PROPERTY

git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1227191 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
tpearson 14 years ago
parent 45c2ea753f
commit 2c11ce1187

@ -47,7 +47,7 @@ class KDEUI_EXPORT KEditListBox : public TQGroupBox
TQ_OBJECT TQ_OBJECT
TQ_SETS( Button ) TQ_SETS( Button )
TQ_PROPERTY( Button buttons READ buttons WRITE setButtons ) TQ_PROPERTY( Button buttons READ buttonsProp WRITE setButtonsProp )
Q_PROPERTY( TQStringList items READ items WRITE setItems ) Q_PROPERTY( TQStringList items READ items WRITE setItems )
public: public:
@ -221,11 +221,13 @@ public:
* Returns which buttons are visible * Returns which buttons are visible
*/ */
int buttons() const; int buttons() const;
inline Button buttonsProp() const { return (Button)buttons(); }
/** /**
* Specifies which buttons should be visible * Specifies which buttons should be visible
*/ */
void setButtons( uint buttons ); void setButtons( uint buttons );
inline void setButtonsProp( Button buttons ) { setButtons((uint)buttons); }
signals: signals:
void changed(); void changed();

Loading…
Cancel
Save