56 QWidget *widget =
new QWidget(
this);
57 QVBoxLayout *mainLayout =
new QVBoxLayout(widget);
58 m_d->view->setModel(
m_d->model.data());
59 mainLayout->addWidget(
m_d->view);
60 QHBoxLayout *buttonsLayout =
new QHBoxLayout();
62 m_d->bnAdd->setToolTip(i18nc(
"@info:tooltip",
"Create snapshot"));
63 m_d->bnAdd->setAutoRaise(
true);
66 buttonsLayout->addWidget(
m_d->bnAdd);
68 m_d->bnSwitchTo->setToolTip(i18nc(
"@info:tooltip",
"Switch to selected snapshot"));
69 m_d->bnSwitchTo->setAutoRaise(
true);
72 buttonsLayout->addWidget(
m_d->bnSwitchTo);
74 m_d->bnRemove->setToolTip(i18nc(
"@info:tooltip",
"Remove selected snapshot"));
75 m_d->bnRemove->setAutoRaise(
true);
77 buttonsLayout->addWidget(
m_d->bnRemove);
78 mainLayout->addLayout(buttonsLayout);
81 setWindowTitle(i18n(
"Snapshot Docker"));