Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tobias Hunger
qt-creator
Commits
8593b8b2
Commit
8593b8b2
authored
Dec 12, 2008
by
Oswald Buddenhagen
Browse files
add a bunch of missing functions.
code mostly c&p-d from qmake (sync from qt).
parent
adc58b04
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
shared/proparser/profileevaluator.cpp
View file @
8593b8b2
This diff is collapsed.
Click to expand it.
shared/proparser/profileevaluator.h
View file @
8593b8b2
...
...
@@ -68,6 +68,7 @@ public:
virtual
bool
contains
(
const
QString
&
variableName
)
const
;
QStringList
absFileNames
(
const
QString
&
variableName
);
QStringList
absFileName
(
const
QString
&
name
);
void
setOutputDir
(
const
QString
&
dir
);
// Default is empty
void
setVerbose
(
bool
on
);
bool
queryProFile
(
ProFile
*
pro
);
...
...
shared/proparser/proparserutils.h
View file @
8593b8b2
...
...
@@ -85,6 +85,25 @@ struct Option
Option
::
qmakespec
=
QString
::
fromLatin1
(
qgetenv
(
"QMAKESPEC"
).
data
());
Option
::
field_sep
=
QLatin1Char
(
' '
);
}
enum
StringFixFlags
{
FixNone
=
0x00
,
FixEnvVars
=
0x01
,
FixPathCanonicalize
=
0x02
,
FixPathToLocalSeparators
=
0x04
,
FixPathToTargetSeparators
=
0x08
};
static
QString
fixString
(
QString
string
,
uchar
flags
);
inline
static
QString
fixPathToLocalOS
(
const
QString
&
in
,
bool
fix_env
=
true
,
bool
canonical
=
true
)
{
uchar
flags
=
FixPathToLocalSeparators
;
if
(
fix_env
)
flags
|=
FixEnvVars
;
if
(
canonical
)
flags
|=
FixPathCanonicalize
;
return
fixString
(
in
,
flags
);
}
};
#if defined(Q_OS_WIN32)
Option
::
TARG_MODE
Option
::
target_mode
=
Option
::
TARG_WIN_MODE
;
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment