matrixion/src/timeline/InputBar.h

26 lines
518 B
C
Raw Normal View History

2020-11-01 01:24:07 +03:00
#pragma once
#include <QObject>
class TimelineModel;
class InputBar : public QObject {
Q_OBJECT
public:
InputBar(TimelineModel *parent)
: QObject()
, room(parent)
{}
public slots:
void send();
bool paste(bool fromMouse);
void updateState(int selectionStart, int selectionEnd, int cursorPosition, QString text);
private:
TimelineModel *room;
QString text;
int selectionStart = 0, selectionEnd = 0, cursorPosition = 0;
};