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
307acc20
Commit
307acc20
authored
Mar 12, 2010
by
hjk
Browse files
commandmappings: compile fix, code cosmetics
parent
938dedba
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/plugins/coreplugin/actionmanager/commandmappings.cpp
View file @
307acc20
...
...
@@ -108,10 +108,12 @@ QWidget *CommandMappings::createPage(QWidget *parent)
m_page
->
commandList
->
sortByColumn
(
0
,
Qt
::
AscendingOrder
);
connect
(
m_page
->
filterEdit
,
SIGNAL
(
textChanged
(
QString
)),
this
,
SLOT
(
filterChanged
(
QString
)));
connect
(
m_page
->
filterEdit
,
SIGNAL
(
textChanged
(
QString
)),
this
,
SLOT
(
filterChanged
(
QString
)));
connect
(
m_page
->
commandList
,
SIGNAL
(
currentItemChanged
(
QTreeWidgetItem
*
,
QTreeWidgetItem
*
)),
this
,
SLOT
(
commandChanged
(
QTreeWidgetItem
*
)));
connect
(
m_page
->
targetEdit
,
SIGNAL
(
textChanged
(
QString
)),
this
,
SLOT
(
targetIdentifierChanged
()));
connect
(
m_page
->
targetEdit
,
SIGNAL
(
textChanged
(
QString
)),
this
,
SLOT
(
targetIdentifierChanged
()));
new
Utils
::
TreeWidgetColumnStretcher
(
m_page
->
commandList
,
1
);
...
...
@@ -136,22 +138,22 @@ QLineEdit *CommandMappings::targetEdit() const
return
m_page
->
targetEdit
;
}
void
CommandMappings
::
setPageTitle
(
QString
s
)
void
CommandMappings
::
setPageTitle
(
const
QString
&
s
)
{
m_page
->
groupBox
->
setTitle
(
s
);
}
void
CommandMappings
::
setTargetLabelText
(
QString
s
)
void
CommandMappings
::
setTargetLabelText
(
const
QString
&
s
)
{
m_page
->
targetEditLabel
->
setText
(
s
);
}
void
CommandMappings
::
setTargetEditTitle
(
QString
s
)
void
CommandMappings
::
setTargetEditTitle
(
const
QString
&
s
)
{
m_page
->
targetEditGroup
->
setTitle
(
s
);
}
void
CommandMappings
::
setTargetHeader
(
QString
s
)
void
CommandMappings
::
setTargetHeader
(
const
QString
&
s
)
{
m_page
->
commandList
->
setHeaderLabels
(
QStringList
()
<<
tr
(
"Command"
)
<<
tr
(
"Label"
)
<<
s
);
}
...
...
src/plugins/coreplugin/actionmanager/commandmappings.h
View file @
307acc20
...
...
@@ -33,14 +33,11 @@
#include
<coreplugin/dialogs/ioptionspage.h>
#include
<QtCore/QObject>
#include
<QtGui/QKeySequence>
#include
<QtGui/QTreeWidgetItem>
#include
<QtGui/QKeyEvent>
QT_BEGIN_NAMESPACE
class
QLineEdit
;
class
QTreeWidget
;
QT_BEGIN_NAMESPACE
class
Ui_CommandMappings
;
QT_END_NAMESPACE
...
...
@@ -89,10 +86,10 @@ protected:
void
setImportExportEnabled
(
bool
enabled
);
QTreeWidget
*
commandList
()
const
;
QLineEdit
*
targetEdit
()
const
;
void
setPageTitle
(
QString
s
);
void
setTargetLabelText
(
QString
s
);
void
setTargetEditTitle
(
QString
s
);
void
setTargetHeader
(
QString
s
);
void
setPageTitle
(
const
QString
&
s
);
void
setTargetLabelText
(
const
QString
&
s
);
void
setTargetEditTitle
(
const
QString
&
s
);
void
setTargetHeader
(
const
QString
&
s
);
private:
Ui_CommandMappings
*
m_page
;
...
...
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