Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
VLMC
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
21
Issues
21
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
VideoLAN
VLMC
Commits
86f25af3
Commit
86f25af3
authored
Jan 15, 2010
by
Ludovic Fauvet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Option to hide the wizard on startup.
parent
c8752cf6
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
1 deletion
+26
-1
src/Gui/MainWindow.cpp
src/Gui/MainWindow.cpp
+3
-1
src/Gui/wizard/WelcomePage.cpp
src/Gui/wizard/WelcomePage.cpp
+12
-0
src/Gui/wizard/WelcomePage.h
src/Gui/wizard/WelcomePage.h
+1
-0
src/Gui/wizard/ui/WelcomePage.ui
src/Gui/wizard/ui/WelcomePage.ui
+10
-0
No files found.
src/Gui/MainWindow.cpp
View file @
86f25af3
...
...
@@ -112,7 +112,9 @@ MainWindow::MainWindow( QWidget *parent ) :
m_pWizard
=
new
ProjectWizard
(
this
);
m_pWizard
->
setModal
(
true
);
if
(
restoreSession
()
==
false
)
QSettings
s
;
if
(
s
.
value
(
"ShowWizardStartup"
,
true
).
toBool
()
&&
restoreSession
()
==
false
)
{
m_pWizard
->
show
();
}
...
...
src/Gui/wizard/WelcomePage.cpp
View file @
86f25af3
...
...
@@ -25,6 +25,7 @@
#include <QVBoxLayout>
#include <QMessageBox>
#include <QFileInfo>
#include <QSettings>
#include <QDebug>
#include "WelcomePage.h"
...
...
@@ -44,6 +45,8 @@ WelcomePage::WelcomePage( QWidget* parent )
this
,
SLOT
(
selectOpenRadio
()
)
);
connect
(
m_ui
.
projectsListWidget
,
SIGNAL
(
itemDoubleClicked
(
QListWidgetItem
*
)
),
this
,
SLOT
(
projectDoubleClicked
(
QListWidgetItem
*
)
)
);
connect
(
m_ui
.
hideStartupCheckBox
,
SIGNAL
(
clicked
(
bool
)
),
this
,
SLOT
(
hideWizardAtStartup
(
bool
)
)
);
registerField
(
"loadProject"
,
m_ui
.
projectsListWidget
);
m_projectPath
=
new
QString
();
...
...
@@ -76,6 +79,9 @@ int WelcomePage::nextId() const
void
WelcomePage
::
initializePage
()
{
QSettings
s
;
m_ui
.
hideStartupCheckBox
->
setChecked
(
!
s
.
value
(
"ShowWizardStartup"
,
true
).
toBool
()
);
m_ui
.
createRadioButton
->
setChecked
(
true
);
loadRecentsProjects
();
}
...
...
@@ -172,3 +178,9 @@ void WelcomePage::setProjectPath( const QString& path )
m_projectPath
->
clear
();
m_projectPath
->
append
(
path
);
}
void
WelcomePage
::
hideWizardAtStartup
(
bool
hidden
)
{
QSettings
s
;
s
.
setValue
(
"ShowWizardStartup"
,
!
hidden
);
}
src/Gui/wizard/WelcomePage.h
View file @
86f25af3
...
...
@@ -54,6 +54,7 @@ class WelcomePage : public QWizardPage
void
loadRecentsProjects
();
void
projectDoubleClicked
(
QListWidgetItem
*
item
);
void
selectOpenRadio
();
void
hideWizardAtStartup
(
bool
hidden
);
private:
Ui
::
WelcomePage
m_ui
;
...
...
src/Gui/wizard/ui/WelcomePage.ui
View file @
86f25af3
...
...
@@ -142,6 +142,16 @@ p, li { white-space: pre-wrap; }
</property>
</spacer>
</item>
<item
row=
"7"
column=
"0"
colspan=
"4"
>
<widget
class=
"QCheckBox"
name=
"hideStartupCheckBox"
>
<property
name=
"text"
>
<string>
Do not show at startup.
</string>
</property>
<property
name=
"checked"
>
<bool>
false
</bool>
</property>
</widget>
</item>
</layout>
</widget>
<resources/>
...
...
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