qt: Make the run methods of ThreadedJobMixin public
* lang/qt/src/threadedjobmixin.h (ThreadedJobMixin::run): Make all overloads public. -- This allows calling the run() functions from the JobPrivate subclasses. GnuPG-bug-id: 6530
This commit is contained in:
parent
4655b2dc6b
commit
23526c3ff2
@ -184,6 +184,7 @@ protected:
|
||||
m_thread.setFunction([this, func]() { return func(this->context()); });
|
||||
}
|
||||
|
||||
public:
|
||||
template <typename T_binder>
|
||||
void run(const T_binder &func)
|
||||
{
|
||||
@ -219,6 +220,8 @@ protected:
|
||||
m_thread.setFunction(std::bind(func, this->context(), this->thread(), std::weak_ptr<QIODevice>(io1), std::weak_ptr<QIODevice>(io2)));
|
||||
m_thread.start();
|
||||
}
|
||||
|
||||
protected:
|
||||
GpgME::Context *context() const
|
||||
{
|
||||
return m_ctx.get();
|
||||
|
Loading…
Reference in New Issue
Block a user