Commit 6ffd0a9e authored by Jan Möbius's avatar Jan Möbius
Browse files

set fixed height when changing view mode

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@4932 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 764110c6
...@@ -156,10 +156,10 @@ void CoreWidget::setViewMode( QString _mode ){ ...@@ -156,10 +156,10 @@ void CoreWidget::setViewMode( QString _mode ){
/// Tab all DockWidgets which belong to ToolWidgets together /// Tab all DockWidgets which belong to ToolWidgets together
void CoreWidget::tabDockWidgets(QVector< QDockWidget* > _widgets){ void CoreWidget::tabDockWidgets(QVector< QDockWidget* > _widgets){
// int maxH = maximumHeight(); int maxH = maximumHeight();
// int minH = minimumHeight(); int minH = minimumHeight();
//
// setFixedHeight(height()); setFixedHeight(height());
//if no widgets are given take all visible one's and ignore the order //if no widgets are given take all visible one's and ignore the order
if (_widgets.size() == 0) if (_widgets.size() == 0)
...@@ -182,9 +182,9 @@ void CoreWidget::tabDockWidgets(QVector< QDockWidget* > _widgets){ ...@@ -182,9 +182,9 @@ void CoreWidget::tabDockWidgets(QVector< QDockWidget* > _widgets){
tabifyDockWidget(d1, d2); tabifyDockWidget(d1, d2);
} }
} }
/*
setMaximumHeight(maxH); setMaximumHeight(maxH);
setMinimumHeight(minH);*/ setMinimumHeight(minH);
} }
/// show dialog for changing ViewMode /// show dialog for changing ViewMode
...@@ -203,10 +203,10 @@ void CoreWidget::slotViewModeDialog(){ ...@@ -203,10 +203,10 @@ void CoreWidget::slotViewModeDialog(){
/// Slot for Changing visible toolWidgets /// Slot for Changing visible toolWidgets
void CoreWidget::slotChangeView(QString _mode, QStringList _toolWidgets){ void CoreWidget::slotChangeView(QString _mode, QStringList _toolWidgets){
// int maxH = maximumHeight(); int maxH = maximumHeight();
// int minH = minimumHeight(); int minH = minimumHeight();
// setFixedHeight(height()); setFixedHeight(height());
//try to find Widgets if they aren't given //try to find Widgets if they aren't given
if (_mode != "" && _toolWidgets.size() == 0) if (_mode != "" && _toolWidgets.size() == 0)
...@@ -229,10 +229,6 @@ void CoreWidget::slotChangeView(QString _mode, QStringList _toolWidgets){ ...@@ -229,10 +229,6 @@ void CoreWidget::slotChangeView(QString _mode, QStringList _toolWidgets){
QString name_nospace = plugins_[p].name; QString name_nospace = plugins_[p].name;
name_nospace.remove(" "); name_nospace.remove(" ");
if (_toolWidgets[i] == name_nospace ){ if (_toolWidgets[i] == name_nospace ){
// plugins_[p].widget->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
// plugins_[p].widget->setMaximumWidth(900);
plugins_[p].widget->setVisible( true ); plugins_[p].widget->setVisible( true );
if ( !plugins_[p].widget->isFloating() ) if ( !plugins_[p].widget->isFloating() )
dockWidgets.push_back( plugins_[p].widget ); dockWidgets.push_back( plugins_[p].widget );
...@@ -245,8 +241,8 @@ void CoreWidget::slotChangeView(QString _mode, QStringList _toolWidgets){ ...@@ -245,8 +241,8 @@ void CoreWidget::slotChangeView(QString _mode, QStringList _toolWidgets){
//tab all dockWidgets together //tab all dockWidgets together
tabDockWidgets(dockWidgets); tabDockWidgets(dockWidgets);
// setMaximumHeight(maxH); setMaximumHeight(maxH);
// setMinimumHeight(minH); setMinimumHeight(minH);
} }
/// Slot is called when the visibility of a toolWidget changes /// Slot is called when the visibility of a toolWidget changes
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment