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
99635528
Commit
99635528
authored
Mar 30, 2009
by
hjk
Browse files
fakevim: work on new settings dialog
parent
765489f9
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/plugins/fakevim/fakevimhandler.cpp
View file @
99635528
...
...
@@ -121,10 +121,8 @@ void FakeVimSettings::insertItem(int code, SavedAction *item,
void
FakeVimSettings
::
readSettings
(
QSettings
*
settings
)
{
foreach
(
SavedAction
*
item
,
m_items
)
{
qDebug
()
<<
"ITRM: "
<<
item
->
toString
();
foreach
(
SavedAction
*
item
,
m_items
)
item
->
readSettings
(
settings
);
}
}
void
FakeVimSettings
::
writeSettings
(
QSettings
*
settings
)
...
...
src/plugins/fakevim/fakevimplugin.cpp
View file @
99635528
...
...
@@ -233,6 +233,7 @@ private slots:
void
installHandler
(
Core
::
IEditor
*
editor
);
void
removeHandler
();
void
triggerCompletions
();
void
showSettingsDialog
();
void
showCommandBuffer
(
const
QString
&
contents
);
void
showExtraInformation
(
const
QString
&
msg
);
...
...
@@ -303,9 +304,17 @@ bool FakeVimPluginPrivate::initialize()
connect
(
editorManager
,
SIGNAL
(
editorOpened
(
Core
::
IEditor
*
)),
this
,
SLOT
(
editorOpened
(
Core
::
IEditor
*
)));
connect
(
theFakeVimSetting
(
SettingsDialog
),
SIGNAL
(
triggered
()),
this
,
SLOT
(
showSettingsDialog
()));
return
true
;
}
void
FakeVimPluginPrivate
::
showSettingsDialog
()
{
Core
::
ICore
::
instance
()
->
showOptionsDialog
(
"FakeVim"
,
"General"
);
}
void
FakeVimPluginPrivate
::
installHandler
(
Core
::
IEditor
*
editor
)
{
if
(
!
editor
)
...
...
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