Skip to content

Commit

Permalink
Set the tree widget geometry using the
Browse files Browse the repository at this point in the history
application's settings.
  • Loading branch information
elpablo committed Jan 19, 2011
1 parent 2576355 commit e08e210
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mafGUI/mafGUIManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -303,8 +303,9 @@ void mafGUIManager::startOperation() {
}

mafTreeWidget *mafGUIManager::createTreeWidget(mafTreeModel *model, QWidget *parent) {
mafSettings settings;
mafTreeWidget *w = new mafTreeWidget();
w->setGeometry(QRect(0, 0, 200, 400));
w->setGeometry(settings.value("SideBar/Geometry", QRect(0, 0, 200, 400)).toRect());
w->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
w->setMinimumSize(200, 200);
w->setMaximumSize(16777215, 16777215);
Expand Down

0 comments on commit e08e210

Please sign in to comment.