diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | ce4a32fe52ef09d8f5ff1dd22c001110902b60a2 (patch) | |
tree | 5ac38a06f3dde268dc7927dc155896926aaf7012 /kdeui/tests/ktabwidgettest.h | |
download | tdelibs-ce4a32fe52ef09d8f5ff1dd22c001110902b60a2.tar.gz tdelibs-ce4a32fe52ef09d8f5ff1dd22c001110902b60a2.zip |
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
Diffstat (limited to 'kdeui/tests/ktabwidgettest.h')
-rw-r--r-- | kdeui/tests/ktabwidgettest.h | 69 |
1 files changed, 69 insertions, 0 deletions
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 <kiconloader.h> +#include <qwidget.h> +#include <ktabwidget.h> +#include <qlabel.h> +#include <qpushbutton.h> +#include <qpopupmenu.h> +#include <stdlib.h> +#include <qvbox.h> +#include <time.h> +#include <qcheckbox.h> +#include <qtoolbutton.h> + +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 |