somehow this little piece of code was lost: update the information pane's

layout when the user modifies the dock position.

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1075831
This commit is contained in:
Volker Lanz 2010-01-16 21:14:19 +00:00
parent bf3ae5ea4d
commit 0ab5b8a0af
2 changed files with 8 additions and 0 deletions

View File

@ -133,6 +133,7 @@ void MainWindow::setupConnections()
connect(&pmWidget(), SIGNAL(operationsChanged()), &listOperations(), SLOT(updateOperations()));
connect(&pmWidget(), SIGNAL(statusChanged()), SLOT(updateStatusBar()));
connect(&pmWidget(), SIGNAL(selectionChanged(const Partition*)), SLOT(updateSelection(const Partition*)));
connect(&dockInformation(), SIGNAL(dockLocationChanged(Qt::DockWidgetArea)), SLOT(onDockLocationChanged(Qt::DockWidgetArea)));
}
void MainWindow::setupStatusBar()
@ -180,6 +181,11 @@ void MainWindow::on_m_ListDevices_selectionChanged(Device* d)
updateSelection(NULL);
}
void MainWindow::onDockLocationChanged(Qt::DockWidgetArea)
{
updateSelection(pmWidget().selectedPartition());
}
void MainWindow::updateWindowTitle()
{
QString title;

View File

@ -89,6 +89,8 @@ class LIBPARTITIONMANAGERPRIVATE_EXPORT MainWindow : public KXmlGuiWindow, publi
protected slots:
void on_m_ListDevices_selectionChanged(Device* d);
void onDockLocationChanged(Qt::DockWidgetArea area);
void closeEvent(QCloseEvent*);
void changeEvent(QEvent* event);