fix tricky regression noticed by Vyacheslav Tokarev on Google Reader.
[kdelibs.git] / kde3support / tests / kdockwidgettest.h
blobedecf38d1105b4fe78d85d5c3a04ef0a34025eef
1 /***************************************************************************
2 copyright : (C) 1999 by Judin Max
3 email : novaprint@mtu-net.ru
4 ***************************************************************************/
6 /***************************************************************************
7 * *
8 * This program is free software; you can redistribute it and/or modify *
9 * it under the terms of the GNU General Public License as published by *
10 * the Free Software Foundation; either version 2 of the License, or *
11 * (at your option) any later version. *
12 * *
13 ***************************************************************************/
15 #ifndef KDOCKWIDGETTEST_H
16 #define KDOCKWIDGETTEST_H
18 #include <k3dockwidget.h>
19 #include <k3dockwidget_p.h>
20 #include <QtGui/QTabWidget>
21 #include <QtGui/QLabel>
22 class QPushButton;
24 class DockApplication : public K3DockMainWindow
25 {Q_OBJECT
26 public:
27 DockApplication( const char* name );
28 ~DockApplication();
30 public Q_SLOTS:
31 void rConfig();
32 void wConfig();
33 void cap();
34 void greenMain();
35 void blueMain();
36 void nullMain();
37 void gSetPix1();
38 void gSetPix2();
40 protected:
41 void initMenuBar();
42 void initToolBars();
43 void initStatusBar();
45 private:
46 void updateButton();
47 K3DockWidget* dock;
48 K3DockWidget* dock1;
49 K3DockWidget* dock4;
50 K3DockWidget* dock5;
51 K3DockWidget* dock6;
53 QWidget* mainW;
54 QWidget* l;
55 QPushButton* m_bname;
58 class CTW:public QTabWidget,public K3DockContainer
60 Q_OBJECT
61 public:
62 CTW(QWidget *parent):QTabWidget(parent),K3DockContainer(){insertTab(-1,new QLabel("BLAH",this),"BLUP");}
63 virtual ~CTW(){;}
64 K3DockWidget *parentDockWidget(){return ((K3DockWidget*)parent());}
65 void insertWidget (K3DockWidget *w, QPixmap, const QString &, int &){qDebug("widget inserted"); insertTab(-1,w,"NO");}
66 void setToolTip (K3DockWidget *, QString &){qDebug("Tooltip set");}
70 #endif