diff options
author | dt <qtc-committer@nokia.com> | 2010-05-21 14:29:11 +0200 |
---|---|---|
committer | dt <qtc-committer@nokia.com> | 2010-05-25 13:48:10 +0200 |
commit | 070f4df48529de1a1693ba979261e16121b9739c (patch) | |
tree | 273cfcaaebc581f2bf023066ddac0d9688eb3f59 /src/libs/utils/detailswidget.cpp | |
parent | 7b60fd1b8945ba79d2f852277f76a4a7ff615c3b (diff) | |
download | qt-creator-070f4df48529de1a1693ba979261e16121b9739c.tar.gz |
No need for special margin treatmeant anymore
Remove unneded code.
Diffstat (limited to 'src/libs/utils/detailswidget.cpp')
-rw-r--r-- | src/libs/utils/detailswidget.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/libs/utils/detailswidget.cpp b/src/libs/utils/detailswidget.cpp index 7b8053ce12..9a1e68b1ed 100644 --- a/src/libs/utils/detailswidget.cpp +++ b/src/libs/utils/detailswidget.cpp @@ -47,9 +47,9 @@ namespace Utils { // in the following way: // // +------------+-------------------------+---------------+ - // + toolWidget | summaryLabel | detailsButton | + // +summaryLabel| toolwidget | detailsButton | // +------------+-------------------------+---------------+ - // | | widget | + // | widget | // +------------+-------------------------+---------------+ struct DetailsWidgetPrivate { @@ -89,7 +89,7 @@ namespace Utils { d->m_grid->setContentsMargins(0, 0, 0, 0); d->m_grid->setSpacing(0); - d->m_grid->addWidget(d->m_summaryLabel, 0, 1); + d->m_grid->addWidget(d->m_summaryLabel, 0, 0); d->m_grid->addWidget(d->m_detailsButton, 0, 2); setLayout(d->m_grid); @@ -206,7 +206,7 @@ namespace Utils { if (d->m_widget) { d->m_widget->setContentsMargins(MARGIN, MARGIN, MARGIN, MARGIN); - d->m_grid->addWidget(d->m_widget, 1, 1, 1, 2); + d->m_grid->addWidget(d->m_widget, 1, 0, 1, 3); } updateControls(); } @@ -224,9 +224,6 @@ namespace Utils { d->m_toolWidget->adjustSize(); d->m_grid->addWidget(d->m_toolWidget, 0, 1, 1, 1, Qt::AlignRight); - d->m_grid->setColumnMinimumWidth(0, d->m_toolWidget->width()); - d->m_grid->setRowMinimumHeight(0, d->m_toolWidget->height()); - changeHoverState(d->m_hovered); } |