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
Marco Bubke
flatpak-qt-creator
Commits
3d9cd608
Commit
3d9cd608
authored
May 25, 2010
by
Daniel Molkentin
Browse files
Find declarative examples in nightly build package
Reviewed-by: dt
parent
5784e2ad
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/plugins/qt4projectmanager/gettingstartedwelcomepagewidget.cpp
View file @
3d9cd608
...
...
@@ -46,6 +46,7 @@
#include
<QtCore/QDebug>
#include
<QtCore/QStringBuilder>
#include
<QtCore/QUrl>
#include
<QtCore/QTimer>
#include
<QtCore/QSettings>
#include
<QtCore/QXmlStreamReader>
#include
<QtGui/QDialogButtonBox>
...
...
@@ -94,6 +95,7 @@ GettingStartedWelcomePageWidget::GettingStartedWelcomePageWidget(QWidget *parent
QIcon
::
fromTheme
(
"document-new"
,
ui
->
createNewProjectButton
->
icon
()));
ui
->
openProjectButton
->
setIcon
(
QIcon
::
fromTheme
(
"document-open"
,
ui
->
openProjectButton
->
icon
()));
QTimer
::
singleShot
(
0
,
this
,
SLOT
(
slotSetPrivateQmlExamples
()));
}
GettingStartedWelcomePageWidget
::~
GettingStartedWelcomePageWidget
()
...
...
@@ -101,6 +103,14 @@ GettingStartedWelcomePageWidget::~GettingStartedWelcomePageWidget()
delete
ui
;
}
void
GettingStartedWelcomePageWidget
::
slotSetPrivateQmlExamples
()
{
if
(
!
ui
->
qmlExamplesButton
->
menu
())
{
const
QString
resPath
=
Core
::
ICore
::
instance
()
->
resourcePath
();
updateQmlExamples
(
resPath
,
resPath
);
}
}
void
GettingStartedWelcomePageWidget
::
updateCppExamples
(
const
QString
&
examplePath
,
const
QString
&
sourcePath
,
const
QString
&
demoXml
)
...
...
src/plugins/qt4projectmanager/gettingstartedwelcomepagewidget.h
View file @
3d9cd608
...
...
@@ -58,6 +58,7 @@ private slots:
void
slotNextTip
();
void
slotPrevTip
();
void
slotCreateNewProject
();
void
slotSetPrivateQmlExamples
();
private:
QStringList
tipsOfTheDay
();
...
...
@@ -66,7 +67,6 @@ private:
const
QString
&
demoXml
);
void
updateQmlExamples
(
const
QString
&
examplePath
,
const
QString
&
sourcePath
);
Ui
::
GettingStartedWelcomePageWidget
*
ui
;
int
m_currentTip
;
};
...
...
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