}
-void CompressorProxy::slot(KeySymbol sym, KeyModifier mod, bool isAutoRepeat)
+void CompressorProxy::slot(KeySymbol const & sym, KeyModifier mod, bool isAutoRepeat)
{
if (emitCheck(isAutoRepeat))
Q_EMIT signal(sym, mod);
///
void bufferViewChanged();
/// send key event to CompressorProxy
- void compressKeySym(KeySymbol sym, KeyModifier mod, bool isAutoRepeat);
+ void compressKeySym(KeySymbol const & sym, KeyModifier mod, bool isAutoRepeat);
private Q_SLOTS:
/// Scroll the BufferView.
bool emitCheck(bool isAutoRepeat);
bool flag_;
// input: event to compress
- Q_SLOT void slot(KeySymbol sym, KeyModifier mod, bool isAutoRepeat);
+ Q_SLOT void slot(KeySymbol const & sym, KeyModifier mod, bool isAutoRepeat);
// output: compressed event
- Q_SIGNAL void signal(KeySymbol sym, KeyModifier mod);
+ Q_SIGNAL void signal(KeySymbol const & sym, KeyModifier mod);
public:
// No default constructor, since the proxy must be a child of the
// target object.