Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
qt-creator
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tobias Hunger
qt-creator
Commits
a956a0bc
Commit
a956a0bc
authored
15 years ago
by
Roberto Raggi
Browse files
Options
Downloads
Patches
Plain Diff
Cleanup
parent
cba6b3ca
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/plugins/qmlprojectmanager/qmlprojectwizard.cpp
+1
-47
1 addition, 47 deletions
src/plugins/qmlprojectmanager/qmlprojectwizard.cpp
with
1 addition
and
47 deletions
src/plugins/qmlprojectmanager/qmlprojectwizard.cpp
+
1
−
47
View file @
a956a0bc
...
...
@@ -125,49 +125,11 @@ QmlProjectWizardDialog::QmlProjectWizardDialog(QWidget *parent)
// first page
m_firstPage
=
new
FileWizardPage
;
m_firstPage
->
setTitle
(
tr
(
"Q
ml
Project"
));
m_firstPage
->
setTitle
(
tr
(
"Q
ML
Project"
));
m_firstPage
->
setNameLabel
(
tr
(
"Project name:"
));
m_firstPage
->
setPathLabel
(
tr
(
"Location:"
));
addPage
(
m_firstPage
);
#if 0
// second page
QWizardPage *secondPage = new QWizardPage;
secondPage->setTitle(tr("Second Page Title"));
QFormLayout *secondPageLayout = new QFormLayout(secondPage);
m_dirView = new QTreeView;
m_dirModel = new DirModel(this);
m_dirView->setModel(_dirModel);
Core::ICore *core = Core::ICore::instance();
Core::MimeDatabase *mimeDatabase = core->mimeDatabase();
const QStringList suffixes = mimeDatabase->suffixes();
QStringList nameFilters;
foreach (const QString &suffix, suffixes) {
QString nameFilter;
nameFilter.append(QLatin1String("*."));
nameFilter.append(suffix);
nameFilters.append(nameFilter);
}
m_filesView = new QListView;
m_filesModel = new QDirModel(this);
m_filesModel->setNameFilters(nameFilters);
m_filesModel->setFilter(QDir::Files);
connect(_dirView->selectionModel(), SIGNAL(currentChanged(QModelIndex,QModelIndex)),
this, SLOT(updateFilesView(QModelIndex,QModelIndex)));
secondPageLayout->addRow(_dirView);
secondPageLayout->addRow(_filesView);
m_secondPageId = addPage(secondPage);
#endif
}
QmlProjectWizardDialog
::~
QmlProjectWizardDialog
()
...
...
@@ -223,12 +185,6 @@ bool QmlProjectWizardDialog::validateCurrentPage()
{
using
namespace
Core
::
Utils
;
#if 0
if (currentId() == m_secondPageId) {
return true;
}
#endif
return
QWizard
::
validateCurrentPage
();
}
...
...
@@ -318,8 +274,6 @@ Core::GeneratedFiles QmlProjectWizard::generateFiles(const QWizard *w,
const
QString
projectName
=
wizard
->
projectName
();
const
QString
creatorFileName
=
QFileInfo
(
dir
,
projectName
+
QLatin1String
(
".qmlproject"
)).
absoluteFilePath
();
const
QString
filesFileName
=
QFileInfo
(
dir
,
projectName
+
QLatin1String
(
".files"
)).
absoluteFilePath
();
const
QString
includesFileName
=
QFileInfo
(
dir
,
projectName
+
QLatin1String
(
".includes"
)).
absoluteFilePath
();
const
QString
configFileName
=
QFileInfo
(
dir
,
projectName
+
QLatin1String
(
".config"
)).
absoluteFilePath
();
Core
::
ICore
*
core
=
Core
::
ICore
::
instance
();
Core
::
MimeDatabase
*
mimeDatabase
=
core
->
mimeDatabase
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment