diff options
author | Tim Jenssen <tim.jenssen@nokia.com> | 2011-07-26 16:35:05 +0200 |
---|---|---|
committer | Tim Jenssen <tim.jenssen@nokia.com> | 2011-07-27 14:25:59 +0200 |
commit | 6ff9ac34917a9ef8e40d8870e86927033bf82351 (patch) | |
tree | f925a8156dba8570170768f35d1794cd0924ea49 | |
parent | 02b859b819343cd0c5da300ea6ac3589d9316112 (diff) |
if we are an uninstaller we don't need the detail textbox
Reviewed-By: Niels Weber
-rw-r--r-- | installerbuilder/libinstaller/packagemanagergui.cpp | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/installerbuilder/libinstaller/packagemanagergui.cpp b/installerbuilder/libinstaller/packagemanagergui.cpp index d08807104..6b9a31256 100644 --- a/installerbuilder/libinstaller/packagemanagergui.cpp +++ b/installerbuilder/libinstaller/packagemanagergui.cpp @@ -1403,30 +1403,30 @@ ReadyForInstallationPage::ReadyForInstallationPage(PackageManagerCore *core) m_msgLabel->setWordWrap(true); m_msgLabel->setObjectName(QLatin1String("MessageLabel")); topLayout->addWidget(m_msgLabel); - - m_taskDetailsButton = new QPushButton(tr("&Show Details"), this); - m_taskDetailsButton->setObjectName(QLatin1String("TaskDetailsButton")); - m_taskDetailsButton->setSizePolicy(QSizePolicy::Maximum, QSizePolicy::Fixed); - connect(m_taskDetailsButton, SIGNAL(clicked()), this, SLOT(toggleDetails())); - topLayout->addWidget(m_taskDetailsButton); - - QVBoxLayout *bottomLayout = new QVBoxLayout(); - bottomLayout->setObjectName(QLatin1String("BottomLayout")); - bottomLayout->addStretch(); - - m_taskDetailsBrowser = new QTextBrowser(this); - m_taskDetailsBrowser->setReadOnly(true); - m_taskDetailsBrowser->setObjectName(QLatin1String("TaskDetailsBrowser")); - m_taskDetailsBrowser->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff); - bottomLayout->addWidget(m_taskDetailsBrowser); - - bottomLayout->setStretch(1, 10); baseLayout->addLayout(topLayout); - baseLayout->addLayout(bottomLayout); - setLayout(baseLayout); + if (!packageManagerCore()->isUninstaller()) { + m_taskDetailsButton = new QPushButton(tr("&Show Details"), this); + m_taskDetailsButton->setObjectName(QLatin1String("TaskDetailsButton")); + m_taskDetailsButton->setSizePolicy(QSizePolicy::Maximum, QSizePolicy::Fixed); + connect(m_taskDetailsButton, SIGNAL(clicked()), this, SLOT(toggleDetails())); + topLayout->addWidget(m_taskDetailsButton); + + QVBoxLayout *bottomLayout = new QVBoxLayout(); + bottomLayout->setObjectName(QLatin1String("BottomLayout")); + bottomLayout->addStretch(); + + m_taskDetailsBrowser = new QTextBrowser(this); + m_taskDetailsBrowser->setReadOnly(true); + m_taskDetailsBrowser->setObjectName(QLatin1String("TaskDetailsBrowser")); + m_taskDetailsBrowser->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff); + m_taskDetailsBrowser->setVisible(false); + bottomLayout->addWidget(m_taskDetailsBrowser); + bottomLayout->setStretch(1, 10); + baseLayout->addLayout(bottomLayout); + } - m_taskDetailsBrowser->setVisible(false); + setLayout(baseLayout); } |