Commit 307acc20 authored by hjk's avatar hjk
Browse files

commandmappings: compile fix, code cosmetics

parent 938dedba
......@@ -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);
}
......
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment