mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
cc0c4ab2f1
In the latest version of the new filter-widget the connection between widget and filter was lost. Connect both - but use a simple function call instead of a signal, since it is not immediately obivous where the connection should be made. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
37 lines
680 B
C++
37 lines
680 B
C++
#ifndef FILTERWIDGET_2_H
|
|
#define FILTERWIDGET_2_H
|
|
|
|
#include <QWidget>
|
|
#include <QHideEvent>
|
|
#include <QShowEvent>
|
|
|
|
#include <memory>
|
|
|
|
#include "ui_filterwidget2.h"
|
|
#include "qt-models/filtermodels.h"
|
|
|
|
namespace Ui {
|
|
class FilterWidget2;
|
|
}
|
|
|
|
class FilterWidget2 : public QWidget {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit FilterWidget2(QWidget *parent = 0);
|
|
void updateFilter();
|
|
protected:
|
|
void hideEvent(QHideEvent *event) override;
|
|
void showEvent(QShowEvent *event) override;
|
|
|
|
public slots:
|
|
void updatePlanned(int value);
|
|
void updateLogged(int value);
|
|
|
|
private:
|
|
std::unique_ptr<Ui::FilterWidget2> ui;
|
|
void filterDataChanged(const FilterData &data);
|
|
FilterData filterData;
|
|
};
|
|
|
|
#endif
|