mirror of
https://github.com/fergalmoran/flameshot.git
synced 2025-12-22 09:51:06 +00:00
Add capture individual screens option
This commit is contained in:
@@ -22,9 +22,10 @@
|
||||
|
||||
CaptureRequest::CaptureRequest(CaptureRequest::CaptureMode mode,
|
||||
const uint delay, const QString &path,
|
||||
const QVariant &data,
|
||||
CaptureRequest::ExportTask tasks) :
|
||||
m_mode(mode), m_delay(delay), m_path(path), m_tasks(tasks),
|
||||
m_forcedID(false), m_id(0)
|
||||
m_data(data), m_forcedID(false), m_id(0)
|
||||
{
|
||||
|
||||
}
|
||||
@@ -42,7 +43,7 @@ uint CaptureRequest::id() const {
|
||||
uint id = 0;
|
||||
QVector<uint>v;
|
||||
v << qHash(m_mode) << qHash(m_delay * QDateTime::currentMSecsSinceEpoch())
|
||||
<< qHash(m_path) << qHash(m_tasks);
|
||||
<< qHash(m_path) << qHash(m_tasks) << m_data.toInt();
|
||||
for(uint i : v) {
|
||||
id ^= i + 0x9e3779b9 + (id << 6) + (id >> 2);
|
||||
}
|
||||
@@ -61,6 +62,10 @@ QString CaptureRequest::path() const {
|
||||
return m_path;
|
||||
}
|
||||
|
||||
QVariant CaptureRequest::data() const {
|
||||
return m_data;
|
||||
}
|
||||
|
||||
void CaptureRequest::addTask(CaptureRequest::ExportTask task) {
|
||||
m_tasks |= task;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user