~bzoltan/kubuntu-packaging/decouple_cmake_plugin

« back to all changes in this revision

Viewing changes to src/libs/utils/projectintropage.cpp

  • Committer: Timo Jyrinki
  • Date: 2013-11-15 12:25:23 UTC
  • mfrom: (1.1.28)
  • Revision ID: timo.jyrinki@canonical.com-20131115122523-i2kyamsu4gs2mu1m
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
    Looks similar to FileWizardPage, but provides additional
43
43
    functionality:
44
44
    \list
45
 
    \li Description label at the top for displaying introductory text
46
 
    \li It does on the fly validation (connected to changed()) and displays
47
 
       warnings/errors in a status label at the bottom (the page is complete
 
45
    \li Contains a description label at the top for displaying introductory text.
 
46
    \li Does on the fly validation (connected to changed()) and displays
 
47
       warnings and errors in a status label at the bottom (the page is complete
48
48
       when fully validated, validatePage() is thus not implemented).
49
49
    \endlist
50
50
 
51
 
    Note: Careful when changing projectintropage.ui. It must have main
 
51
    \note Careful when changing projectintropage.ui. It must have main
52
52
    geometry cleared and QLayout::SetMinimumSize constraint on the main
53
53
    layout, otherwise, QWizard will squeeze it due to its strange expanding
54
54
    hacks.
183
183
 
184
184
    if (projectDirFile.isDir()) {
185
185
        displayStatusMessage(Warning, tr("The project already exists."));
186
 
        return nameValid;;
 
186
        return nameValid;
187
187
    }
188
188
    // Not a directory, but something else, likely causing directory creation to fail
189
189
    displayStatusMessage(Error, tr("A file with that name already exists."));