Logo Search packages:      
Sourcecode: qt4-x11 version File versions

src.gui.widgets.qdockwidget.cpp

//! [0]
       QDockWidget *dockWidget = qobject_cast<QDockWidget*>(parentWidget());
       if (dockWidget->features() & QDockWidget::DockWidgetVerticalTitleBar) {
           // I need to be vertical
       } else {
           // I need to be horizontal
       }
//! [0]



Generated by  Doxygen 1.6.0   Back to index