mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-30 05:00:06 +00:00
Use qt4-compatible connect() syntax.
Signed-off-by: Juergen Spitzmueller <spitz@lyx.org>
This commit is contained in:
parent
57d6835a90
commit
aab58fed6b
@ -1039,9 +1039,11 @@ CompressorProxy::CompressorProxy(GuiWorkArea * wa) : QObject(wa)
|
|||||||
{
|
{
|
||||||
qRegisterMetaType<KeySymbol>("KeySymbol");
|
qRegisterMetaType<KeySymbol>("KeySymbol");
|
||||||
qRegisterMetaType<KeyModifier>("KeyModifier");
|
qRegisterMetaType<KeyModifier>("KeyModifier");
|
||||||
connect(wa, &GuiWorkArea::compressKeySym, this, &CompressorProxy::slot,
|
connect(wa, SIGNAL(compressKeySym(KeySymbol, KeyModifier, bool)),
|
||||||
|
this, SLOT(slot(KeySymbol, KeyModifier, bool)),
|
||||||
Qt::QueuedConnection);
|
Qt::QueuedConnection);
|
||||||
connect(this, &CompressorProxy::signal, wa, &GuiWorkArea::processKeySym);
|
connect(this, SIGNAL(signal(KeySymbol, KeyModifier)),
|
||||||
|
wa, SLOT(processKeySym(KeySymbol, KeyModifier)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -68,9 +68,6 @@ public:
|
|||||||
|
|
||||||
/// return true if the key is part of a shortcut
|
/// return true if the key is part of a shortcut
|
||||||
bool queryKeySym(KeySymbol const & key, KeyModifier mod) const;
|
bool queryKeySym(KeySymbol const & key, KeyModifier mod) const;
|
||||||
/// Process Key pressed event.
|
|
||||||
/// This needs to be public because it is accessed externally by GuiView.
|
|
||||||
void processKeySym(KeySymbol const & key, KeyModifier mod);
|
|
||||||
|
|
||||||
bool inDialogMode() const;
|
bool inDialogMode() const;
|
||||||
void setDialogMode(bool mode);
|
void setDialogMode(bool mode);
|
||||||
@ -86,6 +83,9 @@ public:
|
|||||||
double pixelRatio() const;
|
double pixelRatio() const;
|
||||||
|
|
||||||
public Q_SLOTS:
|
public Q_SLOTS:
|
||||||
|
/// Process Key pressed event.
|
||||||
|
/// This needs to be public because it is accessed externally by GuiView.
|
||||||
|
void processKeySym(KeySymbol const & key, KeyModifier mod);
|
||||||
///
|
///
|
||||||
void stopBlinkingCaret();
|
void stopBlinkingCaret();
|
||||||
///
|
///
|
||||||
|
Loading…
x
Reference in New Issue
Block a user