yet another fix for info pane layout

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1077012
This commit is contained in:
Volker Lanz 2010-01-19 10:31:42 +00:00
parent e16357d14b
commit c98b1d702b
2 changed files with 6 additions and 7 deletions

View File

@ -158,12 +158,8 @@ void InfoPane::showDevice(Qt::DockWidgetArea area, const Device& d)
quint32 InfoPane::cols(Qt::DockWidgetArea area) const
{
QDockWidget* dockWidget = qobject_cast<QDockWidget*>(parentWidget());
if (area == Qt::LeftDockWidgetArea || area == Qt::RightDockWidgetArea)
return 2;
Q_ASSERT(dockWidget);
if (dockWidget->isFloating() || area == Qt::TopDockWidgetArea || area == Qt::BottomDockWidgetArea)
return 6;
return 2;
return 6;
}

View File

@ -75,6 +75,9 @@ void MainWindow::init()
loadConfig();
dockInformation().setWidget(&infoPane());
// trigger an update for the info pane so it can re-layout itself
updateSelection(NULL);
}
void MainWindow::closeEvent(QCloseEvent* event)