66
SetupCollectionsPriv()
66
SetupCollectionsPriv() :
67
rootsPathChanged(false),
71
rootsPathChanged = false;
74
74
bool rootsPathChanged;
76
SetupCollectionTreeView *collectionView;
77
SetupCollectionModel *collectionModel;
76
SetupCollectionTreeView* collectionView;
77
SetupCollectionModel* collectionModel;
79
KPageDialog *mainDialog;
79
KPageDialog* mainDialog;
82
82
SetupCollections::SetupCollections(KPageDialog* dialog, QWidget* parent)
83
: QScrollArea(parent), d(new SetupCollectionsPriv)
83
: QScrollArea(parent), d(new SetupCollectionsPriv)
85
85
d->mainDialog = dialog;
86
QWidget *panel = new QWidget(viewport());
86
QWidget* panel = new QWidget(viewport());
87
87
panel->setAutoFillBackground(false);
89
89
setWidgetResizable(true);
90
90
viewport()->setAutoFillBackground(false);
92
QVBoxLayout *layout = new QVBoxLayout(panel);
92
QVBoxLayout* layout = new QVBoxLayout(panel);
94
94
// --------------------------------------------------------
96
QGroupBox *albumPathBox = new QGroupBox(i18n("Root Album Folders"), panel);
96
QGroupBox* albumPathBox = new QGroupBox(i18n("Root Album Folders"), panel);
99
QLabel *albumPathLabel = new QLabel(i18n("<p>Below are the locations of your root albums used to store "
100
"your images. Write access is necessary to be able "
101
"to edit images in these albums.</p>"
102
"<p>Note: Removable media (such as USB drives or DVDs) and remote file systems "
103
"(such as NFS, or Samba mounted with cifs/smbfs) are supported.</p><p></p>"),
99
QLabel* albumPathLabel = new QLabel(i18n("<p>Below are the locations of your root albums used to store "
100
"your images. Write access is necessary to be able "
101
"to edit images in these albums.</p>"
102
"<p>Note: Removable media (such as USB drives or DVDs) and remote file systems "
103
"(such as NFS, or Samba mounted with cifs/smbfs) are supported.</p><p></p>"),
106
QLabel *albumPathLabel = new QLabel(i18n("<p>Below are the locations of your root albums used to store "
107
"your images. Write access is necessary to be able "
108
"to edit images in these albums.</p><p></p>"),
106
QLabel* albumPathLabel = new QLabel(i18n("<p>Below are the locations of your root albums used to store "
107
"your images. Write access is necessary to be able "
108
"to edit images in these albums.</p><p></p>"),
111
111
albumPathLabel->setWordWrap(true);
115
115
d->collectionModel = new SetupCollectionModel(panel);
116
116
d->collectionView->setModel(d->collectionModel);
118
QVBoxLayout *albumPathBoxLayout = new QVBoxLayout;
118
QVBoxLayout* albumPathBoxLayout = new QVBoxLayout;
119
119
albumPathBoxLayout->addWidget(albumPathLabel);
120
120
albumPathBoxLayout->addWidget(d->collectionView);
121
121
albumPathBox->setLayout(albumPathBoxLayout);