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
21f0f5ad
Commit
21f0f5ad
authored
Oct 15, 2009
by
con
Browse files
Some more QuickOpen --> Locator
parent
2d9acbc2
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/plugins/quickopen/locatorplugin.cpp
View file @
21f0f5ad
...
...
@@ -96,7 +96,7 @@ bool LocatorPlugin::initialize(const QStringList &, QString *)
m_locatorWidget
=
new
LocatorWidget
(
this
);
m_locatorWidget
->
setEnabled
(
false
);
Core
::
BaseView
*
view
=
new
Core
::
BaseView
;
view
->
setUniqueViewName
(
"
QuickOpen
"
);
view
->
setUniqueViewName
(
"
Locator
"
);
view
->
setWidget
(
m_locatorWidget
);
view
->
setContext
(
QList
<
int
>
()
<<
core
->
uniqueIDManager
()
->
uniqueIdentifier
(
QLatin1String
(
"LocatorWidget"
)));
...
...
@@ -107,7 +107,7 @@ bool LocatorPlugin::initialize(const QStringList &, QString *)
QAction
*
action
=
new
QAction
(
m_locatorWidget
->
windowIcon
(),
m_locatorWidget
->
windowTitle
(),
this
);
Core
::
Command
*
cmd
=
core
->
actionManager
()
->
registerAction
(
action
,
actionId
,
QList
<
int
>
()
<<
Core
::
Constants
::
C_GLOBAL_ID
);
cmd
->
setDefaultKeySequence
(
QKeySequence
(
"Ctrl+K"
));
connect
(
action
,
SIGNAL
(
triggered
()),
this
,
SLOT
(
open
QuickOpen
()));
connect
(
action
,
SIGNAL
(
triggered
()),
this
,
SLOT
(
open
Locator
()));
Core
::
ActionContainer
*
mtools
=
core
->
actionManager
()
->
actionContainer
(
Core
::
Constants
::
M_TOOLS
);
mtools
->
addAction
(
cmd
);
...
...
@@ -126,7 +126,7 @@ bool LocatorPlugin::initialize(const QStringList &, QString *)
return
true
;
}
void
LocatorPlugin
::
open
QuickOpen
()
void
LocatorPlugin
::
open
Locator
()
{
m_locatorWidget
->
show
(
""
);
}
...
...
src/plugins/quickopen/locatorplugin.h
View file @
21f0f5ad
...
...
@@ -69,7 +69,7 @@ public:
public
slots
:
void
refresh
(
QList
<
ILocatorFilter
*>
filters
=
QList
<
ILocatorFilter
*>
());
void
saveSettings
();
void
open
QuickOpen
();
void
open
Locator
();
private
slots
:
void
startSettingsLoad
();
...
...
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