mirror of
https://github.com/Swordfish90/cool-retro-term.git
synced 2025-01-31 10:11:20 +00:00
Mouse use is now exposed to QML.
This commit is contained in:
parent
3eb836fd81
commit
95dce399b5
@ -993,6 +993,11 @@ void KTerminalDisplay::scrollScreenWindow(enum ScreenWindow::RelativeScrollMode
|
|||||||
|
|
||||||
void KTerminalDisplay::setUsesMouse(bool usesMouse){
|
void KTerminalDisplay::setUsesMouse(bool usesMouse){
|
||||||
_mouseMarks = usesMouse;
|
_mouseMarks = usesMouse;
|
||||||
|
emit usesMouseChanged();
|
||||||
|
}
|
||||||
|
|
||||||
|
bool KTerminalDisplay::getUsesMouse(){
|
||||||
|
return !_mouseMarks;
|
||||||
}
|
}
|
||||||
|
|
||||||
void KTerminalDisplay::setAutoFocus(bool au)
|
void KTerminalDisplay::setAutoFocus(bool au)
|
||||||
|
@ -70,6 +70,7 @@ class KONSOLEPRIVATE_EXPORT KTerminalDisplay : public QQuickPaintedItem
|
|||||||
Q_PROPERTY(bool ShowIMEOnClick READ autoVKB WRITE setAutoVKB NOTIFY changedAutoVKB)
|
Q_PROPERTY(bool ShowIMEOnClick READ autoVKB WRITE setAutoVKB NOTIFY changedAutoVKB)
|
||||||
Q_PROPERTY(QSize terminalSize READ getTerminalSize NOTIFY terminalSizeChanged)
|
Q_PROPERTY(QSize terminalSize READ getTerminalSize NOTIFY terminalSizeChanged)
|
||||||
Q_PROPERTY(QSize paintedFontSize READ getFontSize NOTIFY paintedFontSizeChanged)
|
Q_PROPERTY(QSize paintedFontSize READ getFontSize NOTIFY paintedFontSizeChanged)
|
||||||
|
Q_PROPERTY(bool usesMouse READ getUsesMouse NOTIFY usesMouseChanged)
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
@ -316,6 +317,7 @@ public slots:
|
|||||||
void scrollScreenWindow(enum ScreenWindow::RelativeScrollMode mode, int amount);
|
void scrollScreenWindow(enum ScreenWindow::RelativeScrollMode mode, int amount);
|
||||||
|
|
||||||
void setUsesMouse(bool usesMouse);
|
void setUsesMouse(bool usesMouse);
|
||||||
|
bool getUsesMouse(void);
|
||||||
|
|
||||||
bool autoFocus() { return m_focusOnClick; }
|
bool autoFocus() { return m_focusOnClick; }
|
||||||
void setAutoFocus(bool au);
|
void setAutoFocus(bool au);
|
||||||
@ -421,6 +423,8 @@ signals:
|
|||||||
|
|
||||||
void mouseSignal(int,int,int,int);
|
void mouseSignal(int,int,int,int);
|
||||||
|
|
||||||
|
void usesMouseChanged();
|
||||||
|
|
||||||
void terminalSizeChanged();
|
void terminalSizeChanged();
|
||||||
void paintedFontSizeChanged();
|
void paintedFontSizeChanged();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user