Changeset View
Changeset View
Standalone View
Standalone View
samba/filepropertiesplugin/sambausershareplugin.cpp
Show First 20 Lines • Show All 83 Lines • ▼ Show 20 Line(s) | 60 | { | |||
---|---|---|---|---|---|
84 | m_failedSambaWidgets->hide(); | 84 | m_failedSambaWidgets->hide(); | ||
85 | 85 | | |||
86 | m_installSambaWidgets = new QWidget(vbox); | 86 | m_installSambaWidgets = new QWidget(vbox); | ||
87 | vLayoutMaster->addWidget(m_installSambaWidgets); | 87 | vLayoutMaster->addWidget(m_installSambaWidgets); | ||
88 | QVBoxLayout *vLayout = new QVBoxLayout(m_installSambaWidgets); | 88 | QVBoxLayout *vLayout = new QVBoxLayout(m_installSambaWidgets); | ||
89 | vLayout->setAlignment(Qt::AlignJustify); | 89 | vLayout->setAlignment(Qt::AlignJustify); | ||
90 | vLayout->setMargin(0); | 90 | vLayout->setMargin(0); | ||
91 | 91 | | |||
92 | vLayout->addWidget(new QLabel(i18n("Samba is not installed on your system."), m_installSambaWidgets)); | 92 | vLayout->addWidget(new QLabel(i18n("Samba must be installed before folders can be shared."), m_installSambaWidgets)); | ||
93 | 93 | | |||
94 | #ifdef SAMBA_INSTALL | 94 | #ifdef SAMBA_INSTALL | ||
95 | m_installSambaButton = new QPushButton(i18n("Install Samba..."), m_installSambaWidgets); | 95 | m_installSambaButton = new QPushButton(i18n("Install Samba"), m_installSambaWidgets); | ||
96 | m_installSambaButton->setDefault(false); | 96 | m_installSambaButton->setDefault(false); | ||
97 | vLayout->addWidget(m_installSambaButton); | 97 | vLayout->addWidget(m_installSambaButton); | ||
98 | connect(m_installSambaButton, SIGNAL(clicked()), SLOT(installSamba())); | 98 | connect(m_installSambaButton, SIGNAL(clicked()), SLOT(installSamba())); | ||
99 | m_installProgress = new QProgressBar(); | 99 | m_installProgress = new QProgressBar(); | ||
100 | vLayout->addWidget(m_installProgress); | 100 | vLayout->addWidget(m_installProgress); | ||
101 | m_installProgress->hide(); | 101 | m_installProgress->hide(); | ||
102 | #endif | 102 | #endif | ||
103 | 103 | | |||
▲ Show 20 Lines • Show All 188 Lines • Show Last 20 Lines |