If not get all list of details user will not show all details for creation a
layout. For this change mode from Draw to Details and than prepare details. --HG-- branch : develop
This commit is contained in:
parent
3293916d50
commit
8c2a06e63f
|
@ -1889,9 +1889,14 @@ void MainWindow::ActionHistory(bool checked)
|
||||||
void MainWindow::ActionLayout(bool checked)
|
void MainWindow::ActionLayout(bool checked)
|
||||||
{
|
{
|
||||||
Q_UNUSED(checked);
|
Q_UNUSED(checked);
|
||||||
hide();
|
ActionDetails(true);//Get all list of details.
|
||||||
QVector<VItem*> listDetails;
|
QVector<VItem*> listDetails;
|
||||||
const QHash<quint32, VDetail> *details = pattern->DataDetails();
|
const QHash<quint32, VDetail> *details = pattern->DataDetails();
|
||||||
|
if (details->count() == 0)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
hide();//Now we can hide window
|
||||||
QHashIterator<quint32, VDetail> idetail(*details);
|
QHashIterator<quint32, VDetail> idetail(*details);
|
||||||
while (idetail.hasNext())
|
while (idetail.hasNext())
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user