2020-10-07 10:36:04 +00:00
|
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
// Copyright (c) 2020, The Monero Project.
|
|
|
|
|
|
|
|
#ifndef RESTOREHEIGHTWIDGET_H
|
|
|
|
#define RESTOREHEIGHTWIDGET_H
|
|
|
|
|
|
|
|
#include <QWidget>
|
|
|
|
#include <QItemSelection>
|
|
|
|
|
|
|
|
#include "appcontext.h"
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class RestoreHeightWidget;
|
|
|
|
}
|
|
|
|
|
|
|
|
class RestoreHeightWidget : public QWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit RestoreHeightWidget(QWidget *parent = nullptr);
|
|
|
|
void initRestoreHeights(RestoreHeightLookup *lookup);
|
2020-12-25 15:28:50 +00:00
|
|
|
void setHeight(int height);
|
2020-12-24 13:34:37 +00:00
|
|
|
int getHeight();
|
2020-10-07 10:36:04 +00:00
|
|
|
void hideSlider();
|
2020-12-24 13:34:37 +00:00
|
|
|
~RestoreHeightWidget() override;
|
2020-10-07 10:36:04 +00:00
|
|
|
|
|
|
|
private:
|
2020-12-25 15:28:50 +00:00
|
|
|
void updateTimestamp(int date);
|
|
|
|
|
2020-10-07 10:36:04 +00:00
|
|
|
RestoreHeightLookup *m_restoreHeightLookup = nullptr;
|
|
|
|
Ui::RestoreHeightWidget *ui;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // RESTOREHEIGHTWIDGET_H
|