~ubuntu-branches/ubuntu/saucy/digikam/saucy

« back to all changes in this revision

Viewing changes to utilities/setup/setupcollections.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Scott Kitterman
  • Date: 2010-12-21 23:19:11 UTC
  • mfrom: (1.2.33 upstream) (3.1.7 experimental)
  • Revision ID: james.westby@ubuntu.com-20101221231911-z9jip7s5aht1jqn9
Tags: 2:1.7.0-1ubuntu1
* Merge from Debian Experimental. Remaining Ubuntu changes:
  - Export .pot name and copy to plugins in debian/rules
  - Version build-depends on kipi-plugins-dev to ensure build is against the
    same version on all archs
* Drop debian/patches/kubuntu_01_linker.diff, incoporated upstream
* Remove patches directory and unused patches

Show diffs side-by-side

added added

removed removed

Lines of Context:
63
63
{
64
64
public:
65
65
 
66
 
    SetupCollectionsPriv()
 
66
    SetupCollectionsPriv() :
 
67
        rootsPathChanged(false),
 
68
        collectionView(0),
 
69
        collectionModel(0),
 
70
        mainDialog(0)
67
71
    {
68
 
        mainDialog       = 0;
69
 
        collectionView   = 0;
70
 
        collectionModel  = 0;
71
 
        rootsPathChanged = false;
72
72
    }
73
73
 
74
74
    bool                     rootsPathChanged;
75
75
 
76
 
    SetupCollectionTreeView *collectionView;
77
 
    SetupCollectionModel    *collectionModel;
 
76
    SetupCollectionTreeView* collectionView;
 
77
    SetupCollectionModel*    collectionModel;
78
78
 
79
 
    KPageDialog             *mainDialog;
 
79
    KPageDialog*             mainDialog;
80
80
};
81
81
 
82
82
SetupCollections::SetupCollections(KPageDialog* dialog, QWidget* parent)
83
 
                : QScrollArea(parent), d(new SetupCollectionsPriv)
 
83
    : QScrollArea(parent), d(new SetupCollectionsPriv)
84
84
{
85
85
    d->mainDialog  = dialog;
86
 
    QWidget *panel = new QWidget(viewport());
 
86
    QWidget* panel = new QWidget(viewport());
87
87
    panel->setAutoFillBackground(false);
88
88
    setWidget(panel);
89
89
    setWidgetResizable(true);
90
90
    viewport()->setAutoFillBackground(false);
91
91
 
92
 
    QVBoxLayout *layout = new QVBoxLayout(panel);
 
92
    QVBoxLayout* layout = new QVBoxLayout(panel);
93
93
 
94
94
    // --------------------------------------------------------
95
95
 
96
 
    QGroupBox *albumPathBox = new QGroupBox(i18n("Root Album Folders"), panel);
 
96
    QGroupBox* albumPathBox = new QGroupBox(i18n("Root Album Folders"), panel);
97
97
 
98
98
#ifndef _WIN32
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>"),
104
104
                                         albumPathBox);
105
105
#else
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>"),
109
109
                                         albumPathBox);
110
110
#endif
111
111
    albumPathLabel->setWordWrap(true);
115
115
    d->collectionModel = new SetupCollectionModel(panel);
116
116
    d->collectionView->setModel(d->collectionModel);
117
117
 
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);