completed zoom tool
This commit is contained in:
@@ -40,6 +40,7 @@ TimelinePanel::TimelinePanel(QWidget *parent) :
|
||||
layout->addWidget(view_);
|
||||
|
||||
connect(view_->horizontalScrollBar(), SIGNAL(valueChanged(int)), ruler_, SLOT(SetScroll(int)));
|
||||
connect(view_, SIGNAL(UserSetScale(double)), this, SLOT(SetScale(double)));
|
||||
connect(ruler_, SIGNAL(TimeChanged(const int64_t&)), view_, SLOT(SetTime(const int64_t&)));
|
||||
|
||||
// FIXME: Magic number
|
||||
|
||||
@@ -49,13 +49,14 @@ signals:
|
||||
private:
|
||||
void Retranslate();
|
||||
|
||||
void SetScale(double scale);
|
||||
|
||||
TimelineView* view_;
|
||||
|
||||
TimeRuler* ruler_;
|
||||
|
||||
double scale_;
|
||||
|
||||
private slots:
|
||||
void SetScale(double scale);
|
||||
};
|
||||
|
||||
#endif // TIMELINE_PANEL_H
|
||||
|
||||
Reference in New Issue
Block a user