summaryrefslogtreecommitdiffstats
path: root/examples/testapp/componentselectiondialog.cpp
diff options
context:
space:
mode:
authorkh1 <qt-info@nokia.com>2011-06-14 16:24:50 +0200
committerkh1 <qt-info@nokia.com>2011-06-14 16:24:50 +0200
commit787eb763bd9603c15bc05cff15088426d23c1961 (patch)
tree94069001ff20b65dc2e1d80b2a02bf5c06479431 /examples/testapp/componentselectiondialog.cpp
parent5ed81415ac1d2c2ade8a69203842e82ddd058a4c (diff)
Rename from Installer to PackageManagerCore.
Note: Might break on any other platform than windows, needs some more tests. No break on windows so far...
Diffstat (limited to 'examples/testapp/componentselectiondialog.cpp')
-rw-r--r--examples/testapp/componentselectiondialog.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/testapp/componentselectiondialog.cpp b/examples/testapp/componentselectiondialog.cpp
index cad923b52..d1e7f5105 100644
--- a/examples/testapp/componentselectiondialog.cpp
+++ b/examples/testapp/componentselectiondialog.cpp
@@ -47,9 +47,9 @@ class ComponentSelectionDialog::Private : public QObject
Q_OBJECT
public:
- Private(ComponentSelectionDialog *qq, Installer *inst)
+ Private(ComponentSelectionDialog *qq, PackageManagerCore *core)
: q(qq),
- installer(inst)
+ m_core(core)
{
}
@@ -90,7 +90,7 @@ private:
public:
Ui::ComponentSelectionDialog ui;
- Installer *const installer;
+ PackageManagerCore *const m_core;
ComponentModel *componentModel;
QPushButton *installBtn;
@@ -112,9 +112,9 @@ void ComponentSelectionDialog::Private::deselectAll()
// -- ComponentSelectionDialog
-ComponentSelectionDialog::ComponentSelectionDialog(Installer *installer, QWidget *parent)
+ComponentSelectionDialog::ComponentSelectionDialog(PackageManagerCore *core, QWidget *parent)
: QDialog(parent),
- d(new Private(this, installer))
+ d(new Private(this, core))
{
d->ui.setupUi(this);
d->ui.icon->setPixmap(windowIcon().pixmap(48, 48));
@@ -123,7 +123,7 @@ ComponentSelectionDialog::ComponentSelectionDialog(Installer *installer, QWidget
d->ui.splitter->setStretchFactor(1, 1);
d->ui.splitter->setCollapsible(0, false);
- d->componentModel = new ComponentModel(5, installer);
+ d->componentModel = new ComponentModel(5, core);
d->componentModel->setHeaderData(0, Qt::Horizontal, tr("Name"));
d->componentModel->setHeaderData(1, Qt::Horizontal, tr("Installed Version"));
d->componentModel->setHeaderData(2, Qt::Horizontal, tr("New Version"));