1/****************************************************************************
2**
3** Copyright (C) 2008 Ralf Habacker <ralf.habacker@freenet.de>
4** All rights reserved.
5**
6** This file is part of the KDE installer for windows
7**
8** This file may be used under the terms of the GNU General Public
9** License version 2.0 as published by the Free Software Foundation
10** and appearing in the file LICENSE.GPL included in the packaging of
11** this file. Please review the following information to ensure GNU
12** General Public Licensing requirements will be met:
13** http://www.trolltech.com/products/qt/opensource.html
14**
15** If you are unsure which license is appropriate for your use, please
16** review the following information:
17** http://www.trolltech.com/products/qt/licensing.html or contact the
18** sales department at sales@trolltech.com.
19**
20** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
21** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
22**
23****************************************************************************/
24
25#include "dependenciespage.h"
26
27#include <QTreeWidget>
28
29DependenciesPage::DependenciesPage() : InstallWizardPage(0)
30{
31 ui.setupUi(this);
32 setTitle(windowTitle());
33 setSubTitle(statusTip());
34}
35
36void DependenciesPage::initializePage()
37{
38 engine->checkUpdateDependencies(ui.dependenciesList);
39 setSettingsButtonVisible(false);
40}
41
42bool DependenciesPage::validatePage()
43{
44 return true;
45}
46
47void DependenciesPage::performAction()
48{
49 if (ui.dependenciesList->topLevelItemCount() == 0)
50 wizard()->next();
51}
52