22 #include <QApplication>
23 #include <Q3MainWindow>
27 setOrientation(Qt::Vertical);
29 setCloseMode(Q3DockWindow::Always);
37 Q3DockWindow::setWidget(w);
38 if(!(w->inherits(
"VTabWidget")))
41 setResizeEnabled(
false);
42 setHorizontallyStretchable(
false);
45 connect(
this,SIGNAL(placeChanged( Q3DockWindow::Place )),SLOT(
updatePosition(Q3DockWindow::Place)));
54 setHorizontallyStretchable(
true);
55 setResizeEnabled(
true);
64 setHorizontallyStretchable(
false);
65 setResizeEnabled(
false);
75 if(!(qApp->mainWidget()->inherits(
"QMainWindow")))
77 Q3MainWindow *mainWin = (Q3MainWindow*)(qApp->mainWidget());
82 bool res = mainWin->getLocation (
this, dock, ind, nl, eo );
85 if(dock == Qt::DockLeft)
87 else if(dock == Qt::DockRight)
89 mainWin->lineUpDockWindows();