#include <QAbstractScrollArea>
#include <QSizeF>
+#include <QSplitter>
#include <pv/data/signaldata.hpp>
#include <pv/util.hpp>
class Viewport;
class TriggerMarker;
-class CustomAbstractScrollArea : public QAbstractScrollArea
+class CustomScrollArea : public QAbstractScrollArea
{
Q_OBJECT
public:
- CustomAbstractScrollArea(QWidget *parent = nullptr);
- void setViewportMargins(int left, int top, int right, int bottom);
+ CustomScrollArea(QWidget *parent = nullptr);
bool viewportEvent(QEvent *event);
};
void set_scroll_default();
+ bool header_was_shrunk() const;
+
+ void expand_header_to_fit();
+
void update_layout();
TraceTreeItemOwner* find_prevalent_trace_group(
private Q_SLOTS:
+ void on_splitter_moved();
+ void on_repeat_splitter_expansion();
+
void h_scroll_value_changed(int value);
void v_scroll_value_changed();
void set_time_unit(pv::util::TimeUnit time_unit);
private:
+ CustomScrollArea *scrollarea_;
Viewport *viewport_;
Ruler *ruler_;
Header *header_;
+ QSplitter *splitter_;
unordered_set< shared_ptr<Signal> > signals_;
vector< shared_ptr<DecodeTrace> > decode_traces_;
#endif
- CustomAbstractScrollArea scrollarea_;
-
/// The view time scale in seconds per pixel.
double scale_;
pv::util::Timestamp offset_;
bool updating_scroll_;
+ bool settings_restored_;
+
bool sticky_scrolling_;
bool coloured_bg_;
bool always_zoom_to_fit_;