Changeset 10466 for trunk/FACT++/gui
- Timestamp:
- 04/26/11 18:54:01 (14 years ago)
- Location:
- trunk/FACT++/gui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/gui/DockWindow.cc
r10394 r10466 1 1 #include "DockWindow.h" 2 2 3 #include <QtGui/QDockWidget> 3 #include <QDockWidget> 4 #include <QGridLayout> 4 5 5 6 #include <stdexcept> … … 7 8 using namespace std; 8 9 10 #include <iostream> 11 9 12 DockWindow::DockWindow(QDockWidget *d, const QString &name) 10 : fDockWidget(d) , fGeometry(d->geometry())13 : fDockWidget(d) 11 14 { 12 15 QObject *w0 = d->parent(); // QWidget … … 26 29 throw runtime_error("3rd parent of QDockWidget is not a QTabWidget"); 27 30 28 setGeometry( fGeometry);31 setGeometry(d->geometry()); 29 32 addDockWidget(Qt::LeftDockWidgetArea, fDockWidget); 30 33 setWindowTitle(name); 34 35 // FIXME: ToolTip, WhatsThis 36 37 show(); 31 38 } 32 39 … … 35 42 QWidget *w = new QWidget; 36 43 44 QGridLayout *l = new QGridLayout(w); 45 //layout->setObjectName(QString::fromUtf8("gridLayout_")+windowTitle()); 46 l->addWidget(fDockWidget, 0, 0, 1, 1); 47 37 48 fTabWidget->addTab(w, windowTitle()); 49 fTabWidget->setTabsClosable(true); 38 50 39 51 fDockWidget->setParent(w); 40 fDockWidget->setGeometry(fGeometry);41 52 42 fTabWidget->setTabsClosable(true);43 53 } -
trunk/FACT++/gui/DockWindow.h
r10394 r10466 14 14 QDockWidget *fDockWidget; 15 15 QTabWidget *fTabWidget; 16 const QRect fGeometry;17 16 18 17 public:
Note:
See TracChangeset
for help on using the changeset viewer.