Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
af9428a6
Commit
af9428a6
authored
Apr 08, 2010
by
Tobias Hunger
Browse files
Only add #ifdef for symbian on mobile builds
Reviewed-by: Friedemann Kleint
parent
7ed80f16
Changes
2
Hide whitespace changes
Inline
Side-by-side
share/qtcreator/templates/qt4project/main.cpp
View file @
af9428a6
...
...
@@ -5,10 +5,6 @@ int main(int argc, char *argv[])
{
QApplication
a
(
argc
,
argv
);
%
CLASS
%
w
;
#if defined(Q_WS_S60)
w
.
showMaximized
();
#else
w
.
show
();
#endif
%
SHOWMETHOD
%
return
a
.
exec
();
}
src/plugins/qt4projectmanager/wizards/guiappwizard.cpp
View file @
af9428a6
...
...
@@ -46,6 +46,13 @@
#include <QtGui/QIcon>
static
const
char
*
mainSourceFileC
=
"main"
;
static
const
char
*
mainSourceShowC
=
"w.show();
\n
"
;
static
const
char
*
mainSourceMobilityShowC
=
"#if defined(Q_WS_S60)
\n
"
" w.showMaximized();
\n
"
"#else
\n
"
" w.show();
\n
"
"#endif
\n
"
;
static
const
char
*
mainWindowUiContentsC
=
"
\n
<widget class=
\"
QMenuBar
\"
name=
\"
menuBar
\"
/>"
"
\n
<widget class=
\"
QToolBar
\"
name=
\"
mainToolBar
\"
/>"
...
...
@@ -242,6 +249,11 @@ bool GuiAppWizard::parametrizeTemplate(const QString &templatePath, const QStrin
contents
.
replace
(
QLatin1String
(
"%BASECLASS%"
),
params
.
baseClassName
);
contents
.
replace
(
QLatin1String
(
"%WIDGET_HEIGHT%"
),
QString
::
number
(
params
.
widgetHeight
));
contents
.
replace
(
QLatin1String
(
"%WIDGET_WIDTH%"
),
QString
::
number
(
params
.
widgetWidth
));
if
(
params
.
isMobileApplication
)
contents
.
replace
(
QLatin1String
(
"%SHOWMETHOD%"
),
QString
::
fromLatin1
(
mainSourceMobilityShowC
));
else
contents
.
replace
(
QLatin1String
(
"%SHOWMETHOD%"
),
QString
::
fromLatin1
(
mainSourceShowC
));
const
QChar
dot
=
QLatin1Char
(
'.'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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