mirror of
https://github.com/x-tools-author/x-tools.git
synced 2025-09-15 15:28:40 +08:00
chore: update the file
This commit is contained in:
parent
17dba1c148
commit
01df3affa6
@ -15,14 +15,6 @@
|
||||
AbstractIO::AbstractIO(QObject *parent)
|
||||
: QThread{parent}
|
||||
{
|
||||
connect(this, &AbstractIO::started, this, [=]() {
|
||||
this->m_isWorking = true;
|
||||
emit this->isWorkingChanged();
|
||||
});
|
||||
connect(this, &AbstractIO::finished, this, [=]() {
|
||||
this->m_isWorking = false;
|
||||
emit this->isWorkingChanged();
|
||||
});
|
||||
connect(this, &AbstractIO::errorOccurred, this, [=](const QString &errorString) {
|
||||
qWarning() << "Error occurred: " << errorString;
|
||||
exit();
|
||||
@ -67,11 +59,6 @@ void AbstractIO::load(const QVariantMap &data)
|
||||
emit isEnableChanged();
|
||||
}
|
||||
|
||||
bool AbstractIO::isWorking()
|
||||
{
|
||||
return m_isWorking;
|
||||
}
|
||||
|
||||
bool AbstractIO::isEnable()
|
||||
{
|
||||
return m_enable;
|
||||
|
||||
@ -24,7 +24,6 @@ public:
|
||||
virtual QVariantMap save() const;
|
||||
virtual void load(const QVariantMap &data);
|
||||
|
||||
bool isWorking();
|
||||
bool isEnable();
|
||||
void setIsEnable(bool enable);
|
||||
|
||||
@ -37,7 +36,6 @@ signals:
|
||||
void isEnableChanged();
|
||||
|
||||
protected:
|
||||
std::atomic_bool m_isWorking{false};
|
||||
std::atomic_bool m_enable{true};
|
||||
|
||||
private:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user