mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-07 06:09:42 +00:00
general settings widget ui revolution for convenience + widget locks: fixed #927
This commit is contained in:
23
qt/i2pd_qt/widgetlockregistry.h
Normal file
23
qt/i2pd_qt/widgetlockregistry.h
Normal file
@@ -0,0 +1,23 @@
|
||||
#ifndef WIDGETLOCKREGISTRY_H
|
||||
#define WIDGETLOCKREGISTRY_H
|
||||
|
||||
#include <vector>
|
||||
#include <widgetlock.h>
|
||||
|
||||
class widgetlockregistry {
|
||||
std::vector<widgetlock*> locks;
|
||||
|
||||
public:
|
||||
widgetlockregistry() : locks() {}
|
||||
virtual ~widgetlockregistry() {
|
||||
while(!locks.empty()) {
|
||||
delete locks.back();
|
||||
locks.pop_back();
|
||||
}
|
||||
}
|
||||
void add(widgetlock* lock) {
|
||||
locks.push_back(lock);
|
||||
}
|
||||
};
|
||||
|
||||
#endif // WIDGETLOCKREGISTRY_H
|
||||
Reference in New Issue
Block a user