mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Use qt4-compatible connect() syntax.
Signed-off-by: Juergen Spitzmueller <spitz@lyx.org>
(cherry picked from commit aab58fed6b
)
This commit is contained in:
parent
789617b818
commit
b0868e6eb1
@ -1056,9 +1056,11 @@ CompressorProxy::CompressorProxy(GuiWorkArea * wa) : QObject(wa)
|
||||
{
|
||||
qRegisterMetaType<KeySymbol>("KeySymbol");
|
||||
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);
|
||||
connect(this, &CompressorProxy::signal, wa, &GuiWorkArea::processKeySym);
|
||||
connect(this, SIGNAL(signal(KeySymbol, KeyModifier)),
|
||||
wa, SLOT(processKeySym(KeySymbol, KeyModifier)));
|
||||
}
|
||||
|
||||
|
||||
|
@ -74,9 +74,6 @@ public:
|
||||
|
||||
/// return true if the key is part of a shortcut
|
||||
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;
|
||||
void setDialogMode(bool mode);
|
||||
@ -94,6 +91,9 @@ public:
|
||||
double pixelRatio() const;
|
||||
|
||||
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 stopBlinkingCursor();
|
||||
///
|
||||
|
Loading…
Reference in New Issue
Block a user