yet another fix for info pane layout
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1077012
This commit is contained in:
parent
e16357d14b
commit
c98b1d702b
|
@ -158,12 +158,8 @@ void InfoPane::showDevice(Qt::DockWidgetArea area, const Device& d)
|
||||||
|
|
||||||
quint32 InfoPane::cols(Qt::DockWidgetArea area) const
|
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);
|
return 6;
|
||||||
|
|
||||||
if (dockWidget->isFloating() || area == Qt::TopDockWidgetArea || area == Qt::BottomDockWidgetArea)
|
|
||||||
return 6;
|
|
||||||
|
|
||||||
return 2;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -75,6 +75,9 @@ void MainWindow::init()
|
||||||
loadConfig();
|
loadConfig();
|
||||||
|
|
||||||
dockInformation().setWidget(&infoPane());
|
dockInformation().setWidget(&infoPane());
|
||||||
|
|
||||||
|
// trigger an update for the info pane so it can re-layout itself
|
||||||
|
updateSelection(NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::closeEvent(QCloseEvent* event)
|
void MainWindow::closeEvent(QCloseEvent* event)
|
||||||
|
|
Loading…
Reference in New Issue