From ce4a32fe52ef09d8f5ff1dd22c001110902b60a2 Mon Sep 17 00:00:00 2001 From: toma Date: Wed, 25 Nov 2009 17:56:58 +0000 Subject: Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kdeui/tests/ktabwidgettest.h | 69 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 kdeui/tests/ktabwidgettest.h (limited to 'kdeui/tests/ktabwidgettest.h') diff --git a/kdeui/tests/ktabwidgettest.h b/kdeui/tests/ktabwidgettest.h new file mode 100644 index 000000000..cc96a24c6 --- /dev/null +++ b/kdeui/tests/ktabwidgettest.h @@ -0,0 +1,69 @@ +#ifndef KTABWIDGETTEST_H +#define KTABWIDGETTEST_H + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +class Test : public QVBox +{ + Q_OBJECT +public: + Test( QWidget* parent=0, const char *name =0 ); + +private slots: + void addTab(); + void removeCurrentTab(); + void toggleLeftButton(bool); + void toggleRightButton(bool); + void toggleLeftPopup(bool); + void toggleRightPopup(bool); + void toggleTabPosition(bool); + void toggleTabShape(bool); + void toggleCloseButtons(bool); + void toggleLabels(bool); + + void currentChanged(QWidget*); + void contextMenu(QWidget*, const QPoint&); + void tabbarContextMenu(const QPoint&); + void testCanDecode(const QDragMoveEvent *, bool & /* result */); + void receivedDropEvent( QDropEvent* ); + void initiateDrag( QWidget * ); + void receivedDropEvent( QWidget *, QDropEvent * ); + void mouseDoubleClick(QWidget*); + void mouseMiddleClick(QWidget*); + void movedTab( int, int ); + + void leftPopupActivated(int); + void rightPopupActivated(int); + void contextMenuActivated(int); + void tabbarContextMenuActivated(int); + +private: + KTabWidget* mWidget; + int mChange; + + QCheckBox * mLeftButton; + QCheckBox * mRightButton; + QCheckBox * mTabsBottom; + + QToolButton* mLeftWidget; + QToolButton* mRightWidget; + + QPopupMenu* mLeftPopup; + QPopupMenu* mRightPopup; + QPopupMenu* mTabbarContextPopup; + QPopupMenu* mContextPopup; + QWidget* mContextWidget; +}; + + +#endif -- cgit v1.2.1