mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-05-28 09:56:22 +02:00
general settings widget ui revolution for convenience + widget locks: fixed #927
This commit is contained in:
parent
3d5fb07ca8
commit
7738eae4b0
13 changed files with 3060 additions and 2849 deletions
qt/i2pd_qt
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
|
Loading…
Add table
Add a link
Reference in a new issue